when installing cl lua via workshop, create LuaDedicatedServer.bat
This commit is contained in:
@@ -1265,6 +1265,7 @@ namespace Barotrauma
|
|||||||
GameMain.LuaCs.Initialize();
|
GameMain.LuaCs.Initialize();
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
#if WINDOWS
|
||||||
commands.Add(new Command("install_cl_lua", "Installs Client-Side Lua into your client.", (string[] args) =>
|
commands.Add(new Command("install_cl_lua", "Installs Client-Side Lua into your client.", (string[] args) =>
|
||||||
{
|
{
|
||||||
ContentPackage luaPackage = LuaCsSetup.GetPackage("Lua For Barotrauma");
|
ContentPackage luaPackage = LuaCsSetup.GetPackage("Lua For Barotrauma");
|
||||||
@@ -1313,6 +1314,7 @@ namespace Barotrauma
|
|||||||
}
|
}
|
||||||
|
|
||||||
File.WriteAllText(LuaCsSetup.VersionFile, luaPackage.ModVersion);
|
File.WriteAllText(LuaCsSetup.VersionFile, luaPackage.ModVersion);
|
||||||
|
File.WriteAllText("LuaDedicatedServer.bat", "\"%LocalAppData%/Daedalic Entertainment GmbH/Barotrauma/WorkshopMods/Installed/2559634234/Binary/DedicatedServer.exe\"");
|
||||||
}
|
}
|
||||||
catch (UnauthorizedAccessException e)
|
catch (UnauthorizedAccessException e)
|
||||||
{
|
{
|
||||||
@@ -1330,6 +1332,8 @@ namespace Barotrauma
|
|||||||
GameMain.Server.SendChatMessage("Client-Side Lua installed, restart your game to apply changes.", ChatMessageType.ServerMessageBox);
|
GameMain.Server.SendChatMessage("Client-Side Lua installed, restart your game to apply changes.", ChatMessageType.ServerMessageBox);
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
commands.Add(new Command("randomizeseed", "randomizeseed: Toggles level seed randomization on/off.", (string[] args) =>
|
commands.Add(new Command("randomizeseed", "randomizeseed: Toggles level seed randomization on/off.", (string[] args) =>
|
||||||
{
|
{
|
||||||
GameMain.Server.ServerSettings.RandomizeSeed = !GameMain.Server.ServerSettings.RandomizeSeed;
|
GameMain.Server.ServerSettings.RandomizeSeed = !GameMain.Server.ServerSettings.RandomizeSeed;
|
||||||
|
|||||||
Reference in New Issue
Block a user