ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

CI - Hacking game

July 04, 2007 11:38pm

Subscribe [2]
  • #1 / Jul 04, 2007 11:38pm

    Nanodeath

    31 posts

    Hi all,

    One of my main projects to play with CI so far is a hacking game.  Things are going well and whatever, much of the engine (and commands, scripts, and programs) is already done, CI makes it REALLY fun to work with, but I have some questions about non-technical aspects.

    Okay, most important thing is…the game is entirely within a console window (simulated with html/javascript).  After sampling one of the other hacker games out there, I wonder if this would be far too…unapproachable?  I mean, it’s not really hard, and the syntax would essentially be kiddy Linux (i.e. download file.txt) but I wonder if it would still be too scary for most people.  Thoughts?

  • #2 / Jul 19, 2007 4:36pm

    See64

    11 posts

    Hey Nanodeath, sounds cool, don’t you have a preview to show off how it works? It sounds rather interesting.

  • #3 / Jul 22, 2007 4:33pm

    Nanodeath

    31 posts

    Hey See64.  I was just working on it now when I noticed a bug, but for some reason the change doesn’t get reflected on the server after I upload it to the server.  I’m not sure why, as I have output caching disabled (now).  I’ve created a couple demo users already; I’ll post again when it’s ready to go.

  • #4 / Jul 22, 2007 5:07pm

    Nanodeath

    31 posts

    Site: http://nanodeath.wasome.com/PEC/

    Whoops, I forgot I had a “source” version and a localhost copy.  Anyway, here’s the specs:

    commands:
    ls OR list
    ls -l OR list -l
    read [filename]
    pwd OR where
    cd
    stat
    disconnect
    timeleft
    download OR wget
    rm
    clear

    programs:
    Pico [filename(optional)]
    mail

    scripts:
    connect host

    Commands are functions that ALL users can use, scripts are like commands in that they return immediately, but normally you’ll have to acquire them through some means (aka downloading and installing them).  Programs don’t return immediately, but take the full console window until you quit.  Also note that these use keyboard shortcuts, and as such have had some issues in Konqueror.  They seem to work fine in FF and IE, however.

    You can log in as either .(JavaScript must be enabled to view this email address)/test or .(JavaScript must be enabled to view this email address)/test.  They are equivalent.

    There are two computers, testuser1.ecu and testuser2.ecu (.ecu = enigma complex user), representative of each user’s box.  I have equipped each computer with the “connect” script, so just type connect testuser2.ecu to connect to someone and type disconnect to get back to your computer.

    Besides navigating the other user’s computer’s directory tree, you can also download files off their computer.  Just navigate to the directory with the file and type download (or wget) and then the filename.  Then monitor the download with timeleft.  Do note that right now that timeleft returns an extra two hours to whatever the time should be—this is due to some time zone weirdness and me not using MySQL functions where I should, but the actual behavior is correct (file is downloaded at correct time).

    The last thing to experiment with is programs.  These are pretty spiffy, if I say so myself.
    To run Pico, you can just run Pico and it’ll start editing the newpicofile in the current directory (or make one).  Alternatively, type Pico somefilename and it’ll open up that file.  The relevant shortcuts are Ctrl-X to quit and Ctrl-S to save.

    Slightly more involved is the mail program.  I set it up so that user 2 sent user 1 three emails.  This one actually has the shortcut bar on the bottom, so that should be fairly self-explanatory.  Just type mail.

    Um…I think that’s about everything.  Let me know if you get stuck/have questions or comments.  Enjoy!

    EDIT: Sometimes I’m retarded :D *adds link*

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases