Jump to content

ethanwdp

Member
  • Posts

    584
  • Joined

  • Last visited

Everything posted by ethanwdp

  1. Yes. Thanks, I'll add that to the workshop FAQ.
  2. Refactoring the Vehicle submenu creation loop into a separate function seems to have fixed the error, so I guess now is a good time to get around to that rewrite I keep procrastinating on. Thank you so much for your help.
  3. That's why I made this thread, haha. It kinda sucks that some of my mod's users have turned to alternatives such as NF because of this issue, but I'm really not sure how to fix it.
  4. When loading my Cheat Menu mod with the game's Debug Mode enabled, I get the following error: LOG : Lua, 1581544592023> LuaManager.RunLua> Loading: C:/Users/Owner_/Zomboid/Workshop/Cheat Menu/Contents/mods/Cheat Menu/media/lua/client/ISUI/CheatCoreForCheatMenu.lua LOG : General, 1581544592025> [CHEAT MENU] CheatCore successfully loaded LOG : Lua, 1581544592026> LuaManager.RunLua> Loading: C:/Users/Owner_/Zomboid/Workshop/Cheat Menu/Contents/mods/Cheat Menu/media/lua/client/ISUI/CheatMenuCompassPresets.lua LOG : Lua, 1581544592027> LuaManager.RunLua> Loading: C:/Users/Owner_/Zomboid/Workshop/Cheat Menu/Contents/mods/Cheat Menu/media/lua/client/ISUI/CheatMenuHomeWindow.lua LOG : Lua, 1581544592027> LuaManager.RunLua> Loading: C:/Users/Owner_/Zomboid/Workshop/Cheat Menu/Contents/mods/Cheat Menu/media/lua/client/ISUI/CheatMenuTerraformTiles.lua LOG : Lua, 1581544592028> LuaManager.RunLua> Loading: C:/Users/Owner_/Zomboid/Workshop/Cheat Menu/Contents/mods/Cheat Menu/media/lua/client/ISUI/CrucibleUI/crucibleMain.lua LOG : Lua, 1581544592029> LuaManager.RunLua> Loading: C:/Users/Owner_/Zomboid/Workshop/Cheat Menu/Contents/mods/Cheat Menu/media/lua/client/ISUI/GenericInputWindow.lua LOG : Lua, 1581544592029> LuaManager.RunLua> Loading: C:/Users/Owner_/Zomboid/Workshop/Cheat Menu/Contents/mods/Cheat Menu/media/lua/client/ISUI/ISUICheatMenu.lua Feb 12, 2020 4:56:32 PM zombie.Lua.LuaManager RunLua SEVERE: Error found in LUA file: C:/Users/Owner_/Zomboid/Workshop/Cheat Menu/Contents/mods/Cheat Menu/media/lua/client/ISUI/ISUICheatMenu.lua ERROR: General, 1581544592035> ExceptionLogger.logException> Exception thrown java.lang.ArrayIndexOutOfBoundsException: 200 at LexState.new_localvar line:762. ERROR: General, 1581544592035> DebugLogStream.printException> Stack trace: java.lang.ArrayIndexOutOfBoundsException: 200 at org.luaj.kahluafork.compiler.LexState.new_localvar(LexState.java:762) at org.luaj.kahluafork.compiler.LexState.localstat(LexState.java:1648) at org.luaj.kahluafork.compiler.LexState.statement(LexState.java:1767) at org.luaj.kahluafork.compiler.LexState.chunk(LexState.java:1791) at org.luaj.kahluafork.compiler.LexState.block(LexState.java:1351) at org.luaj.kahluafork.compiler.LexState.test_then_block(LexState.java:1600) at org.luaj.kahluafork.compiler.LexState.ifstat(LexState.java:1611) at org.luaj.kahluafork.compiler.LexState.statement(LexState.java:1737) at org.luaj.kahluafork.compiler.LexState.chunk(LexState.java:1791) at org.luaj.kahluafork.compiler.LexState.body(LexState.java:1027) at org.luaj.kahluafork.compiler.LexState.simpleexp(LexState.java:1208) at org.luaj.kahluafork.compiler.LexState.subexpr(LexState.java:1304) at org.luaj.kahluafork.compiler.LexState.expr(LexState.java:1322) at org.luaj.kahluafork.compiler.LexState.explist1(LexState.java:1037) at org.luaj.kahluafork.compiler.LexState.assignment(LexState.java:1404) at org.luaj.kahluafork.compiler.LexState.exprstat(LexState.java:1697) at org.luaj.kahluafork.compiler.LexState.statement(LexState.java:1780) at org.luaj.kahluafork.compiler.LexState.chunk(LexState.java:1791) at org.luaj.kahluafork.compiler.LexState.compile(LexState.java:199) at se.krka.kahlua.luaj.compiler.LuaCompiler.loadis(LuaCompiler.java:132) at se.krka.kahlua.luaj.compiler.LuaCompiler.loadis(LuaCompiler.java:124) at zombie.Lua.LuaManager.RunLua(LuaManager.java:461) at zombie.Lua.LuaManager.RunLua(LuaManager.java:431) at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:279) at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:206) at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:324) at zombie.GameWindow.init(GameWindow.java:1008) at zombie.GameWindow.mainThreadInit(GameWindow.java:523) at zombie.GameWindow.mainThread(GameWindow.java:463) at java.lang.Thread.run(Thread.java:745) It doesn't specify a line, but if I'm reading the error correctly then there's something about one of my if/then expressions that the compiler doesn't like. This only happens when Debug Mode is enabled, so I'm guessing that there's a conditional for the Debug flag somewhere in the game's code that modifies how the compiler handles expressions. Some insight on how to solve this would be greatly appreciated. The Lua file that's encountering the error is over 600 lines long and I don't really expect anyone to dig through it, but I've attached it for good measure. ISUICheatMenu.lua
  5. I think the files you're looking for are in (game folder)/zombie/popman. All of the files in this folder have the .class extension, which can be viewed with a Java decompiler.
  6. I'm not sure if this is a bug with LuaManager or if I'm doing something wrong, but calling addVehicle spits out an invocation error on 41.21. The vehicle seems to be spawned correctly, but it disappears when the player leaves the cell. On Build 40 neither the error nor the despawning occurs. Code to replicate the error: addVehicle("Base.SmallCar") -- spawns a Chevalier Dart The error:
  7. Use Perks.FromString (or Perks.fromIndex if you're iterating numerically). I don't know why, but accessing Perks like a regular table & passing it to a Kahlua function results in errors. for i, k in pairs(Perks) do local perk = Perks.FromString(i) if PerkFactory.getPerk(perk) ~= nil then getPlayer():getXp():AddXP(perk,10) end end Some of the "perks" (i.e Agility) are categories, so I'd recommend using PerkFactory.getPerk to ensure that the perk exists.
  8. It's most likely a problem on your end, as it works fine for me. If you don't mind, could you load into a save with Cheat Menu enabled & send me the console.txt after closing the game?
  9. Great update! Is there any way to get the console back? Being able to print stuff to the console while testing mods was super useful.
  10. Apologies for the late reply, I don't check this forum much. I've updated the description to include another manual download link.
  11. Updated to V2.7.1 Changelog: Prevent Death now functions properly, courtesy of Slok. Thanks to his code contribution, nothing short of falling several stories will kill you. Fixed quite a few bugs for Warp Time, it now correctly sets days/months. Changed the amount of years in Warp Time from 1 - 20 (additive) to 1993 - 2077. Fixed a minor bug in the Vehicles submenu that added engine power/loudness/quality setters to every menu in the Under-the-hood category.
  12. ethanwdp

    Mind Mod

    Glad to see this mod is back, I missed having intact windows in my bases.
  13. Updated to V2.7. Changelog: Added Vehicle Godmode. Added Repair All Parts, Add Key To Inventory, Permanently Remove Vehicle, and Toggle Hotwire. Added vehicle part editing, every part on the vehicle can now be edited. Added Freeze Day/Night Cycle. Redid the UI elements so that they now scale properly for different resolutions. Changed how Stats Toggle works, mostly just a behind-the-scenes change. Tidied up CheatCoreForCheatMenu.lua.
  14. It works with every version from 32 and onwards. It's modular, so if one feature breaks the rest will still be working.
  15. Cheat Menu has Instant Actions which makes all item transfers complete instantly, as well as building things (don't think it works on crafting, since there's a separate function for that in the mod).
  16. Easily fixed by having this, no? local first = ZombRand(sec+1)
  17. minor efficiency tweak: local function retPopularity(username) local sec = ZombRand(11); local first = ZombRand(sec); -- ensures that it will always be within sec. example: sec is 7, first will be number between 0 and sec local userPop = popularity[username] .. first .. "/" .. sec; return userPop; end retPopularity("snakeman")
  18. Both zombies and time are server-sided, unfortunately. Cheat Menu spawns them client-sided, and as far as I'm aware there is no way for me to spawn them server-sided.
  19. Instead of implementing structural integrity or percentage-based chances for them to break while climbing, why not just have zeds destroy them? Every sheet rope would have a health bar to it. A zombie would attack it a couple of times, and it would get torn down. (Apologies if this has already been suggested, the search bar is a bit wonky.)
  20. Yeah, it's been out for about a year now
  21. Strange... 33.20 must have something funky going on, since this issue seems to only occur on that version. Thankfully, it appears to be fixed on newer versions (34.26 and above). Again, I'd like to thank you for your input on this issue!
  22. I may have figured out why this issue is occurring. Looking back at previous Cheat Menu versions, I called Events.OnFillWorldObjectContextMenu.Add(ISUICheatMenu.createMenuEntries) in ISUICheatMenu.lua. When I added the admin check, I moved that over to the CheatCoreForCheatMenu.lua file. It seems that ISUICheatMenu.lua is loaded after CheatCoreForCheatMenu.lua, and I was calling Events.OnFillWorldObjectContextMenu.Add(ISUICheatMenu.createMenuEntries) too early. As for melee insta kill erroring out, I've realized a flaw I made - it checks for the primary weapon, and not if it's equipped in both hands. Keep in mind that insta-kill melee is over a year old, back in 1.3 I believe was when I added it. I barely knew how to code then, and I'm much better with lua than I was before. As such, I'll have to regut it. The patches for both of those issues will be out soon. I've found out how to fix the infinite menu error, and I'll get to work on melee-insta-kill when I'm done writing this. I'd also like to second to express my thanks. These issues have been in the mod for a while, and you've helped me exponentially with those logs. Since the fixes will be in the next version, and the infinite menu error is rather dire, I'll upload a corrected version of Cheat Menu that has the admin checking code stripped and with the infinite menu error fixed. https://drive.google.com/open?id=0B4TTdnrg9gSLMU1CSmxmYU9jRDQ Edit: V2.5.1 is now out. Please let me know if you have issues with it.
  23. Strange... It might be a problem with a specific game version.
  24. I'm stumped as to why this is happening. It seems to only happen to some people, and I don't see a pattern to this. I've received numerous reports from several different users about this issue, yet I cannot reproduce the problem on any of the systems I've tried it on and neither can my friends. I've opened a thread in the Mods Help section, as I'm not too sure what to do. I have isolated the problem to the admin checking code, but due to the spontaneous nature of this bug I'm unable to find any error in the code that's responsible for this. What's happening is that, for some reason, the game doesn't have the Events.OnTick.Remove function which I use to remove the admin check when it completes successfully so as to not result in this cloning bug. I've put a link below to a modified version of Cheat Menu V2.5 that doesn't have the admin check, and thus shouldn't have this issue. Please let me know if it works. https://drive.google.com/open?id=0B4TTdnrg9gSLVVJNT25tRmxsNTg
×
×
  • Create New...