RocketMod / Rocket.Unturned

Unturned 3 implementation of the RocketMod — .NET Game Server Plugin Framework
MIT License
85 stars 111 forks source link

Linux scripts broken #44

Closed tgm4883 closed 7 years ago

tgm4883 commented 7 years ago

The Linux scripts no longer install things in the right place, looks like this commit broke it https://github.com/RocketMod/Rocket.Unturned/commit/46688f609a3a8b53e6d59278c82dc89c2750c42f

STEAMCMD_HOME should be

STEAMCMD_HOME="../steamcmd" not STEAMCMD_HOME="../../steamcmd"

fr34kyn01535 commented 7 years ago

"right space" ? whats that :D

tgm4883 commented 7 years ago

I realize the way I worded that makes it sound like this is a preference thing, so let me restate the issue.

The instructions as written on https://github.com/RocketMod/Rocket.Unturned/blob/master/Rocket.Unturned/Scripts/Linux/README Do NOT work. Using them as written with the files in the current release of RocketMod result in an unlaunchable server as they produce the following errors (this was tested in an LXC container, but the errors have to do with the files in the wrong locations)

root@unturnedserver:~/test/test2/Scripts# ./start.sh testing
Steam: diff: ..//Unturned_Data/Plugins/x86/steamclient.so: No such file or directory
cp: cannot create regular file '..//Unturned_Data/Plugins/x86/steamclient.so': No such file or directory
UPDATING

WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v4.0.30319

Unhandled Exception:
System.ComponentModel.Win32Exception: ApplicationName='Unturned.x86', CommandLine='-nographics -batchmode -logfile 'Servers/testing/unturned.log' +secureserver/testing', CurrentDirectory='', Native error= Cannot find the specified file
  at System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) <0x408f91a0 + 0x00fe3> in <filename unknown>:0 
  at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) <0x408f8ff0 + 0x000db> in <filename unknown>:0 
  at System.Diagnostics.Process.Start () <0x408f8f70 + 0x0004b> in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.Diagnostics.Process:Start ()
  at Rocket.Unturned.Launcher.RocketLauncher.Main (System.String[] args) <0x408f4d60 + 0x002cf> in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.ComponentModel.Win32Exception: ApplicationName='Unturned.x86', CommandLine='-nographics -batchmode -logfile 'Servers/testing/unturned.log' +secureserver/testing', CurrentDirectory='', Native error= Cannot find the specified file
  at System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) <0x408f91a0 + 0x00fe3> in <filename unknown>:0 
  at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) <0x408f8ff0 + 0x000db> in <filename unknown>:0 
  at System.Diagnostics.Process.Start () <0x408f8f70 + 0x0004b> in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.Diagnostics.Process:Start ()
  at Rocket.Unturned.Launcher.RocketLauncher.Main (System.String[] args) <0x408f4d60 + 0x002cf> in <filename unknown>:0
root@unturnedserver:~/test/test2/Scripts#

Altering STEAMCMD_HOME to look like it looks in the first post allows unturned to launch and people to connect, however I'm not sure if this is a complete fix as the few plugins I tried to load fail now (I use airdrop manager and death manager). While plugins that don't work isn't great either, it's better than no server at all.

AirdropManager >> Exception in AirdropManager: System.IO.FileNotFoundException: Could not load file or assembly 'Rocket.Unturned, Version=4.9.8.2, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
File name: 'Rocket.Unturned, Version=4.9.8.2, Culture=neutral, PublicKeyToken=null'
  at crythesly.AirdropManager.AirdropManager.CheckTimeDrop () [0x00000] in <filename unknown>: