I know I'm late in posting this, but has anyone seen this: "No match attempted or previous match failed (witchess_solver.ash, line 104)" I get it when I try and run the script. If I have opened witchess manually, I don't get this, and the script runs fine...
void main()
{
visit_url("campground.php");
visit_url("campground.php?action=witchess");
visit_url("choice.php?whichchoice=1181&option=2&pwd");
visit_url("choice.php?whichchoice=1181&option=1&pwd");
visit_url("campground.php?action=witchess");
cli_execute("call witchess_solver.ash");
}
I am still getting the same error above on line 104 when used in conjunction with the new Rollover Management script here:
http://kolmafia.us/showthread.php?22074-Rollover-Management&highlight=witchess_solver
I tried the code above in various spots, but it didn't solve anything on my end. Any help would be appreciated. Thanks!
Try looking at your witchess set in your campground, and leave, then try to run this again.
No change. Still get that error about line 104.
Can you post the actual error? Is line 104 part of the witchess script?
"No match attempted or previous match failed (witchess_solver.ash, line 104)"
Get the same error whether I run your rollover script or the witchess script directly, so it would seem that's where the error is happening. It is the same error you posted here in post #42 above. I tried copy/pasting your fix from post #46 into the witchess script to no avail.
I remember dealing with this. I believe it happens when the script comes across a puzzle it hasn't solved for you yet. For some reason, I also think it happens before you have the full puzzle buff available too.
I used to manually go into my witchess set, and open a puzzle, not solve it, and re-run the script. If that doesn't do it, try having mafia auto solve 1 puzzle, and re-run.
Invalid type name 'writeX' (witchess_solver.ash, line 232, char 8 to char 14)
Expected , or ], found + (witchess_solver.ash, line 232, char 15 to char 16)
Type given but not used to declare anything (witchess_solver.ash, line 232, char 3 to char 16)
Expected }, found + (witchess_solver.ash, line 232, char 15 to char 16)
Expected }, found + (witchess_solver.ash, line 232, char 15 to char 16)
Missing return value (witchess_solver.ash, line 184, char 8 to char 36)
Empty or unknown node (witchess_solver.ash, line 232, char 15 to char 16)
Expected ;, found + (witchess_solver.ash, line 232, char 21 to char 22)
Empty or unknown node (witchess_solver.ash, line 232, char 21 to char 22)
Unknown variable 'writeY' (witchess_solver.ash, line 232, char 23 to char 29)
Expected ;, found ] (witchess_solver.ash, line 232, char 29 to char 30)
Empty or unknown node (witchess_solver.ash, line 232, char 29 to char 30)
Empty or unknown node (witchess_solver.ash, line 232, char 31 to char 32)
Empty or unknown node (witchess_solver.ash, line 233, char 2 to char 3)
Unknown variable 'x' (witchess_solver.ash, line 235, char 6 to char 7)
Unknown variable 'y' (witchess_solver.ash, line 235, char 16 to char 17)
Unknown variable 'x' (witchess_solver.ash, line 236, char 61 to char 62)
Unknown variable 'y' (witchess_solver.ash, line 236, char 73 to char 74)
Unknown variable 'path' (witchess_solver.ash, line 240, char 7 to char 11)
Unknown variable 'path' (witchess_solver.ash, line 243, char 24 to char 28)
Cannot return when outside of a function (witchess_solver.ash, line 247, char 2 to char 8)
Empty or unknown node (witchess_solver.ash, line 248, char 1 to char 2)
WARNING: Unreachable code (witchess_solver.ash, line 275, char 64)
path[writeX + "," + writeY] = 0;
Okay, now this is *super* weird. I checked for days and saw zero replies, so I reverted to the old witchess solver. Thanks for the response, and I hope it helps anyone else that runs into this issue!@gausie This seems to be unexpected fallout from adding the `path` type. First erroring line in the script:
Code:path[writeX + "," + writeY] = 0;
We probably ought to mark path as a reserved keyword, among other things.
@snooty The last revision that this works for as-is is probably r26712. If you're feeling adventurous, you can open up the script file in, say, notepad, and do a search+replace of "path" -> "witchess_path".