Raised This Month: $ Target: $400
 0% 

AMXX 0.20 TP4 outputs odd runtime errors


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 09-11-2004 , 01:35   AMXX 0.20 TP4 outputs odd runtime errors
Reply With Quote #1

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.
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
BAILOPAN
Join Date: Jan 2004
Old 09-11-2004 , 02:52  
Reply With Quote #2

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
__________________
egg
BAILOPAN is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 09-11-2004 , 11:41  
Reply With Quote #3

I figured it had something to do with the new compiler.
so... I guess I wait for TP5. Thanks for the reply.
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
BAILOPAN
Join Date: Jan 2004
Old 09-11-2004 , 12:26  
Reply With Quote #4

Doesn't have anything to do with the new compiler o_O
__________________
egg
BAILOPAN is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 09-11-2004 , 12:36  
Reply With Quote #5

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
__________________
jtp10181 is offline
Send a message via ICQ to jtp10181 Send a message via AIM to jtp10181 Send a message via MSN to jtp10181 Send a message via Yahoo to jtp10181
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 09-11-2004 , 12:38  
Reply With Quote #6

JIT is in the core, not in the compiler
__________________
hello, i am pm
PM is offline
Da Bishop
Senior Member
Join Date: Aug 2004
Location: Chester County PA
Old 09-11-2004 , 13:56  
Reply With Quote #7

maybe if you tell him that about 3 more times he will listen
Da Bishop is offline
Send a message via MSN to Da Bishop
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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