SWBF server and Linux--has anyone tried it?

Started by Led, March 14, 2015, 03:53:35 AM

Previous topic - Next topic
Great job!   A few of us stayed up late trying it out.  It seemed smooth most of the time for me, with occasional bits of lag-type of experience.  I think Kiwi had a bit more trouble though.  The specs are awesome for that $, though we came away with the feeling that it was more lag than we hoped for.  Perception can be unreliable of course.  Any utilization specs?  I think our windows server is consistently using more ram than that.


The Linux Server is in Atlanta and the PC one is in Chicago, so I expect that Kiwi will suffer a bit due to the location change.  Right now, the PLA Battlefront server is on the Linux box. 

I will see if I can get some advice to speed the map loading.
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

Quote from: Led on March 17, 2015, 06:03:39 PM
The Linux Server is in Atlanta and the PC one is in Chicago, so I expect that Kiwi will suffer a bit due to the location change.  Right now, the PLA Battlefront server is on the Linux box. 

I will see if I can get some advice to speed the map loading.
Just wondering.. what is ur ping in the atlanta linux vps ? How much bigger is it from the windows atlanta vps u had ?
Anyder | Talent, Ops & Culture | SWBF & Player Engagement
Email: communityambassador@swbfgamers.com
SWBFSpy Discord: http://discord.swbfspy.com
SWBFSpy Info: http://info.swbfspy.com

March 18, 2015, 05:45:33 AM #18 Last Edit: March 18, 2015, 05:47:52 AM by Led
Quote from: Anyder on March 18, 2015, 12:33:54 AM
Just wondering.. what is ur ping in the atlanta linux vps ? How much bigger is it from the windows atlanta vps u had ?

I ping the Linux server at 31-62.  With Gamespy and the old PC server, my ping was fairly consistent at 31.

I have put up CloudCity Atlanta on the server.  Please give it a try (sorry, it is slow spawn :P ).

The only real issue that I see is the slow disk reads.  I am asking at the NFO forums for advice, but so far the only response is something like "wut, your game no support linux?  huh?  then don't use linux"    ;)


http://www.nfoservers.com/forums/viewtopic.php?f=44&t=12332


Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

Quote from: Led on March 18, 2015, 05:45:33 AM
I ping the Linux server at 31-62.  With Gamespy and the old PC server, my ping was fairly consistent at 31.

I have put up CloudCity Atlanta on the server.  Please give it a try (sorry, it is slow spawn :P ).

The only real issue that I see is the slow disk reads.  I am asking at the NFO forums for advice, but so far the only response is something like "wut, your game no support linux?  huh?  then don't use linux"    ;)


http://www.nfoservers.com/forums/viewtopic.php?f=44&t=12332
Will SK make a tut vid or just a tut ?  ;)
Anyder | Talent, Ops & Culture | SWBF & Player Engagement
Email: communityambassador@swbfgamers.com
SWBFSpy Discord: http://discord.swbfspy.com
SWBFSpy Info: http://info.swbfspy.com

Quote from: Anyder on March 18, 2015, 12:26:36 PM
Will SK make a tut vid or just a tut ?  ;)

SK gave me the instructions--before my month is over, I will make a video.  I have asked JediKiller to look into the slow maps loads for us.  I want the server to run the best it can before I make the video.
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

Quote from: oldsnake on March 15, 2015, 07:43:45 PM
the 60 tps is super smooth play now with a 82 ping. the slow loading server was fixed with the updated .exe
eu server https://gameshare.co/forum/download/file.php?id=55
usa server https://gameshare.co/forum/download/file.php?id=54
after playing the theed map and moving on to the next map i get the connection to host lost message.
nice work to get this setup! :cheers:

the issue is now that swbf2 has the same prob lol
Anyder | Talent, Ops & Culture | SWBF & Player Engagement
Email: communityambassador@swbfgamers.com
SWBFSpy Discord: http://discord.swbfspy.com
SWBFSpy Info: http://info.swbfspy.com

Quote from: Anyder on March 22, 2015, 11:31:06 AM
the issue is now that swbf2 has the same prob lol

But only for you  ;)
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

Quote from: Led on March 22, 2015, 06:40:51 PM
But only for you  ;)
Apparently not: i've tried it with like 15 euro players and we all lost connection
Anyder | Talent, Ops & Culture | SWBF & Player Engagement
Email: communityambassador@swbfgamers.com
SWBFSpy Discord: http://discord.swbfspy.com
SWBFSpy Info: http://info.swbfspy.com

im also trying to get rid of this weird disk read bug that drops everybody out of a server on map load. guess its the same problem in swbf2 and 1. Apparently i found something that sounds good,

http://marc.info/?l=wine-devel&m=132708187316831&w=2

The key is to download an older wine version from 2012 , i took wine 1.3.33 from here
http://sourceforge.net/projects/wine/files/Source/
and we need bision 2.5, dont forget to run make clear bevore downgrading or you'll run into a weird wine bug
took ages to figure it out but nvm

The installation procedure is to run
./configure
make
make install , so nothing special.

Bevore we're going to install wine we need to modify some source code files.
Unfortunatly the patcher text/x-patch file doesnt work, tryed
patch <  0001-Hack-for-in-process-wine-server-a.k.a.-Dirty-speed-hac.txt           or
patch <  0001-Hack-for-in-process-wine-server-a.k.a.-Dirty-speed-hac.patch

so we have to do this on our own, the files who need to be modified are
dlls/ntdll/server.c 
server/Makefile.in     
server/fd.c         
server/main.c       
server/object.h     
server/request.c    /** This files are inside of our wine-1.3.33 folder

I thought its just deleting & copy/paste but i run in various errors today
atm im trying to write a new patcher file that works. it would be awesome if somebody has any further informations about this patching stuff or another idea to fix this slow disk read bug on mapload

April 08, 2015, 01:37:40 PM #25 Last Edit: April 08, 2015, 01:40:53 PM by Led
Quote from: Minutes on April 08, 2015, 01:11:22 PM
im also trying to get rid of this weird disk read bug that drops everybody out of a server on map load. guess its the same problem in swbf2 and 1. Apparently i found something that sounds good,


My SWBF server works perfectly well under wine, with the exception the "waiting for players" for about 10-15 seconds at each map change.  The slow map change is due to excessive CPU usage of wine--it bottlenecks the server.



I used the latest version of wine, the exe patch hosted at gameshare (also hosted here) for using gamemaster.  I have the links in the instructions. 


New Guide:  Using Linux/Wine to host SWBF
http://www.swbfgamers.com/index.php?topic=8927.msg94961#msg94961

Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

April 08, 2015, 02:09:21 PM #26 Last Edit: April 08, 2015, 02:13:00 PM by Minutes
thanks for your fast response led,
i also belong to the swbf2 fraction in addition to anyder,
therefore im trying to fix this problem for swbf2
Do you have any clue who is responsible for the fixed exe for swbf1 because
that solution is amazing, im able to work myself trough all the wine sources but im gonna spend hours whilst doing this. Its the best solution if i could manage to get a fixed exe for swbf2working  thats the best solution for it apparently  ;)

April 08, 2015, 02:32:14 PM #27 Last Edit: April 08, 2015, 03:07:45 PM by Led
I am not really sure why the new one works.  I think it is just the North America IPs inserted by hex or the European IPs inserted by hex.

The strange thing to me, is that when I played on Anyder's SWBF2 server, I never lost connection, although he did.

I think there may be something to do with the players connection to the Master Server.

You can either ask the Gameshare players what is different about their exe file, or else you can run a program called "deep diff" http://www.softpedia.com/get/System/File-Management/Deep-Diff.shtml
that can show you what is different between two exe files.
Quote from: Abraham Lincoln. on November 04, 1971, 12:34:40 PM
Don't believe everything you read on the internet

April 08, 2015, 02:36:59 PM #28 Last Edit: April 08, 2015, 02:42:36 PM by Minutes
Good Idea,
comparing this two files seems better than working through the wine source
I will update you if i'll find something for thoose who are interested