SRL Archive - S.M.A.R.T. General and Q/A.

Reading errors?


Narcle

2007-11-19 00:31:50

Ok I don't understand this, when I use my fighter in SS or regular Java it works fine but when I use SMART it doesn't read HpPercent or something.

Thing is I ran HpPercent and my custom GetArrowCount functions in a seperate file and they return the correct numbers… WTF!

The triggers:
if ((eatfood = 'on') and (outoffood = false) and (HpPercent < 70)) then
if ((HpPercent < 30) and (Emergencyrun = 'on')) then
if ((hpcheck = 'on') and (HpPercent < 60) and (outoffood = true)) then

Its really annoying the shit out of me because I can't fix it. And I don't want to turn it off.

Edit:
Also when I do a "Makecompass" It won't stop when it gets to the designated n/s/e/w point. I'll look through the tuts and post to see if I have to replace something.

Edit2: Well I know whats causing it. After MakeCompass spins around way to much, it then reads the numbers incorrectly… For now I have my screen rotation removed. *sigh*

The Claw

2007-11-19 02:52:32

Are you calling SmartGetDC or whatever it is after loading the world? Also make sure smart.scar has the bitmap functions.

Narcle

2007-11-19 11:34:02

Yea I'm calling it, but as I found out its reading them correctly. It only mess's up when it does MakeCompass before it… When I disable MakeCompass it works fine so something in MakeCompass is messing up. Like when I tell it to MakeCompass('s'); it'll start going that way then keep spinning like it can't find compass angle I'm guessing.

Is it possible its the bitmap functions? Sounds like it could be.

Which bitmap functions?

Markus

2007-11-19 15:52:55

Redownload 3.13, it had a bug that could cause this.