Good afternoon!
After updating DayZ 1.27, an error began to occur and the server crashed.
We have modified the FuelStation so that CarBattery can be placed in it as an attachment.
modifications to classes:
config.cpp
class Land_FuelStation_Feed : House {
attachments[] = {"LargeBattery"};
};
class Land_FuelStation_Feed_Enoch : House {
attachments[] = {"LargeBattery"};
};
scripts:
modded class FuelStation extends BuildingSuper
{
override bool IsInventoryVisible()
{
return true;
};
};
After players install CarBattery in attachments "LargeBattery", the server stops working and outputs the following error:
Class: 'DayZGame'
Function: 'AddInventoryJunctureEx'
Stack trace:
scripts/3_Game/global\game.c:743
scripts/3_Game/systems\inventory\junctures.c:17
scripts/4_World/systems\inventory\dayzplayerinventory.c:883
scripts/4_World/systems\inventory\dayzplayerinventory.c:1550
scripts/4_World/systems\inventory\dayzplayerinventory.c:739
This behavior is observed not only with the FuelStation and CarBattery classes, regardless of the attachment category that we attach to BuildingSuper, the server crashes.
The server was started only with this modification, there were no additional mods interfering with the work.
The modification worked from version 1.23 - 1.26, on patch 1.27 we get errors!
Because of this, the Community servers are broken and we can't figure out what's the matter!