Project Zomboid

Project Zomboid

[B41]Remastered Kitsune's Crossbow Mod (Sound Fix + Double shot at a time Fix)
This topic has been locked
Edin 25 Jan, 2023 @ 11:13am
Infinite Reloads and Unloads are back!
Hi!

I don't know if you're still maintaining this patch-mod, but I believe I've discovered an issue with this patched version and using it together with the Gunfighter mod: After equipping any one of the Gunfighter firearms you will get stuck infinitely racking/trying to load the weapon when you press the reload-button (unless you use Esc to stop it). The mod works perfectly fine up to that point.

From what I've seen this might have been an issue these crossbow mods experienced in the past and I'm unsure as to how go about solving it; my limited knowledge of Lua has let me suss out that it seems like the mod is trying to set the ammo count of a null-field to 0 for some reason?

The bug appears immediately after equipping a gunfighter weapon in any hand but isn't there for other crossbows I haven't touched yet. It also gets fixed by reloading the save, but doing that every time I want to crossbow instead of Gunfighter is...


If you are still maintaining the mod I would be very glad for assistance in figuring this out.




For the bug and its associated error message, see below:
STACK TRACE ----------------------------------------- function: unloadAmmo -- file: ISKCMReloadCrossbowAction.lua line # 305 | MOD: Remastered Kitsune's Crossbow Mod (Sound Fix + Double shot at a time Fix) function: animEvent -- file: ISKCMReloadCrossbowAction.lua line # 154 | MOD: Remastered Kitsune's Crossbow Mod (Sound Fix + Double shot at a time Fix) LOG : General , 1674673267874> couldn't find item null LOG : General , 1674673267875> ------------------------------------------------------------- attempted index: setCurrentAmmoCount of non-table: null LOG : General , 1674673267876> ----------------------------------------- STACK TRACE ----------------------------------------- function: unloadAmmo -- file: ISKCMReloadCrossbowAction.lua line # 305 | MOD: Remastered Kitsune's Crossbow Mod (Sound Fix + Double shot at a time Fix) function: animEvent -- file: ISKCMReloadCrossbowAction.lua line # 154 | MOD: Remastered Kitsune's Crossbow Mod (Sound Fix + Double shot at a time Fix) ERROR: General , 1674673267876> ExceptionLogger.logException> Exception thrown java.lang.RuntimeException: attempted index: setCurrentAmmoCount of non-table: null at KahluaThread.tableget line:1689. ERROR: General , 1674673267877> DebugLogStream.printException> Stack trace: java.lang.RuntimeException: attempted index: setCurrentAmmoCount of non-table: null
< >
Showing 1-1 of 1 comments
Alximik  [developer] 25 May @ 6:12am 
Hi Edin, I was not able to find this issue, I have fixed the issue with infinite ammo and maybe it fixed your problem as well, if not, try to exclude all mods except these, if you encounter this problem again, feel free to write about it.
< >
Showing 1-1 of 1 comments
Per page: 1530 50