Improved Auto-Explore and Rest

A place to post your add ons and ideas for them

Moderator: Moderator

Message
Author
sim
Low Yeek
Posts: 5
Joined: Mon Sep 07, 2015 6:53 am

Re: Improved Auto-Explore and Rest

#16 Post by sim »

Dracos wrote:Okay, I see a collision in both overriding the RUN_AUTO with different local functions. Patched locally.

Is that what you're running into? Investigating and testing around that, but if there's other visible misses, let me know.
it certainly sounds like it! resting respects everything in both addons, but auto-explore and running do not respect faster RRE. this seems to be the only conflict I've found so far. as I mentioned earlier, everything else works cleanly.

Dracos
Archmage
Posts: 405
Joined: Sun Jul 13, 2014 4:09 pm

Re: Improved Auto-Explore and Rest

#17 Post by Dracos »

Okay, San0ix, based on:

[ENGINE] Setting requested FPS to 3 (333 ms)
[LOG] Resting starts...
[LOG] Norgan's skin returns to normal.
[LOG] #00ff00##UID:1199:0#Talent Distortion Bolt is ready to use.
[ENGINE] Setting requested FPS to 60 (16 ms)
[LOG] Rested for 28 turns (stop reason: all resources and life at maximum).


I think it is working for rests for you. I don't see any Run examples in the log, but I'll fling up what's current and hopefully it fixes things, if not, we'll try again.

Edit:

New version up, give it a whirl.
ToME Tips - auto-generated spoilers for ToME. - someone else made. I find super awesome, so spreading as well.

sim
Low Yeek
Posts: 5
Joined: Mon Sep 07, 2015 6:53 am

Re: Improved Auto-Explore and Rest

#18 Post by sim »

very nice! thank you so much for this update!

teasquire
Low Yeek
Posts: 8
Joined: Sun Jun 16, 2013 2:23 am

Re: Improved Auto-Explore and Rest

#19 Post by teasquire »

Would it be possible to add an option to ignore very small amount of damage? I'm a Ghoul and want to use the Tree of Life but it damages me 2 points each turn and interrupts my auto exploring.

Dracos
Archmage
Posts: 405
Joined: Sun Jul 13, 2014 4:09 pm

Re: Improved Auto-Explore and Rest

#20 Post by Dracos »

Hmm, very small damage should be ignored. Though maybe I put that in only for resting.

Share a log of the event and yeah, certainly.
ToME Tips - auto-generated spoilers for ToME. - someone else made. I find super awesome, so spreading as well.

teasquire
Low Yeek
Posts: 8
Joined: Sun Jun 16, 2013 2:23 am

Re: Improved Auto-Explore and Rest

#21 Post by teasquire »

This is what the game log gives when I try to auto-explore with the Tree of Life equipped as a Ghoul:
Saving game...
Resting starts...
Rested for 0 turns (stop reason: all resources and life at maximum).
Saving done.
Ran for 2 turns (stop reason: taken damage).
Spiffy McGong III hits Spiffy McGong for 2 nature damage.
Is there any other logs you need?

Dracos
Archmage
Posts: 405
Joined: Sun Jul 13, 2014 4:09 pm

Re: Improved Auto-Explore and Rest

#22 Post by Dracos »

Nope. Will take a look :)
ToME Tips - auto-generated spoilers for ToME. - someone else made. I find super awesome, so spreading as well.

HousePet
Perspiring Physicist
Posts: 6215
Joined: Sun Sep 09, 2012 7:43 am

Re: Improved Auto-Explore and Rest

#23 Post by HousePet »

How about don't equip the Tree of Life on an undead...
My feedback meter decays into coding. Give me feedback and I make mods.

Dracos
Archmage
Posts: 405
Joined: Sun Jul 13, 2014 4:09 pm

Re: Improved Auto-Explore and Rest

#24 Post by Dracos »

Yeah, could be said, but then there's also a lot for saying "I don't care about these tiny traps in my way" when doing a high regen build as berserker.

Anyhow, both resting and explore now optionally have ignore small damage, both with safety margins where they'll always stop to make sure you don't just get yourself mauled to death.
ToME Tips - auto-generated spoilers for ToME. - someone else made. I find super awesome, so spreading as well.

Kiralio
Wayist
Posts: 16
Joined: Wed Mar 18, 2015 6:46 am

Re: Improved Auto-Explore and Rest

#25 Post by Kiralio »

This broke pretty badly with 1.4.0, I can't even start a new campaign with it active.

It spawned an error which I can easily reproduce, but I can't file the log file where it was recorded, if any -- how can I do that?

edit: Nevermind, I figured it out -- looks like it wasn't generating new text logs until I ran the game as admin. Here it is:

Code: Select all

Lua Error: /hooks/improved-restauto/load.lua:55: attempt to index field 'engine' (a nil value)
	At [C]:-1 __index
	At /hooks/improved-restauto/load.lua:55 
	At [string "return function(l, self, data) local ok=false..."]:1 triggerHook
	At /mod/class/Game.lua:94 run
	At /engine/Module.lua:1034 instanciate
	At /engine/utils.lua:2221 showMainMenu
	At /engine/init.lua:165 
	At [C]:-1 dofile
	At /loader/init.lua:217 

Dracos
Archmage
Posts: 405
Joined: Sun Jul 13, 2014 4:09 pm

Re: Improved Auto-Explore and Rest

#26 Post by Dracos »

Thanks for the poke. I started working on this last weekend, ran into some trouble with it seeming to not quite process the init hook anymore.

I'll be trying to get this working again this weekend.

1.4 just happened to launch while I was EO bingin' so I have to look over that to get over here :)
ToME Tips - auto-generated spoilers for ToME. - someone else made. I find super awesome, so spreading as well.

jenx
Sher'Tul Godslayer
Posts: 2263
Joined: Mon Feb 14, 2011 11:16 pm

Re: Improved Auto-Explore and Rest

#27 Post by jenx »

hope you can get this working again....
MADNESS rocks

Kiralio
Wayist
Posts: 16
Joined: Wed Mar 18, 2015 6:46 am

Re: Improved Auto-Explore and Rest

#28 Post by Kiralio »

Dracos wrote:Thanks for the poke. I started working on this last weekend, ran into some trouble with it seeming to not quite process the init hook anymore.

I'll be trying to get this working again this weekend.

1.4 just happened to launch while I was EO bingin' so I have to look over that to get over here :)
Your mod is a tremendous help, especially on Celestial and Afflicted classes where the shorter rest times help conserve decaying resources -- to say nothing of how much it improves autoexplore behavior and sanity checks in general. Thank you for continuing to support it!

Dracos
Archmage
Posts: 405
Joined: Sun Jul 13, 2014 4:09 pm

Re: Improved Auto-Explore and Rest

#29 Post by Dracos »

Okay, I 'think' I fixed the mod to work on 1.4.2 (at least without obvious trouble in a reasonable go bang myself up and rest run about) ... but right before I was going to upload ToME became enormously unstable, no matter whether addon was enabled or not or there or not. Even after a fresh wipe of pretty much everything. I have trouble proving its related though. There might just be something obviously dumb that I did (overfill config.settings perhaps?)

Anyhow, my tolerance for closing and reopening the game tonight has peaked. Placing this here, in case someone brave feels like giving a sanity check by trying it out (would appreciate actually), but it might be a few more days before I come back to this. Don't feel comfortable updating when Create New Character blows up 2 out of 3 times in.

Edit:
Rename to .teaa since for some reason uploading teaas isn't working tonight? Eh, just not my night. This probably has a nasty subtle bug in it :(
Attachments
tome-improved-restauto.zip
(31.42 KiB) Downloaded 432 times
ToME Tips - auto-generated spoilers for ToME. - someone else made. I find super awesome, so spreading as well.

nsrr
Sher'Tul
Posts: 1126
Joined: Mon Sep 21, 2015 8:45 pm
Location: Middle of Nowhere

Re: Improved Auto-Explore and Rest

#30 Post by nsrr »

Dracos wrote:Placing this here, in case someone brave feels like giving a sanity check by trying it out (would appreciate actually),
Challenge accepted. This will probably be the only time I could ever be called 'brave' :wink:

And...

Ran fine for me. Tried it with all of the other add ons I normally use with no issue. Tested Mana, Stamina and Equilibrium characters. Spammed abilities to use up resources and then rested. Triggered runes/infusions and Meditation to recover faster, rested through minor damage. Seems to be doing everything intended, and I had zero issues with creating or playing new characters with this enabled. I don't know what kind of instability you were running into, but it doesn't seem to be related to the add on.

I think it is safe to unleash on the ToME community. I will certainly be glad to have this back up and running :D

Post Reply