a multiplayer game of parenting and civilization building
You are not logged in.
Pages: 1
Hi I have a trouble in setting a Linux server. After I start the server by ./OneLifeServer, and I use the default map which generated by random seed. I found no green biome where there is gooseberry and soil.. I try soo many times with different seed. But in all generated maps, I cannot find green biome. What should I do to fix it?
Thank you
Dito
It started happening for me with the “Power Edit” update on 2024-01-14 (I think).
Map generation mixes snow biome right by dessert biome. I can’t see the lay lines, can’t do emotes, and no eaten craving sound.
I've found a solution for this problem and created a pull request with a bugfix proposal towards the original OneLife repo. I also created a separate thread to describe server setup including the required bugfix.
Since I've been fiddling with private server setup for quite a while and haven't found any easy to follow, up to date description I figured I'd create my own.
The easiest way to run a OneHourOneLife private server under Windows is using WSL. It runs a virtualized version of a specific linux distribution within your Windows machine. Setting it up is super easy - just open Microsoft Store, search for "Debian" (or your favorite Linux distribution) and hit "Get". This will install Debian linux on your Windows computer.
Once it's done, search your start menu for "Debian" and start it. The first time you'll have to choose a username and password (we'll need that password in a minute) but since it'll only be accessible locally don't worry about the password complexity too much. If you wanna go REALLY simple and only use the Linux for OneHourOneLife just go with "ohol" for both username and password.
Once the console is up and running, run the following commands step by step: (the # indicates lines that are only commentary - you can just leave them out or copy them along, the console should ignore them
# update the sources of the linux package manager (kinda like the Windows Store for Linux) - you'll have to enter the password you chose previously here since we're executing this in super user (Administrator) mode
sudo apt-get update
# this installs git to allow the script further down the line to download the source code from jason's GitHub repository
sudo apt-get install git -y
# this installs make, a program required to compile the source code
sudo apt-get install make -y
# this installs g++, another program required to compile the source code
sudo apt-get install g++ -y
# this installs wget which allows us to download single files from the internet
sudo apt-get install wget -y
# this downloads the script to download and build the server for linux from jason's GitHub repository
wget https://raw.githubusercontent.com/jason … ldLinux.sh
# this makes the script executable
chmod 775 ./serverPullAndBuildLinux.sh
# this executes the script - the script will download all necessary sources, compile them and create an according server folder for you
sh ./serverPullAndBuildLinux.sh
# this changes the working directory to the server directory
cd OneLife/server
# this adds an additional link between OneLifeData7 and the server folder - this might throw a "File exists" error if jason has merged my bugfix proposal. If so just ignore the error
ln -sf ../../OneLifeData7/contentSettings .
# That's it. Your server is now ready. You can start it with
./OneLifeServer
# To stop it correctly, just hit Ctrl+Z while having the console window in focus
#If you want to restart your server after having closed the Debian window, make sure to first navigate to the server directory using
cd OneLife/server
# and then starting it with
./OneLifeServer
The server is available now at localhost:8005, so just start your game, go to Settings, check "Use Custom Server" and change the "Address" to "localhost".
This install guide should work just fine on pretty much every other linux distribution like Ubuntu, Kali, etc. If you have any questions feel free to ask.
PS: To update the server it should be enough to just execute the script again from the home directory:
cd ~
sh ./serverPullAndBuildLinux.sh
... I haven't tested that yet, though.
I found a solution! I had the same problem and I've been looking into this on and off for almost 3 weeks now. But first things first:
There is a script that correctly sets up the private server for linux in the OneLife repo under
OneLife/server/installYourOwnServer/serverPullAndBuildLinux.sh
Copy the script to any folder your current user has read/write permissions, navigate there (it's important the current work directory is the directory of the script) and execute it. The one thing the script is missing however is a symlink between OneLifeData7/contentSettings and the server sub folder. So after executing the script it tells you to do the following steps to start the server:
cd OneLife/server
./OneLifeServer
Do the first one (navigating to OneLife/server) and then execute the following line of script:
ln -s ../../OneLifeData7/contentSettings .
This creates a symlink between the contentSettings folder in the OneLifeData7 repo (which was cloned during serverPullAndBuildLinux.sh) and the server folder you're currently in.
Now you can start the server using the second proposed line
./OneLifeServer
and tadaa, you finally have correct map generation. I really hope this helps because it took me hours over hours to figure out. xD
I'll also create a pull request towards the OneLife repo to propose a fix to the serverPullAndBuildLinux.sh so future yous and mes won't have to deal with this.
... I see! Guess my look at the code was not close enough - sorry 'bout that!
And thanks a lot for your explanation!
Sorry to tell you, but... I still bump trees for 15-30 seconds on a regular basis, so in my opinion it's not fixed at all.
I had a short look at the code and if I understood correctly, whenever interacting with a tile you get the tile's content first? Couldn't you save that server call and instead just submit your "planned" command to the server and the server
a) executes it and returns the result
b) rejects it if it's not valid
I don't want to tell you how to program your game, though, and DEFINITELY don't want to seem rude.
Even though I don't like the all caps title - he's unfortunately right. The game is absolutely amazing - however, lag and desync make it pretty hard to enjoy it at some points.
Constructive criticism:
Would a "possibility check" hurt the game's performance? E.g. if I'm holding a basket, why does my character even start bumping trees when I click on one? It's an "impossible" action after all. It would make the lag much less annoying.
Pages: 1