Detective Solver

Ezandora

Member
What does it do?

Detective Solver will solve all three daily mysteries for the eleventh precinct IOTM.

Screenshot:
24.png

How do I use it?

Install it by running this command in KoLmafia's graphical CLI:

Code:
svn checkout https://github.com/Ezandora/Detective-Solver/branches/Release/

Once it's installed, go to the Scripts menu, then select "Detective Solver.ash"

To update the script itself (or any script), run this command in the graphical CLI:

Code:
svn update

Github: https://github.com/Ezandora/Detective-Solver/
Contact me in-game: Ezandora (#1557284)
 

CoC

New member
I wanted to like the content more because I'm sure a ton of work went into it, but after a couple of days I fell into just guessing and taking the 3 bucks. Thank you so much for this.
 

Veracity

Developer
Staff member
I manually did the "explore until I find somebody telling the truth and then then accuse the person they think is guilty" thing, but it quickly palled on me.

Thank you for automating it for me.
 

Croft

Member
Detective Solver.ash version 1.0.2
Encounter: The Precinct
You acquire cop dollar (3)

Solving a new case...
Visiting the first room.
Asking in the Smoking Lounge about the killer.
Asking in the Smoking Lounge about the person in the Bar by occupation.
Visiting the Bar.
Individuals:
Emil Cummings, the victim's cousin in the Smoking Lounge.
We've asked about the killer and they know the killer's occupation: lover.
Asked by occupation, claimed the name in the Bar was "Aubrey Solomon" which was verified and correct.

Aubrey Solomon, the victim's lover in the Bar.

Visited locations Smoking Lounge and Bar.
14 minutes elapsed.
Current location: Bar
We know the killer! They're in the Bar.
I accuse Aubrey Solomon located in the Bar!
Accusing the person in the Bar.
You acquire cop dollar (3)
Solved the case in 14 minutes, earning 11 bonus dollars.
Encounter: The Precinct

Solving a new case...
Visiting the first room.
Asking in the Ballroom about the killer.
Visiting the Billiard Room.
Asking in the Billiard Room about the killer.
Asking in the Billiard Room about the person in the Ballroom by occupation.
Gabrielle Greer lies.
Visiting the Dining Room.
Asking in the Dining Room about the killer.
Visiting the Living Room.
Asking in the Living Room about the killer.
Asking in the Living Room about the person in the Ballroom by occupation.
Individuals:
Dale Grant, the victim's college roommate in the Ballroom.
We've asked about the killer and they do not know about the killer.

Gabrielle Greer, the victim's child in the Billiard Room.
A proven liar, we've asked about the killer, and they know the killer's occupation: physician.
Asked by occupation, claimed the name in the Ballroom was "Madison Butler" which was verified and a lie.

?, the victim's physician in the Pantry.

Zachary Velez, the victim's neighbor in the Dining Room.
We've asked about the killer and they do not know about the killer.

Genesis Rowland, the victim's gardener in the Living Room.
We've asked about the killer and they know the killer's name: Madison Butler.
Asked by occupation, claimed the name in the Ballroom was "Dale Grant" which was verified and correct.

Madison Butler, the victim's ? in the Breakfast Nook.

Visited locations Ballroom, Billiard Room, Dining Room, and Living Room.
38 minutes elapsed.
Current location: Living Room
We know the killer! They're in the Breakfast Nook.
I accuse Madison Butler located in the Breakfast Nook!
Accusing the person in the Breakfast Nook.
You acquire cop dollar (3)
Solved the case in 40 minutes, earning 6 bonus dollars.
Encounter: The Precinct

Solving a new case...
Visiting the first room.
Asking in the Breakfast Nook about the killer.
Visiting the Study.
Asking in the Study about the killer.
Visiting the Smoking Lounge.
Asking in the Smoking Lounge about the killer.
Visiting the Ballroom.
Asking in the Ballroom about the killer.
Asking in the Ballroom about the person in the Breakfast Nook by occupation.
Cletus Simpson lies.
Visiting the Sunroom.
Asking in the Sunroom about the killer.
Asking in the Sunroom about the person in the Breakfast Nook by occupation.
Asking in the Sunroom about the person in the Study by occupation.
Asking in the Sunroom about the person in the Smoking Lounge by occupation.
Individuals:
Sofia Golden, the victim's butler in the Breakfast Nook.
We've asked about the killer and they do not know about the killer.

Layla Glass, the victim's cousin in the Study.
We've asked about the killer and they do not know about the killer.

Byron Shaffer, the victim's boss in the Smoking Lounge.
We've asked about the killer and they do not know about the killer.

Cletus Simpson, the victim's accountant in the Ballroom.
A proven liar, we've asked about the killer, and they know the killer's occupation: cousin.
Asked by occupation, claimed the location in the Breakfast Nook was "Attic" which was verified and a lie.

Niles Logan, the victim's lawyer in the Sunroom.
We've asked about the killer and they know the killer's name: Joey Kirkland.
Asked by occupation, claimed the name in the Smoking Lounge was "Byron Shaffer" which was verified and correct.

Joey Kirkland, the victim's ? in the Foyer.

Visited locations Breakfast Nook, Study, Smoking Lounge, Ballroom, and Sunroom.
55 minutes elapsed.
Current location: Sunroom
We know the killer! They're in the Foyer.
I accuse Joey Kirkland located in the Foyer!
Accusing the person in the Foyer.
You acquire cop dollar (3)
Solved the case in 57 minutes, earning 2 bonus dollars.
Completed solving cases. Earned 28 cop dollars.
But actually it earned only 12 cop dollars ... oO
 

adeyke

Member
The money from just visting the place and trying to solve the crimes goes to your inventory directly, and that'll always be just $12. The bonus money for solving the crimes quickly is instead added to your pension, which you'll get when you visit the place in aftercore.
 

Bale

Minion
Code:
if(get_property("hasDetectiveSchool") == "true" && get_property("_detectiveCasesCompleted").to_int() < 3 && svn_exists("Ezandora-Detective-Solver-branches-Release"))
	cli_execute("Detective Solver");
 

Abbbo

New member
Code:
if(get_property("hasDetectiveSchool") == "true" && get_property("_detectiveCasesCompleted").to_int() < 3 && svn_exists("Ezandora-Detective-Solver-branches-Release"))
	cli_execute("Detective Solver");

Wow, thanks! Just added it to my logout script!
 

infopowerbroker

New member
To make a crude (but functional) "daily deed" button, you can use the following:
Code:
$CUSTOM|Command|Solve Today's Detective Cases|_detectiveCasesCompleted|call Detective Solver.ash|3
 

Ezandora

Member
If you're using this script, run this command:

Code:
svn update

Version 1.1 or newer should work. Previous releases aren't usable.



Is something up with the script? It just went to the first room and asked about the killer for 302 minutes...

The game's HTML changed, so parsing stopped working. Fixed.
 

General_Herpes

New member
Detective Solver - Breaks

I'm having the same issue despite using the latest script and mafia version. Here is the output once I run the script:
Code:
> call scripts/Detective Solver.ash

Detective Solver.ash version 1.1

Solving a new case...
Visiting the first room.
Individuals:
Grant Stanley, the victim's dental hygienist in the Pantry.
Nancydrew.

?, the victim's college roommate in the Dining Room.

Visited locations Pantry.
302 minutes elapsed.
Current location: Pantry
Went over time limit, apologies.

I just downloaded the latest daily build before posting this:
KolMafia version 17.3 r17059

I also ran SVN update prior to this post and saw Detective Solver update. It's currently on version 1.1
 

Valliant

Member
Code:
> call scripts\Detective Solver.ash

Detective Solver.ash version 1.1.2
Unknown error with wham.php. Bailing out.

With r17062 and WHAM revision 47.

Edit: and then in a new ascension, no problems at all. No idea what changed.
 
Last edited:

Pantsless

New member
Code:
> call scripts\Detective Solver.ash

Unknown error with wham.php. Bailing out.


I just noticed that I've apparently been getting this error every day since 2018-08-24. Script worked perfectly up until the 23rd of August, then failed with the above error every day since. Is it still working for anyone else?

A debug log was generated on both the 22nd and 23rd of August, which I could share if it would be helpful.
 

Ezandora

Member
Code:
I just noticed that I've apparently been getting this error every day since 2018-08-24.  Script worked perfectly up until the 23rd of August, then failed with the above error every day since.  Is it still working for anyone else?[/QUOTE]

It's a bug in the game - you can't solve detective cases when your pool skill is too high. Try ascending to fix it.
 
Top