ToME: the Tales of Maj'Eyal

Improved Auto-Explore and Rest
Page 1 of 7

Author:  Dracos [ Sun May 10, 2015 2:07 pm ]
Post subject:  Improved Auto-Explore and Rest

Up on TE4 and Steam Workshop now.

Okay now compatible with 1.6.x.

Let me know if anything isn't working.

Quality of Life improvements for resting and auto-exploring.

v3.5.0 *** FOR ToME v1.6.5 ***
This is a fork (with permission) of Marson's auto-explore and rest tweaks. It includes as well C.Lowe/CaptainTrip's improvements as well. It does not include, but recommends also using Johnny0's Faster RRE add-on for even better rest and auto-explore experience. This add-on contains numerous Quality of Life improvements designed to make resting and auto-exploring easier to use, brings the add-on overall up to being compatible with 1.6.x, and generally seeks to remove it being more optimal to do timed rests or manual recovery (particularly to help higher difficulty level and players without Faster RRE). Cleaned up feature list in this take, to make it easier to see what it does.

It is recommended to turn off Marson's Rest and Auto-Explore as well as C.Lowe's Rest Tweaks if using. This addon is meant to include all of them.

Latest Update Notes:
• Changed steam sustain behavior to match current gameplay. Before sustains tended to shut off when available resource was 0, now they don't seem to do so. This will now only turn off sustains that drain steam if steam is going below 0, so as to get to a steady finish state.
• Fix minor bug where stealth enabling was always on if you had it.
• Added new option to ignore quest members when resting or exploring. It defaults to off but for those folks that know they want to ignore those quest allies and rest a bit.

Existing Features:
• removed First Sighting and Reset on Rest. Someone can patch them in if they'd like it back, but I'm not really keeping them alive.
• Fixed actor bugs causing Elemental Surge to never reset. Thanks Reca♥den.
• Fixed bug with Paradox Spacetime Tuning from 1.5.5. This may rebreak posessors with paradox, hard to kinda test.
• Mostly verified working on 1.6.0
• Compatibility with restart sustains. Thanks zizzo.
• When resting, it will check for infusions and runes that could be used to accelerate HP, Mana, or Equilibrium (via Ancestral Life or Meditation) recovery. If the acceleration appears significant, it will use them, rotating from first available infusion or rune outward. In experiment, I found this often reduced rest turn time by 50-80 percent, improving the more drained the resource was. Particularly helpful for Mana, as it avoids trade-off advantages of short term resting (for increased mana regen) + rune use by just handling that more optimal play for you automatically without breaking rest.
• Support for steam implants, with usual checkboxes. This may not always be faster based on steam sustains that may disable after the initial round of rest and steam implants having very long cooldowns (30+ turns) and steam's resource max being pretty small. It tries to be conservative on that, so will most likely help for cases where your functional steam regen rate is < 2.00 and never activate for things much above it. I found I was often getting 5-20 steam per turn, which makes the implant support useless.
• Supports for medical healing salve injectors. Cooldown measurements are a bit odd here, since they can range from 5-20 depending on injector. Went with 10 as a happy medium for how many turns of natural regen is considered to be equal to the cooldown cost of using it.
• Adding support to auto-stealth if available and not stealthed.
• Option for ignoring small damage when moving and resting, basically if it is <5%, it will ignore it by default, prevent small DoTs from preventing rest.
• Options added to control whether or not to use inscriptions to accelerate recovery of things.
• Fixes a ToME bug that can cause autoexplore or running to move only a single square and hang if used immediately after killing an enemy.
• Lore discovery will only stop autoexplore if it triggers a popup.
• Autoexplore will ignore Exploratory/Infinite Farportal return portals until the entire level has been explored.
• Ignores special terrain features such as Font of Healing after they are first discovered.
• Ignores open chests and alt Maze floor cracks.
• Rest and AE ask for confirmation if you have an escort in your party.
• Ignore already activated pedestals.
• Checks for and waits on any rechargeable items.
• Checks for and reloads any ammo in offhand quiver.
• Waits for cooldowns of talents set to auto-use.
• Waits for depleted air to replenish.
• Combines all checks into a single instance of rest, rather than having cooldowns etc. require a second resting phase.

Determines how auto-explore and running respond to telepathy, including mouse moves. Regardless of the setting, hostiles seen via telepathy will not halt resting or the Rod of Recall, nor trigger automated talents. Unique or powerful monsters (rank > 3) will always trigger a halt to running when they are spotted via telepathy for any mode except 'Original'.

Available modes:
• 'Always Viligant' always stops running when a hostile creature is seen via telepathy.
• 'Original' is standard ToME auto-explore behavior, which ignores telepathy when running or auto-exploring.

• Compatible with ToME v1.6.0

Folks who have helped with bugfixes over the years:

• Telepathy will not prevent auto-exploring the way normal sight will. If a halt is triggered by telepathy, hitting auto-explore again will move you at least one more square in the direction of the auto-explore path. If in 'Always Viligant' mode and a hostile is within telepathic sight (but not normal sight), you will auto-explore in 1 square per keypress increments.

Technical Info:
    restCheck, onTakeHit, runCheck,mouseMove,runStopped

Steam: ... =440747756
Marson's Original Auto-Explore and Rest addon: viewtopic.php?f=50&t=40696
CaptainTrips's "Rest Tweaks" addon: viewtopic.php?f=50&t=37172

Author:  Dracos [ Sun May 10, 2015 10:33 pm ]
Post subject:  Re: Improved Auto-Explore and Rest

I encourage using with: for even better fast resting results.

Author:  Elkan [ Fri May 15, 2015 2:18 pm ]
Post subject:  Re: Improved Auto-Explore and Rest

This is excellent work and deeply appreciated!

Is there any chance you could duplicate any of the extended auto-use features in the now defunct custom auto-use addon, to allow for auto-use of items, and auto-use of talents when in range?

Author:  Dracos [ Sun May 17, 2015 1:38 pm ]
Post subject:  Re: Improved Auto-Explore and Rest

Not sure?

Could you add more detail on what you're looking for? Or the addon in question that's defunct (a link?)

Author:  Elkan [ Sun May 17, 2015 2:32 pm ]
Post subject:  Re: Improved Auto-Explore and Rest

They have a very useful feature to automatically use abilties when enemies are in range of the ability. I tend to use it mainly with circles on anorithil as they are instant and I pretty much always want them running when they can hit something, as well as the yeek mind control racial when on lower difficulties. the Ability to auto-use items is also extremely helpful.

Author:  Dracos [ Mon May 18, 2015 5:21 am ]
Post subject:  Re: Improved Auto-Explore and Rest

Mmm. I'd reach out first to those add-on authors and see. Oh, I see Snoo reports he's too busy. It's possible I could help out, but I haven't even used those add-ons before. I'll take a look sometime, but no real promises, and I wouldn't combine that with this. Everything here right now is passive optimization of moving and recovery. Those more fall into the area of automatic play, which while I agree is nice QoL, I wouldn't want mixed in one add-on myself.

Author:  Elkan [ Tue May 19, 2015 9:31 am ]
Post subject:  Re: Improved Auto-Explore and Rest

It would be really nice if you could!

Author:  Lotus97 [ Wed Aug 05, 2015 9:35 am ]
Post subject:  Re: Improved Auto-Explore and Rest

(I'm not 100% sure it this mod, but almost certain.)
So it seems some of the chest behavior is not working as I expected. It stops at the chest once, but then if I don't open it then it doesn't go back to it later. I often want to clear out the roaming mobs before opening chests so I'd prefer to go back to them, but this doesn't happen anymore. The other thing it doesn't pick up the item that was inside the chest. I have to manually do it which is something I've been in the habit of doing so I've forgotten (or almost forgotten) to pick up the loot.

Author:  Dracos [ Sun Aug 09, 2015 6:48 pm ]
Post subject:  Re: Improved Auto-Explore and Rest


Does it work differently without this mod? I've had that behavior since the old mod that this forked off of, and didn't realize it ever worked differently.

To all:

Heyo, haven't forgotten about this. Got a new pc and been traveling a lot, so things like ToME have sort of gone unplayed for a bit. I have a local set of changes that adds some additional optional controls on things, but also am trying to track down why sometimes rest just 'stops early'. I'll put out a new version soon when I'm travelin' less.

Author:  Dracos [ Mon Aug 10, 2015 4:55 pm ]
Post subject:  Re: Improved Auto-Explore and Rest

Okay updated.

Lotus97: I looked into it, but I'm convinced that's standard behavior from looking at the code and kind of complicated to add. The map system needs to ignore closed chests in order to proceed because otherwise it sees that you're on a special tile that you haven't been to and tries to bring you there. It'd need to keep a list of them (perhaps using noticed) and clean them out on touching a stair or something. Doable, but it's not really friendly to add and would require some careful testing. All of the code related to it is exactly what is in 1.3.1 though, without any changes by the mod.

Basically, once you stand near a chest, it gets added to the auto-ignore which never gets cleared out. It's possible there's an interaction with traps which may cause it to bug back over there but that'd be a bug in core behavior if so.

Author:  Lotus97 [ Wed Sep 02, 2015 11:50 pm ]
Post subject:  Re: Improved Auto-Explore and Rest

I also installed this mod around the same time:

I haven't had a chance to test without Improved Auto-Explore and Rest or the Faster Rest/explore mod. I sort of took a break from this game due to the insane amount of hours I spending every night. :lol:

I do want to clarify what I said just to make sure it was clear. The auto explore seemed to only stop at an unopened chest the first time I encountered it. I often don't open chests right away because I want to make sure there are no nearby enemies. Then once it was open and unlooted the character wouldn't pick up the loot.

It's true that in vanilla the character would stop multiple times at an opened and looted/empty chest which was quite annoying. It's good that this mod fixes that, but I do sometimes miss out on loot if I forget to open and loot the chest.

Author:  Dracos [ Sun Sep 06, 2015 3:57 pm ]
Post subject:  Re: Improved Auto-Explore and Rest

Guess I'll have to look at vanilla at some point again and refresh myself. That behavior predates me and so if I can get smart 'reset' behavior on stair or something, I'll add, but not sure if it can be.

Author:  sim [ Mon Sep 07, 2015 7:52 pm ]
Post subject:  Re: Improved Auto-Explore and Rest

I am enjoying this a lot! there is one issue though; when used in conjunction, with johnny0's faster RRE, I no longer am getting the benefit of the faster run/explore portion of the faster RRE addon. I assume there's a conflict but I don't know how easy of a fix it is, and I haven't touched anything with modding in tome yet. I thought to bring this up, since you suggest using the two together, and they seem to stack cleanly otherwise!

Author:  Dracos [ Wed Sep 09, 2015 2:59 pm ]
Post subject:  Re: Improved Auto-Explore and Rest

Wait...really? I pretty much solely ever use it with that outside of some brief bits of solo testing.

Looking into it as yeah they totally should. Yeah, a diff shows no crossover of files and a passthrough shows no mix of overload/superload that should cause problems.

Someone reports its messing with the settings. Checking.

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.

Author:  San0ix [ Wed Sep 09, 2015 5:53 pm ]
Post subject:  Re: Improved Auto-Explore and Rest

Here's my log, I appreciate your effort so thank you for trying to fix this issue :)

te4_log.txt [172.04 KiB]
Downloaded 116 times

Page 1 of 7 All times are UTC
Powered by phpBB® Forum Software © phpBB Group