Bug - Fixed tunnel of love automation infinite loop

taltamir

Member
If you tell mafia to auto adventure in the tunnel of love, it will not stop once there is nothing left to do there that day. It will successfully perform the 3 fights and 3 item choices and then hit an infinite loop.

CLI
Code:
[171] The Tunnel of L.O.V.E.
Encounter: The Tunnel of L.O.V.E.
Validating     adventure sequence...

[171] The Tunnel of L.O.V.E.
Encounter:     The Tunnel of L.O.V.E.

[171] The Tunnel of L.O.V.E.
Encounter:     L.O.V. Entrance
Encounter: LOV Enforcer
Round 0: taltamir wins     initiative!
Round 1: taltamir executes a macro!
Round 1: taltamir     casts MICROMETEORITE!
Round 2: LOV Enforcer drops 12 attack power.
Round     2: LOV Enforcer drops 17 defense.
Round 2: taltamir casts SAUCESTORM!
Round     3: LOV Enforcer takes 113 damage.
Round 3: LOV Enforcer takes 113     damage.
Round 3: taltamir wins the fight!
After Battle: Tronald     issues a princely edict, calling for more items to be taxed from the     surrounding countryside. (+15% Item Drops)
After Battle: Tronald smiles     at you. His smile is infectious (rats are a common vector for that sort of     thing) and you can't help but grin a little yourself. (+4 Stats)
After     Battle: You gain 30 Strengthliness
After Battle: You gain 63     Enchantedness
After Battle: You gain 42 Roguishness
You gain a Moxie     point!

[171] The Tunnel of L.O.V.E.

[171] The Tunnel of     L.O.V.E.
Encounter: L.O.V. Equipment Room
You gain 312 Mana Points

[171]     The Tunnel of L.O.V.E.
Encounter: L.O.V. Engine Room
You acquire an     item: LOV Earrings
Encounter: LOV Engineer
Round 0: taltamir wins     initiative!
Round 1: taltamir executes a macro!
Round 1: taltamir     casts MICROMETEORITE!
Round 2: LOV Engineer drops 12 attack power.
Round     2: LOV Engineer drops 16 defense.
Round 2: taltamir casts SAUCESTORM!
Round     3: LOV Engineer takes 10 damage.
Round 3: LOV Engineer takes 10 damage.
Round     3: You lose 17 hit points
Round 3: taltamir casts SAUCESTORM!
Round     4: LOV Engineer takes 10 damage.
Round 4: LOV Engineer takes 19 damage.
Round     4: You lose 15 hit points
Round 4: taltamir casts SAUCESTORM!
Round     5: LOV Engineer takes 10 damage.
Round 5: LOV Engineer takes 10 damage.
Round     5: You lose 16 hit points
Round 5: taltamir casts SAUCESTORM!
Round     6: LOV Engineer takes 10 damage.
Round 6: LOV Engineer takes 10 damage.
Round     6: You lose 14 hit points
Round 6: taltamir casts SAUCESTORM!
Round     7: LOV Engineer takes 10 damage.
Round 7: LOV Engineer takes 10 damage.
Round     7: taltamir wins the fight!
Your familiar gains a pound: Tronald, the 6     lb. Smiling Rat
After Battle: Tronald issues a princely edict, calling     for more items to be taxed from the surrounding countryside. (+15% Item     Drops)
After Battle: Tronald smiles at you. His smile is infectious     (rats are a common vector for that sort of thing) and you can't help but     grin a little yourself. (+4 Stats)
After Battle: You gain 28 Beefiness
You     gain a Muscle point!
After Battle: You gain 68 Enchantedness
You     gain a Mysticality point!
You gain a Level!
After Battle: You gain     42 Smarm

[171] The Tunnel of L.O.V.E.

[171] The Tunnel of     L.O.V.E.
Encounter: L.O.V. Emergency Room
You gain 64 hit points
You     gain 33 Mana Points

[171] The Tunnel of L.O.V.E.
Encounter:     L.O.V. Elbow Room
You acquire an effect: Lovebotamy (50)
Encounter:     LOV Equivocator
Round 0: taltamir loses initiative!
Round 1: You     lose 24 hit points
Round 1: taltamir executes a macro!
Round 1:     taltamir casts MICROMETEORITE!
Round 2: LOV Equivocator drops 12 attack     power.
Round 2: LOV Equivocator drops 16 defense.
Round 2: taltamir     casts SAUCESTORM!
Round 3: LOV Equivocator takes 150 damage.
Round     3: LOV Equivocator takes 75 damage.
Round 3: taltamir wins the fight!
After     Battle: Prince Tronald demands tribute but doesn't actually get any more     specific than that. (+15% Item Drops)
After Battle: Tronald smiles at     you. His smile is infectious (rats are a common vector for that sort of     thing) and you can't help but grin a little yourself. (+4 Stats)
After     Battle: You gain 32 Beefiness
After Battle: You gain 92 Enchantedness
After     Battle: You gain 38 Cheek
You can now equip a eldritch hat (and     possibly other things).
You gain a Moxie point!

[171] The Tunnel     of L.O.V.E.

[171] The Tunnel of L.O.V.E.
Encounter: L.O.V.     Emporium
You acquire an item: LOV Enamorang

Visit to Town: The     Tunnel of L.O.V.E. in progress...

[171] The Tunnel of L.O.V.E.
Encounter:     Uh Oh!

Visit to Town: The Tunnel of L.O.V.E. in progress...

[171]     The Tunnel of L.O.V.E.
Encounter: Uh Oh!

Visit to Town: The     Tunnel of L.O.V.E. in progress...

[171] The Tunnel of L.O.V.E.
Encounter:     Uh Oh!

Visit to Town: The Tunnel of L.O.V.E. in progress...

[171]     The Tunnel of L.O.V.E.
Encounter: Uh Oh!

Visit to Town: The     Tunnel of L.O.V.E. in progress...

[171] The Tunnel of L.O.V.E.
Encounter:     Uh Oh!

Visit to Town: The Tunnel of L.O.V.E. in progress...

[171]     The Tunnel of L.O.V.E.
Encounter: Uh Oh!

Visit to Town: The     Tunnel of L.O.V.E. in progress...

[171] The Tunnel of L.O.V.E.
Encounter:     Uh Oh!

Visit to Town: The Tunnel of L.O.V.E. in progress...

[171]     The Tunnel of L.O.V.E.
Encounter: Uh Oh!

[COLOR=red]Script     abort.[/COLOR]
script abort was manual aborting. The Uh Oh! encounter is the one where it should abort automaiton.

Full Debug Log
View attachment DEBUG_20181120 Tunnel of LOVE.txt
 

Darzil

Developer
Actually you must have started it manually, as it wouldn't previously allow auto-adventuring.

Uh-oh was happening because a place was not submitted to place.php, as it wasn't handled by AdventureRequest.

With r19004 it is.
 
Top