Project Zomboid

Project Zomboid

Auto ChopTrees & Get All Logs
135 Comments
Cosmo 21 Jul @ 4:17pm 
Hey @jbdiablo i fixed this conflict by placing "Lantern mod first", than "bodily function" and "auto logging" last. Working without any errors.
jbdiablo  [author] 21 Jul @ 4:09pm 
Cosmo - This version of Auto Logging is not compatible with the Guinea Pig Edition (GPE) linked in the description. You should only run one or the other. I'm assuming you're running, or were running, the GPE since that version messed with the ISGrabItemAction function which was most likely causing your error. That version has been updated to play nice when other modders muck around with vanilla functions and classes.
Cosmo 21 Jul @ 2:52pm 
@jbdiablo im playing on the latest non stable version of the game if u taking about this.
So these two mods cannot work together?
jbdiablo  [author] 21 Jul @ 7:34am 
@Cosmo - GPE is the other version that is 42 specific that's linked in the description. That version messed with ISGrabItemAction but has been patched so it should work now.

This version on this page doesn't touch that function and should be compatible.
Cosmo 20 Jul @ 7:38pm 
Hey @jbdiablo not sure what u mean "GPE version?"
jbdiablo  [author] 20 Jul @ 5:15pm 
@Cosmo - just to be sure, this error is on the other GPE version?
jbdiablo  [author] 20 Jul @ 4:32pm 
@Cosmo - because we're both mucking with ISGrabItemAction
Cosmo 20 Jul @ 3:03pm 
@jbdiablo Dude i dont know why but seems like this mode cause the conflict:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?l=ukrainian&id=3495594275
Cosmo 20 Jul @ 2:06pm 
Apparently some mod started to conflict, because without mods everything works.
Cosmo 20 Jul @ 1:54pm 
I would be grateful if you could take a look. Now when it tries to pickup the first log it just hangs, not permanently but it can't get the log in the inventory and errors start pouring in.
Cosmo 20 Jul @ 1:50pm 
at zombie.MovingObjectUpdateScheduler.update(MovingObjectUpdateScheduler.java:158)
at zombie.iso.IsoCell.ProcessObjects(IsoCell.java:3054)
at zombie.iso.IsoCell.updateInternal(IsoCell.java:5959)
at zombie.iso.IsoCell.update(IsoCell.java:5892)
at zombie.iso.IsoWorld.updateWorld(IsoWorld.java:4197)
at zombie.iso.IsoWorld.updateInternal(IsoWorld.java:4317)
at zombie.iso.IsoWorld.update(IsoWorld.java:4231)
at zombie.gameStates.IngameState.updateInternal(IngameState.java:1699)
at zombie.gameStates.IngameState.update(IngameState.java:1464)
at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:87)
at zombie.GameWindow.logic(GameWindow.java:382)
at zombie.GameWindow.frameStep(GameWindow.java:916)
at zombie.GameWindow.mainThreadStep(GameWindow.java:642)
at zombie.MainThread.mainLoop(MainThread.java:76)
at java.base/java.lang.Thread.run(Unknown Source)
`
Cosmo 20 Jul @ 1:50pm 
at zombie.characters.IsoGameCharacter.updateInternal(IsoGameCharacter.java:10617)
at zombie.characters.IsoGameCharacter.update(IsoGameCharacter.java:10255)
at zombie.characters.IsoPlayer.updateInternal1(IsoPlayer.java:2287)
at zombie.characters.IsoPlayer.update(IsoPlayer.java:2266)
at zombie.MovingObjectUpdateSchedulerUpdateBucket.update(MovingObjectUpdateSchedulerUpdateBucket.java:71)
Cosmo 20 Jul @ 1:50pm 
Third:

`function: transferItem -- file: BodilyFunctions.lua line # 1235 | MOD: Bodily Functions (0.12.3)
function: transferItem -- file: LanternFix_actions.lua line # 221 | MOD: [B42] Lantern Fix
function: transferItem -- file: TMRadio.lua line # 1096 | MOD: True Music Radio
function: perform -- file: ISGrabItemAction.lua line # 105 | Vanilla
java.lang.RuntimeException: Object tried to call nil in transferItem
at se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:100)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:954)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:173)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1963)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1760)
at se.krka.kahlua.integration.LuaCaller.pcall(LuaCaller.java:85)
at zombie.characters.CharacterTimedActions.LuaTimedActionNew.perform(LuaTimedActionNew.java:143)
Cosmo 20 Jul @ 1:49pm 
at zombie.iso.IsoWorld.updateInternal(IsoWorld.java:4317)
at zombie.iso.IsoWorld.update(IsoWorld.java:4231)
at zombie.gameStates.IngameState.updateInternal(IngameState.java:1699)
at zombie.gameStates.IngameState.update(IngameState.java:1464)
at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:87)
at zombie.GameWindow.logic(GameWindow.java:382)
at zombie.GameWindow.frameStep(GameWindow.java:916)
at zombie.GameWindow.mainThreadStep(GameWindow.java:642)
at zombie.MainThread.mainLoop(MainThread.java:76)
at java.base/java.lang.Thread.run(Unknown Source)
`
Cosmo 20 Jul @ 1:49pm 
at zombie.characters.IsoGameCharacter.updateInternal(IsoGameCharacter.java:10617)
at zombie.characters.IsoGameCharacter.update(IsoGameCharacter.java:10255)
at zombie.characters.IsoPlayer.updateInternal1(IsoPlayer.java:2287)
at zombie.characters.IsoPlayer.update(IsoPlayer.java:2266)
at zombie.MovingObjectUpdateSchedulerUpdateBucket.update(MovingObjectUpdateSchedulerUpdateBucket.java:71)
at zombie.MovingObjectUpdateScheduler.update(MovingObjectUpdateScheduler.java:158)
at zombie.iso.IsoCell.ProcessObjects(IsoCell.java:3054)
at zombie.iso.IsoCell.updateInternal(IsoCell.java:5959)
at zombie.iso.IsoCell.update(IsoCell.java:5892)
at zombie.iso.IsoWorld.updateWorld(IsoWorld.java:4197)
Cosmo 20 Jul @ 1:49pm 
Second:

`attempted index: items of non-table: null
function: perform -- file: ISGrabItemAction.lua line # 74 | Vanilla
java.lang.RuntimeException: attempted index: items of non-table: null
at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1667)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:479)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:173)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1963)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1760)
at se.krka.kahlua.integration.LuaCaller.pcall(LuaCaller.java:85)
at zombie.characters.CharacterTimedActions.LuaTimedActionNew.perform(LuaTimedActionNew.java:143)
Cosmo 20 Jul @ 1:48pm 
Hey @jbdiablo Today, when collecting logs, 3 different errors came up, there was some kind of conflict along the way, but before, there seemed to be no problems.

First one:


`function: perform -- file: ISGrabItemAction.lua line # 74 | Vanilla
`
Cosmo 20 Jul @ 1:46pm 
at zombie.characters.CharacterTimedActions.LuaTimedActionNew.perform(LuaTimedActionNew.java:143)
at zombie.characters.IsoGameCharacter.updateInternal(IsoGameCharacter.java:10617)
at zombie.characters.IsoGameCharacter.update(IsoGameCharacter.java:10255)
at zombie.characters.IsoPlayer.updateInternal1(IsoPlayer.java:2287)
at zombie.characters.IsoPlayer.update(IsoPlayer.java:2266)
at zombie.MovingObjectUpdateSchedulerUpdateBucket.update(MovingObjectUpdateSchedulerUpdateBucket.java:71)
at zombie.MovingObjectUpdateScheduler.update(MovingObjectUpdateScheduler.java:158)
at zombie.iso.IsoCell.ProcessObjects(IsoCell.java:3054)
at zombie.iso.IsoCell.updateInternal(IsoCell.java:5959)
at zombie.iso.IsoCell.update(IsoCell.java:5892)
at zombie.iso.IsoWorld.updateWorld(IsoWorld.java:4197)
at zombie.iso.IsoWorld.updateInternal(IsoWorld.java:4317)
at zombie.iso.IsoWorld.update(IsoWorld.java:4231)
Cosmo 19 Jul @ 12:42pm 
@jbdiablo u da best :steamthumbsup:
jbdiablo  [author] 19 Jul @ 11:08am 
Auto Logging GPE is still active for anyone curious on B42:

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3468843760
jbdiablo  [author] 19 Jul @ 10:43am 
shit yea, I don't have mod options on this version. ok, I'll get on it. I've been playing with the rewrite so much I forgot what was uploaded.
Cosmo 19 Jul @ 10:06am 
@jbdiablo I see)
jbdiablo  [author] 19 Jul @ 10:03am 
@Cosmo I don't think you're criticizing, I'm just making sure I understand your suggestions. I'll fire zomboid up and check the mod options. I might be misremembering how I set those up.

Also, I have a rewrite that's about 80% done but time to finish it is hard to come by right now.
Cosmo 19 Jul @ 9:54am 
I'm not criticizing your work in any way, I'm grateful for a convenient mod that improves the gaming experience. As they say, your mod, your rules.
jbdiablo  [author] 19 Jul @ 9:40am 
@Cosmo - for the error, it looks like it lost the "drop off square". I can't even fathom how that would happen. If you get it again, let me know.

as to the options, are the mod options working correctly? If Always Show Menu isn't selected, it should only show options for what you can do with what is on that square.

if option.condition or alwaysShowMenu then
subMenu:addOption(getText(option.translate), worldObjects, option.action, playerObj)
showMenu = true
end
Cosmo 19 Jul @ 7:54am 
@jbdiablo Great mod but I would like to suggest making two options:
1) Like you have now, call the menu by pressing the right mouse button
2) Like you have now, call the menu by pressing the right mouse button but on the tree like with "Cut down tree" menu To avoid overloading the pop-up menu
3) Remove the option from the pop-up for me, and instead make a separate button on the side like in the mod FreeYourHands
Cosmo 19 Jul @ 4:58am 
@jbdiablo trying to get another error but for now without problems
Cosmo 19 Jul @ 4:51am 
at zombie.MovingObjectUpdateScheduler.update(MovingObjectUpdateScheduler.java:158)
at zombie.iso.IsoCell.ProcessObjects(IsoCell.java:3054)
at zombie.iso.IsoCell.updateInternal(IsoCell.java:5959)
at zombie.iso.IsoCell.update(IsoCell.java:5892)
at zombie.iso.IsoWorld.updateWorld(IsoWorld.java:4197)
at zombie.iso.IsoWorld.updateInternal(IsoWorld.java:4317)
at zombie.iso.IsoWorld.update(IsoWorld.java:4231)
at zombie.gameStates.IngameState.updateInternal(IngameState.java:1699)
at zombie.gameStates.IngameState.update(IngameState.java:1464)
at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:87)
at zombie.GameWindow.logic(GameWindow.java:382)
at zombie.GameWindow.frameStep(GameWindow.java:916)
at zombie.GameWindow.mainThreadStep(GameWindow.java:642)
at zombie.MainThread.mainLoop(MainThread.java:76)
at java.base/java.lang.Thread.run(Unknown Source)
`
Cosmo 19 Jul @ 4:51am 
zombie.characters.CharacterTimedActions.LuaTimedActionNew.perform(LuaTimedActionNew.java:143)
at zombie.characters.IsoGameCharacter.updateInternal(IsoGameCharacter.java:10617)
at zombie.characters.IsoGameCharacter.update(IsoGameCharacter.java:10255)
at zombie.characters.IsoPlayer.updateInternal1(IsoPlayer.java:2287)
at zombie.characters.IsoPlayer.update(IsoPlayer.java:2266)
at zombie.MovingObjectUpdateSchedulerUpdateBucket.update(MovingObjectUpdateSchedulerUpdateBucket.java:71)
Cosmo 19 Jul @ 4:51am 
Hey @jbdiablo found a bug
`attempted index: Is of non-table: null
function: getCorrectSquareForWall -- file: luautils.lua line # 186 | Vanilla
function: walkAdj -- file: luautils.lua line # 122 | Vanilla
function: dropLogs -- file: GatherLogs.lua line # 66 | MOD: Auto Logging
function: setOnComplete -- file: GatherLogs.lua line # 37 | MOD: Auto Logging
function: perform -- file: WalkToTimedAction.lua line # 65 | Vanilla
java.lang.RuntimeException: attempted index: Is of non-table: null
at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1667)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:624)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:173)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1963)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1760)
at se.krka.kahlua.integration.LuaCaller.pcall(LuaCaller.java:85)
at
dragonsphotoworks 27 May @ 5:52pm 
Check out that auto looting mod. It selects bodies, storages and such. Maybe it could help you? And ya I agree this is a required mod :-)
jbdiablo  [author] 27 May @ 5:27pm 
@dragonsphotoworks It's needed. I need to find a good way to highlight the vehicle or trunk when the mouse is over it to be more intuitive.
dragonsphotoworks 27 May @ 5:23pm 
Awesome I cant wait! Filling trunk is deff a benefit i been wanting for ages :-)
jbdiablo  [author] 27 May @ 5:17pm 
All these changes should make it easier to add gathering other goodies in mass. When that's all done, I'll think about adding "packaging" ie stacks of wood, branches, bundles of grass, etc. I'd like to see a cord of logs and some bales of hay outside my humble abode.

Oh, the switch to ISInventoryTransferAction to drop items has a wrench it in since it checks if the floor has room for what you're dropping - which is limited to 50 kg/lb/whatevs. I might switch it back to where you chuck them on the ground or maybe bork the floorHasRoom check.

Cheers!
jbdiablo  [author] 27 May @ 5:17pm 
Just an update on the coming-soon update:

1) You can pick up more than 1 item at a time.
2) You can fill your backpacks until your little back can't take it no more - 50 max in vanilla.
3) If you pick a drop-off square with a vehicle trunk/truck bed or container(s) and you will fill those containers first. Even if there's a stack of crates, it will fill them full and drop the rest on the ground.

I need to add "fill bags/backpacks on drop-off square" for that bit to be complete.
Vindictive161 21 May @ 5:48am 
@jbduablo hey i appreciate it, and completely understand. just working out some mods for a long term play through
dragonsphotoworks 21 May @ 12:02am 
Tested again and its only a few logs at time.. but it is moving them again :-)
dragonsphotoworks 20 May @ 11:48pm 
Tried today and it is moving a couple branches at a time. Even though can hold a lot more weight. And still locks up on logs :-(

Take your time though. Real life comes first. I am able to go afk for some of my collecting so that better then nothing :-)
jbdiablo  [author] 20 May @ 10:13am 
@Vindictive161 Yep, I was working on this. The rewrite is about half done and I plan on it finishing when I can - but my house is still shredded from a hail storm(and the insurance company can eat me) plus other IRL shit just all putting me in a "not-in-the-mood" mindset. And my business is getting in to the busy season and that's taking up a bunch of time and my smooth-brain power.

I'll slice out and upload the new speed-hack and add it to this version so time doesn't keep resetting.
Vindictive161 19 May @ 4:56pm 
is there a way to make it so you can designate a container? such as a trunk to the logging truck your using? Also is there a way or another mod to keep time sped up while collecting logs?
FLN1 23 Apr @ 1:59am 
In case anyone else is reading the comments, yes using the GPE version you just linked WITH the JB_ASSUtils, I was incorrect about that in my previous comment.
jbdiablo  [author] 22 Apr @ 7:46pm 
FLN1 22 Apr @ 6:19pm 
Should also mention that I wasn't subbed to JB_ASSUtils when testing and was in debug mode.
FLN1 22 Apr @ 6:18pm 
Looking good on my end, chopping and gathering seem to work great. Fast-forward x1 doesn't seem to stay when gathering, that's the only thing I've noticed so far. Thanks and well done on the quick fixes!
FLN1 22 Apr @ 6:04pm 
Sweet, I'll try this out now and let you know how it goes. Also, it never broke my game, just the main menu, so I guess I got lucky? Only had to unsub to bring the menu back so no worries.
jbdiablo  [author] 22 Apr @ 5:34pm 
@dragonsphotoworks @FLN1 I appreciate y'all! It feels bad when you're the reason someone's game is busted. Hopefully all is fixed now. I'll let the GPE Edition go until tomorrow and see if anyone gets any errors. I might still fork this at some point for an "Easy Mode" mod.
jbdiablo  [author] 22 Apr @ 5:10pm 
Guinea Pig Edition - It should be working fine now. You may need to unsubscribe/subscribe to JB_ASSUtils if you get any red box errors. Also, the selection color picker on the right-click is not going to work. The change color is in mod options now.

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3468843760
FLN1 22 Apr @ 4:38pm 
The awesome one here is you my dude, you're the one who's putting in all the effort after all. Much thanks and I look forward to trying out the new fix!
jbdiablo  [author] 22 Apr @ 3:56pm 
You guys are awesome! I'm pretty sure I'm just setting the color wrong in mod options when the game loads. I have a guinea pig mod I'll share here in a bit when I get this fixed.
FLN1 22 Apr @ 2:32pm 
Here's what I was getting last night, might be a different issue so I figured I might as well throw it up just in case.

https://pastebin.com/HcDBg7zE