Skip to content

Commit

Permalink
Merge pull request #332 from mrikola/update-readme
Browse files Browse the repository at this point in the history
Bring readme files up to date
  • Loading branch information
Interrupt authored Dec 31, 2019
2 parents 9a98bfa + c72aea0 commit 589a063
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 108 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ before_deploy:
- cp osx-linux/run_$TRAVIS_OS_NAME.sh shockolate/run.sh
- cp -r shaders shockolate/
- cp -r res shockolate/
- cp readme/readme-$TRAVIS_OS_NAME.txt shockolate/readme.txt
- tar zcfv $PACKAGE_NAME shockolate
- rm -r shockolate

Expand Down
54 changes: 35 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,37 +21,35 @@ Prerequisites
- Floppy disk assets are an older version that we can't load currently


Downloads
Running
=======

We have CI systems in place building [distributable packages](https://github.com/Interrupt/systemshock/releases/) out of tagged commits for Linux, Mac and Windows.
## From a prebuilt package

Compiling / Running
============
Find a list of [downloadable packages](https://github.com/Interrupt/systemshock/releases/) for Linux, Mac and Windows. 32 and 64 bit versions are available for Linux and Windows.

## From source code

## Prerequisites
- SDL2, 32 bit
- SDL2_mixer, 32 bit
Step 1. Build the dependencies:
* Windows: `build_win32.sh` or `build_win64.sh` (Git Bash and MinGW recommended)
* Linux/Mac: `build_deps.sh` or the CI build scripts in `osx-linux`
* Other: `build_deps.sh`

## Building SDL
### Linux/Mac
You can use the included `build_deps.sh` shell script to build the required versions of SDL2 / SDL2_mixer or use system ones.
Here brief options list:
Step 2. Build and run the game itself
```
cmake .
make systemshock
./systemshock
```

The following CMake options are supported in the build process:
* `ENABLE_SDL2` - use system or bundled SDL2 (ON/BUNDLED, default BUNDLED)
* `ENABLE_SOUND` - enable sound support (requires SDL2_mixer, ON/BUNDLED/OFF, default is BUNDLED)
* `ENABLE_FLUIDSYNTH` - enable FluidSynth MIDI support (ON/BUNDLED/OFF, default is BUNDLED)
* `ENABLE_OPENGL` - enable OpenGL support (ON/OFF, default ON)

### Windows
See [the Windows readme](windows/readme_windows.md).
If you find yourself needing to modify the build script for Shockolate itself, `CMakeLists.txt` is the place to look into.

## Build and run
```
cmake .
make systemshock
./systemshock
```

Command line parameters
============
Expand All @@ -71,3 +69,21 @@ Run a fan mission from specific files:
```
./systemshock my-archive.dat my-strings.res
```

Control modifications
=======

## Movement

Shockolate replaces the original game's movement with WASD controls, and uses `F` as the mouselook toggle hotkey. This differs from the Enhanced Edition's usage of `E` as the mouselook hotkey, but allows us to keep `Q` and `E` available for leaning.

## Additional hotkeys

* `Ctrl+G` cycles between graphics rendering modes
* `Ctrl+F` to enable full screen mode
* `Ctrl+D` to disable full screen mode

## Missing hotkeys

* `F1..F10` for the side MFD's
* `0..9` for the Hacker's hardware
7 changes: 3 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ platform:
# Avoid rebuilding external dependencies (ie. SDL and SDL_mixer)
# Uncache build_ext if external deps change
cache:
# - res/music.sf2
# - build_ext
- res/music.sf2
- build_ext

# Set up environment variable values for 32 and 64 bit builds

Expand Down Expand Up @@ -67,8 +67,7 @@ after_build:
- copy build_ext\built_sdl_mixer\bin\SDL*.dll .
- copy build_ext\built_glew\lib\glew32.dll .
- copy build_ext\fluidsynth-lite\src\libfluidsynth.dll .
- copy readme\readme-windows.txt readme.txt
- 7z a %ARTIFACT% systemshock.exe *.dll readme.txt shaders/ res/
- 7z a %ARTIFACT% systemshock.exe *.dll shaders/ res/

artifacts:
- path: systemshock-x86.zip
Expand Down
2 changes: 1 addition & 1 deletion osx-linux/readme_osx_linux.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ Shockolate - Portable System Shock
============

1. Copy `res/` folder of original System Shock to this directory
2. Shockolate depends on SDL2. Install SDL2 and SDL2_mixer by running `./install_sdl.sh`. Linux needs sudo for this script.
2. Install SDL2, SDL2_mixer and Fluidsynth by running `./install_<bits>bit_sdl.sh` where `<bits>` is 32 or 64, depending on your system capabilities. Linux needs `sudo` for this script.
3. Run Shockolate `./run.sh`
24 changes: 0 additions & 24 deletions readme/readme-linux.txt

This file was deleted.

24 changes: 0 additions & 24 deletions readme/readme-osx.txt

This file was deleted.

24 changes: 0 additions & 24 deletions readme/readme-windows.txt

This file was deleted.

11 changes: 0 additions & 11 deletions windows/readme_windows.md

This file was deleted.

0 comments on commit 589a063

Please sign in to comment.