Barotrauma

Barotrauma

DSSI Faction Craft
17 kommentarer
whosyourdaddy  [ophavsmand] 23. apr. kl. 0:43 
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.
Ricky 5. okt. 2023 kl. 12:52 
ah yes always forget about the lua component thank you
whosyourdaddy  [ophavsmand] 5. okt. 2023 kl. 4:33 
Forgot one thing, disable Isolation for LuaComponent is needed.
whosyourdaddy  [ophavsmand] 5. okt. 2023 kl. 4:29 
@Ricky, sorry for not providing any more details on the usage of the mod. In fact, you can do anything right now to implement other complex functions, because there's a Lua component that allows you to access the sender.
Just need to write the following code in the LuaComponent:

[code]
if inp[1] and sender[1] then
out[1] = sender[1].JobIdentifier.ToString()
end
[/code]

And connect one of the output pins ('guid', 'name', 'speciesname', 'group', 'tags' or 'entered') from "EnterLeaveRegion" to signal_in1 of the LuaComponent.
When someone triggers “EnterLeaveRegion”, it will send a signal sent by the triggered character that entered or left the region.
When the LuaComponent receives a signal, it will send the job name of the triggered character from signal_out1.
Ricky 4. okt. 2023 kl. 21:48 
would be nice if the "EnterLeaveRegion" had a output pin for the players job
whosyourdaddy  [ophavsmand] 17. sep. 2023 kl. 17:50 
Except that, you can also used other components and combine them to get more way to spawn.
whosyourdaddy  [ophavsmand] 17. sep. 2023 kl. 17:48 
@Galaxies Just four steps to spawn items in a way:
1. Place in an Item Spawner
2. Set property 'Item Builds' for spawning items, example for:[code]
return {
"This is just a debug name",
{
-- Spawn a auto injector headset
identifier = "autoinjectorheadset",
-- equip it
equip = true,
-- inherit the wifi channel from the headset worn by character
inheritchannel = true,
-- spawn a c4-block in the headset
-- tags must be changed to "chem,medical"
inventory = {
{ identifier = "c4block", tags = "chem,medical" },
}
},
}
[/code]
3. Wire a button and connect it to the Item Spawner
4. Trigger button, you will get a self-explosion headset
Galaxies 17. sep. 2023 kl. 14:44 
Yay! Thank you!

One more thing, the READ_ME is quite confusing, it doesn't tell me how to utilize the components in-game. I want to use the item spawner component (I forgot the real name!), but I have no clue how to give people said items. The Testing Grounds map really didn't tell me anything either.
whosyourdaddy  [ophavsmand] 16. sep. 2023 kl. 19:51 
@Galaxies Only server side lua is required in multiplayer
Galaxies 16. sep. 2023 kl. 14:31 
Do players need client-side Lua, or is only server-side Lua needed? (I really want to use this, but I can't if it requires client-side Lua)
whosyourdaddy  [ophavsmand] 14. sep. 2023 kl. 0:56 
Ah, I didn't think that.
The mod has been updated and I have added English localization in order for more map developers to use these tools without language barriers.
Ricky 13. sep. 2023 kl. 17:52 
ahh yes thank you and about the teleporter I just didint understand at the time how all that worked I can make it teleport whoever easily with the regions and enterleaveregion
whosyourdaddy  [ophavsmand] 13. sep. 2023 kl. 9:15 
I forgot to mention that there is another gamemode based on this mod
World War II
Map name: 派系工艺 COC模组测试 ZRG改
In PVPMap
An additional mod subscription is required: COC Mod
whosyourdaddy  [ophavsmand] 13. sep. 2023 kl. 9:09 
In addition, some Chinese players have made two game modes with The mod, one is Cross The Fire: Ghost Vs Guardian(DFC 影视城 幽灵模式 2.0飞跃图), and the other is Free For All(派系工艺 ffa 设施乱斗1.3流畅版 非外部脚本)

If you want to play or experience these custom gamemodes, you should subscribe to the following mods:
1. Lua For Barotrauma
2. Cs For Barotrauma
3. Moses
4. Lua Utility Belt
5. DSSI (Dynamic Submarine Script Injector)
6. DSSI Faction Craft
7. PVPMap (contains two maps talked above)
8. MGME SHARED
9. MGME Record Player
10. OTFX

Hope I haven't missed anything.
whosyourdaddy  [ophavsmand] 13. sep. 2023 kl. 9:08 
answer: 1
You can find and view the ReadMe in the mod root directory, which basically explains how to use the mod completely, but it's all in Chinese and it might be a bit difficult to translate it all into English, so I'll consider making a Jobgear-based Team Deathmatch gamemode as a kind of demos.
AOE Teleport is comming soon

answer 2:
If the mod is running on the server, Lua Utility Belt, DSSI, and moses are not required for players.
But I still make it necessary for players to subscribe to them so they know which mods are installed on the server.
And if some of the mods that rely on these mods and require both the server and the client to be installed, then these things are still necessary.
Ricky 12. sep. 2023 kl. 7:22 
one more question do players also need lua utility belt, DSSI, and moses or is it fine to just have that on server only
Ricky 12. sep. 2023 kl. 6:13 
maybe add another teleporter that when it receives a signal it teleports everyone in its area also their is pretty much no documentation so it is a pain to figure out what everything does even with the "Training Ground DFC" sub you have