Improved Auto-Explore and Rest

A place to post your add ons and ideas for them

Moderator: Moderator

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

Re: Improved Auto-Explore and Rest

#46 Post by nsrr »

Dracos wrote:
Edit: Oddly enough, I never noticed. I think it's because I never let steam come close to zero.
Yeah, I probably never would have either, but I wanted to try to roast the first yeti boss to death with my rocket boots. Turned out to be pretty easy when the sustain didn't shut off :wink: .

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

Re: Improved Auto-Explore and Rest

#47 Post by Dracos »

Added support for Steam and Healing Salve injections.
ToME Tips - auto-generated spoilers for ToME. - someone else made. I find super awesome, so spreading as well.

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

Re: Improved Auto-Explore and Rest

#48 Post by Dracos »

Two bugs got through. Both squashed. I'll update the details later.
ToME Tips - auto-generated spoilers for ToME. - someone else made. I find super awesome, so spreading as well.

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

Re: Improved Auto-Explore and Rest

#49 Post by Dracos »

ToME Tips - auto-generated spoilers for ToME. - someone else made. I find super awesome, so spreading as well.

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

Re: Improved Auto-Explore and Rest

#50 Post by Dracos »

Been gone kinda a while. Still sorta playing other things. Started getting poked about stuff not working...but it seems to work fine.

Anyone been having trouble with the latest that I should see?
ToME Tips - auto-generated spoilers for ToME. - someone else made. I find super awesome, so spreading as well.

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

Re: Improved Auto-Explore and Rest

#51 Post by Dracos »

Removed the old run hook that was applicable to a bug I think is no longer in the game (and was causing a failure over on steam for folks). Alright, back to farming :)
ToME Tips - auto-generated spoilers for ToME. - someone else made. I find super awesome, so spreading as well.

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

Re: Improved Auto-Explore and Rest

#52 Post by Dracos »

Updated for Posessor and new rogue throwing daggers.

Well, not new but I've been kinda asleep here :)
ToME Tips - auto-generated spoilers for ToME. - someone else made. I find super awesome, so spreading as well.

roffster
Cornac
Posts: 38
Joined: Wed Dec 16, 2015 7:14 am

Re: Improved Auto-Explore and Rest

#53 Post by roffster »

I think there's a bug with Possessor's atm. Once I posses either a class with Vim or Positive Energy, hitting rest or explore just enters an endless rest loop.

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

Re: Improved Auto-Explore and Rest

#54 Post by Dracos »

Noted. Thanks for the info.

I've not been particularly active at playing lately, which is why changes have gone slow. If anyone wants to patch, I'm glad to add in and publish. Otherwise it may way for me to have an active weekend.

Same with Auto-restart sustains.
ToME Tips - auto-generated spoilers for ToME. - someone else made. I find super awesome, so spreading as well.

roffster
Cornac
Posts: 38
Joined: Wed Dec 16, 2015 7:14 am

Re: Improved Auto-Explore and Rest

#55 Post by roffster »

I haven't really gone delving through TOME's code, but I assume a relatively easy fix would be to hard code in an exit from the rest loop after 50-100 turns? Not perfect, but I imagine investigating how possessor's actually work with this addon could take quite a while.

Steven Aus
Archmage
Posts: 366
Joined: Sat Dec 13, 2014 3:38 pm

Re: Improved Auto-Explore and Rest

#56 Post by Steven Aus »

Maybe the hard-coded exit could check if the player is a possessor? So that other classes that need to rest longer can do so without having to restart resting.

roffster
Cornac
Posts: 38
Joined: Wed Dec 16, 2015 7:14 am

Re: Improved Auto-Explore and Rest

#57 Post by roffster »

Extremely quick and dirty fix is to put:

if self.resting.cnt > 100 then
return false
end

in _M:restCheck().

Like I said, really dirty fix.

Steven Aus
Archmage
Posts: 366
Joined: Sat Dec 13, 2014 3:38 pm

Re: Improved Auto-Explore and Rest

#58 Post by Steven Aus »

That would work.

I like this addon. It's good not having to rest twice in a row, although if I don't want to use up turns after using the Rod of Recall, I need to move around manually. :) Not a big deal though, of course. :)

St_ranger_er
Thalore
Posts: 172
Joined: Fri Jul 18, 2014 11:48 am

Re: Improved Auto-Explore and Rest

#59 Post by St_ranger_er »

Also endless rest seems to appear on possessed bodies with equilibrium. UPD: But only on them, which have negative equilibrium regen. UPD2: as well, endless rest shows when body has psi regen boost.

UPD3: I think that I'm found cause of endless loop. The answer is when equilibrium user body is possessed, it often has positive steam regen. While my character haven't. Therefore my steam always on 0 of a max 100 and positive regen. Never filled resource.

The solution:
In the superload/mod/class/Player.lua
Add here check if we have steam resource bar available

Code: Select all

if self.steam and self.steam < self.max_steam and self.steam_regen > 0 then
The new one:

Code: Select all

if self.steam and self.steam < self.max_steam and self.steam_regen > 0 and self.knowTalent and self:knowTalent(self.T_STEAM_POOL) then
Thanks Hachem_Muche, asleepInferno and StarKeep for point out how to check steam bar.

Also fix for vim/light/paradox:
Replace this

Code: Select all

if not res_def.invert_values then
To this

Code: Select all

if not res_def.invert_values and not res_def.switch_direction then

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

Re: Improved Auto-Explore and Rest

#60 Post by Dracos »

Just coming back from traveling. Will toss that in later this week for a check. Hope you all had a good holiday.
ToME Tips - auto-generated spoilers for ToME. - someone else made. I find super awesome, so spreading as well.

Post Reply