Raspberry Pi ZERO for DOOM 2 server
Raspberry Pi ZERO for DOOM 2 server
Hi,
I'm wondering if it is possible to run a server on a raspberry pi?
I'm wondering if it is possible to run a server on a raspberry pi?
Re: Raspberry Pi ZERO for DOOM 2 server
I'm wondering the same thing.
- Torr Samaho
- Lead Developer
- Posts: 1543
- Joined: Fri May 25, 2012 6:03 pm
- Location: Germany
Re: Raspberry Pi ZERO for DOOM 2 server
http://wiki.zandronum.com/Compiling_the ... spberry_Pi
I'm not sure though whether a Pi Zero is fast enough. A Pi 2 is.
I'm not sure though whether a Pi Zero is fast enough. A Pi 2 is.
Re: Raspberry Pi ZERO for DOOM 2 server

These servers already run on a Raspberry Pi. Not sure which model, though
Re: Raspberry Pi ZERO for DOOM 2 server
That's all fine and dandy but how do I setup the game modes, iwads, and flags?Torr Samaho wrote:http://wiki.zandronum.com/Compiling_the ... spberry_Pi
I'm not sure though whether a Pi Zero is fast enough. A Pi 2 is.
- Torr Samaho
- Lead Developer
- Posts: 1543
- Joined: Fri May 25, 2012 6:03 pm
- Location: Germany
Re: Raspberry Pi ZERO for DOOM 2 server
Should be pretty much the same as with the Linux command line server.mehguy wrote:That's all fine and dandy but how do I setup the game modes, iwads, and flags?
- Haze
- Posts: 29
- Joined: Fri Nov 23, 2012 4:18 pm
- Location: forum.odroid.com
- Clan: ODROID
- Clan Tag: Xu3
- Contact:
Re: Raspberry Pi ZERO for DOOM 2 server
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.
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
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
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.
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
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:
Code: Select all
hg update -cr ZA_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.
- Haze
- Posts: 29
- Joined: Fri Nov 23, 2012 4:18 pm
- Location: forum.odroid.com
- Clan: ODROID
- Clan Tag: Xu3
- Contact:
Re: Raspberry Pi ZERO for DOOM 2 server
Mine says : Zandronum 2.1.2 - 150718-1029M - SDL version
You may have done something wrong somewhere.
You may have done something wrong somewhere.
- Torr Samaho
- Lead Developer
- Posts: 1543
- Joined: Fri May 25, 2012 6:03 pm
- Location: Germany
Re: Raspberry Pi ZERO for DOOM 2 server
That's the wrong date, it should say 150718-1029 like Haze said. What is the output of "hg summary" in your working dir?vozka wrote:Code: Select all
Zandronum 2.1.2 - 160705-2130 - SDL version
Re: Raspberry Pi ZERO for DOOM 2 server
hg summary outputs
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")
Code: Select all
parent: 8498:a3663b0061d5 ZA_2.1.2
fixed GCC warnings
branch: default
commit: 777 unknown (clean)
update: 4816 new changesets (update)
except hg update -cr ZA_2.1.2 (because there's a newer tag called "tip")
- Torr Samaho
- Lead Developer
- Posts: 1543
- Joined: Fri May 25, 2012 6:03 pm
- Location: Germany
Re: Raspberry Pi ZERO for DOOM 2 server
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
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
However after applying the patch
I get
Am I applying the patch incorrectly?
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
Code: Select all
wget -O raspi.patch "https://gist.githubusercontent.com/csnxs/0e4ce613a5d1736ead593500ca5a9df0/raw/330a41c796bdca88b5040bedf9e6a568ec567e7f/-" && \
hg import raspi.patch && \
rm raspi.patch
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
- Haze
- Posts: 29
- Joined: Fri Nov 23, 2012 4:18 pm
- Location: forum.odroid.com
- Clan: ODROID
- Clan Tag: Xu3
- Contact:
Re: Raspberry Pi ZERO for DOOM 2 server
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.
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
The Pi Zero uses an ARMv6 processor afaik, running your binary just says "illegal instruction".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.
- Torr Samaho
- Lead Developer
- Posts: 1543
- Joined: Fri May 25, 2012 6:03 pm
- Location: Germany
Re: Raspberry Pi ZERO for DOOM 2 server
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.vozka wrote: Am I applying the patch incorrectly?
Code: Select all
hg import --no-commit raspi.patch
Re: Raspberry Pi ZERO for DOOM 2 server
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.
I've edited the wiki wiki page on compiling for raspberry pi to reflect this.
- Torr Samaho
- Lead Developer
- Posts: 1543
- Joined: Fri May 25, 2012 6:03 pm
- Location: Germany
Re: Raspberry Pi ZERO for DOOM 2 server
Thanks! FYI, we found an ARM specific bug, so the raspi server still has some problems.vozka wrote:I've edited the wiki wiki page on compiling for raspberry pi to reflect this.