Log in

View Full Version : Access violation error Narcle's AutoFighter



Extraz
04-15-2009, 11:52 PM
Hi, I was using the great Narcle's AutoFighter script when the script stopped working.:( It would run for 10mins and then when it tried to write a proggy it would come up with this error:
[Runtime Error] : Exception: Access violation at address 006165B1 in module 'scar.exe'. Read of address 00000000 in line 771 in script C:\...\Scripts\Fighting\Narcle's AutoFight [v0.93][r31].scar
This is line 771:

WriteLn(Padr('| Round Kills: ' + inttostr(ReportVars[0]), 27) + Padr('| Round XP : ' + inttostr(ReportVars[1]), 27)+

This was annoying but I could live with running it for ten mins and then restarting it. However, a day later when I ran it it didn't run at all. It loads up smart and then comes out with:
[Runtime Error] : Exception: Access violation at address 006165B1 in module 'scar.exe'. Read of address 00000000 in line 214 in script C:\...\Scripts\Fighting\Narcle's AutoFight [v0.93][r31].scar
The same error. :eek:
Here is line 214:

Writeln(Capitalize(Players[Player].Name) +' color setup is incorrect, please correct it');
The same function. :eek:
I tried writing a new script just using the Writeln function and it worked fine.:confused:

I run on vista and I assumed this was just another problem the vista created:mad:. I set the options to run in compatibility mode for xp and to always run as admin. No joy. I then disabled DEP. Still no joy. Any help with this problem would be greatly appreciated. If help dosen't come soon I am going to have to resort to deleting the offending lines!:duh:


EDIT: Discovered problem/bug. I had set UseReportWin=true which doesn't work with visa/my computer. :D This fixed the problem with line 214 but not 771 sometimes, sometimes the error still appears. I also tried it on another computer running vista with the same results.