Aenimus
Member
Hello,
EDIT: I think post 3 is most enlightening.
I think it's a (partially) known bug that if you don't explicitly visit choice.php after your God Lobster fight, Mafia will get confused and think you are in the last choice encounter
The above yields:
Now, if we add a visit choice.php, the issue is resolved:
The above yields:
So here is the fun part. In my main farming script, which uses a while loop and continues, if I don't "escape" certain "walkaway choices"; i.e., choice encounters where you do not need to selection an option to escape, the God Lobster fight will think you are still in the previous choice. This is in addition to visiting choice.php after run_combat() and explicit handling of choice_follows_fight() in my combat consult script. As far as I can tell, it's choices that happen outside of adv.php (so place.php or campground.php; e.g., Source Terminal).
I found that I could "escape" these choice errors by visiting the LOVE Tunnel after visiting the Source Terminal, etc. Then I tried to do the same with Lyle's Train to Downtown (/place.php?whichplace=monorail&action=monorail_downtown), and I started getting the errors again. It's likely due to its being place.php.
What I don't understand is why I am able to escape these choices with LOVE Tunnel but not Downtown in my farming script, but in the isolated example shown above, I visit either LOVE Tunnel or Downtown, and the only part that causes the error is whether I visit choice.php.
This the result of my farming script, a few weeks back, when I was not "escaping" the Source Terminal:
The reason why I have not included my farming script or the results themselves is because there's a lot going on, and I've tried to boil it down to the necessities with the above examples. I appreciate that I therefore haven't properly replicated the issue.
Any ideas? Can I help by getting any more data?
EDIT: I think post 3 is most enlightening.
I think it's a (partially) known bug that if you don't explicitly visit choice.php after your God Lobster fight, Mafia will get confused and think you are in the last choice encounter
Code:
script "test.ash";
visit_url("place.php?whichplace=town_wrong&action=townwrong_tunnel", false);
run_choice(2);
print("The last choice number was " + last_choice());
visit_url("main.php?fightgodlobster=1");
$skill[Saucegeyser].use_skill();
print("The last choice number was " + last_choice());
run_choice(1);
print("The last choice number was " + last_choice());
abort();
The above yields:
> test.ash
Preference lastAdventure changed from None to The Tunnel of L.O.V.E.
Preference nextAdventure changed from None to The Tunnel of L.O.V.E.
[2144] The Tunnel of L.O.V.E.
Preference lastEncounter changed from Granted a Boon (#1310) to The Tunnel of L.O.V.E. (#1222)
Encounter: The Tunnel of L.O.V.E. (#1222)
Submitting option 2 for choice 1222
The last choice number was 1222
Preference _godLobsterFights changed from 0 to 1
Preference lastAdventure changed from The Tunnel of L.O.V.E. to None
Preference nextAdventure changed from The Tunnel of L.O.V.E. to None
[2144] God Lobster
Preference lastEncounter changed from The Tunnel of L.O.V.E. (#1222) to the God Lobster
Encounter: the God Lobster
Preference _lastCombatStarted changed from 20200228190521 to 20200228191026
Round 0: Aenimus wins initiative!
Round 1: Aenimus casts SAUCEGEYSER!
Round 2: God Lobster takes 7914 damage.
Round 2: Aenimus wins the fight!
After Battle: You look to the sky just in time to catch a glimpse of a falling star. Lucky! Well, not really lucky, because you totally knew it was going to be there.
After Battle: You gain 13 Muscularity Points
After Battle: You gain 233 Strongness
After Battle: You gain 118 Mysteriousness
After Battle: You gain 138 Roguishness
Preference testudinalTeachings changed from 213:3|267:3|176:0|265:3|274:5|189:2|-1:1|54:2|266:0|209:3 to 213:3|267:3|176:0|265:3|274:5|189:2|-1:1|54:2|266:1|209:3
This combat did not cost a turn
The last choice number was 1222
Submitting option 1 for choice 1222
[2144] God Lobster
Preference lastEncounter changed from the God Lobster to Granted a Boon (#1310)
Encounter: Granted a Boon (#1310)
Manual control requested for choice #1310
choice 1: "I'd like a blessing."
choice 2: "I'd like some experience."
Click here to continue in the relay browser.
Now, if we add a visit choice.php, the issue is resolved:
Code:
script "test2.ash";
visit_url("place.php?whichplace=town_wrong&action=townwrong_tunnel", false);
run_choice(2);
print("The last choice number was " + last_choice());
visit_url("main.php?fightgodlobster=1");
$skill[Saucegeyser].use_skill();
print("The last choice number was " + last_choice());
visit_url("choice.php");
run_choice(1);
print("The last choice number was " + last_choice());
abort();
The above yields:
> test2.ash
Preference lastAdventure changed from The Overgrown Lot to The Tunnel of L.O.V.E.
Preference nextAdventure changed from None to The Tunnel of L.O.V.E.
[2144] The Tunnel of L.O.V.E.
Preference lastEncounter changed from On a Downtown Train (#1308) to The Tunnel of L.O.V.E. (#1222)
Encounter: The Tunnel of L.O.V.E. (#1222)
Submitting option 2 for choice 1222
The last choice number was 1222
Preference _godLobsterFights changed from 1 to 2
Preference lastAdventure changed from The Tunnel of L.O.V.E. to None
Preference nextAdventure changed from The Tunnel of L.O.V.E. to None
[2144] God Lobster
Preference lastEncounter changed from The Tunnel of L.O.V.E. (#1222) to the God Lobster
Encounter: the God Lobster
Preference _lastCombatStarted changed from 20200228185756 to 20200228190521
Round 0: Aenimus wins initiative!
Round 1: Aenimus casts SAUCEGEYSER!
Round 2: God Lobster takes 7912 damage.
Round 2: Aenimus wins the fight!
After Battle: You glance in the direction of an inspiring meteor as it arcs across the sky, just as you predicted.
After Battle: You gain 7 Beefiness
After Battle: You gain 243 Beefiness
After Battle: You gain 115 Wizardliness
After Battle: You gain 130 Chutzpah
Preference testudinalTeachings changed from 213:3|267:3|176:0|265:3|274:5|189:2|-1:1|54:2|266:5|209:3 to 213:3|267:3|176:0|265:3|274:5|189:2|-1:1|54:2|266:0|209:3
This combat did not cost a turn
The last choice number was 1222
[2144] God Lobster
Preference lastEncounter changed from the God Lobster to Granted a Boon (#1310)
Encounter: Granted a Boon (#1310)
Submitting option 1 for choice 1310
Encounter: Granted a Boon (#1310)
You acquire an effect: Taste of the God Lobster (33)
The last choice number was 0
Script aborted.
So here is the fun part. In my main farming script, which uses a while loop and continues, if I don't "escape" certain "walkaway choices"; i.e., choice encounters where you do not need to selection an option to escape, the God Lobster fight will think you are still in the previous choice. This is in addition to visiting choice.php after run_combat() and explicit handling of choice_follows_fight() in my combat consult script. As far as I can tell, it's choices that happen outside of adv.php (so place.php or campground.php; e.g., Source Terminal).
I found that I could "escape" these choice errors by visiting the LOVE Tunnel after visiting the Source Terminal, etc. Then I tried to do the same with Lyle's Train to Downtown (/place.php?whichplace=monorail&action=monorail_downtown), and I started getting the errors again. It's likely due to its being place.php.
What I don't understand is why I am able to escape these choices with LOVE Tunnel but not Downtown in my farming script, but in the isolated example shown above, I visit either LOVE Tunnel or Downtown, and the only part that causes the error is whether I visit choice.php.
This the result of my farming script, a few weeks back, when I was not "escaping" the Source Terminal:
Round 12: God Lobster takes 361207 damage.
Round 12: You gain 20 hit points
Round 12: Aenimus wins the fight!
[snip]
This combat did not cost a turn
Unsupported choice adventure #1191
choice 1: (secret choice)
Click here to continue in the relay browser.
You're on your own, partner.
The reason why I have not included my farming script or the results themselves is because there's a lot going on, and I've tried to boil it down to the necessities with the above examples. I appreciate that I therefore haven't properly replicated the issue.
Any ideas? Can I help by getting any more data?
Last edited: