|
|
4 tahun lalu | |
|---|---|---|
| ansi | 4 tahun lalu | |
| .gitignore | 4 tahun lalu | |
| CMakeLists.txt | 4 tahun lalu | |
| DOOR.SYS | 4 tahun lalu | |
| LICENSE | 4 tahun lalu | |
| NOTES.md | 4 tahun lalu | |
| README.md | 4 tahun lalu | |
| ansi-to-src.py | 4 tahun lalu | |
| backup.sh | 4 tahun lalu | |
| build_images.sh | 4 tahun lalu | |
| db.cpp | 4 tahun lalu | |
| db.h | 4 tahun lalu | |
| deck.cpp | 4 tahun lalu | |
| deck.h | 4 tahun lalu | |
| door_2023.sh | 4 tahun lalu | |
| doxy.config | 4 tahun lalu | |
| grind.sh | 4 tahun lalu | |
| main.ans | 4 tahun lalu | |
| main.cpp | 4 tahun lalu | |
| make_docs.sh | 4 tahun lalu | |
| play.cpp | 4 tahun lalu | |
| play.h | 4 tahun lalu | |
| rlinetd.conf | 4 tahun lalu | |
| scores.cpp | 4 tahun lalu | |
| scores.h | 4 tahun lalu | |
| space.h | 4 tahun lalu | |
| starfield.cpp | 4 tahun lalu | |
| starfield.h | 4 tahun lalu | |
| try_inet.sh | 4 tahun lalu | |
| utils.cpp | 4 tahun lalu | |
| utils.h | 4 tahun lalu | |
| version.h | 4 tahun lalu |
The git ... --depth 1 is a sparse checkout. It only pulls the latest source, it doesn't pull down the full git history.
git clone github:stevet11/space-ace.git --depth 1
cd space-ace
git clone https://github.com/stevet11/door.git door++ --depth 1
git clone https://github.com/SRombauts/SQLiteCpp.git --depth 1
git clone https://github.com/jbeder/yaml-cpp.git --depth 1
mkdir build
cd build
cmake ..
make
In the config/menus/*-doors.hjson file add these entries:
{
value: { command: "S" }
action: [
{
acs: EC0
action: @menu:doorAce
}
{
/* acs: EC1 */
action: @menu:doorAceU8
}
]
}
doorAce: {
desc: Space Ace
module: abracadabra
config: {
name: Space Ace
dropFileType: DOOR
cmd: /home/enigma/bbs/doors/spaceace.sh
args: [
"{dropFilePath}"
]
nodeMax: 0
tooManyArt: DOORMANY
io: stdio
}
}
doorAceU8: {
desc: Space Ace
module: abracadabra
config: {
name: Space Construct
dropFileType: DOOR
cmd: /home/enigma/bbs/doors/spaceace.sh
args: [
"{dropFilePath}"
]
nodeMax: 0
tooManyArt: DOORMANY
io: stdio
encoding: utf8
}
}
spaceace.sh
#!/bin/bash
trap "" SIGINT
cd /home/enigma/bbs/doors/spaceace/
./space-ace -d $1
While space-ace can detect CP437/unicode, under Enigma it can't.
In menus/doors.toml add an entry:
[[menuitem]]
command = "RUNDOOR"
hotkey = "S"
data = "doors/spaceace.sh"
In the doors directory, create spaceace.sh:
#!/bin/bash
trap "" SIGINT
cd doors/spaceace
./space-ace -d ../../temp/$1/door.sys
And space-ace would be in doors/spaceace directory.
Look for space-ace.yaml, space-ace.log, and space-data.db to be created on first run.