Page 1 of 2

Coding missions

PostPosted: Thu Jan 15, 2009 5:29 pm
by comperr
Did you know HTS accepts user submitted missions?
Most of the stegos and some of the extended basics are user submitted.
We accept any type of mission - just let us know when you have one.

The HTS mission framework is very simple.
Code: Select all
Mission info
<?php
$win_mode= '/some win type/';
$submit_correct="answer";
?>

It is really as simple as that.
Here are the following win modes
$win_mode="win"; Always win. Ignore $submit_correct. Use with custom winning engines.
$win_mode="text"; Win if any text is entered. Used for one of the logic missions
$win_mode="empty"; Win if no text is entered. Used for one basic mission.
$win_mode="normal"; Win if entry matches $submit_correct EXACTLY.
$win_mode="array"; submit_correct is an array with correct answers
$win_mode="regex"; submit_correct is a perl regex

If you need any help just ask.

Re: Coding missions

PostPosted: Thu Jan 15, 2009 5:33 pm
by xelix
One thing I'd like to add is that it's good practice to include comments in your mission code (These cannot be seen by users, so feel free to put possible answers/changes)

i.e.
Code: Select all
/* Mission type: ExtBasic
* Points: 50
* Description: This is a mission about {explanation here}, it will help teach users about {topic here}
* Changelog/Suggestions/etc
*/

Re: Coding missions

PostPosted: Thu Jan 15, 2009 6:35 pm
by Dr_Phil
Could you guys please put some glue to this topic so it will stay sticky? :)

Re: Coding missions

PostPosted: Thu Jan 15, 2009 6:56 pm
by Monica
Stickied. <3

Re: Coding missions

PostPosted: Mon Jan 19, 2009 1:25 pm
by computerdude523
Awsome!

*starts coding*

-- Tue Feb 24, 2009 4:32 pm --

Quick Question:

Do You Want Us To Pt The Hint/Answer/Thing For The User To SOLVE The Problem?

Very Basic Example:

Code: Select all
<?php
####################
# MISSION INFO HERE #
###################
?>
<body>
<p>
<center>
<h1> FIND THE PASSWORD: </h1>
<!-- PUT PASSWORD FORM STUFF HERE... -->
<br>
<br>
<!-- Password: PUT PASSWORD HERE -->
</center>
</p>
</body>
</html>


(This Code May Not Even Work...I Just Typed It Up. It's JUST AN EXAMPLE.)

< computerdude523 >

Re: Coding missions

PostPosted: Tue Mar 24, 2009 11:37 am
by solid-snake2009
hi all ,
ijust had an idea about a mission

why dont we make missions about pascal(old programming language) it will be fun :mrgreen: its like javascript but its easy .
i hope u like the idea :lol: :lol:

with that we can see the general exp of a user ;)

-- Tue Mar 24, 2009 11:44 am --

ooops did i say javascript ??? lol sorry
i ment java not java script

Re: Coding missions

PostPosted: Wed Mar 25, 2009 7:34 pm
by Monica
You need to explain better.

Just FYI: Any of the Programming missions can be coded using different languages.

Re: Coding missions

PostPosted: Tue Mar 31, 2009 5:26 pm
by Tha Amc
ummm im new and i was wondering what all i should look into. i hav looked into basic html and stink at that so far (only started yesterday) wat kind of codes should i look into?
]

Re: Coding missions

PostPosted: Tue Mar 31, 2009 5:35 pm
by godofcereal
Tha Amc wrote:ummm im new and i was wondering what all i should look into. i hav looked into basic html and stink at that so far (only started yesterday) wat kind of codes should i look into?
]


Read this,
www.hackthissite.org/forums/viewtopic.php?f=79&t=2301

Re: Coding missions

PostPosted: Wed Apr 15, 2009 7:28 pm
by orwell84
Where do we submit missions?