login

Author Topic: SWBF server and Linux--has anyone tried it?  (Read 4841 times)

[SWBF1 RGA N.America] Drunken_Master

Re: SWBF server and Linux--has anyone tried it?
« Reply #15 on: March 17, 2015, 06:53:54 PM »
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.


Led

  • Administrator
  • The Chosen One
  • *****
  • Posts: 6534
  • The 82nd Element
  • Awards Special Award for players of the EA's SWBF (2015) Special Award for those that play the original SWBF
    • View Profile
    • Awards
  • Steam ID:
  • Tunngle ID: _PLA-Led
  • Origin ID: plaled
Re: SWBF server and Linux--has anyone tried it?
« Reply #16 on: March 17, 2015, 07: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.
Don't believe everything you read on the internet

Anyder

  • Learning Manager
  • Community Ambassador
  • Lavish Poster
  • ****
  • Posts: 3774
  • Awards DET1-admin To recognize Modders that make a most excellent contribution within the Month SWBF LeaderBoards 2-first ICW4 Winner A member of the winning team of ICW6 Recognizes someone who most generously donated funds to the site or the site Special Award for players of the EA's SWBF (2015)
    • View Profile
    • Awards
  • Steam ID:
  • Origin ID: AnyderMotionless
Re: SWBF server and Linux--has anyone tried it?
« Reply #17 on: March 18, 2015, 01:33:54 AM »
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 ?
| SWBFSpy Manager | Learning Manager & SWBFSpy Engagement | communityambassador@swbfgamers.com

 | WhatsApp: +34 602 67 61 20

SWBFSpy Info Website: http://info.swbfspy.com

"Never stop learning"

Led

  • Administrator
  • The Chosen One
  • *****
  • Posts: 6534
  • The 82nd Element
  • Awards Special Award for players of the EA's SWBF (2015) Special Award for those that play the original SWBF
    • View Profile
    • Awards
  • Steam ID:
  • Tunngle ID: _PLA-Led
  • Origin ID: plaled
Re: SWBF server and Linux--has anyone tried it?
« Reply #18 on: March 18, 2015, 06:45:33 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


« Last Edit: March 18, 2015, 06:47:52 AM by Led »
Don't believe everything you read on the internet

Anyder

  • Learning Manager
  • Community Ambassador
  • Lavish Poster
  • ****
  • Posts: 3774
  • Awards DET1-admin To recognize Modders that make a most excellent contribution within the Month SWBF LeaderBoards 2-first ICW4 Winner A member of the winning team of ICW6 Recognizes someone who most generously donated funds to the site or the site Special Award for players of the EA's SWBF (2015)
    • View Profile
    • Awards
  • Steam ID:
  • Origin ID: AnyderMotionless
Re: SWBF server and Linux--has anyone tried it?
« Reply #19 on: March 18, 2015, 01:26:36 PM »
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 ?  ;)
| SWBFSpy Manager | Learning Manager & SWBFSpy Engagement | communityambassador@swbfgamers.com

 | WhatsApp: +34 602 67 61 20

SWBFSpy Info Website: http://info.swbfspy.com

"Never stop learning"

Led

  • Administrator
  • The Chosen One
  • *****
  • Posts: 6534
  • The 82nd Element
  • Awards Special Award for players of the EA's SWBF (2015) Special Award for those that play the original SWBF
    • View Profile
    • Awards
  • Steam ID:
  • Tunngle ID: _PLA-Led
  • Origin ID: plaled
Re: SWBF server and Linux--has anyone tried it?
« Reply #20 on: March 18, 2015, 01:29:50 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.
Don't believe everything you read on the internet

Anyder

  • Learning Manager
  • Community Ambassador
  • Lavish Poster
  • ****
  • Posts: 3774
  • Awards DET1-admin To recognize Modders that make a most excellent contribution within the Month SWBF LeaderBoards 2-first ICW4 Winner A member of the winning team of ICW6 Recognizes someone who most generously donated funds to the site or the site Special Award for players of the EA's SWBF (2015)
    • View Profile
    • Awards
  • Steam ID:
  • Origin ID: AnyderMotionless
Re: SWBF server and Linux--has anyone tried it?
« Reply #21 on: March 22, 2015, 12:31:06 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
| SWBFSpy Manager | Learning Manager & SWBFSpy Engagement | communityambassador@swbfgamers.com

 | WhatsApp: +34 602 67 61 20

SWBFSpy Info Website: http://info.swbfspy.com

"Never stop learning"

Led

  • Administrator
  • The Chosen One
  • *****
  • Posts: 6534
  • The 82nd Element
  • Awards Special Award for players of the EA's SWBF (2015) Special Award for those that play the original SWBF
    • View Profile
    • Awards
  • Steam ID:
  • Tunngle ID: _PLA-Led
  • Origin ID: plaled
Re: SWBF server and Linux--has anyone tried it?
« Reply #22 on: March 22, 2015, 07:40:51 PM »
the issue is now that swbf2 has the same prob lol

But only for you  ;)
Don't believe everything you read on the internet

Anyder

  • Learning Manager
  • Community Ambassador
  • Lavish Poster
  • ****
  • Posts: 3774
  • Awards DET1-admin To recognize Modders that make a most excellent contribution within the Month SWBF LeaderBoards 2-first ICW4 Winner A member of the winning team of ICW6 Recognizes someone who most generously donated funds to the site or the site Special Award for players of the EA's SWBF (2015)
    • View Profile
    • Awards
  • Steam ID:
  • Origin ID: AnyderMotionless
Re: SWBF server and Linux--has anyone tried it?
« Reply #23 on: March 23, 2015, 12:35:08 AM »
But only for you  ;)
Apparently not: i've tried it with like 15 euro players and we all lost connection
| SWBFSpy Manager | Learning Manager & SWBFSpy Engagement | communityambassador@swbfgamers.com

 | WhatsApp: +34 602 67 61 20

SWBFSpy Info Website: http://info.swbfspy.com

"Never stop learning"

Minutes

  • Member
  • **
  • Posts: 6
    • View Profile
    • Awards
  • Steam ID:
Re: SWBF server and Linux--has anyone tried it?
« Reply #24 on: April 08, 2015, 02: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,

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

Led

  • Administrator
  • The Chosen One
  • *****
  • Posts: 6534
  • The 82nd Element
  • Awards Special Award for players of the EA's SWBF (2015) Special Award for those that play the original SWBF
    • View Profile
    • Awards
  • Steam ID:
  • Tunngle ID: _PLA-Led
  • Origin ID: plaled
Re: SWBF server and Linux--has anyone tried it?
« Reply #25 on: April 08, 2015, 02:37:40 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

« Last Edit: April 08, 2015, 02:40:53 PM by Led »
Don't believe everything you read on the internet

Minutes

  • Member
  • **
  • Posts: 6
    • View Profile
    • Awards
  • Steam ID:
Re: SWBF server and Linux--has anyone tried it?
« Reply #26 on: April 08, 2015, 03:09:21 PM »
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  ;)
« Last Edit: April 08, 2015, 03:13:00 PM by Minutes »

Led

  • Administrator
  • The Chosen One
  • *****
  • Posts: 6534
  • The 82nd Element
  • Awards Special Award for players of the EA's SWBF (2015) Special Award for those that play the original SWBF
    • View Profile
    • Awards
  • Steam ID:
  • Tunngle ID: _PLA-Led
  • Origin ID: plaled
Re: SWBF server and Linux--has anyone tried it?
« Reply #27 on: April 08, 2015, 03:32:14 PM »
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.
« Last Edit: April 08, 2015, 04:07:45 PM by Led »
Don't believe everything you read on the internet

Minutes

  • Member
  • **
  • Posts: 6
    • View Profile
    • Awards
  • Steam ID:
Re: SWBF server and Linux--has anyone tried it?
« Reply #28 on: April 08, 2015, 03:36:59 PM »
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
« Last Edit: April 08, 2015, 03:42:36 PM by Minutes »