pelican-eggs / games-steamcmd

Eggs for game servers that use SteamCMD to install.
MIT License
41 stars 20 forks source link

[Egg Request]: Night Of The Dead #36

Open scootz opened 2 weeks ago

scootz commented 2 weeks ago

Does this expand an already existing service

No

Link to a game or software

https://store.steampowered.com/app/1377380/Night_of_the_Dead/

Links for the download

https://store.steampowered.com/app/1377380/Night_of_the_Dead/

Links for the install docs

https://store.steampowered.com/news/app/1377380/view/2799507523521313093

scootz commented 2 weeks ago

For an uptodate serversettings.ini check out this link, scroll down to near bottom of the page to the section that mentions server settings. https://steamcommunity.com/sharedfiles/filedetails/?id=2967739270

scootz commented 2 weeks ago

I have this converted from Ptero to Pelican, but it doesn't seem to be running the runtime image wine_staging or something is missing. Reason why I say this is, the winetricks doesn't seem to be running/installing vcrun2019 or corefonts.

egg-night-of-the-dead-dedicated-server.json

Maybe someone can take a look at this?

scootz commented 2 weeks ago

I figured it out, there was a typo in WINETRICKS_RUN variable.

updated egg: egg-night-of-the-dead-dedicated-server.json

But now this is what I get when running in the console. I'm at a loss to why its not working. C:\Windows\syswow64 is empty.

[pelican Daemon]: Updating process configuration files...
[pelican Daemon]: Ensuring file permissions are set correctly, this could take a few seconds...
container@panel~ Server marked as starting...
[pelican Daemon]: Pulling Docker container image, this could take a few minutes to complete...
Pulling from parkervcp/yolks 
Status: Image is up to date for ghcr.io/parkervcp/yolks:wine_staging 
Digest: sha256:b2d13b4356e8d60dda475af6eb08c46306bb5f38c5e8eeae3c8761414998a852 
[pelican Daemon]: Finished pulling Docker container image
Running on Debian 12.5
Current timezone: Etc/UTC
wine-9.10 (Staging)
steam user is not set.
Using anonymous user.
WARNING: setlocale('en_US.UTF-8') failed, using locale: 'C'. International characters may not work.
Redirecting stderr to '/home/container/Steam/logs/stderr.txt'
Logging directory: '/home/container/Steam/logs'
[  0%] Checking for available updates...
[----] Verifying installation...
UpdateUI: skip show logoSteam Console Client (c) Valve Corporation - version 1716584438
-- type 'quit' to exit --
Loading Steam API...OK
Connecting anonymously to Steam Public...OK
Waiting for client config...OK
Waiting for user info...OK
"@sSteamCmdForcePlatformType" = "windows"
Success! App '1420710' already up to date.
Success! App '1007' already up to date.
First launch will throw some errors. Ignore them
Installing vcrun2019
_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
Executing cd /usr/sbin
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Using winetricks 20240105-next - sha256sum: 5018f613bcb78df9b82296ebab621c03a9282c00140ffabd3a57c06efa9b309d with wine-9.10 (Staging) and WINEARCH=win64
Executing w_do_call vcrun2019
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Executing load_vcrun2019 
Using native,builtin override for following DLLs: api-ms-win-crt-private-l1-1-0 api-ms-win-crt-conio-l1-1-0 api-ms-win-crt-heap-l1-1-0 api-ms-win-crt-locale-l1-1-0 api-ms-win-crt-math-l1-1-0 api-ms-win-crt-runtime-l1-1-0 api-ms-win-crt-stdio-l1-1-0 api-ms-win-crt-time-l1-1-0 atl140 concrt140 msvcp140 msvcp140_1 msvcp140_2 msvcp140_atomic_wait msvcp140_codecvt_ids vcamp140 vccorlib140 vcomp140 vcruntime140
Executing wine C:\windows\syswow64\regedit.exe /S C:\windows\Temp\override-dll.reg
wine: failed to open "C:\\windows\\syswow64\\regedit.exe": c0000135
------------------------------------------------------
egedit.exe /S C:\windows\Temp\override-dll.reg returned status 53. Aborting.
------------------------------------------------------
Installing corefonts
Executing cd /usr/sbin
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Using winetricks 20240105-next - sha256sum: 5018f613bcb78df9b82296ebab621c03a9282c00140ffabd3a57c06efa9b309d with wine-9.10 (Staging) and WINEARCH=win64
Executing w_do_call corefonts
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Executing load_corefonts 
Executing w_do_call andale
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Executing load_andale 
Executing cabextract -q -d /home/container/.wine/dosdevices/c:/windows/temp /home/container/.cache/winetricks/corefonts/andale32.exe
------------------------------------------------------
warning: Running /usr/bin/wineserver -w. This will hang until all wine processes in prefix=/home/container/.wine terminate
------------------------------------------------------
Executing wine C:\windows\syswow64\regedit.exe /S C:\windows\Temp\_register-font.reg
002c:fixme:winediag:loader_init wine-staging 9.10 is a testing version containing experimental patches.
002c:fixme:winediag:loader_init Please mention your exact version when filing bug reports on winehq.org.
006c:err:ole:start_rpcss Failed to open RpcSs service
wine: failed to open "C:\\windows\\syswow64\\regedit.exe": c0000135
------------------------------------------------------
egedit.exe /S C:\windows\Temp\_register-font.reg returned status 53. Aborting.
------------------------------------------------------
:/home/container$ export WINEDLLOVERRIDES="mscoree=n,b;mshtml=n,b"; xvfb-run --auto-servernum wine /home/container/LF/Binaries/Win64/LFServer-Win64-Shipping.exe ?listen -Port=27000 -QueryPort=27001 -console -log --CRASHREPORTS
wine: could not load kernel32.dll, status c0000135
container@panel~ Server marked as offline...
[pelican Daemon]: ---------- Detected server process in a crashed state! ----------
[pelican Daemon]: Exit code: 53
[pelican Daemon]: Out of memory: false
[pelican Daemon]: Updating process configuration files...
[pelican Daemon]: Ensuring file permissions are set correctly, this could take a few seconds...
container@panel~ Server marked as starting...
[pelican Daemon]: Pulling Docker container image, this could take a few minutes to complete...
Pulling from parkervcp/yolks 
Digest: sha256:b2d13b4356e8d60dda475af6eb08c46306bb5f38c5e8eeae3c8761414998a852 
Status: Image is up to date for ghcr.io/parkervcp/yolks:wine_staging 
[pelican Daemon]: Finished pulling Docker container image
Running on Debian 12.5
Current timezone: Etc/UTC
wine-9.10 (Staging)
steam user is not set.
Using anonymous user.
WARNING: setlocale('en_US.UTF-8') failed, using locale: 'C'. International characters may not work.
Redirecting stderr to '/home/container/Steam/logs/stderr.txt'
Logging directory: '/home/container/Steam/logs'
[  0%] Checking for available updates...
[----] Verifying installation...
UpdateUI: skip show logoSteam Console Client (c) Valve Corporation - version 1716584438
-- type 'quit' to exit --
Loading Steam API...OK
Connecting anonymously to Steam Public...OK
Waiting for client config...OK
Waiting for user info...OK
"@sSteamCmdForcePlatformType" = "windows"
Success! App '1420710' already up to date.
Success! App '1007' already up to date.
First launch will throw some errors. Ignore them
Installing vcrun2019
_XSERVTransmkdir: ERROR: euid != 0,directory /tmp/.X11-unix will not be created.
Executing cd /usr/sbin
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Using winetricks 20240105-next - sha256sum: 5018f613bcb78df9b82296ebab621c03a9282c00140ffabd3a57c06efa9b309d with wine-9.10 (Staging) and WINEARCH=win64
Executing w_do_call vcrun2019
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Executing load_vcrun2019 
Using native,builtin override for following DLLs: api-ms-win-crt-private-l1-1-0 api-ms-win-crt-conio-l1-1-0 api-ms-win-crt-heap-l1-1-0 api-ms-win-crt-locale-l1-1-0 api-ms-win-crt-math-l1-1-0 api-ms-win-crt-runtime-l1-1-0 api-ms-win-crt-stdio-l1-1-0 api-ms-win-crt-time-l1-1-0 atl140 concrt140 msvcp140 msvcp140_1 msvcp140_2 msvcp140_atomic_wait msvcp140_codecvt_ids vcamp140 vccorlib140 vcomp140 vcruntime140
Executing wine C:\windows\syswow64\regedit.exe /S C:\windows\Temp\override-dll.reg
wine: failed to open "C:\\windows\\syswow64\\regedit.exe": c0000135
------------------------------------------------------
egedit.exe /S C:\windows\Temp\override-dll.reg returned status 53. Aborting.
------------------------------------------------------
Installing corefonts
Executing cd /usr/sbin
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Using winetricks 20240105-next - sha256sum: 5018f613bcb78df9b82296ebab621c03a9282c00140ffabd3a57c06efa9b309d with wine-9.10 (Staging) and WINEARCH=win64
Executing w_do_call corefonts
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Executing load_corefonts 
Executing w_do_call andale
------------------------------------------------------
warning: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
------------------------------------------------------
Executing load_andale 
Executing cabextract -q -d /home/container/.wine/dosdevices/c:/windows/temp /home/container/.cache/winetricks/corefonts/andale32.exe
------------------------------------------------------
warning: Running /usr/bin/wineserver -w. This will hang until all wine processes in prefix=/home/container/.wine terminate
------------------------------------------------------
Executing wine C:\windows\syswow64\regedit.exe /S C:\windows\Temp\_register-font.reg
002c:fixme:winediag:loader_init wine-staging 9.10 is a testing version containing experimental patches.
002c:fixme:winediag:loader_init Please mention your exact version when filing bug reports on winehq.org.
006c:err:ole:start_rpcss Failed to open RpcSs service
wine: failed to open "C:\\windows\\syswow64\\regedit.exe": c0000135
------------------------------------------------------
egedit.exe /S C:\windows\Temp\_register-font.reg returned status 53. Aborting.
------------------------------------------------------
:/home/container$ export WINEDLLOVERRIDES="mscoree=n,b;mshtml=n,b"; xvfb-run --auto-servernum wine /home/container/LF/Binaries/Win64/LFServer-Win64-Shipping.exe ?listen -Port=27000 -QueryPort=27001 -console -log --CRASHREPORTS
wine: could not load kernel32.dll, status c0000135
container@panel~ Server marked as offline...
[pelican Daemon]: ---------- Detected server process in a crashed state! ----------
[pelican Daemon]: Exit code: 53
[pelican Daemon]: Out of memory: false
[pelican Daemon]: Aborting automatic restart, last crash occurred less than 60 seconds ago.
scootz commented 2 weeks ago

Still working on this. I deleted the .wine folder, re-installed and ran the server. Seems to have fixed the above errors, but now the variables are not being used in the right spots as when I look at the config file, the server name, ports, savedgame, etc entries are blank. quite the learning process this is in the beginning. I hope to get this working inside pelican. Its already working on another linux box inside ptero but I want to use the newer pelican panel.

scootz commented 2 weeks ago

Sorry for all the comments, I just wanted to really get this working I didn't feel like waiting, so I figured I tackle it myself. I did some searching in discord and found someone who said to use server.environment instead of server.build.env so I switched to using that. Now we have a working egg for this game. If someone else with this game can confirm with the egg below to see if its working ok, that would be awesome. One thing I get though when I attempt to "stop" the server, it thinks it crashed and goes to restart the server.

egg-night-of-the-dead-dedicated-server.json

QuintenQVD0 commented 2 weeks ago

There are some things wrong with that egg but it can work.

I will make a PR with the changes I made but ofc still you name to it, please test (and yes the console output will be broken thats normal)

scootz commented 2 weeks ago

It wouldn't feel right keeping my email in the egg. I copied the original NOTD egg and modified some bits. The credit should go to the original author. Thanks for making the necessary changes.