SRL Archive - Bugs

Access Violation in TileCore.simba


Coh3n

2011-03-31 11:59:06

Was running a private script and I got this last night (8 hours in). I've run this same script hundreds of times before and never got an error like this, so I'm not sure what could have provoked it.

Error: Exception: Access violation at line 137

Result.y := (SmartGetFieldInt(me, hook_animable_PixelY) - SmartGetFieldInt(0, hook_static_BaseY)) / 512;
Any ideas?

Harry

2011-03-31 12:57:13

Never happened to me, what sort of tile functions are you using in your script?

mormonman

2011-03-31 13:17:53

The me value could be an invalid location.

Coh3n

2011-03-31 17:07:04

From: Harry
Never happened to me, what sort of tile functions are you using in your script?

WalkPath, GetMyPos. That's pretty much it. Like I said, I've run it 100 times and never had a problem, so it may be nothing, but I thought I'd bring it up anyway.

From: mormonman
The me value could be an invalid location.

So would a try..except stop the runtime error so the script wouldn't stop?

mormonman

2011-03-31 17:41:14

It should.