3Garrett3
2010-05-16 14:07:21
Hello,
I really do not wish to create a bug tracking account or whatever it is, I will just make a post here.
Recently, while trying to work on msi, I became aware of a failure in both SRL and Simba. First, I will mention the failure of Simba. What I wish to bring to the attention of developers is the poor error reports. It gave the wrong location, as well as an error which is impossible to follow up.
[PHP]Error: Exception: The given DTM Index[0] doesn't exist at line 352[/PHP]
The client then opened up "Antirandoms.scar" and highlighted line 352. Looking at the line (Opendev revision) you may be confused, as you should be. The line is blank. Prior is "Function FindFight : Boolean" and after is "begin". But this could not be the error which is causing the crash, so I looked through the FindFight function and the function preceding it. Neither even contained a DTM finding/freeing function.
So I asked my friend Cohen to open up SCAR, and run msi. When he got the error, he got the report:
[PHP][Runtime Error] : Exception: Access violation at address 007876D4 in module 'scar.exe'. Read of address 00000000 in line 383 in script Z:\home\cohen\SCAR\includes\SRL\SRL\Core\AntiRandoms\AntiRandoms.scar[/PHP]
Looking at the include, the code is:
Where line 383 is the FindDTM(Lamp) line.
So, I have no idea why this causes a crash, but the only thing I can think of is that the DTMs aren't loading like they should, causing a crash.
If someone could clear this up and update the rev, I would greatly appreciate it. As well, if someone could look into why Simba reported the wrong line/area for the failure, that would be appreciated. The error reports in Simba require a large overhaul IMO, because the ones in SCAR actually tell you what went wrong, where the Simba ones are confusing and don't actually help.
Thanks for your patience,
Garrett
I really do not wish to create a bug tracking account or whatever it is, I will just make a post here.
Recently, while trying to work on msi, I became aware of a failure in both SRL and Simba. First, I will mention the failure of Simba. What I wish to bring to the attention of developers is the poor error reports. It gave the wrong location, as well as an error which is impossible to follow up.
[PHP]Error: Exception: The given DTM Index[0] doesn't exist at line 352[/PHP]
The client then opened up "Antirandoms.scar" and highlighted line 352. Looking at the line (Opendev revision) you may be confused, as you should be. The line is blank. Prior is "Function FindFight : Boolean" and after is "begin". But this could not be the error which is causing the crash, so I looked through the FindFight function and the function preceding it. Neither even contained a DTM finding/freeing function.
So I asked my friend Cohen to open up SCAR, and run msi. When he got the error, he got the report:
[PHP][Runtime Error] : Exception: Access violation at address 007876D4 in module 'scar.exe'. Read of address 00000000 in line 383 in script Z:\home\cohen\SCAR\includes\SRL\SRL\Core\AntiRandoms\AntiRandoms.scar[/PHP]
Looking at the include, the code is:
GameTab(tab_Inv);
if not SRLBitmapsLoaded then
LoadSRLBitMaps;
if (FindDTM(Lamp, x, y, MIX1, MIY1, MIX2, MIY2)) then
begin
Result := True;
Where line 383 is the FindDTM(Lamp) line.
So, I have no idea why this causes a crash, but the only thing I can think of is that the DTMs aren't loading like they should, causing a crash.
If someone could clear this up and update the rev, I would greatly appreciate it. As well, if someone could look into why Simba reported the wrong line/area for the failure, that would be appreciated. The error reports in Simba require a large overhaul IMO, because the ones in SCAR actually tell you what went wrong, where the Simba ones are confusing and don't actually help.
Thanks for your patience,
Garrett