GameServerManagers / LinuxGSM

The command-line tool for quick, simple deployment and management of Linux dedicated game servers.
https://linuxgsm.com
MIT License
4.25k stars 813 forks source link

Left 4 Dead 1 script #108

Closed lblanchardiii closed 10 years ago

lblanchardiii commented 10 years ago

After many, many months it seems Valve has finally fixed and/or added the dedicated Left 4 Dead server package to SteamCMD. I modified your L4D2 script slightly earlier today to test if it would work with L4D since I prefer to play that over L4D2 and so far, it seems to be working.

There are a few minor things that don't seem to work. Such as it's not accepting the custom named cfg file for some reason. I can continue to work on it to get it right, but I figured I would mention it to you to see if you'd rather do it since it's your script.

Basically the only thing I changed was the a directory from left4dead2 to left4dead, the name of the cfg file to drop the "2" as well as dropping the "2" from all other parts of the script. I also changed the app ID to 222840 since that's the L4D ID.

Waiting on it to finish installing on my laptop so I can test it out.

lblanchardiii commented 10 years ago

Just an update to this. Seems I was able to get it working some what. Using APP ID 222840 allows you to install the dedicated server files, but once you get the server started it wont allow anyone to connect. The console says it's in LAN Mode only and fails to load the Steam Support files. I haven't tested to see if I could actually connect to the server if it was hosted on my LAN, since I was using my dedicated box on another network to install it.

With that being said, maybe you might have better luck and/or know something I do not. Do note that I did use sv_lan 0 in both the cfg file as well as part of that start command. Neither seemed to do anything.

I am just amazed that Valve has it this far on SteamCMD. Last time I tried it I got absolutely no where with it.

Wishful thinking I suppose.

dgibbs64 commented 10 years ago

Thanks for this. I definitely will try and get a L4D script up and running. However I have a few others to work on first. If you can continue to work on this and then request a merge I will be happy to merge this in to the project. You may be able to complete this before I get a chance to work on it. So if you haven't already fork this project and have a go :). Failing this I will work on this as soon as I get the time.

lblanchardiii commented 10 years ago

I haven't given up completely yet. Been trying to get the server to not run in LAN mode is my only issue. Surely there has to be a way.

dgibbs64 commented 10 years ago

Excellent keep at it. I would of thought there would be a way. Might be worth trying a forum like allied modders. They may have an answer :)

summitsingh commented 10 years ago

I have made a working script for l4dserver, tested with gametracker. http://www.summit.im/l4dserver-left-4-dead-linux-server-manager/

lblanchardiii commented 10 years ago

Oh wow you are awesome. Gonna have to look at the script later today to see how. I couldn't get it to work when I tried a month ago.

lblanchardiii commented 10 years ago

Had some time to play around with this and although it does display on Gametracker, clients are NOT able to connect to the server. I did some digging and found this error when running the server in debug mode.:

[S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.dll.


Little bit of digging later and I discovered I needed to setup a symlink (or copy the file) to a location. ln -ls steamcmd/linux32/libstdc++.so.6 serverfiles/bin/

Restarted the server and I was able to join it.

lblanchardiii commented 10 years ago

Well crap. I got to the loading screen and thought I was good to go. So I minimized it to write that post before I lost/forgot the information. Opened the game back up to try to play a game or two and it seems to get stuck on the connecting screen. Eventually I get a message stating that connection failed after 10 tries (or something to that effect) and I can't join. Still looking into the reason. Waiting on a friend to try to connect to the server to rule out my client as that seems to be the general consensus whilst searching the error on Google. Will keep ya posted.

lblanchardiii commented 10 years ago

Some further information.

I have figured out that I can not get the server to allow me to connect via the server browser. Opening the server browser via typing openserverbrowser in the console, then adding the server to the favorites tab and clicking join will hang up. Eventually you will get a message stating connection failed after 10 retries.

I can join the server by typing connect [ip:port] in the console. Seems to work just fine this way.

I even set sv_allow_lobby_connect_only in the server config and it doesn't appear to have any effect.

dgibbs64 commented 10 years ago

Thanks for the infomation. This will need to be investigated.

dgibbs64 commented 10 years ago

Console initialized.

Unable to remove /home/l4dserver/serverfiles/left4dead/addonlist.txt!

Unable to remove /home/l4dserver/serverfiles/left4dead/addonlist.txt!

Game.dll loaded for "L4D - Co-op - Normal"

ConVarRef cl_language doesn't point to an existing ConVar

Server is hibernating Queuing heartbeat send to legacy master server. Game supporting (2) split screen players maxplayers set to 18 Unable to remove /home/l4dserver/serverfiles/left4dead/addonlist.txt! Unable to remove /home/l4dserver/serverfiles/left4dead/addonlist.txt! Unknown command "servercfgfile" Network: IP 37.59.99.175, mode MP, dedicated Yes, ports 27016 SV / 0 CL ---- Host_NewGame ---- Host_NewGame on map l4d_hospital01_apartment ConVarRef room_type doesn't point to an existing ConVar Executing dedicated server config file Commentary: Loading commentary data from maps/l4d_hospital01_apartment_commentary.txt. [S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.dll.


This is the issue. @summitsingh could you please have a look in to this and try and find a working solution

lblanchardiii commented 10 years ago

ln -ls steamcmd/linux32/libstdc++.so.6 serverfiles/bin/

dgibbs64 commented 10 years ago

I have now resolved this issue. l4dserver now working correctly

lock[bot] commented 6 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.