SRL Archive - SRL Bugs

SRL crashing... "skill to coords" Gametab


Wanted

2010-01-30 16:30:13

I can't even run my script…. when I do get levels I get a runtime error in Gametab.scar line 366 "Could not convert variant of type (string) into type (boolean) in line 366 in script C:/….."

Someone please fix this… I don't want to have to revert back 10 revisions.

Bebe

2010-01-30 16:51:24

what are you entering into the skills variant variable?
And does your script run or just stop at the very beginning?

Ps. whoever wrote this function doesn't know that variants are extremely slow in pascal compared to other data types + they are considered bad programming practice and to be "dirty" in pascal based programming.

Wanted

2010-01-30 16:56:54

From: Bebe
what are you entering into the skills variant variable?
And does your script run or just stop at the very beginning?

Ps. whoever wrote this function doesn't know that variants are extremely slow in pascal compared to other data types + they are considered bad programming practice and to be "dirty" in pascal based programming.


I'm not putting directly into those parameters… it's all SRL side and anything that uses that function within SRL is causing a runtime error thus stopping the script unexpectedly, and there's nothing wrong with variants they are used left and right all over the place 'WriteLn', 'Compass' and they are very handy all the time when using functions that need dynamic information based on location/conditions ect….. and if there was it's not like it's being looped a thousand times -.-

I had to revert back 3 revisions to SRL 352… why is SCAR's SRL being messed with to work with simba? That should be a completely separate SVN imo.

Btw: In SRL 355 it's trying to search for a LampDTM with a bitmap handle… thats gonna crash my script as well, someone please change that in Globals.scar

code841

2010-01-30 19:40:15

Yes I keep getting the same two errors with Gametab.scar and the lamp one.
Also I am getting random access violations which caused scar to freeze and crash completely.

Timer

2010-01-30 19:48:24

http://www.villavu.com/forum/showthread.php?p=680512

Wanted

2010-01-30 19:50:26

From: code841
Yes I keep getting the same two errors with Gametab.scar and the lamp one.
Also I am getting random access violations which caused scar to freeze and crash completely.


Update your SRL again to fix the lamp one, then get the other gametab.scar from Timer's thread.