安装 Steam
登录
|
语言
繁體中文(繁体中文)
日本語(日语)
한국어(韩语)
ไทย(泰语)
български(保加利亚语)
Čeština(捷克语)
Dansk(丹麦语)
Deutsch(德语)
English(英语)
Español-España(西班牙语 - 西班牙)
Español - Latinoamérica(西班牙语 - 拉丁美洲)
Ελληνικά(希腊语)
Français(法语)
Italiano(意大利语)
Bahasa Indonesia(印度尼西亚语)
Magyar(匈牙利语)
Nederlands(荷兰语)
Norsk(挪威语)
Polski(波兰语)
Português(葡萄牙语 - 葡萄牙)
Português-Brasil(葡萄牙语 - 巴西)
Română(罗马尼亚语)
Русский(俄语)
Suomi(芬兰语)
Svenska(瑞典语)
Türkçe(土耳其语)
Tiếng Việt(越南语)
Українська(乌克兰语)
报告翻译问题






There are restrictions that limit modding capabilities. Also, modifying the network code will inevitably lead to critical errors.
Well, it works if everyone turns it on in their mods.
The mod does not change the ammo stack size inside the weapon. Most likely another mod does this. To limit the stack size in the player hotbar, you need to make the mod local and change the value of "characterInventoryCapacity" in the "script.lua" file. After that, enable the local mod instead of the mod from the workshop.
You can send the log file by following these instructions:
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2896243786
Most likely several stack size mods are conflicting. Try leaving only one stack size mod.
@zeldazackman
Mod updated
Only four variables at the beginning of the file can be changed. Changing the rest of the code leads to errors and incorrect operation of the mod.
Are you editing the file at "steamapps\workshop\content\602960\2961866549\Lua\Autorun\script.lua"? Alternatively, you can copy the folder "2961866549" to the path "steamapps\common\Barotrauma\LocalMods\" and enable the local mod in the game instead of the workshop mod.
"local new_maxStackSize = 256
local mobilecontainerСapacity = 256
local crateСapacity = 256
local containerСapacity = new_maxStackSize"
and at the bottom part
},
function(instance, p)
if instance.maxStackSize > 1 then
local tags = instance.Item.Tags
if string.match(tags, "mobilecontainer") or string.match(tags, "scooter") then
instance.maxStackSize = mobilecontainerСapacity
elseif string.match(tags, "crate") then
instance.maxStackSize = crateСapacity
elseif string.match(tags, "container") then
instance.maxStackSize = containerСapacity
elseif p["value"] == 256 then
instance.maxStackSize = new_maxStackSize
end
So all values are 256 yet it is still capped at 128 i dont know where it takes the 128 from now ?
Just change the value of the new_maxStackSize variable to any value in the script file and it will work.
I already tried hanging the numbers in the lua file to 512 but the stacks only go to 128 still
Or send a log file following these instructions:
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2896243786
Can you send me a screenshot of the game console log (F3 key) after you transfer the items to the container inventory? The mod works correctly in my game.