Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
[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.
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.
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
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.