Coding missions

Got an idea on how things should be done? A problem with something on the site? Voice your opinion!

Coding missions

Post by comperr on Thu Jan 15, 2009 5:29 pm
([msg=16334]see Coding missions[/msg])

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.
User avatar
comperr
Poster
Poster
 
Posts: 373
Joined: Mon Apr 07, 2008 6:52 pm
Location: /dev/null
Blog: View Blog (0)


Re: Coding missions

Post by xelix on Thu Jan 15, 2009 5:33 pm
([msg=16335]see Re: Coding missions[/msg])

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
*/
shutdown -h 0 "Since when is death an option?"
Image
Image
User avatar
xelix
Experienced User
Experienced User
 
Posts: 52
Joined: Mon Oct 20, 2008 1:00 pm
Location: mv -f / /dev/null && shutdown -h 0 "You just lost the game."
Blog: View Blog (0)


Re: Coding missions

Post by Dr_Phil on Thu Jan 15, 2009 6:35 pm
([msg=16347]see Re: Coding missions[/msg])

Could you guys please put some glue to this topic so it will stay sticky? :)
Dr_Phil
Poster
Poster
 
Posts: 171
Joined: Mon Sep 01, 2008 12:36 pm
Blog: View Blog (0)


Re: Coding missions

Post by Monica on Thu Jan 15, 2009 6:56 pm
([msg=16351]see Re: Coding missions[/msg])

Stickied. <3
hi am new so plz dont troll me or i report 2 the HTS mods ty
User avatar
Monica
Contributor
Contributor
 
Posts: 900
Joined: Thu Oct 02, 2008 12:29 am
Location: In The Shadows
Blog: View Blog (0)


Re: Coding missions

Post by computerdude523 on Mon Jan 19, 2009 1:25 pm
([msg=16595]see Re: Coding missions[/msg])

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 >
Last edited by comperr on Tue Jan 20, 2009 7:30 pm, edited 1 time in total.
Reason: removed quote
Me: "Just Because You SAY You're A Hacker, Doesn't Really Mean You Are One."
A Noob: "Really?"
Me: "NO, Smart One. Now If You Are One, Prove It."
A Noob: ...
Me: "That's What I Thought."

< computerdude523 >
User avatar
computerdude523
New User
New User
 
Posts: 45
Joined: Wed Jul 09, 2008 10:43 am
Blog: View Blog (0)


Re: Coding missions

Post by solid-snake2009 on Tue Mar 24, 2009 11:37 am
([msg=20443]see Re: Coding missions[/msg])

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
solid-snake2009
New User
New User
 
Posts: 4
Joined: Mon Mar 23, 2009 8:27 am
Blog: View Blog (0)


Re: Coding missions

Post by Monica on Wed Mar 25, 2009 7:34 pm
([msg=20530]see Re: Coding missions[/msg])

You need to explain better.

Just FYI: Any of the Programming missions can be coded using different languages.
hi am new so plz dont troll me or i report 2 the HTS mods ty
User avatar
Monica
Contributor
Contributor
 
Posts: 900
Joined: Thu Oct 02, 2008 12:29 am
Location: In The Shadows
Blog: View Blog (0)


Re: Coding missions

Post by Tha Amc on Tue Mar 31, 2009 5:26 pm
([msg=20950]see Re: Coding missions[/msg])

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?
]
Tha Amc
New User
New User
 
Posts: 5
Joined: Tue Mar 31, 2009 4:44 pm
Blog: View Blog (0)


Re: Coding missions

Post by godofcereal on Tue Mar 31, 2009 5:35 pm
([msg=20951]see Re: Coding missions[/msg])

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
Im off, last year of school and all, I had something longer but char limit fucked that up. So yeah, had a good run here. Thanks for the memories. Thanks to the staff and users.

Best regards, your posting whore,
godofcereal

p.s. Defience, you the man ;)
User avatar
godofcereal
Addict
Addict
 
Posts: 1068
Joined: Wed Aug 20, 2008 6:11 pm
Location: ireland
Blog: View Blog (0)


Re: Coding missions

Post by orwell84 on Wed Apr 15, 2009 7:28 pm
([msg=21924]see Re: Coding missions[/msg])

Where do we submit missions?
Mens et manus.
User avatar
orwell84
Poster
Poster
 
Posts: 112
Joined: Fri Feb 20, 2009 8:20 pm
Blog: View Blog (0)


Next

Return to Comments & Suggestions

Who is online

Users browsing this forum: No registered users and 0 guests