Barotrauma

Barotrauma

DFC (Independence)
11 Komentar
whosyourdaddy  [pembuat] 23 Apr @ 12:44am 
Severe Warning for v1.8.6.2+ Users
If your map is using this mod's LuaComponent sync method to send synchronization data to the client, players without Lua installed will be forcibly disconnected from the server. Their consoles will pop up the following error:
[code]Error in xxx. The number of properties on the item "xxx" does not match between the server and the client. Server: xxx, client: xxx.[/code]
The error is caused by an official code change:
https://github.com/FakeFishGames/Barotrauma/blob/6203171b6d0cdac86ac3f804b3d325aa49dcf07b/Barotrauma/BarotraumaShared/SharedSource/Items/Item.cs#L3768
This means multiplayer now require stricter consistency between the client and server.
A temporary workaround is to disable sync . If you still wish to use that, you can use the better Lua component: RuyiLuaComponent , which offers more comprehensive Lua support and more detailed documations.
Galaxies 6 Des 2024 @ 1:37pm 
Nevermind, I had to read the Lua documentation (found here: https://evilfactory.github.io/LuaCsForBarotrauma/lua-docs/) and I found the "Game.ExecuteCommand(command)" function! Thanks anyways though :)
Galaxies 6 Des 2024 @ 10:43am 
@whosyourdaddy I've been reading the documentation, and it's really useful, but it doesn't exactly lay out how to run F3 commands via the Lua component. I assume that I'm required to know Lua in order to accomplish this?
Galaxies 28 Nov 2024 @ 8:06pm 
Alright, thanks for the help! :)
whosyourdaddy  [pembuat] 26 Nov 2024 @ 9:13pm 
You can check the ReadMe in the mod directory and search for DfcLua2Component. However, my English is not good, so I only wrote the documentation in Chinese. Additionally, I have uploaded all the mods to the source code repository, and their hyperlinks are provided on each mod's page. (come from AI translator)
If you have any questions, welcome to ask.
Galaxies 26 Nov 2024 @ 12:00pm 
Hey, question, is there any way I can run F3 commands through DFC? I assume I can via a Lua component, but there's no information nor instruction on how. Appreciate the mod man, it's super useful!
Captain Bart 29 Des 2023 @ 7:04am 
Is there any tutorial for this thing or something like that?
Ricky 2 Okt 2023 @ 10:31am 
ah found the problem modding toolkit seems to cause the mod to not load properly works after removing it
Ricky 2 Okt 2023 @ 7:52am 
I unsubscribed from them and deleted my installed workshop mods folder and still couldn't get this mod to run
whosyourdaddy  [pembuat] 1 Okt 2023 @ 11:52pm 
Have you disabled mods(Moses, Lua Utility Belt, Dynamic Submarine Script Injector (DSSI), DSSI Faction Craft)? If not it may cause cs mods to be duplicated and broken, that's one of the reasons why the console throws the error shown in the screenshot.
Ricky 1 Okt 2023 @ 12:31pm 
whenever i open subeditor
[CL LUA ERROR] "C:/Users/ricky/AppData/Local/Daedalic Entertainment
GmbH/Barotrauma/WorkshopMods/Installed/3039492313/Lua/utilbelt/csharpmodule/Shared/Utils.lua:(1,24-48): tried to register a type that doesn't
exist: LuaUtilityBelt.Utils."

I do have clientside lua and cs enabled