Page 1 of 1
Raspberry Pi ZERO for DOOM 2 server
Posted: Wed Jun 22, 2016 9:53 pm
by mehguy
Hi,
I'm wondering if it is possible to run a server on a raspberry pi?
Re: Raspberry Pi ZERO for DOOM 2 server
Posted: Wed Jun 22, 2016 11:42 pm
by arkore
I'm wondering the same thing.
Re: Raspberry Pi ZERO for DOOM 2 server
Posted: Thu Jun 23, 2016 6:33 am
by Torr Samaho
http://wiki.zandronum.com/Compiling_the ... spberry_Pi
I'm not sure though whether a Pi Zero is fast enough. A Pi 2 is.
Re: Raspberry Pi ZERO for DOOM 2 server
Posted: Thu Jun 23, 2016 7:44 am
by Konda

These servers already run on a Raspberry Pi. Not sure which model, though
Re: Raspberry Pi ZERO for DOOM 2 server
Posted: Thu Jun 23, 2016 4:17 pm
by mehguy
That's all fine and dandy but how do I setup the game modes, iwads, and flags?
Re: Raspberry Pi ZERO for DOOM 2 server
Posted: Sun Jun 26, 2016 10:51 am
by Torr Samaho
mehguy wrote:That's all fine and dandy but how do I setup the game modes, iwads, and flags?
Should be pretty much the same as with the Linux command line server.
Re: Raspberry Pi ZERO for DOOM 2 server
Posted: Mon Jun 27, 2016 1:27 pm
by Haze
I'm used to the arm platform quite well and I can say with experience (Not that I've used a RPI ZERO) but I ported Zandro Server and Zandro Game Binary to ARM and I would say Minimum requirements for server
Dual Core 1.5ghz or better
768MBRam or Better (add zram to add more ram)
Minimum Requirements for Game Binary
Quad Core or better 1.7GHZ (Tested on Dual Core and it's too slow
At least a 4 core video chip.
1GB of Ram (add zram to add more ram)
Optimal Requirements for full experience with exceptions
Octa Core 1.5ghz or better
6 core video chip
2GB of Ram (no zram needed)
I've done a server stress test on a octa core 1.7ghz mali t628 6 core and 2GB of ram.
I had added 64 players on the server but I couldn't gather around more than 12 players. The game was stable without a glitch.
On my Quad Core, 12 players seemed to be the max and my quad core arm computer has 2GB of ram. It would sometimes not too often ping to 3000
for a fraction of a second and then it's ok. So that means, your RPI ZERO at Single Core 1GHZ and 512MB of ram, you will encounter lag spikes and the many other problems.
Re: Raspberry Pi ZERO for DOOM 2 server
Posted: Wed Jul 06, 2016 7:13 pm
by vozka
Hello,
I have a problem with compiling zandronum server on a Pi Zero (let's not talk about how weak it is for now, I want to try it with 2-3 people).
I followed the walkthrough on wiki and the server compiled successfuly, but: even though the server writes
Code: Select all
Zandronum 2.1.2 - 160705-2130 - SDL version
Compiled on Jul 5 2016
in the console, when I try to connect with a 2.1.2 stable client (official build), it says "your version uses outdated network code".
I tried compiling version 2.1.1 and connecting with a 2.1.1 client, with same results (connecting with 2.1.2 client gives me a different error message, but doesn't work either). I'm not good with Mercurial, so please check that I downgraded the source code to 2.1.1 correctly, the only thing I did was:
The server, again, claimed to be 2.1.1.
Do you have any idea what could I be doing wrong? I want it to work with the official builds, compiling the game on windows would be riddiculous.
Re: Raspberry Pi ZERO for DOOM 2 server
Posted: Wed Jul 06, 2016 7:45 pm
by Haze
Mine says : Zandronum 2.1.2 - 150718-1029M - SDL version
You may have done something wrong somewhere.
Re: Raspberry Pi ZERO for DOOM 2 server
Posted: Wed Jul 06, 2016 8:18 pm
by Torr Samaho
vozka wrote:
Code: Select all
Zandronum 2.1.2 - 160705-2130 - SDL version
That's the wrong date, it should say 150718-1029 like Haze said. What is the output of "hg summary" in your working dir?
Re: Raspberry Pi ZERO for DOOM 2 server
Posted: Wed Jul 06, 2016 8:31 pm
by vozka
hg summary outputs
Code: Select all
parent: 8498:a3663b0061d5 ZA_2.1.2
fixed GCC warnings
branch: default
commit: 777 unknown (clean)
update: 4816 new changesets (update)
I did everything exactly as on the wiki, namely here:
http://wiki.zandronum.com/Compiling_the ... spberry_Pi
except hg update -cr ZA_2.1.2 (because there's a newer tag called "tip")
Re: Raspberry Pi ZERO for DOOM 2 server
Posted: Thu Jul 07, 2016 6:03 am
by Torr Samaho
Hmm, that summary looks like you are using the correct changeset. What's the output of the following command?
Code: Select all
hg log -r. --template "{date|hgdate} {node|short}"
Re: Raspberry Pi ZERO for DOOM 2 server
Posted: Thu Jul 07, 2016 12:11 pm
by vozka
The problem seems to be the patch for compiling on raspberry pi.
Before applying the patch I get the hg summary output I posted and
Code: Select all
hg log -r. --template "{date|hgdate} {node|short}"
1437215385 -7200 a3663b0061d5
However after applying the patch
Code: Select all
wget -O raspi.patch "https://gist.githubusercontent.com/csnxs/0e4ce613a5d1736ead593500ca5a9df0/raw/330a41c796bdca88b5040bedf9e6a568ec567e7f/-" && \
hg import raspi.patch && \
rm raspi.patch
I get
Code: Select all
hg summary
parent: 9627:88a753af67bb tip
asdf (<<< the patch note, it required me to input something)
branch: default
commit: 777 unknown (clean)
update: 4818 new changesets, 6 branch heads (merge)
hg log -r. --template "{date|hgdate} {node|short}"
1467893314 0 88a753af67bb
Am I applying the patch incorrectly?
Re: Raspberry Pi ZERO for DOOM 2 server
Posted: Thu Jul 07, 2016 12:37 pm
by Haze
http://www.cartridgeports.cf/index.php? ... server.zip
If I understand the specs of your computer correctly, the above should work, it's been optimized for any armv7.
If you're running armv6 then I don't think it can work unless you are in ARMHF and not ARMEL.
Re: Raspberry Pi ZERO for DOOM 2 server
Posted: Thu Jul 07, 2016 12:51 pm
by vozka
Haze wrote:http://www.cartridgeports.cf/index.php? ... server.zip
If I understand the specs of your computer correctly, the above should work, it's been optimized for any armv7.
If you're running armv6 then I don't think it can work unless you are in ARMHF and not ARMEL.
The Pi Zero uses an ARMv6 processor afaik, running your binary just says "illegal instruction".
Re: Raspberry Pi ZERO for DOOM 2 server
Posted: Thu Jul 07, 2016 7:54 pm
by Torr Samaho
vozka wrote:
Am I applying the patch incorrectly?
Yes, it seem so. Your import command commits the patch as new changeset, which changes the changeset time stamp of your working copy. Try to add "--no-commit" to the import command, i.e.
Re: Raspberry Pi ZERO for DOOM 2 server
Posted: Fri Jul 08, 2016 6:10 pm
by vozka
Aha! Excellent, thank you. This was obviously it, I'm able to connect to the server now. I thought it could be something like this, but my experience with versioning systems is limited and I've never worked with mercurial, so I didn't know.
I've edited the wiki wiki page on compiling for raspberry pi to reflect this.
Re: Raspberry Pi ZERO for DOOM 2 server
Posted: Sun Jul 10, 2016 7:33 am
by Torr Samaho
vozka wrote:I've edited the wiki wiki page on compiling for raspberry pi to reflect this.
Thanks! FYI, we found
an ARM specific bug, so the raspi server still has some problems.