Raspberry Pi ZERO for DOOM 2 server

General help and assistance forum.
Post Reply
mehguy
New User
Posts: 17
Joined: Tue Sep 01, 2015 3:24 pm

Raspberry Pi ZERO for DOOM 2 server

#1

Post by mehguy » Wed Jun 22, 2016 9:53 pm

Hi,

I'm wondering if it is possible to run a server on a raspberry pi?

User avatar
arkore
Forum Regular
Posts: 189
Joined: Mon Dec 17, 2012 8:01 pm

Re: Raspberry Pi ZERO for DOOM 2 server

#2

Post by arkore » Wed Jun 22, 2016 11:42 pm

I'm wondering the same thing.

User avatar
Torr Samaho
Lead Developer
Posts: 1543
Joined: Fri May 25, 2012 6:03 pm
Location: Germany

Re: Raspberry Pi ZERO for DOOM 2 server

#3

Post by Torr Samaho » Thu Jun 23, 2016 6:33 am

http://wiki.zandronum.com/Compiling_the ... spberry_Pi

I'm not sure though whether a Pi Zero is fast enough. A Pi 2 is.

Konda
Forum Regular
Posts: 487
Joined: Thu Jun 07, 2012 5:22 pm

Re: Raspberry Pi ZERO for DOOM 2 server

#4

Post by Konda » Thu Jun 23, 2016 7:44 am

Image
These servers already run on a Raspberry Pi. Not sure which model, though

mehguy
New User
Posts: 17
Joined: Tue Sep 01, 2015 3:24 pm

Re: Raspberry Pi ZERO for DOOM 2 server

#5

Post by mehguy » Thu Jun 23, 2016 4:17 pm

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.
That's all fine and dandy but how do I setup the game modes, iwads, and flags?

User avatar
Torr Samaho
Lead Developer
Posts: 1543
Joined: Fri May 25, 2012 6:03 pm
Location: Germany

Re: Raspberry Pi ZERO for DOOM 2 server

#6

Post by Torr Samaho » Sun Jun 26, 2016 10:51 am

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.

User avatar
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

#7

Post by Haze » Mon Jun 27, 2016 1:27 pm

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.

vozka
New User
Posts: 5
Joined: Wed Jul 06, 2016 6:59 pm

Re: Raspberry Pi ZERO for DOOM 2 server

#8

Post by vozka » Wed Jul 06, 2016 7:13 pm

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:

Code: Select all

hg update -cr ZA_2.1.1
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.

User avatar
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

#9

Post by Haze » Wed Jul 06, 2016 7:45 pm

Mine says : Zandronum 2.1.2 - 150718-1029M - SDL version

You may have done something wrong somewhere.

User avatar
Torr Samaho
Lead Developer
Posts: 1543
Joined: Fri May 25, 2012 6:03 pm
Location: Germany

Re: Raspberry Pi ZERO for DOOM 2 server

#10

Post by Torr Samaho » Wed Jul 06, 2016 8:18 pm

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?

vozka
New User
Posts: 5
Joined: Wed Jul 06, 2016 6:59 pm

Re: Raspberry Pi ZERO for DOOM 2 server

#11

Post by vozka » Wed Jul 06, 2016 8:31 pm

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")

User avatar
Torr Samaho
Lead Developer
Posts: 1543
Joined: Fri May 25, 2012 6:03 pm
Location: Germany

Re: Raspberry Pi ZERO for DOOM 2 server

#12

Post by Torr Samaho » Thu Jul 07, 2016 6:03 am

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}"

vozka
New User
Posts: 5
Joined: Wed Jul 06, 2016 6:59 pm

Re: Raspberry Pi ZERO for DOOM 2 server

#13

Post by vozka » Thu Jul 07, 2016 12:11 pm

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?

User avatar
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

#14

Post by Haze » Thu Jul 07, 2016 12:37 pm

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.

vozka
New User
Posts: 5
Joined: Wed Jul 06, 2016 6:59 pm

Re: Raspberry Pi ZERO for DOOM 2 server

#15

Post by vozka » Thu Jul 07, 2016 12:51 pm

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".

User avatar
Torr Samaho
Lead Developer
Posts: 1543
Joined: Fri May 25, 2012 6:03 pm
Location: Germany

Re: Raspberry Pi ZERO for DOOM 2 server

#16

Post by Torr Samaho » Thu Jul 07, 2016 7:54 pm

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.

Code: Select all

hg import --no-commit raspi.patch

vozka
New User
Posts: 5
Joined: Wed Jul 06, 2016 6:59 pm

Re: Raspberry Pi ZERO for DOOM 2 server

#17

Post by vozka » Fri Jul 08, 2016 6:10 pm

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.

User avatar
Torr Samaho
Lead Developer
Posts: 1543
Joined: Fri May 25, 2012 6:03 pm
Location: Germany

Re: Raspberry Pi ZERO for DOOM 2 server

#18

Post by Torr Samaho » Sun Jul 10, 2016 7:33 am

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.

Post Reply