Project Zomboid

Project Zomboid

Magazine API
4 Comments
Tank5168 9 Jun @ 12:52am 
function: isValid -- file: TimedActions_Override.lua line # 15 | MOD: MagazineAPI
Callframe at: StartAction
function: begin -- file: ISBaseTimedAction.lua line # 85 | Vanilla
function: onCompleted -- file: ISTimedActionQueue.lua line # 87 | Vanilla
function: onCompleted -- file: ShortcutItem.lua line # 45 | MOD: TheShortcut
function: perform -- file: ISBaseTimedAction.lua line # 66 | Vanilla
function: perform -- file: ISEquipWeaponAction.lua line # 139 | Vanilla

ERROR: General f:339737, t:1749455306002> ExceptionLogger.logException> Exception thrown
java.lang.RuntimeException: __len not defined for operand at KahluaUtil.fail(KahluaUtil.java:100).
N0wh3re  [author] 24 Mar @ 6:56am 
@+_:_KingGodder_:_+
Assumeyou are whom in TIS discord, I left a reply in mod_develop channel.
Don't have hard time alone. you can share your issue in there. :)
+_:_KingGodder_:_+ 24 Mar @ 3:26am 
Hey man, dont know if you'll see this... can you rewrite this in B41? I want to make it work with CJ, I don't know anything about coding and am having some hard times.
Sir Doggy Jvla 9 Mar @ 7:25am 
Hello, I'm the lead of Project Modding for the official wiki and I documented your framework on it for other modders to more easily find. Don't hesitate to modify, adjust or add informations
https://pzwiki.net/wiki/Magazine_API


I would also like to give some tips with your framework which would improve it, notably the use of modules:
https://pzwiki.net/wiki/Lua_(language)#Modules

Overall everything looks clean however ! I noticed you used some deprecated functions (empty functions now) from your API in your example mod but you probably already know about that haha