#1 2023-02-05 00:57:36

JarnetStrongrogg
Player
Reputation: +3
Registered: 2023-02-05
Posts: 8
OS X Firefox 109.0

Dedicated server on Raspberry Pi 4

I want to host a dedicated bf1942 server on my Raspberry Pi 4 with 8Gb of RAM.

Has anyone tried this out?

Would it be possible to use Box86 to host a dedicated server on 64bit Raspberry Pi OS?

Offline

    Positive reputation 0   Negative reputation 0

#2 2023-02-07 16:27:26

Laminat
Player
Reputation: +14
Registered: 2019-07-16
Posts: 12
Windows 10 Chrome 109.0

Re: Dedicated server on Raspberry Pi 4

Yeah i think it could work. Also check this out: down-arrow_2b07-fe0f.png

There has been instances[18] of developers installing this runtime binary on third-party hardware, provided that it includes a CPU that supports at least the ARMv8.2-A instruction set

https://en.wikipedia.org/wiki/Rosetta_( … #Rosetta_2

Offline

    Positive reputation 0   Negative reputation 0

#3 2023-02-12 07:04:15

NullNotZero
Player
Reputation: +14
Registered: 2022-04-13
Posts: 7
Windows 10 Firefox 109.0

Re: Dedicated server on Raspberry Pi 4

Not to discourage you but I'm not sure it would be worth the effort. I have pretty extensive experience working with the Raspberry Pi and I can tell you that running anything under an x86 emulator is going to cause significant slowdown, I don't know how much it would affect BF1942, since it is a pretty lightweight server by today's standard, but I think you would be fighting an uphill battle. It would be much more efficient to port the code to arm, but sadly the source code for BF1942 is not available. If you do try it however I would be interested in hearing about your experience.

FYI, if you are looking for low cost x86 devices that will run the server, HP T610 thin clients can be had for less than the cost of a rPi 4 from eBay, that's what I run many of my game servers on.

Offline

    Positive reputation 1   Negative reputation 0

#4 2023-02-12 13:39:59

ABAS
disciple of Jeff
Pahlavi Iran
Reputation: +1981
Registered: 2015-12-10
Posts: 2,346
Website
Windows 10 Firefox 109.0

Re: Dedicated server on Raspberry Pi 4

not sure how Box86 works but how about installing Ubuntu (Server or Desktop) on your Raspberry device and then run battlefield server on it?

Last edited by ABAS (2023-02-12 13:43:18)

Offline

    Positive reputation 0   Negative reputation 0

#5 2023-02-13 05:42:34

NullNotZero
Player
Reputation: +14
Registered: 2022-04-13
Posts: 7
Windows 10 Firefox 109.0

Re: Dedicated server on Raspberry Pi 4

ABAS wrote:

not sure how Box86 works but how about installing Ubuntu (Server or Desktop) on your Raspberry device and then run battlefield server on it?

Unfortunately this would not work as the game code is for an x86 processor and the Raspberry Pi is an ARM processor, The code would have to be recompiled to work on the Rpi.

Offline

    Positive reputation 0   Negative reputation 0

#6 2023-02-18 00:17:57

JarnetStrongrogg
Player
Reputation: +3
Registered: 2023-02-05
Posts: 8
Windows 10 Firefox 110.0

Re: Dedicated server on Raspberry Pi 4

NullNotZero wrote:

Not to discourage you but I'm not sure it would be worth the effort. I have pretty extensive experience working with the Raspberry Pi and I can tell you that running anything under an x86 emulator is going to cause significant slowdown, I don't know how much it would affect BF1942, since it is a pretty lightweight server by today's standard, but I think you would be fighting an uphill battle. It would be much more efficient to port the code to arm, but sadly the source code for BF1942 is not available. If you do try it however I would be interested in hearing about your experience.

FYI, if you are looking for low cost x86 devices that will run the server, HP T610 thin clients can be had for less than the cost of a rPi 4 from eBay, that's what I run many of my game servers on.

I agree with you that it would be preferable to recompile the code for ARM64.
I have already tried a minecraft server on my stabely overclocked RPi4 with 8Gb of RAM and booted from SSD and it worked fantastically well!
The thing is that there are a lot of dedicated servers of recent games that work well on RPi4 with Box64/Box86 with SteamCMD, like Valheim for example.
I wonder why it wouldn't work well with a dedicated server of a 20 year old game.

Is there a x86 64-bit Linux version of the standalone dedicated server for bf1942? if not would Box64 be able to run a 32-bit program on a 64-bit ARM processor?*

And most importantly, where on earth can one find all of the necessary standalone server files today?

* just read on https://github.com/ptitSeb/box64 that Box64 doesn't do any 32bit to 64bit translation so therefore a 32-bit x86 program would have to be used with Box86 instead

Last edited by JarnetStrongrogg (2023-02-18 00:31:05)

Offline

    Positive reputation 0   Negative reputation 0

#7 2023-02-18 14:44:48

seVen
 
Reputation: +2654
Registered: 2015-12-20
Posts: 2,366
Windows 10 Chrome 110.0

Re: Dedicated server on Raspberry Pi 4

 

JarnetStrongrogg wrote:

And most importantly, where on earth can one find all of the necessary standalone server files today?

tuia has the patched files available here:  https://team-simple.org/download/
 

Last edited by seVen (2023-02-18 14:45:10)

Offline

    Positive reputation 0   Negative reputation 0

#8 2023-02-18 22:12:53

JarnetStrongrogg
Player
Reputation: +3
Registered: 2023-02-05
Posts: 8
Windows 10 Firefox 110.0

Re: Dedicated server on Raspberry Pi 4

seVen wrote:

 

JarnetStrongrogg wrote:

And most importantly, where on earth can one find all of the necessary standalone server files today?

tuia has the patched files available here:  https://team-simple.org/download/
 

I read the included readme-files and it looks like those patched server files are outdated.
Aren't these the updated patched server files required?

LuccaWulf followed me through the setup multiple bf1942 servers on Windows yesterday, this is what I learned.

1. You make a copy of the entire game folder (C:\Program Files (x86)\EA Games\Battlefield 1942)

2. Paste the game folder elsewhere. For example onto an external hard drive and rename it to something like bf1942_server_01 to keep things organised.

3. Copy the patched BF1942_w32ded.exe & DedicatedServer.exe and paste them in the root of bf1942_server_01

4. Copy the patched BFServerManager 2.01 (BFServerManager.exe, PlayerMenu.con, license.txt & readme.txt)  and paste the files in the root of bf1942_server_01.

5. Open the port 14567 (or your desired port number) in your router to be able to receive incoming connections to the server.

6. In the bf1942_server_01 folder Run BFServerManager.exe as administrator, this is your GUI to configure your server.

7. Configure the server as you want and if you opened a custom port for your server enter this in Game Port.

8. Hit 'Start' to launch the server.

You can check http://master.bf1942.org/ if it's up an running


Does anyone have the instructions on how to set this up on a linux machine?

Last edited by JarnetStrongrogg (2023-02-18 22:16:16)

Offline

    Positive reputation 0   Negative reputation 0

#9 2023-02-19 03:14:01

NullNotZero
Player
Reputation: +14
Registered: 2022-04-13
Posts: 7
Windows 10 Chrome 110.0

Re: Dedicated server on Raspberry Pi 4

JarnetStrongrogg wrote:

Does anyone have the instructions on how to set this up on a linux machine?

To install a Linux server you are going to want the Linux binary files from here:

https://community.pcgamingwiki.com/file … rver-1619/

and here:

https://team-simple.org/download/

Once you extract the original tar file the install instructions are in the readme folder.

Since most installations of modern Linux are now x64 and the binaries are x86 you are also going to have to add the x86 architecture to your Linux installation before it will run. There are various tutorials around the internet to help you with that.

Offline

    Positive reputation 0   Negative reputation 0

#10 2023-02-20 23:11:30

JarnetStrongrogg
Player
Reputation: +3
Registered: 2023-02-05
Posts: 8
Windows 10 Firefox 110.0

Re: Dedicated server on Raspberry Pi 4

So I have compiled and installed Box86 for RaspberryPi OS 64bit.
I extracted: bf1942_lnxded-1.6-rc2.tar to bf1942_lnxded-1.6-rc2.run and ran the installation.

I got the following message:

Enter your target installation directory: /home/rpiuser/bf1942_server_01
./license.sh: 55: test: -a: unexpected operator

Installation complete.

But it seem to have extracted/installed correctly... I guess I need to try to find out!

I installed it into a folder in my users' home folder (/home/rpiuser/bf1942_server_01/).
Is there a more suitable folder on the linux system where I should've installed it?

Offline

    Positive reputation 1   Negative reputation 0

#11 2023-02-20 23:41:42

JarnetStrongrogg
Player
Reputation: +3
Registered: 2023-02-05
Posts: 8
Windows 10 Firefox 110.0

Re: Dedicated server on Raspberry Pi 4

Good news everyone! I got it to work and hosted a server on LAN for now!

rpi-bf1942-dedicated-server-success.jpg?raw=1

Last edited by JarnetStrongrogg (2023-02-21 00:00:44)

Offline

    Positive reputation 1   Negative reputation 0

#12 2023-02-21 01:10:41

Arkos
Sedmin
Switzerland
Reputation: +2783
Registered: 2014-06-06
Posts: 7,048
Windows 10 Chrome 109.0

Re: Dedicated server on Raspberry Pi 4

...

Hehe, you are a Genius tongue

...

Offline

    Positive reputation 0   Negative reputation 0

#13 2023-02-21 01:28:08

JarnetStrongrogg
Player
Reputation: +3
Registered: 2023-02-05
Posts: 8
Windows 10 Firefox 110.0

Re: Dedicated server on Raspberry Pi 4

Arkos wrote:

...

Hehe, you are a Genius tongue

...

Just got it to work online, I was just playing on it with LuccaWulf

Offline

    Positive reputation 0   Negative reputation 0

#14 2023-02-21 02:57:37

JarnetStrongrogg
Player
Reputation: +3
Registered: 2023-02-05
Posts: 8
Windows 10 Firefox 110.0

Re: Dedicated server on Raspberry Pi 4

And here it is visible on the masterserver smile
rpi-bf1942-dedicated-server-success-online.png?raw=1

Offline

    Positive reputation 1   Negative reputation 0

Board footer