New Content - Implemented Hidden City revamp

If a user sets something that doesn't exist, should mafia keep trying in hopes that someday it will work, or should mafia abort or stop automation when it sees a problem?

That question has come up many times before and the solution has always been that the user must bear some responsibility for setting a feasible goal in a zone. To verify that something is feasible requires a lot of work and no one has wanted to tackle it, and with good reason. Some goals are the same for every zone (myst 100) but some are zone specific (outfit). Some are dropped directly in a zone (red pixel) while others are created from things that drop (Talisman). Some are single items, some are multiple. Some are conditional drops but mafia has no way of knowing whether the condition was satisfied outside of mafia, or not. So to validate a goal before automation is theoretically possible but unlikely to be implemented.
 
I cansee how goals can be hard to verify, but how hard would it be (asking, I have no idea) to do something semi-clever (like abort or possibly walk away if possible) when the choice you try to take in a choice adventure isn't there? And how requested would that actually be?
 
Looks like only some of the patch got committed, so investigating. Probably me screwing up making patches.

Edit - yup, me screwing up, at some point between my earliest patches and the later ones missed out the adding choices to the choice panel, though the code was there to build them. The fault causing Theraze's issue appears to be a "<=" that should be a "<". Testing now before committing patch.

r12599 fixes this for me. Not sure why anyone would set something impossible to automate, but if they do it'll now come up Show in Browser.

I haven't addressed the edge case of someone setting something impossible in the cli using set choiceAdventureXXX. Maybe we should write a generic fix for that.
 
Last edited:
Well, the issue is that choice 1 in the NW shrine initially is to unlock the apartment. Then there is no choice 1, until you get the sphere.

What I'd done was to set the shrine to unlock (choice 1 always). However, on adventuring at the NW shrine (adventure * shrine northwest) it kept trying to burn adventures after it was unlocked and nothing was available.

My hope was that it would just unlock it and stop... similar to an autostop, I suppose. Not sure if the r12599 choice handling makes it work similar to the special Bedroom unlock handling from a few years ago where you can have it pick the right drawer automatically during automation, but since it doesn't take a turn, without forcing an abort it would run forever.
 
Well, the issue is that choice 1 in the NW shrine initially is to unlock the apartment. Then there is no choice 1, until you get the sphere.

What I'd done was to set the shrine to unlock (choice 1 always). However, on adventuring at the NW shrine (adventure * shrine northwest) it kept trying to burn adventures after it was unlocked and nothing was available.

My hope was that it would just unlock it and stop... similar to an autostop, I suppose. Not sure if the r12599 choice handling makes it work similar to the special Bedroom unlock handling from a few years ago where you can have it pick the right drawer automatically during automation, but since it doesn't take a turn, without forcing an abort it would run forever.

Now in the choice manager you have two options :
1. Show in browser
2. Do unlock hidden apartment building or get stone triangle

If you pick the second, it'll unlock on first visit, get stone triangle if you have the moss-covered sphere, otherwise show in browser.

If you want to automate, you want to set a (default) goal of 1 NC, run turns at NW shrine with choice of "unlock hidden apartment building or get stone triangle", then set a (default) goal of moss-covered sphere, and run turns at Hidden Apartment Building with choice of "fight spirit or get cursed", then run turns at NW shrine with same goal and settings.

It's not optimal, but if you set appropriate choices and default goals, you should be able to complete quest with :
adventure * overgrown shrine (northwest)
adventure * hidden apartment building
adventure * overgrown shrine (northwest)
adventure * overgrown shrine (southwest)
[hidden hospital requires equipment changing, so not trivial]
adventure * overgrown shrine (southwest)
adventure * overgrown shrine (northeast)
adventure * hidden office building
adventure * overgrown shrine (northeast)
adventure * overgrown shrine (southeast)
adventure * hidden bowling alley
adventure * overgrown shrine (southeast)
adventure * hidden ziggurat (southeast)

Edit - Hmm, I should really add a default goal of 1 antique machete to hidden park.
 
Last edited:
Great! Aborting when you can't make a valid choice means that I don't need to worry about the infinite loops making things break anymore... After the first time I did that a few days back, I removed the automation settings and avoided them on all my other characters because it was... bad. :D If it pops to the browser on choice-failure, that should make it easily automated even if I'm mentally broken. Heh.
 
r12600 adds default goal of 1 antique machete, saving you lots of turns if you run turns in hidden park with it as goal first.

Good to get feedback on the automation stuff, as I never automate in run, so was (trying) to think how others might use it.
 
Yeah. My lazy automate is knocking over the dumpsters in the park to eliminate the useless janitors, Apartment (generally olfacting the Shaman manually before running automatic turns), Office Building (fully automatic except for choosing NCs since there's 2 different ones), Bowling Alley (olfacting the bowler before automatic adventures), and then into the Hospital. It's usually not worth olfacting the surgeon since it seems like the NC comes up every ~8 adventures if you have any parts equipped and it doesn't really seem much faster with more bits, it just makes me feel worse about wasting the turns getting them. :)
 
For the ziggurat, just on skipping the adventure, not on fighting, right?

Otherwise, I think anything else people want can be requested as new content or FReqs.
 
Back
Top