====== Adventure ====== The game in this how-to is [[http://www.catb.org/~esr/open-adventure/|Open Adventure]], a Unix/C port of the original Colossal Cave Adventure game from 1976. To have the game automatically load and save a user's game state, build [[https://gitlab.com/esr/open-adventure|the project]] with the ''ADVENT_AUTOSAVE'' flag. This adds the ''-a '' option to automatically load/restore a user's saved game (or create it if it doesn't exist), and then save it when the user quits or if they're disconnected or run out of time. When building, specify the (new) AUTOSAVE option: $ make CFLAGS=-DADVENT_AUTOSAVE Once built, you set it up in [[util:SCFG]] like so: Name Adventure Internal Code ADVENTUR Start-up Directory ../xtrn/adventure Command Line advent -a %juser/%4.adventure Clean-up Command Line Execution Cost None Access Requirements UNIX Execution Requirements Multiple Concurrent Users Yes I/O Method Standard, No Echo Native Executable/Script Yes Use Shell or New Context No Modify User Data No Execute on Event No Pause After Execution Yes Disable Local Display No BBS Drop File Type None Now, I did not try to build and run this on Windows and likely won't attempt that, so this is likely a Unix/Linux door game only. ===== See Also ===== * [[:howto:door:|howto:door index]] {{tag>adventure}}