Barotrauma

Barotrauma

Lua For Barotrauma
le0twigs 31 Mar, 2024 @ 10:10pm
unknown crash when starting server (mac)
verified game files and installed newest mac client patch from the github, crashes on trying to start a server, unable to join servers
< >
Showing 1-6 of 6 comments
le0twigs 31 Mar, 2024 @ 10:15pm 
issue only present with lua patch in folder
log:


Barotrauma Client crash report (generated on 04/01/2024 00:03:16)

Barotrauma seems to have crashed. Sorry for the inconvenience!

Game version 1.3.0.1 (ReleaseMacOS, branch master, revision 7dc75c6)
Graphics mode: 1512x982 (BorderlessWindowed)
VSync ON
Language: English
Selected content packages: Vanilla (9AD9CDE), Lua For Barotrauma (B014DC2), Cs For Barotrauma (965D27D), Soundproof Walls (8EE2D7B), Real Sonar (F501225), Lua Editor (F6A052E), Immersive Sonar UI - A Real Sonar Add-On (E815D72)
Level seed: no level loaded
Loaded submarine: None
Selected screen: Barotrauma.ServerListScreen
SteamManager initialized

System info:
Operating system: Unix 12.5.1 64 bit
GPU name:
Display mode: {Width:1512 Height:982 Format:Color AspectRatio:1.5397148}
GPU status: Normal

Exception: Object reference not set to an instance of an object. (System.NullReferenceException)
Target site: Void UpdateServerListInfo(System.Action`2[Barotrauma.Identifier,System.Object])
Stack trace:
at Barotrauma.Networking.ServerSettings.UpdateServerListInfo(Action`2 setter) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/Networking/ServerSettings.cs:line 1154
at Barotrauma.Eos.EosSessionManager.UpdateOwnedSession(Option`1 endpoint, ServerSettings serverSettings) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/Eos/Session.cs:line 85
at Barotrauma.Eos.EosSessionManager.<>c__DisplayClass3_0.<UpdateOwnedSession>b__0(Task t) in <DEV>/Barotrauma/BarotraumaShared/SharedSource/Eos/Session.cs:line 60
at Barotrauma.TaskPool.Update() in <DEV>/Libraries/BarotraumaLibs/BarotraumaCore/Utils/TaskPool.cs:line 87
at Barotrauma.GameMain.Update(GameTime gameTime) in <DEV>/Barotrauma/BarotraumaClient/ClientSource/GameMain.cs:line 992
at Microsoft.Xna.Framework.Game.DoUpdate(GameTime gameTime) in E:\Barotrauma-development\Libraries\MonoGame.Framework\Src\MonoGame.Framework\Game.cs:line 656
at Microsoft.Xna.Framework.Game.Tick() in E:\Barotrauma-development\Libraries\MonoGame.Framework\Src\MonoGame.Framework\Game.cs:line 500
at Microsoft.Xna.Framework.SdlGamePlatform.RunLoop() in E:\Barotrauma-development\Libraries\MonoGame.Framework\Src\MonoGame.Framework\SDL\SDLGamePlatform.cs:line 93
at Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior) in E:\Barotrauma-development\Libraries\MonoGame.Framework\Src\MonoGame.Framework\Game.cs:line 397
at Microsoft.Xna.Framework.Game.Run() in E:\Barotrauma-development\Libraries\MonoGame.Framework\Src\MonoGame.Framework\Game.cs:line 367
at Barotrauma.Program.Main(String[] args) in <DEV>/Barotrauma/BarotraumaClient/ClientSource/Program.cs:line 61

Last debug messages:
[04/01/2024 00:03:15] WARNING: Tried to restore enabled packages multiple times/without performing a backup
[04/01/2024 00:03:14] Stopping Lua...
[04/01/2024 00:03:14] [CL ERROR] USERNAME System.TypeInitializationException: The type initializer for 'SoundproofWalls.SoundproofWalls' threw an exception.
---> System.TypeInitializationException: The type initializer for 'SoundproofWalls.ConfigManager' threw an exception.
---> System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Linux.NetStandard, Version=3.7.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

File name: 'MonoGame.Framework.Linux.NetStandard, Version=3.7.0.0, Culture=neutral, PublicKeyToken=null'
---> System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Linux.NetStandard, Version=3.7.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

File name: 'MonoGame.Framework.Linux.NetStandard, Version=3.7.0.0, Culture=neutral, PublicKeyToken=null'
at System.Reflection.RuntimeAssembly.InternalLoad(ObjectHandleOnStack assemblyName, ObjectHandleOnStack requestingAssembly, StackCrawlMarkHandle stackMark, Boolean throwOnFileNotFound, ObjectHandleOnStack assemblyLoadContext, ObjectHandleOnStack retAssembly)
at System.Reflection.RuntimeAssembly.InternalLoad(AssemblyName assemblyName, RuntimeAssembly requestingAssembly, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, AssemblyLoadContext assemblyLoadContext)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyName(AssemblyName assemblyName)
at Barotrauma.MemoryFileAssemblyContextLoader.Load(AssemblyName assemblyName)
at System.Runtime.Loader.AssemblyLoadContext.ResolveUsingLoad(AssemblyName assemblyName)
at System.Runtime.Loader.AssemblyLoadContext.Resolve(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName)
at SoundproofWalls.Config.ParseEavesdroppingBind()
at SoundproofWalls.Config..ctor()
at SoundproofWalls.ConfigManager.LoadConfig()
at SoundproofWalls.ConfigManager..cctor()
--- End of inner exception stack trace ---
at SoundproofWalls.ConfigManager.LoadConfig()
at SoundproofWalls.SoundproofWalls..cctor()
--- End of inner exception stack trace ---
at SoundproofWalls.SoundproofWalls.<>c.<InitClient>b__49_2(Object[] args)
at Barotrauma.LuaCsHook.Call[T](String name, Object[] args) in /USERNAME/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaShared/SharedSource/LuaCs/LuaCsHook.cs:line 792
[04/01/2024 00:03:14] [CL ERROR] Error in Hook 'stop'->'spw_stop', with args '':
System.TypeInitializationException: The type initializer for 'SoundproofWalls.SoundproofWalls' threw an exception.
---> System.TypeInitializationException: The type initializer for 'SoundproofWalls.ConfigManager' threw an exception.
---> System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Linux.NetStandard, Version=3.7.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

File name: 'MonoGame.Framework.Linux.NetStandard, Version=3.7.0.0, Culture=neutral, PublicKeyToken=null'
---> System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Linux.NetStandard, Version=3.7.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

File name: 'MonoGame.Framework.Linux.NetStandard, Version=3.7.0.0, Culture=neutral, PublicKeyToken=null'
at System.Reflection.RuntimeAssembly.InternalLoad(ObjectHandleOnStack assemblyName, ObjectHandleOnStack requestingAssembly, StackCrawlMarkHandle stackMark, Boolean throwOnFileNotFound, ObjectHandleOnStack assemblyLoadContext, ObjectHandleOnStack retAssembly)
at System.Reflection.RuntimeAssembly.InternalLoad(AssemblyName assemblyName, RuntimeAssembly requestingAssembly, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, AssemblyLoadContext assemblyLoadContext)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyName(AssemblyName assemblyName)
at Barotrauma.MemoryFileAssemblyContextLoader.Load(AssemblyName assemblyName)
at System.Runtime.Loader.AssemblyLoadContext.ResolveUsingLoad(AssemblyName assemblyName)
at System.Runtime.Loader.AssemblyLoadContext.Resolve(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName)
at SoundproofWalls.Config.ParseEavesdroppingBind()
at SoundproofWalls.Config..ctor()
at SoundproofWalls.ConfigManager.LoadConfig()
at SoundproofWalls.ConfigManager..cctor()
--- End of inner exception stack trace ---
at SoundproofWalls.ConfigManager.LoadConfig()
at SoundproofWalls.SoundproofWalls..cctor()
--- End of inner exception stack trace ---
at SoundproofWalls.SoundproofWalls.<>c.<InitClient>b__49_2(Object[] args)
at Barotrauma.LuaCsHook.Call[T](String name, Object[] args) in /USERNAME/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaShared/SharedSource/LuaCs/LuaCsHook.cs:line 792
[04/01/2024 00:03:14] Error while reading a message from server.
Exception thrown while reading segment ChatMessage at position 28632. Previous segments: Segment { Identifier = SyncIds, Pointer = 32 }.
Inner exception: Could not load file or assembly 'MonoGame.Framework.Linux.NetStandard, Version=3.7.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

at System.Reflection.RuntimeAssembly.InternalLoad(ObjectHandleOnStack assemblyName, ObjectHandleOnStack requestingAssembly, StackCrawlMarkHandle stackMark, Boolean throwOnFileNotFound, ObjectHandleOnStack assemblyLoadContext, ObjectHandleOnStack retAssembly)
at System.Reflection.RuntimeAssembly.InternalLoad(AssemblyName assemblyName, RuntimeAssembly requestingAssembly, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, AssemblyLoadContext assemblyLoadContext)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyName(AssemblyName assemblyName)
at Barotrauma.MemoryFileAssemblyContextLoader.Load(AssemblyName assemblyName)
at System.Runtime.Loader.AssemblyLoadContext.ResolveUsingLoad(AssemblyName assemblyName)
at System.Runtime.Loader.AssemblyLoadContext.Resolve(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName)
[04/01/2024 00:03:14] - patch.lua (Took 0.06602ms)
[04/01/2024 00:03:14] Dont Open Debug Console On Errors 1.0.5
[04/01/2024 00:03:14] - init.lua (Took 0.00052ms)
[04/01/2024 00:03:14] NeuroEyes [fix] 1.0.9
[04/01/2024 00:03:14] - init.lua (Took 0.00090ms)
[04/01/2024 00:03:14] GM Tools 1.0.11
[04/01/2024 00:03:14] - init.lua (Took 0.00295ms)
[04/01/2024 00:03:14] ISUI - Gunner Overlay loaded.
[04/01/2024 00:03:14] Immersive Sonar UI - A Real Sonar Add-On 1.0.4
[04/01/2024 00:03:14] - EditGUI.lua (Took 0.06533ms)
[04/01/2024 00:03:14] Lua Editor 1.0.9
[04/01/2024 00:03:14] - init.lua (Took 0.07991ms)
[04/01/2024 00:03:14] Real Sonar 2.0.2
[04/01/2024 00:03:12] Using LuaSetup.lua from the Barotrauma Lua/ folder.
[04/01/2024 00:03:12] [Client] LuaCsSetup: Completed assembly loading. Total time 5980ms.
[04/01/2024 00:03:12] [Client] CsPackageManager: Details: The type initializer for 'SoundproofWalls.SoundproofWalls' threw an exception. | System.TypeInitializationException: The type initializer for 'SoundproofWalls.ConfigManager' threw an exception.
---> System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Linux.NetStandard, Version=3.7.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

File name: 'MonoGame.Framework.Linux.NetStandard, Version=3.7.0.0, Culture=neutral, PublicKeyToken=null'
---> System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Linux.NetStandard, Version=3.7.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

File name: 'MonoGame.Framework.Linux.NetStandard, Version=3.7.0.0, Culture=neutral, PublicKeyToken=null'
at System.Reflection.RuntimeAssembly.InternalLoad(ObjectHandleOnStack assemblyName, ObjectHandleOnStack requestingAssembly, StackCrawlMarkHandle stackMark, Boolean throwOnFileNotFound, ObjectHandleOnStack assemblyLoadContext, ObjectHandleOnStack retAssembly)
at System.Reflection.RuntimeAssembly.InternalLoad(AssemblyName assemblyName, RuntimeAssembly requestingAssembly, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, AssemblyLoadContext assemblyLoadContext)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyName(AssemblyName assemblyName)
at Barotrauma.MemoryFileAssemblyContextLoader.Load(AssemblyName assemblyName)
at System.Runtime.Loader.AssemblyLoadContext.ResolveUsingLoad(AssemblyName assemblyName)
at System.Runtime.Loader.AssemblyLoadContext.Resolve(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName)
at SoundproofWalls.Config.ParseEavesdroppingBind()
at SoundproofWalls.Config..ctor()
at SoundproofWalls.ConfigManager.LoadConfig()
at SoundproofWalls.ConfigManager..cctor()
--- End of inner exception stack trace ---
at SoundproofWalls.ConfigManager.LoadConfig()
at SoundproofWalls.SoundproofWalls..cctor()
[04/01/2024 00:03:12] [Client] CsPackageManager: Error while running Initialize() on plugin of type CP: Soundproof Walls Plugin: SoundproofWalls
[04/01/2024 00:03:11] BetterHealthUIMod..ctor
[04/01/2024 00:03:11] [Client] Loading type: BetterHealthUIMod
[04/01/2024 00:03:11] [Client] Loading type: SoundproofWalls
[04/01/2024 00:03:11] [Client] Assemblies from CPackage BetterHealthUI loaded with Guid 9454b7e1-595d-4eeb-81dc-fa022855dfb6.
[04/01/2024 00:03:07] [Client] Loading scripts for CPackage BetterHealthUI
[04/01/2024 00:03:07] [Client] Assemblies from CPackage Soundproof Walls loaded with Guid 5b651e09-bcc7-4012-9a5f-1f80d7bb4451.
[04/01/2024 00:03:07] [Client] Loading assemblies for CPackage Soundproof Walls
[04/01/2024 00:03:06] Cs! Version 7dc75c6
[04/01/2024 00:03:06] Lua! Version 7dc75c6
[04/01/2024 00:02:00] ‖color:#9370DB‖[Vanilla]‖color:end‖ WARNING: Language not defined in text file "Content/Texts/English/EnglishVanillaROS.xml". Setting the language as English.
[04/01/2024 00:01:58] Attempting to open ALC device "External Headphones"
[04/01/2024 00:01:55] Logged in as le0twigs
Last edited by le0twigs; 1 Apr, 2024 @ 3:50pm
Evil Factory  [developer] 1 Apr, 2024 @ 8:28am 
MonoGame.Framework.Linux.NetStandard seems to be missing? odd
also the mod SoundProof walls is throwing a bunch of errors, try disabling it
le0twigs 1 Apr, 2024 @ 3:51pm 
launches the server without it lol, sorry i seem to have been barking up the wrong tree
Final Cut Pro 8 Apr, 2024 @ 11:49pm 
Originally posted by Evil Factory:
MonoGame.Framework.Linux.NetStandard seems to be missing? odd
also the mod SoundProof walls is throwing a bunch of errors, try disabling it

My Mac also encountered an error when running the Lua plugin,What should I do

log:

[04/09/2024 14:31:59] [CL ERROR] microsoft System.TypeInitializationException: The type initializer for 'SoundproofWalls.SoundproofWalls' threw an exception.
---> System.TypeInitializationException: The type initializer for 'SoundproofWalls.ConfigManager' threw an exception.
---> System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Linux.NetStandard, Version=3.7.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

File name: 'MonoGame.Framework.Linux.NetStandard, Version=3.7.0.0, Culture=neutral, PublicKeyToken=null'
---> System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Linux.NetStandard, Version=3.7.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

File name: 'MonoGame.Framework.Linux.NetStandard, Version=3.7.0.0, Culture=neutral, PublicKeyToken=null'
at System.Reflection.RuntimeAssembly.InternalLoad(ObjectHandleOnStack assemblyName, ObjectHandleOnStack requestingAssembly, StackCrawlMarkHandle stackMark, Boolean throwOnFileNotFound, ObjectHandleOnStack assemblyLoadContext, ObjectHandleOnStack retAssembly)
at System.Reflection.RuntimeAssembly.InternalLoad(AssemblyName assemblyName, RuntimeAssembly requestingAssembly, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, AssemblyLoadContext assemblyLoadContext)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyName(AssemblyName assemblyName)
at Barotrauma.MemoryFileAssemblyContextLoader.Load(AssemblyName assemblyName)
at System.Runtime.Loader.AssemblyLoadContext.ResolveUsingLoad(AssemblyName assemblyName)
at System.Runtime.Loader.AssemblyLoadContext.Resolve(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName)
at SoundproofWalls.Config.ParseEavesdroppingBind()
at SoundproofWalls.Config..ctor()
at SoundproofWalls.ConfigManager.LoadConfig()
at SoundproofWalls.ConfigManager..cctor()
--- End of inner exception stack trace ---
at SoundproofWalls.ConfigManager.LoadConfig()
at SoundproofWalls.SoundproofWalls..cctor()
--- End of inner exception stack trace ---
at SoundproofWalls.SoundproofWalls.SPW_Update()
at SoundproofWalls.SoundproofWalls.<>c.<InitClient>b__49_3(Object[] args)
at Barotrauma.LuaCsHook.Call[T](String name, Object[] args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaShared/SharedSource/LuaCs/LuaCsHook.cs:line 792
[04/09/2024 14:31:59] [CL ERROR] Error in Hook 'think'->'spw_update', with args '':
System.TypeInitializationException: The type initializer for 'SoundproofWalls.SoundproofWalls' threw an exception.
---> System.TypeInitializationException: The type initializer for 'SoundproofWalls.ConfigManager' threw an exception.
---> System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Linux.NetStandard, Version=3.7.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

File name: 'MonoGame.Framework.Linux.NetStandard, Version=3.7.0.0, Culture=neutral, PublicKeyToken=null'
---> System.IO.FileNotFoundException: Could not load file or assembly 'MonoGame.Framework.Linux.NetStandard, Version=3.7.0.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

File name: 'MonoGame.Framework.Linux.NetStandard, Version=3.7.0.0, Culture=neutral, PublicKeyToken=null'
at System.Reflection.RuntimeAssembly.InternalLoad(ObjectHandleOnStack assemblyName, ObjectHandleOnStack requestingAssembly, StackCrawlMarkHandle stackMark, Boolean throwOnFileNotFound, ObjectHandleOnStack assemblyLoadContext, ObjectHandleOnStack retAssembly)
at System.Reflection.RuntimeAssembly.InternalLoad(AssemblyName assemblyName, RuntimeAssembly requestingAssembly, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, AssemblyLoadContext assemblyLoadContext)
at System.Runtime.Loader.AssemblyLoadContext.LoadFromAssemblyName(AssemblyName assemblyName)
at Barotrauma.MemoryFileAssemblyContextLoader.Load(AssemblyName assemblyName)
at System.Runtime.Loader.AssemblyLoadContext.ResolveUsingLoad(AssemblyName assemblyName)
at System.Runtime.Loader.AssemblyLoadContext.Resolve(IntPtr gchManagedAssemblyLoadContext, AssemblyName assemblyName)
at SoundproofWalls.Config.ParseEavesdroppingBind()
at SoundproofWalls.Config..ctor()
at SoundproofWalls.ConfigManager.LoadConfig()
at SoundproofWalls.ConfigManager..cctor()
--- End of inner exception stack trace ---
at SoundproofWalls.ConfigManager.LoadConfig()
at SoundproofWalls.SoundproofWalls..cctor()
--- End of inner exception stack trace ---
at SoundproofWalls.SoundproofWalls.SPW_Update()
at SoundproofWalls.SoundproofWalls.<>c.<InitClient>b__49_3(Object[] args)
at Barotrauma.LuaCsHook.Call[T](String name, Object[] args) in /home/runner/work/LuaCsForBarotrauma/LuaCsForBarotrauma/Barotrauma/BarotraumaShared/SharedSource/LuaCs/LuaCsHook.cs:line 792
Evil Factory  [developer] 9 Apr, 2024 @ 9:53am 
update soundproof walls
Final Cut Pro 10 Apr, 2024 @ 2:50am 
Originally posted by Evil Factory:
update soundproof walls
Thank you for the answer. Now it can run :D
< >
Showing 1-6 of 6 comments
Per page: 1530 50