DayZ
Zens Sleeping Mod
blumentopf 10 月 29 日 上午 1:56
Error on start: OnMenuRelease is protected
Just wanted to start playing after the update but I get this error:

"Cant compile Mission script module!

scripts/5_Mission/gui/gesturesmenu.c(162): Method 'OnMenuRelease' is protected
< >
正在显示第 1 - 12 条,共 12 条留言
Brewminion 10 月 29 日 上午 8:32 
I have the same issue on my server. I've removed it for now.
Brewminion 10 月 30 日 上午 4:19 
Update to the above, I downloaded this mornings up date (30/10/25) and the same error is in play.
scripts/5_Mission/gui\gesturesmenu.c(162): Method 'OnMenuRelease' is protected
blumentopf 10 月 30 日 下午 1:59 
Yep, same happening to me still. I checked the mod code, the error message doesn't occur in the modded class GesturesMenu.c but in the original gesturesmenu.c file. Why could this be a problem that this method is protected?
blumentopf 10 月 30 日 下午 2:13 
Looks like this is a DayZ base game bug that gets exposed because of modding the GesturesMenu class. I'll try to patch it with my own mod, but probably Zenarchist is going to fix it soon too.

The bug:
In gesturesmenu.c the OnMenuRelease is called by "static void CloseMenu()", and this is not allowed, A static method (like CloseMenu) is considered "outside" the class instance and cannot access protected members of an instance.

This potentially could fix it:

modded class GesturesMenu
{
override static void CloseMenu()
{
//execute on menu release
//instance.OnMenuRelease(); // <-- Bugged line commented out. Method is protected and marked as deprecated in the base file.

GetGame().GetUIManager().Back();
}
}

UPDATE: Even though I'm loading my mod after Zen's sleeping mod. I know get the error not from the client but on server side :( I must admit that I just started modding a few weeks ago...
最后由 blumentopf 编辑于; 10 月 30 日 下午 3:10
rayyan_lakho 10 月 30 日 下午 2:57 
no more sleeping … only 9 to 5 determination everyday
blumentopf 10 月 30 日 下午 3:56 
UPDATE 2: Can't get it to run with a mod to work around it. Removing the mod and everything works normal. No other mods changed in the meantime, so this was actually already known, but wanted to make sure.
blumentopf 10 月 31 日 上午 10:24 
I‘m currently trying to get the mod locally running from the repository but I‘m having troubles with the 3d models, the game crashes when a sleeping model model is visible in the inventory.
I updated today 04/11/2025 and it still has the same error (scripts/5_Mission/gui\gesturesmenu.c(162): Method 'OnMenuRelease' is protected)
Here's the crash log, with some info redacted, in case that helps:
---------------------------------------------
Log started at 04.11. 11:05:33
------------------------------------
WIN-**************, 04.11 2025 11:05:33
Can't compile "Mission" script module!
scripts/5_Mission/gui\gesturesmenu.c(162): Method 'OnMenuRelease' is protected
Runtime mode
CLI params: config D:\TCAFiles\Users\*******\*******\Config.cfg ip ***.***.***.*** port 2517 mod @CF;@VPPAdminTools;@DeerIsle;@Winter Chernarus V2;@Winter Livonia;@Winter DeerIsle;@MedicalAttentionCompatible;@crossbag;@Advanced Crafting;@JunkYardDog;@Code Lock;@MuchCarKey;@Zens Repairable Wells;@NBC Over Clothes;@RadioChat;@Vanilla Overhaul;@ZenVirus;@DayZ Information Panel;@Ruckz Air Drop;@Plane Crash;@128 Effect Area Height Fix;@Zens Sleeping Mod servermod @More Durable Clothing;@Knock Knock Zombies;@Fuel_serverMod;@Burn Campfire Anywhere profiles D:\TCAFiles\Users\*******\*******\SC name SC BEpath D:\TCAFiles\Users\*******\*******\SC\Battleye limitFPS 0
blumentopf 11 月 4 日 下午 9:42 
Thanks! Three days ago, I‘ve requested on Zenarchists repository a pull request with a potential fix for this error, but haven’t heard of him since then.
blumentopf 11 月 4 日 下午 10:23 
Unfortunately in the update today the bug didn't get fixed.
最后由 blumentopf 编辑于; 11 月 4 日 下午 10:24
blumentopf 11 月 8 日 上午 11:17 
Error got fixed. Good to know: u were only effected if you ran the mod seperatly, without Zen's modpack.
samboo898 11 月 8 日 下午 11:38 
Same here mod is no longer working which sux as it is a key element to my survival server.
< >
正在显示第 1 - 12 条,共 12 条留言
每页显示数: 1530 50