Level 1 youtube playthrough:
For all platforms you will need original CLAW.REZ
game archive in Build_Release
directory from original game
Zip all content inside Build_Release/ASSETS
directory to ASSETS.ZIP
file.
Project also contains CMake files if you want to use other IDEs.
mkdir build
cd build
cmake -G "Visual Studio 15 2017" ..
msbuild OpenClaw.sln
# Or
cmake -G "NMake Makefiles" ..
nmake
*Prerequisites for Ubuntu 16.04 (should be almost identical for Fedora/CentOS/):**
sudo apt install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev libsdl2-gfx-dev
You could also install libtinyxml-dev
but this library will be compiled and linked from ThirdParty/Tinyxml
directory.
Edit root CMakeLists.txt
file to change this behaviour.
Compilation:
git clone https://github.com/pjasicek/OpenClaw.git
CLAW.REZ iz required from original game in the OpenClaw/Build_Release folder
Use cmake
to build fresh Makefile. There is no need specific arguments.
make
(it's going to use all threads to compile, edit Makefile in Build_Release folder to whatever number of simultaneous threads you want it on your machine to run)
Remarks:
For hearing background music play, you need to install timidity (or timidity++) and freepats. Some linux distributions come with it by default, some do not (fedora, archlinux)
Does not work with SDL 2.0.6 - if you have the latest one from repository, you should be fine
The project can be compiled as wasm code. This code is executed by modern web browsers without any additional runtime dependencies. Compiled once this code can work on any devices with different operation systems.
Compilation:
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
./emsdk install latest
./emsdk activate latest
source ./emsdk_env.sh
# Try to use latest version.
# If it doesn't work the project was successfully compiled on 1.39.11 version.
sudo apt install python cmake
.ASSETS.ZIP
and CLAW.REZ
files in Build_Release
directory.Compile:
mkdir build
cd build
emcmake cmake -DEmscripten=1 ..
# -DExtern_Config=0 parameter includes config.xml file in game resources
make
Run:
You will need web server to run compiled project. There are 2 options:
openclaw.html
, openclaw.js
, openclaw.wasm
and openclaw.data
(and config.xml
if you build the project without -DExtern_Config=0
parameter) files from Build_Release
directory to any web server.Or run Python server:
cd Build_Release
python -m SimpleHTTPServer 8080
# Go to http://localhost:8080/openclaw.html
Remarks:
There are some limitations:
.wav
file formats. Microsoft? Again?.xmi
(MIDI) file formats. This files should be converted to another compatible formats. All MIDI audio are disabled for now.SDL_Mixer
audio functions aren't implemented (you can find it by TODO: [EMSCRIPTEN]
search query) but the game is playable.about:config
properties.*Prerequisites for Ubuntu 16.04 (should be almost identical for Fedora/CentOS/):**
sudo apt install mono-runtime libmono-system4.0-cil libmono-system-windows-forms4.0-cil
Then run it like this:
~/OpenClaw/Build_Release$ mono ClawLauncher.exe