SWBFGamers

Gaming for the Original SWBF1 and SWBF2/other games => Star Wars Battlefront (2004 Original) => Topic started by: {AR}MetalKiller on March 12, 2023, 02:45:23 PM

Title: Linux hosting for Steam
Post by: {AR}MetalKiller on March 12, 2023, 02:45:23 PM
Hi,

The AR clan tries to host a server for Steam.
Since we host on Linux we use wine.
Starting the Battlefront executable (from GOG) with the following options causes a page fault:
wine Battlefront.exe /win /norender /autonet dedicated /noaim /resolution 200 200 /nosound /gamename "..." rhn2a 200 200

The interesting thing here is that the server starts without the /norender option.
wine Battlefront.exe /win /autonet dedicated /noaim /resolution 200 200 /nosound /gamename "..." rhn2a 200 200
But as we use wine, the server takes >5min and 100% CPU usage over the whole time period (granted we don't have such a powerful machine).

Attached you find a crash log, but I doubt that it will help.

Any idea why the /norender option might cause a crash?

Note: Wine was the only thing running on the server.

Cheers!


EDIT: Remove misleading text.
Title: Re: Linux hosting for Steam
Post by: Led on March 12, 2023, 05:59:51 PM
Just to make sure since your title says 'steam'; do you want to host on SWBFspy or Steam?

If SWBFspy, Are you using the dedicated server software?

edit:  I think you are using the dedicated server software.  I don't think norender is a valid command for that.  norender is for the disk version so that the graphics don't show up when hosting a dedicated server with the disk version.
Title: Re: Linux hosting for Steam
Post by: {AR}MetalKiller on March 13, 2023, 03:34:03 AM
I made an edit in the original post to avoid confusion.

We want to host a dedicated server for the steam version (through the battlefront executable).
The /norender option is definitely in the executable.
Title: Re: Linux hosting for Steam
Post by: Led on March 13, 2023, 04:17:03 AM
So if you are not using the dedicated server software then norender will be in the executable.  However, I don't find it surprising that it is not supported since it is 1.3 beta executable modified to support GoG.

Dark Phantom may have more insight.
Title: Re: Linux hosting for Steam
Post by: {AR}MetalKiller on March 13, 2023, 06:04:08 AM
The /norender option works on a local Windows machine.
To me, it makes no sense that it crashes with this option, since in theory it requires less resources and uses fewer features than the render mode.


Thanks anyway!
We update the thread if we find out more.
Title: Re: Linux hosting for Steam
Post by: Dark_Phantom on March 13, 2023, 07:13:01 AM
Wine is a fickle beast and whoever created the wrapper probably didn't test every option for BF1.  I've only tested all those flags on Windows.
Title: Re: Linux hosting for Steam
Post by: AnthonyBF2 on March 17, 2023, 02:52:39 AM
The next best thing would be to mod the game and make all textures black at 1x1 pixels, plus set near scene/far scene values to 0 so it doesn't show anything.
Title: Re: Linux hosting for Steam
Post by: schM0ggi on March 17, 2023, 09:23:50 AM
Quote from: {AR}MetalKiller on March 12, 2023, 02:45:23 PMHi,

The AR clan tries to host a server for Steam.
Since we host on Linux we use wine.
Starting the Battlefront executable (from GOG) with the following options causes a page fault:
wine Battlefront.exe /win /norender /autonet dedicated /noaim /resolution 200 200 /nosound /gamename "..." rhn2a 200 200

The interesting thing here is that the server starts without the /norender option.
wine Battlefront.exe /win /autonet dedicated /noaim /resolution 200 200 /nosound /gamename "..." rhn2a 200 200
But as we use wine, the server takes >5min and 100% CPU usage over the whole time period (granted we don't have such a powerful machine).

Attached you find a crash log, but I doubt that it will help.

Any idea why the /norender option might cause a crash?

Note: Wine was the only thing running on the server.

Cheers!


EDIT: Remove misleading text.

Which version of Wine are you guys using on that Linux machine?

I did some tests:

Proton 7.0.6 (Steam) = Crash like you described
Wine-GE (https://github.com/GloriousEggroll/wine-ge-custom) = Works and no crash
newest vanilla Wine staging (8.2) = Works and no crash

Yeah, I just created an account to post this lmao :D.
Title: Re: Linux hosting for Steam
Post by: {AR}MetalKiller on March 18, 2023, 04:04:08 AM
QuoteYeah, I just created an account to post this lmao :D.

Worth it ;)

QuoteWhich version of Wine are you guys using on that Linux machine?

We are still on Ubuntu 14.4 as the owner is afraid of a dist upgrade :D . Hence we use wine 3.6.

Quotehttps://github.com/GloriousEggroll/wine-ge-custom

I used the latest release (wine-5.12-15725-g5158be50b9b) which also crashes with /norender, but works without it.

Thank you very much for your response!
I'll try my best to convince the owner to upgrade.

EhPortal 1.34 © 2024, WebDev