Project Zomboid

Project Zomboid

GunFighter Radial Menu
Error when trying to use radial menu with a long press on hotkey
Hi, i got this error long-pressed on the hotkey


function: fillMenu -- file: ISGunFighterRadialMenu.lua line # 407 | MOD: GunFighter Radial Menu
function: onKeyRepeat -- file: ISFirearmRadialMenu.lua line # 451 | Vanilla

ERROR: General , 1694608720832> 63а908а283> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: Object tried to call nil in fillMenu at KahluaUtil.fail line:82.
ERROR: General , 1694608720832> 63а908а283> DebugLogStream.printException> Stack trace:
java.lang.RuntimeException: Object tried to call nil in fillMenu
at se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:82)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:973)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:163)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1980)
at se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1812)
at se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:66)
at se.krka.kahlua.integration.LuaCaller.protectedCallVoid(LuaCaller.java:139)
at zombie.Lua.Event.trigger(Event.java:64)
at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:92)
at zombie.input.GameKeyboard.update(GameKeyboard.java:85)
at zombie.GameWindow.logic(GameWindow.java:249)
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.GameWindow.frameStep(GameWindow.java:765)
at zombie.GameWindow.run_ez(GameWindow.java:681)
at zombie.GameWindow.mainThread(GameWindow.java:495)
at java.base/java.lang.Thread.run(Unknown Source)
LOG : General , 1694608720832> 63а908а284> -----------------------------------------
STACK TRACE


How i can fix this?
< >
Showing 1-12 of 12 comments
Deceptive Pastry  [developer] Sep 14, 2023 @ 11:56am 
Are you using GunFighter Legacy version (Not 2.0)? I think there may be an issue with the launcher trajectory code on Legacy.
Last edited by Deceptive Pastry; Sep 14, 2023 @ 12:00pm
сын матери Sep 14, 2023 @ 12:05pm 
I'm using 2.0, but I've already found what the problem is, it seems the mod is incompatible with mods from "Tsar" (auto mods), if you turn them off then everything is ok. But at the same time the problem is observed only in multiplayer, in single player both mods are enabled and there are no errors, everything works
Deceptive Pastry  [developer] Sep 14, 2023 @ 12:31pm 
I'm using 2.0, but I've already found what the problem is, it seems the mod is incompatible with mods from "Tsar" (auto mods), if you turn them off then everything is ok. But at the same time the problem is observed only in multiplayer, in single player both mods are enabled and there are no errors, everything works

That's extremely helpful because I did a bunch of testing in both versions and couldn't find anything, but also extremely confusing because I'm not sure what the interaction there could be. I think I used the Tsar mods with this one but only in SP. Are you positive that it's disabling only the Tsar mods that allows this radial menu mod to work?
Last edited by Deceptive Pastry; Sep 14, 2023 @ 12:33pm
Deceptive Pastry  [developer] Sep 14, 2023 @ 12:35pm 
Could it be a specific weapon that was throwing errors? Can you confirm if the same weapon you tried using before works now?
Originally posted by Deceptive Pastry:
I'm using 2.0, but I've already found what the problem is, it seems the mod is incompatible with mods from "Tsar" (auto mods), if you turn them off then everything is ok. But at the same time the problem is observed only in multiplayer, in single player both mods are enabled and there are no errors, everything works

That's extremely helpful because I did a bunch of testing in both versions and couldn't find anything, but also extremely confusing because I'm not sure what the interaction there could be. I think I used the Tsar mods with this one but only in SP. Are you positive that it's disabling only the Tsar mods that allows this radial menu mod to work?


>Are you positive that it's disabling only the Tsar mods that allows this radial menu mod to work?
Definitely yes.

I tested this by running the server with the world and character deleted, fresh server startup each time. Affects any weapon, vanilla and modded from Brita's pack
Deceptive Pastry  [developer] Sep 14, 2023 @ 1:29pm 
Ok, I'll have to look more into this. A few people have had this same error and I haven't been able to get anyone to confirm if it's a mod conflict or figure out which mod it is. This at least gives me a lead.
Ok thank you, also I tried reassigning the reload key several times to any other neutral key, had no effect.

I realize that not every modder is obliged to make compatibility with other mods, but mods from Tsar and your mod I consider necessary for my game haha

I have no idea what exactly they could have changed in their auto mods, since about a year ago everything worked fine, but in their collection there are mods like True Actions, which add actions to the radial menu for a long press on the shout key "Q", if need I can try to disable them also one by one and check it out
Oh my god man ignore the whole discussion please, I fixed it because my server config included those mods that depend on an older version of Gunfighter, I ended up with both versions (Legacy and 2.0), I don't understand why this happened because I tested everything separately and came to the conclusion that the problem was with the mods I wrote in the beginning, apparently my config was pulling up the old mods even though I turned them off in the server settings through the game client.

At some point I discovered this because I realized that the whole Brita's weapon pack mod stopped working in the game and I can't even spawn anything through the admin menu from that mod

Even though I've tested everything a dozen times on new clean server configs

It's insane, apologize for this.
Deceptive Pastry  [developer] Sep 17, 2023 @ 10:35pm 
Oh my god man ignore the whole discussion please, I fixed it because my server config included those mods that depend on an older version of Gunfighter, I ended up with both versions (Legacy and 2.0), I don't understand why this happened because I tested everything separately and came to the conclusion that the problem was with the mods I wrote in the beginning, apparently my config was pulling up the old mods even though I turned them off in the server settings through the game client.

At some point I discovered this because I realized that the whole Brita's weapon pack mod stopped working in the game and I can't even spawn anything through the admin menu from that mod

Even though I've tested everything a dozen times on new clean server configs

It's insane, apologize for this.

So, the actual problem was that you were running both Legacy and 2.0 at the same time? That would make more sense, because I have a check to run different code depending on the GunFighter version so if you're running both that could break the mod.

Either way, this is still very helpful and I could totally see a handful of people who have had this issue accidentally running both versions of GunFighter. I'm glad I hadn't started digging into Tsar's mods yet haha.
Last edited by Deceptive Pastry; Sep 17, 2023 @ 10:42pm
Deceptive Pastry  [developer] Sep 17, 2023 @ 10:54pm 
Funnily enough I see there's a deleted thread of someone having the same issue. Worked in SP, broken on server. Questioned how to figure out which version of GunFighter he was on. I wonder if that was exactly the same cause and he figured it out, hence deleted thread.
сын матери Sep 18, 2023 @ 11:55am 
Yeah, it's weird that the server is forcing both versions of Gunfighter for some reason, even if the Legacy version is turned off. I had to turn off the Legacy version several times using the same method, it worked about 6-7 times


I'd delete this thread too, but I don't know how :roflanFace: . You could leave it as a reminder that someone can fix things on it's own, at least at this point in time
Deceptive Pastry  [developer] Sep 18, 2023 @ 9:07pm 
I would leave it up, maybe with a quick edit that your issue seemed to be caused by having both Legacy and 2.0 enabled at the same time. It's not been a super common issue but it's pretty much one of the only errors people seem to have been having, so maybe this will help a few people.
< >
Showing 1-12 of 12 comments
Per page: 1530 50