Raised This Month: $51 Target: $400
 12% 

1.17.1


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Chivas2973
Veteran Member
Join Date: Mar 2004
Location: Wisconsin
Old 08-12-2004 , 22:57   1.17.1
Reply With Quote #1

3 things
1, I have 20 levels and it changed it to 10 levels saying that ini is higher than SH_MAXLEVEL in include
2, runtime error 4 line 413 plugin superheromodvault.amx
3, amx runtime error 4 line 441 task 0 plugin superheromodvault.amx

I may have installed on the fly but just thought you should know
__________________
Chivas2973 is offline
vittu
SuperHero Moderator
Join Date: Oct 2004
Location: L.A. County, CA
Old 08-13-2004 , 00:54  
Reply With Quote #2

1.
Quote:
## NUMLEVELS - The total Number of levels to award players
## XPLEVELS - How much XP does it take to earn each level (0..NUMLEVELS)
## XPGIVEN - How much XP is given when a Level(N) player is killed (0..NUMLEVELS)
## LTXPLEVELS - Same as XPLEVELS but for Long-Term mode (sh_savexp 1)
## LTXPGIVEN - Same as XPGIVEN but for Long-Term mode (sh_savexp 1)
NUMLEVELS 10
XPLEVELS 0 100 300 600 1000 1500 2100 2800 3600 4500 5500
XPGIVEN 60 80 100 120 140 160 180 200 220 240 260
LTXPLEVELS 0 100 200 400 800 1600 3200 6400 12800 25600 51200
LTXPGIVEN 6 8 10 12 14 16 20 24 28 32 40
superhero.ini from the install... did you adjust it?

from the install doc:
Quote:
Upgrade Existing Installation

Upload the contents of the plugins folder into your existing plugins folder, overwriting any existing files. If CVARS were added or changed you can look in the shconfig.cfg in this package and see the changes / additions.
you only need to overwrite you plugins folder and check the new shconfig.cfg for changes from yours. Did you copy over all the files?
vittu is offline
Send a message via AIM to vittu Send a message via MSN to vittu Send a message via Yahoo to vittu
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 08-13-2004 , 06:45  
Reply With Quote #3

I forgot about something I did a while ago. I made the maxlevels in the superheromod.inc file 10 to reduce the size of the compiled plugin. If you need more than 10 levels you need to edit that and recompile it.

I will look at the runtime errors, but what exactly is it thats causing them?

NM the runtime errors are because you have more than 50 heros, I also changed that in the inc file, limited to 50. You need to change that also. I guess theres some issues with the arrays going out of bounds if you go over the max heros, I'll have to fix that up and rls a new version.
__________________
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
Chivas2973
Veteran Member
Join Date: Mar 2004
Location: Wisconsin
Old 08-13-2004 , 09:40  
Reply With Quote #4

oh, ok, I didn't realize I had to recompile the inc file, I just edited it, thanx for addressing it though
__________________
Chivas2973 is offline
123
Veteran Member
Join Date: Apr 2005
Location: Katy, TX
Old 08-13-2004 , 09:47  
Reply With Quote #5

I can't recompile the superheromod.sma file...
What can be wrong ?
I think that it is after I installed the 1.7.1 version...
Nor the .inc file either...
__________________
//ShadowLeader - 123
123 is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 08-13-2004 , 18:56  
Reply With Quote #6

Quote:
Originally Posted by 123
I can't recompile the superheromod.sma file...
What can be wrong ?
I think that it is after I installed the 1.7.1 version...
Nor the .inc file either...
ERROR?

jesus people.... if you want any help on ANYTHING EVER GIVE ME THE ERROR.

I cannot pull magic trick asnwers out of my ass.....
__________________
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
Chivas2973
Veteran Member
Join Date: Mar 2004
Location: Wisconsin
Old 08-13-2004 , 19:19  
Reply With Quote #7

ok, I am home now, last night before I posted the error, I tried to just edit the inc file to adjust it to 20 levels, today I read your response to recompile it, since I can't compile an inc file I assume you meant edit the inc and recompile the sma, so I tried to compile the sma and got

Quote:
Small compiler 2.1.0 Copyright (c) 1997-2002, ITB CompuPhase

examples\superheromod.sma(207) : fatal error 100: cannot read from file: "superherovault"

Compilation aborted.
1 Error.
I am not sure what to do
__________________
Chivas2973 is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 08-13-2004 , 21:05  
Reply With Quote #8

put the inc file in the proper location

it need to be in the includes folder just like in the download.

inc files are "includes" that get compiled into the plugins.
__________________
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
Chivas2973
Veteran Member
Join Date: Mar 2004
Location: Wisconsin
Old 08-13-2004 , 21:39  
Reply With Quote #9

don't mean to bug you, but I did just edit the inc file in the include folder, does it auto compile or do I have to change or compile anything on my own cause the server still has 10 levels and the superhero ini
Quote:
## NUMLEVELS - The total Number of levels to award players
## XPLEVELS - How much XP does it take to earn each level (0..NUMLEVELS)
## XPGIVEN - How much XP is given when a Level(N) player is killed (0..NUMLEVELS)
## LTXPLEVELS - Same as XPLEVELS but for Long-Term mode (sh_savexp 1)
## LTXPGIVEN - Same as XPGIVEN but for Long-Term mode (sh_savexp 1)
NUMLEVELS 20
XPLEVELS 100 200 300 600 1000 2500 4000 6000 8000 10000 12000 14000 16000 18000 900500 1000500 1001500 1002500 1003500 1004500
XPGIVEN 60 80 100 120 140 160 180 200 220 240 260 280 300 320 340 360 380 400 420 440
LTXPLEVELS 100 150 200 400 800 10600 30200 60400 102800 205600 501200 601200 701200 801200 9001200 10001200 10011200 10021200 10031200 10041200
LTXPGIVEN 6 8 10 12 14 16 20 24 28 32 40 50 60 70 80 90 100 110 120 130
server shows
Quote:
[AMX] NUMLEVELS in superhero.ini is defined higher than SH_MAXLEVELS in the include file. Adjusting NUMLEVELS to 10
[AMX] Level 0 must have an XP setting of 0, adjusting automatically
[AMX] Run time error 4 on line 413 (plugin "superheromodvault.amx")
[AMX] Run time error 4 on line 413 (plugin "superheromodvault.amx")
[AMX] Run time error 4 on line 413 (plugin "superheromodvault.amx")
[AMX] Run time error 4 on line 413 (plugin "superheromodvault.amx")
[AMX] Run time error 4 on line 413 (plugin "superheromodvault.amx")
[AMX] Run time error 4 on line 413 (plugin "superheromodvault.amx")
[AMX] Run time error 4 on line 413 (plugin "superheromodvault.amx")
[AMX] Run time error 4 on line 413 (plugin "superheromodvault.amx")
[AMX] Run time error 4 on line 413 (plugin "superheromodvault.amx")
[AMX] Run time error 4 on line 413 (plugin "superheromodvault.amx")
sorry, I don't mean to be frustrating, I am just new to this aspect
thanx in advance

edit, I guess I should show this too, the inc file
Quote:
#if defined _sheros_included
#endinput
#endif
#define _sheros_included

//Max player slots, should not really be changed from 32
#define SH_MAXSLOTS 32

//Max levels that can be loaded from the superhero.ini
#define SH_MAXLEVELS 20

//Max Amount of heros that can be loaded
#define SH_MAXHEROS 50

// potential of power1-power9 but i'll cut it to power1-power3 using a cvar
// Limit by sh_maxbinds (=3 now) - bind heros will not appear in menu after 3 chosen
#define SH_MAXBINDPOWERS 9
__________________
Chivas2973 is offline
jtp10181
Veteran Member
Join Date: May 2004
Location: Madison, WI
Old 08-13-2004 , 22:15  
Reply With Quote #10

you need to compile the plugin..... when you edit the inc it does not magically recompile the plugin.
__________________
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
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 05:13.


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