Skip to content

kripts/miniOneLifeCompile

 
 

Repository files navigation

miniOneLifeCompile

Minimal scripts to compile 2HOL/OHOL client, server and editor

TLDR Usage

Get WSL (Windows Subsystem for Linux) by enabling it in "Apps & features", and then in the WSL shell run the line below to compile and start the game client:

./buildFromScratch.sh

Compiling (and running) the Server

./cleanOldBuildsAndCaches.sh
./server.sh

Compiling the Editor

./cleanOldBuildsAndCaches.sh
./getEditorDependencies.sh
./editor.sh

Quick Recompiling the Game Client

After you made changes to the client code, just run this, and it will start the new client as well:

./compile.sh

Start Server (Without Recompiling)

./runServer.sh

Other Platforms

The scripts cross-compile the client and editor for Windows on Linux, and compile the server for Linux by default.

To compile the client and editor for Linux:

(Note: running graphical apps on WSL requires additional third-party apps, e.g. Xming, to work)

./cleanOldBuildsAndCaches.sh
./compile.sh 1
./cleanOldBuildsAndCaches.sh
./editor.sh 1

To cross-compile the server for Windows on Linux:

./cleanOldBuildsAndCaches.sh
./server.sh 5

More Info

This is meant to be minimal, if you want more info:

Defalt's TwoLifeXcompile

OneLifeXcompile (where the makefile in this repo for cross-compiling for Windows on Linux came from)

Jason's compiling note

Note on cross-compiling the editor

Note on compiling the editor and server

Some old scripts to compile 2HOL

Hetuw's compile scripts

About

Minimal scripts to compile 2HOL/OHOL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%