Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
howto:door:frotz [2024/06/24 19:05] – [Frotz] Linux doesn't need doorway. nelgin | howto:door:frotz [2024/06/24 19:15] (current) – [Linux Script to Save User Positions] nelgin | ||
---|---|---|---|
Line 49: | Line 49: | ||
====== Register DOORWAY ====== | ====== Register DOORWAY ====== | ||
DOORWAY can still be registered at pcmicro.com. You can use it for 30 days to try it out, but the program will only run for 10 minutes. | DOORWAY can still be registered at pcmicro.com. You can use it for 30 days to try it out, but the program will only run for 10 minutes. | ||
+ | |||
+ | ====== Linux Script to Save User Positions ====== | ||
+ | |||
+ | Save the following script as rungame in your /sbbs/xtrn somewhere, such as / | ||
+ | |||
+ | < | ||
+ | #!/bin/bash | ||
+ | |||
+ | stty kill undef | ||
+ | stty erase ^? | ||
+ | |||
+ | if [ -z $1 ] ; then | ||
+ | echo "Must provide a user number" | ||
+ | exit 1 | ||
+ | fi | ||
+ | |||
+ | if [ -z $2 ] ; then | ||
+ | echo "Must provide a filename" | ||
+ | exit 1 | ||
+ | fi | ||
+ | |||
+ | BASENAME=$(echo $2|cut -f1 -d.) | ||
+ | GAMEPATH=/ | ||
+ | SAVEPATH=/ | ||
+ | if [ ! -d ${SAVEPATH} ] ; then | ||
+ | mkdir -p ${SAVEPATH} | ||
+ | fi | ||
+ | |||
+ | / | ||
+ | </ | ||
+ | |||
+ | Then an scfg example would be: | ||
+ | |||
+ | < | ||
+ | [Hitchhiker' | ||
+ | 1: Name | ||
+ | 2: Internal Code ICHHGG | ||
+ | 3: Start-up Directory | ||
+ | 4: Command Line | ||
+ | 5: Clean-up Command Line | ||
+ | 6: Execution Cost None | ||
+ | 7: Access Requirements | ||
+ | 8: Execution Requirements | ||
+ | 9: Multiple Concurrent Users Yes | ||
+ | 10: I/O Method | ||
+ | 11: Native Executable/ | ||
+ | 12: Use Shell or New Context | ||
+ | 13: Modify User Data No | ||
+ | 14: Execute on Event No | ||
+ | 15: Pause After Execution | ||
+ | 16: Disable Local Display | ||
+ | 17: BBS Drop File Type None | ||
+ | 18: Place Drop File In Node Directory | ||
+ | 19: Time Options... | ||
+ | </ | ||
+ | |||
+ | The %4 means the users user number, zero-filled to 4 digits. | ||
+ | |||
+ | Any saved games will be in / | ||
===== See Also ===== | ===== See Also ===== |