CanAdv -- check whether you can adventure at a given location

Theraze

Active member
And that quest property for the telegram would be...?

And for batmode, all locations are always available through the whole limitmode with no restrictions, right?
 

Theraze

Active member
Okay, so batmode locations are not always available then. So do we have quest properties for each zone, or one shared preference, or is that currently untracked...?
 

Erich

Member
I was slightly wrong about all zones being unlocked immediately, so let me see if I can do a breakdown of the adventuring zones as per how the game handles it.

The 3 crime areas have 4 adventuring zones each, and Downtown has 1 adventuring zone (JokesterCo HQ). The crime area zones are all immediately unlocked and available, the Jokester zone is locked until the very end.

In each crime area, 3 of the 4 zones have bosses. The one without the boss is unlocked and available at all times. The boss zones have a progress level in the charpane that tell you how far you are in the zone, that works like this:

<100%: the zone is fully available
100%: only the boss is available, the rest of the zone is locked
Boss defeated: the zone is fully locked

When the 9 bosses are defeated, the Jokester zone becomes available. When the Jokester is defeated, batmode is shut down, so that ends it.
 

Theraze

Active member
Well, once we know how to track those zones and locations programically, we can add them. Until then, we can't.
 

xKiv

Active member
BTW, this is probably obvious, but for completeness: limit_mode()=='batman' means that you can't adventure anywhere else ... (like spelunky. And edunder, but there's nothing adventurable in ed's underworld in the first place)
 

Lxndr

Member
Trying to be a good person here:

Code:
Unknown location: Gotpork Gardens Cemetery (zone:     Center Park (Low Crime))
Please report this     missing location here: http://kolmafia.us/showthread.php?t=2027
Unknown     location: Gotpork Municipal Reservoir (zone: Center Park (Low Crime))
Please     report this missing location here: http://kolmafia.us/showthread.php?t=2027
Unknown     location: Gotpork Conservatory of Flowers (zone: Center Park (Low Crime))
Please     report this missing location here: http://kolmafia.us/showthread.php?t=2027
Unknown     location: JokesterCo (zone: Downtown)
Please     report this missing location here: http://kolmafia.us/showthread.php?t=2027
Unknown     location: Trivial Pursuits, LLC (zone: Industrial District (High Crime))
Please     report this missing location here: http://kolmafia.us/showthread.php?t=2027
Unknown     location: Gotpork Foundry (zone: Industrial District (High Crime))
Please     report this missing location here: http://kolmafia.us/showthread.php?t=2027
Unknown     location: Gotpork Clock, Inc. (zone: Industrial District (High Crime))
Please     report this missing location here: http://kolmafia.us/showthread.php?t=2027
Unknown     location: Warehouse Row (zone: Industrial District (High Crime))
Please     report this missing location here: http://kolmafia.us/showthread.php?t=2027
Unknown     location: The Old Gotpork Library (zone: Slums (Moderate Crime))
Please     report this missing location here: http://kolmafia.us/showthread.php?t=2027
Unknown     location: Porkham Asylum (zone: Slums (Moderate Crime))
Please     report this missing location here: http://kolmafia.us/showthread.php?t=2027
Unknown     location: Gotpork City Sewers (zone: Slums (Moderate Crime))
Please     report this missing location here: http://kolmafia.us/showthread.php?t=2027
Unknown     location: The Mean Streets (zone: Slums (Moderate Crime))
Please     report this missing location here: http://kolmafia.us/showthread.php?t=2027
Unknown     location: Investigating a Plaintive Telegram (zone: Town)
Please     report this missing location here: http://kolmafia.us/showthread.php?t=2027

Note: This seems to be the result of running Factroid.
 
Last edited:

Theraze

Active member
As noted in the 9 posts above yours, we're waiting for:
1) mafia to fully support tracking batzone availability, and
2) someone to post what tracks what.

If you have an answer to those, great. We'll add them. Until then, you'll keep seeing the messages.
 

Veracity

Developer
Staff member
batmanZone

"Gotpork City" - if you are not currently in a game, otherwise:

"Bat-Cavern" - if you are in the cavern
"Center Park (Low Crime)"
"Slums (Moderate Crime)"
"Industrial District (High Crime)"
"Downtown"
 

Theraze

Active member
I'd thought something had been added, but I don't see that in the wiki nor anything regarding how it works for tracking. So let's try to work through it.
We can get into the game when limitmode=batman. When any limitmode is set, we can't get into zones that aren't based on the specific limitzone.
There's a value named batmanZone that sets which zones are available and not. This is one of 6 options, listed in Veracity's post in 531.

If batmanZone is set to Gotpork City or Bat-Cavern, are other options actually available - can you travel from either one to anywhere else, or are you fixed there until some external choice happens?
If batmanZone says that a region is available - say, the Slums - are all locations in that region always available to you or do some lock/unlock based on other actions which may or may not be tracked?
 

Veracity

Developer
Staff member
It takes time to travel to a zone. That's the equivalent of spending adventures when not in the game. You do it by entering the Bat-Sedan and executing a choice adventure. I don't think CanAdv should move between zones, although, to be honest, I'm not sure who would use CanAdv to automate Batfellow. To efficiently automate Batfellow, you'll need a reasonably smart program which will track progress through each area, fight bosses, look at stuff which drops which can be used in the Bat-Cavern or Downtown, and so on. That program will know what zone it is in and how to go to other zones and will know when it wants to do so. We don't support all of that, yet - tracking progress towards the bosses, for example - although its all on my (eventual) to-do list.

But, if you want to make CanAdv at least accurate for the Batfellow zones: you can travel in any of the 4 areas of Center Park if your Bat-Zone is Center Park, any of the 4 areas of the Slums if your Bat-Zone is the Slums, any of the 4 zones in the Industrial District if your zone is the Industrial District, and in JokesterCo if your zone is Downtown AND you have unlocked it (which is not tracked by KoLmafia yet).
 

Theraze

Active member
So, automation/tracking we can do. This is fully accurate based on my understanding of what you're saying.
1) Zones are only available if you're in batman.
2) All Central Park zones are always available when in Central Park.
3) All Slum zones are always available when in Slums.
4) All Industrial District zones are always available when in industrial.
5) Downtown only has one zone which is not currently tracked for being unlocked, so we'll skip that for now
6) There are no zones that can be transitioned between. If your batman zone is set to anything except for Slums, you can't go to the Slums, regardless of how. There is no junction zone available to allow later decisions.

Is that correct, or are we needing boss tracking per Erich's post in 525 which, as noted in post 527, was what we were needing to track location availability?
 
Last edited:

Veracity

Developer
Staff member
Well, actually, yes. Now that I think about it, once you've defeated the boss, that zone is not adventurable.
 

Theraze

Active member
Okay, I'll wait on that then. I can put in the basic limitmode testing which will hide the issue for people not running CanAdv while in BatMan, but we'll wait on accurate tracking until we can do it properly.

Sorry if I'm brusque today. Not trying to be. Frustrated that my phone decided yesterday evening that it really wanted to stop booting until it got a factory reset.
 

Theraze

Active member
Per the wiki, the batman limitmode doesn't exist. Per xKiv, the batman limitmode is all lowercase. So we do that like he said.
BatMan locations will detect as un-adventurable while not in BatMan. They'll pop warnings while in BatMan, but nobody really has a good reason to run CanAdv there anyways, so we'll worry about that when someone posts it, if mafia has some no-extra-server-hit way to track boss defeat.

That leaves only the LT&T location remaining as fully unknown, as that's apparently unlocked by being on some quest or another as per post 521, which remains a mystery. If people want that tracked, let me know what to track to make it accurate and we'll do it.
 

Lxndr

Member
So, according to the coders of Batman_RE (and subsequently, SeRa, the Semi Rare helper):

SeRa consistently suggests adventuring in zones in Hobopolis, when I have not yet gone through the Maze of Sewer Tunnels, zarqon says that it's the fault of CanAdv.

So, I thought I'd do my due diligence and report it.

I'm a coding newbie, so I have no idea how to test this.

Sorry to be a bother.
 

Theraze

Active member
It's true. Nobody who actually runs Hobo has ever given something specific as to whether or not its specific zones are available. If someone who knows, cares, and posts what is needed, we'll make it more specific. Otherwise, it will keep being wrong.
 
For Hobopolis: Town Square opens once the Maze of Sewer Tunnels is cleared. The various side areas open in the following order: Burnbarrel @ 500 normal hobos killed; Esplanade @ 1000, Heap @ 1500, Graveyard @ 2000 and finally The Purple Light District @ 2500. Each zone closes to normal adventuring once it's quota of monsters is cleared; 5000 for TS and 500 for the other areas. Each zone closes fully after its boss is defeated. Finally, if Hodgman is defeated, regardless of the other bosses being alive or dead, all zones close.
 
Top