a multiplayer game of parenting and civilization building
You are not logged in.
Pages: 1
Hi all,
as i struggled a bit setting up a custom server. I decided to create a small "how to", as some of the informations are missing or spreaded at different places.
1. install dependencies and download source (just follow this link)
- http://onehouronelife.com/compileNotes.php?nocounter=1
- Install: sudo apt-get install git g++ imagemagick xclip libsdl1.2-dev libglu1-mesa-dev libgl1-mesa-dev
- additional for headless with nohup: sudo apt-get install expect
2. unpack and build
- Unpack: tar xzf OneLife_Live4_UnixSource.tar.gz
- Pull&Build: ./pullAndBuildLatest
3. follow 'OneLife_Live4_UnixSource/OneLife/documentation/EditorAndServerBuildNotes.txt
- cd OneLife/server
- ./configure
- make
- ln -s ../../OneLifeData7/objects .
- ln -s ../../OneLifeData7/transitions .
- ln -s ../../OneLifeData7/categories .
4. Edit server configs OneLife_Live4_UnixSource/OneLife/server/settings/:
- clientPassword.ini => set the password for connection
- requireClientPassword.ini => 1 if you want to keep it private
- requireTicketServerCheck.ini => 0 to disable the ley checking
- useStatsServer.ini => 0 to disable stats server connection
5. run server
- wether start it directly with ./OneLifeServer (eg with TMUX)
- or with the ./runHeadlessServerLinux.sh script (nohup)
6. Edit client configs OneLife_Live4_UnixSource/settings/:
- fullscreen.ini => 0 to disable fullscreen (only at dual monitor)
- customServerAddress.ini => YOUR IP/URL "SAMPLE.COM"
- serverPassword.ini => set to the same password used in server
- useCustomServer.ini => 1 to enable custom server connection
Hope i didnt forget anything.
Have fun playing with your friends at your own server
Offline
A note from when I was working through this, on a fresh VPS running ubuntu, I had to run "sudo apt-get update" before anything else
Also, in order to connect, I had to create a file in the /server directory:
dataVersionNumber.txt
Content: whatever the current version is, when I did it it was 73
Last edited by rhitmojo (2018-04-07 03:45:55)
Offline
If don't want to compile it yourself and are interested in running the server inside docker, you can use my docker image.
Usage:
1. install docker (on ubuntu: apt install docker.io)
2. start a server:
docker run --name ohol -dp 8005:8005 -v `pwd`/db/:/opt/OneLife/server/db/ -v `pwd`/settings:/opt/OneLife/server/settings/ ludwigf/ohol-server:72-72-73
this will create two folders inside the directory you are currently in: "db" (where all game data is stored in) and "settings" (well, settings...).
The server is running in the background. You can use docker commands to control it (for example "docker ps", "docker stop ohol", ...)
Discord: Blue#0794 | EU Server | OHOL Launcher
Offline
Pages: 1