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
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://steamhost.cn/steamcommunity_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://steamhost.cn/steamcommunity_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.