Bug Numberology wrong number

ckb

Minion
Staff member
I seem to occasionally get the wrong number when using 'numberology'
I don't know why this happens or what is going wrong, but my script does this:
Code:
cli_execute("numberology 69");

And the result I get is this:
Code:
cast 1 Calculate the Universe
[205] numberology 69
You gain 37 Magicalness

Which is numberology 68
So maybe there is an off-by-one error somewhere?

This happens not always, and intermittently, and I have little more information at this point. I will try and debug more...
 

lostcalpolydude

Developer
Staff member
Is your script a Post-Adventure script? I think I tried doing that for a little while, but the timing of charpane loading would affect the results inconsistently so I stopped doing that.
 

ckb

Minion
Staff member
Yes - my script is called from an After-Adventure script. That would explain some things. I'll try... something else maybe.

Do you know exactly how this timing of charpane loading works?
 

lostcalpolydude

Developer
Staff member
Do you know exactly how this timing of charpane loading works?
Not really, except that manual adventuring (charpane.php) and automated adventuring (api.php) load with different timings, basically guaranteeing different results.

That type of thing created edge cases for tracking turns_spent that I gave up on trying to fix.
 

ckb

Minion
Staff member
Aha! I think this is only happening when I am adventuring using the Relay Browser.
Is there a way to tell if a click or adventure request has come from the relay instead of a automated script?
 
Top