AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   AMXX 0.20 TP4 outputs odd runtime errors (https://forums.alliedmods.net/showthread.php?t=5727)

jtp10181 09-11-2004 01:35

AMXX 0.20 TP4 outputs odd runtime errors
 
Code:

L 09/10/2004 - 23:08:00: [AMXX] Run time error 10 on line 3297 (plugin "superheromod.amxx")
here is code around this error (this is the very last function in the plugin)

Code:
public createINIFile() {   if ( file_exists(gSHFile) ) delete_file(gSHFile)   write_file(gSHFile,"## NUMLEVELS  - The total Number of levels to award players",0)   write_file(gSHFile,"## XPLEVELS   - How much XP does it take to earn each level (0..NUMLEVELS)",1)   write_file(gSHFile,"## XPGIVEN    - How much XP is given when a Level(N) player is killed (0..NUMLEVELS)", 2)   write_file(gSHFile,"## LTXPLEVELS - Same as XPLEVELS but for Long-Term mode (sh_savexp 1)",3)   write_file(gSHFile,"## LTXPGIVEN  - Same as XPGIVEN but for Long-Term mode (sh_savexp 1)", 4)   // Straight from WC3 - but feel free to change it in the INI file...   write_file(gSHFile,"NUMLEVELS 10" , 5)   write_file(gSHFile,"XPLEVELS   0 100 300 600 1000 1500 2100 2800 3600 4500 5500", 6)   write_file(gSHFile,"XPGIVEN    60 80 100 120 140 160 180 200 220 240 260", 7)   write_file(gSHFile,"LTXPLEVELS 0 100 200 400 800 1600 3200 6400 12800 25600 51200", 8)   write_file(gSHFile,"LTXPGIVEN  6 8 10 12 14 16 20 24 28 32 40", 9) }

the very last "write_file" line is line# 3297

it seems to be getting errors elsewhere but outputs the last line number every time. I had this happen on a hero also, it was reporting the last line as the error line, but I fixed the error elsewhere in the plugin.

Any ideas?

Sorry if this is known already, I looked in the forums and could not find any info. Could not figure out a good way to search for this either.

BAILOPAN 09-11-2004 02:52

run time error lines are totally wrong in TP4

You will see more info about this with TP5 - as plugins will be now run in "debug mode" if you want correct line numbers

the reason is the JIT destroys line number information in order to get a 3-4X speed increase. so I made it so the JIT will not do that and you can put a plugin in a slower debug mode

jtp10181 09-11-2004 11:41

I figured it had something to do with the new compiler.
so... I guess I wait for TP5. Thanks for the reply.

BAILOPAN 09-11-2004 12:26

Doesn't have anything to do with the new compiler o_O

jtp10181 09-11-2004 12:36

well the new compiler uses JIT... so it has to do with that fact.

Anyway... I'm gonna try compiling with the old compiler to see if I can get these errors fixed now :)

PM 09-11-2004 12:38

JIT is in the core, not in the compiler :wink:

Da Bishop 09-11-2004 13:56

maybe if you tell him that about 3 more times he will listen :D


All times are GMT -4. The time now is 17:26.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.