Configuration with Barotrauma - Lua for Barotrauma config doesn't autogenerate nor is there any way to configure it within the panel

System Information

Field Value
Operating System Linux - Debian GNU/Linux 13 on x86_64
Product AMP ‘Phobos’ v2.6.4.0 (Mainline)
Virtualization Docker
Application Barotrauma
Module GenericModule
Running in Container Yes
Current State Stopped

Problem Description

Issue

Lua for Barotrauma extension doesn’t autogenerate LuaCsSetupConfig.xml in root folder of the instance, which is vital for certain mods, as it may allow unsandboxed C# code to run (say Harmony patches).

The said option is defined in XML as “EnableCsScripting” with a boolean, by default set to false. C# scripting support can also be checked by executing “lua print(CSActive)” in ingame console, which returns a boolean depending on C# scripting being active.

This option might be dangerous to the user, but most mods are not malicious. Could be just a toggle with a warning.

I do not need assistance with the issue as I’ve copied my own LuaCsSetupConfig from my local installation - only reporting this because someone else might have an issue with it.

edit:
Apparently Dedicated Server just doesn’t generate the config at all - you have to either copy it from the client (which does generate the file), or use the C# dummy mod.

Reproduction Steps

  • Enable Lua for Barotrauma in config
  • LuaCsSetupConfig.xml missing + no way to configure it in panel
  • Execute in console “lua print(CSActive)” - server returns False, which means no C# scripting.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.