Nenhuma descrição

Steve Thielemann 211c3778ec Fixed size issue. "September". 3 anos atrás
ansi fc9aff7a47 Space Ace, can now display the game card layout 3 anos atrás
.gitignore d87a8187ed Updated to ignore 3rd party lib directories. 3 anos atrás
CMakeLists.txt 939fef4d7f Added starfield. Random but consistent. 3 anos atrás
DOOR.SYS a7dc1e607b This is the initial door testing / space ace. 3 anos atrás
LICENSE 133904d0c1 Added MIT license. 3 anos atrás
NOTES.md 3ebc4d3bc2 Removing examples of updating (about). 3 anos atrás
README.md 3e9307dd79 Added README with build instructions. 3 anos atrás
ansi-to-src.py 8e59cc3fd4 Missing '\'. 3 anos atrás
backup.sh a7dc1e607b This is the initial door testing / space ace. 3 anos atrás
build_images.sh 3b647bd469 Updated ansi-to-src to python3. 3 anos atrás
db.cpp 28ca513c7a Added scores. 3 anos atrás
db.h 28ca513c7a Added scores. 3 anos atrás
deck.cpp adc79f6d57 Updated starfield, control when used. 3 anos atrás
deck.h 094082b8e8 Trying to optimize less obj construct/destruct. 3 anos atrás
door_2023.sh a7dc1e607b This is the initial door testing / space ace. 3 anos atrás
doxy.config 8b8b4c8aaa Make sure the doxygen config is in here. 3 anos atrás
grind.sh a8b15dd63a Updated: sqlite db, fixed is_rank, is_deck. 3 anos atrás
main.ans a7dc1e607b This is the initial door testing / space ace. 3 anos atrás
main.cpp 62bd4b6a0e Working animated starfield with panel. 3 anos atrás
make_docs.sh 8b8b4c8aaa Make sure the doxygen config is in here. 3 anos atrás
play.cpp adc79f6d57 Updated starfield, control when used. 3 anos atrás
play.h adc79f6d57 Updated starfield, control when used. 3 anos atrás
rlinetd.conf a7dc1e607b This is the initial door testing / space ace. 3 anos atrás
scores.cpp 211c3778ec Fixed size issue. "September". 3 anos atrás
scores.h adc79f6d57 Updated starfield, control when used. 3 anos atrás
space.h a7dc1e607b This is the initial door testing / space ace. 3 anos atrás
starfield.cpp 62bd4b6a0e Working animated starfield with panel. 3 anos atrás
starfield.h 62bd4b6a0e Working animated starfield with panel. 3 anos atrás
try_inet.sh a7dc1e607b This is the initial door testing / space ace. 3 anos atrás
utils.cpp 6c50813293 Updated: Added _seed to config. 3 anos atrás
utils.h 6c50813293 Updated: Added _seed to config. 3 anos atrás
version.h 339aa0f834 0.0.2 3 anos atrás

README.md

Space-Ace

Build Requirements

  • cmake
  • git
  • g++
  • libsqlite3-dev

Building under linux

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

Calling from a BBS

Enigma 1/2

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.

Talisman

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.