Barotrauma

Barotrauma

Not enough ratings
DFC (Independence)
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
1.297 MB
22 Sep, 2023 @ 10:31am
30 Jun @ 11:35pm
42 Change Notes ( view )

Subscribe to download
DFC (Independence)

In 1 collection by whosyourdaddy
木卫二武装集团PVP/PVE模组集合
14 items
Description
The mod is independent, merged from the following:
Moses
Lua Utility Belt
Dynamic Submarine Script Injector (DSSI)
DSSI Faction Craft

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:
Error in xxx. The number of properties on the item "xxx" does not match between the server and the client. Server: xxx, client: xxx.
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.
11 Comments
whosyourdaddy  [author] 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 Dec, 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 Dec, 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  [author] 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 Dec, 2023 @ 7:04am 
Is there any tutorial for this thing or something like that?
Ricky 2 Oct, 2023 @ 10:31am 
ah found the problem modding toolkit seems to cause the mod to not load properly works after removing it
Ricky 2 Oct, 2023 @ 7:52am 
I unsubscribed from them and deleted my installed workshop mods folder and still couldn't get this mod to run
whosyourdaddy  [author] 1 Oct, 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.