Issue with wham.php?

snooty

Member
Just got this error, no idea what it is, how to fix it, or where to actually put this post. Apologies if it's in the wrong place...

Unknown error with wham.php. Bailing out.
Function 'to_buffer(string)' overrides a library function. (briefcase.ash, line 2405, char 8 to char 29)
 
Hmmm....may be. It's not due to a change in mafia. Ezandora's briefcase script worked yesterday with r28153 and it errors out today with the following:
Function 'to_buffer(string)' overrides a library function. (briefcase.ash, line 2719, char 8 to char 29)
Assuming script timeout, executing...
Charging flywheel...
Turning crank.
__state.last_action_results = {}
Internal error charging the flywheel.
 
Thanks y'all! r28158 obviously wasn't up when I posted. I'll come whine again tomorrow if that doesn't get the job done.

I assume mafia no longer recognizing the clan photo booth is part of the bug issue ckb posted the link for? There is some lounge stuff posted in there.
 
This problem is with the Briefcase script itself.
Code:
    string results_string = page_text.group_string("<b>Results:</b></td></tr><tr><td[^>]*><center><table><tr><td>(.*?)</td></tr></table>")[0][1];
Needs to be:
Code:
    string results_string = page_text.group_string("<b style=\"color: white\">Results:</b></td></tr><tr><td[^>]*><center><table><tr><td>(.*?)</td></tr></table>")[0][1];
 
Pretty sure we can add Source Terminal to the list. Thanks for posting the fix code, Crowther! My eyesight is crap though and I honestly don't trust myself to not screw it up entirely. Do you (or anyone) know if these scripts are being maintained? Updating from the script manager would be awesome if possible.
 
Last edited:
Ezandora's Briefcase has a commit yesterday on github - https://github.com/Ezandora/Briefcase - works for me
So does Ezandora's Detective Solver - https://github.com/Ezandora/Detective-Solver - does not work for me after running FarFuture (and manually sleeping out of it), but did work the second time I tried it. Maybe some desyncing between what I finished in relay browser and mafia?
Ezandora's Far Fuiture doesn't (yet?) - https://github.com/Ezandora/Far-Future - does not work for me
Thank you so much, xKiv!
 
The only thing that worked for me so far was manually rerunning Detective Solver, everything else mafia still has a fit :cry:
Have the latest build, updated JDK a month or so ago? Someone wake me when all this is sorted please 😭
 
This fixed FarFuture for me, but I'm not sure if the second change is needed.
Code:
552c552
<                       state.minutes_in = message.group_string("<b>([0-9]*)</b>")[0][1].to_int_silent();
---
>                       state.minutes_in = message.group_string(">([0-9]*)</b>")[0][1].to_int_silent();
1681c1681
<         string medals_earned_string = page_text.group_string("at least I have the memory of earning <b>([0-9]*) medals</b> in the future.")[0][1];
---
>         string medals_earned_string = page_text.group_string("at least I have the memory of earning >([0-9]*) medals</b> in the future.")[0][1];
 
Everything's working fine for me now (fingers crossed, don't wanna jinx it). Between mafia updates and Ezandora fixes, one of them must have worked. I just ran my first regular breakfast script with 0 issues today.
 
Back
Top