SRL Archive - SRL Archives

Bugs


Squigglyo

2008-05-17 09:15:19

XPTillNextLevel

Sometimes misses all numbers before a comma.

InvCount, Withdraw, Deposit

Return GameTab(4) errors. InvCount should check if its in a bank.

Wizzup?

2008-05-17 12:31:30

What is wrong with InvBox, Deposit and Withdraw, maybe you can explain what is wrong with them?

MylesMadness

2008-05-17 15:25:12

From: Squigglyo
Return GameTab(4) errors. InvCount should check if its in a bank.


From: Wizzup?
What is wrong with InvBox, Deposit and Withdraw, maybe you can explain what is wrong with them?
Wizzup isn't reading :p

ShowerThoughts

2008-05-17 16:10:27

From: Mylesmadness
Wizzup isn't reading :p


That can happen the best :p

Wizzup?

2008-05-17 17:30:19

Meh, you have to admit it is still quite vague…
It will only warn, but not error or do anything bad…

Squigglyo

2008-05-18 00:11:54

With the ExpTillLevel thing, if my exp is

168,287 till next level

it returns 8287 most times.


Also, with the other ones, i couldnt figure out why it returns a GameTab(4) error, cause from what i can tell the only procedure that can return that error is the GameTab() procedure, which isnt called in those functions.

So its a mystery to me as to why Deposit and Withdraw return those errors.

ZephyrsFury

2008-05-18 00:29:22

Deposit calls ExistsItem and MouseItem which call GameTab. Not sure about Withdraw though.

Wizzup?

2008-05-18 06:46:38

Right. I see the problem now.
We could add a boolean to check wether we are using a bank like procedure.
Adding If Not BankScreen Then ect; 
Does not seem like a good idea to me…
We could just remove the error writeln in Gametab.
I could add an extra const srl_WarnSensitive to SRL, which would be used in cases like these. It would be default not writeln the error.

Markus

2008-05-24 14:12:51

Added warn_Notice (-3)to the warning system.
Removed const ShowWarnings.
Added const WarnSensitivity, default -2, will show the number and above, so if you set it to -1 you will only get Terminate, AllVersions and the revision specific ones, if you set it to -3 it'll show everything.
The XPTilNextLevel in the repos works fine with 6 and 5 digits :)

Closed.