AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Tech Support (https://forums.alliedmods.net/forumdisplay.php?f=36)
-   -   1.17.1 (https://forums.alliedmods.net/showthread.php?t=30598)

Chivas2973 08-12-2004 22:57

1.17.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

vittu 08-13-2004 00:54

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?

jtp10181 08-13-2004 06:45

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.

Chivas2973 08-13-2004 09:40

oh, ok, I didn't realize I had to recompile the inc file, I just edited it, thanx for addressing it though

123 08-13-2004 09:47

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...

jtp10181 08-13-2004 18:56

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.....

Chivas2973 08-13-2004 19:19

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

jtp10181 08-13-2004 21:05

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.

Chivas2973 08-13-2004 21:39

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

jtp10181 08-13-2004 22:15

you need to compile the plugin..... when you edit the inc it does not magically recompile the plugin.

gign 08-13-2004 22:28

ok i edited the superheromod.inc to look like this

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 30

//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
and the compile was successful, however, in the server the max levels only appear to be 18, what seems to be the problem here??

my Superhero.ini is as follows

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 0 0 300 600 1000 1500 2100 2800 3600 4500 5500 6500 7500 8500 9500 10500 11500 12500 13500 14500
XPGIVEN 60 80 100 120 140 160 180 200 220 240 260 280 300 320 340 360 380 400 420 440
LTXPLEVELS 0 0 200 400 800 1600 3200 6400 12800 25600 51200 61200 71200 81200 91200 808888 1000235 1112555 1219900
1412999
LTXPGIVEN 6 8 10 12 14 16 20 24 28 32 40 50 60 70 80 170 180 200 240 250

jtp10181 08-13-2004 22:36

how many numbers are here?

0 - 19

yes there is a level 0

hmmm.....

Code:

LTXPGIVEN 6 8 10 12 14 16 20 24 28 32 40 50 60 70 80 170 180 200 240 250

Chivas2973 08-13-2004 22:45

last time I am gonna bug you with this, cause it may be my lack of knowledge,

ok, I edited the include/superheromod.inc
then I used the compiler built into amx 98a
recompiled the whole thing, so there is now a compiled folder
also within that folder, I took the superheromod.amx and put it in the plugins and I still am left with 10 levels

maybe I am just a dumbass and if so, I will just deal with what I have, sorry, just don't get it

jtp10181 08-13-2004 22:48

1 Attachment(s)
did you remove the other plugin?

what error are you getting when the server starts?

and uhg.... here is a compiled vault saving suphero with the old default define values. also the runtime is fixed

Chivas2973 08-13-2004 22:57

that download gave me alot of help, I now have 19 levels in server, not sure what I didn't do, but I appreciate the help jtp

jtp10181 08-13-2004 23:05

you only have 19 levels because you only have 0 - 19 defined in your ini

there is a level 0 dont forget

Chivas2973 08-13-2004 23:14

btw, I was just looking, and there is no superheromodvault.sma and when I compiled the examples, it obvioisly did not make a superheromodvault.amx, where did I miss it, what did I need to compile to give me that amx

I also now understand that I need a total of 21 levels for a server to go to level 20, I have made a note of it and planned accordingly

anyway, all your support of this mod is always appreciated jtp

jtp10181 08-13-2004 23:17

the vault and mysql compiel sare the same thingm just using different includes, they are both from superheromod.sma, when they compile I rename them for the release. If you use a custom compiled version you can either rename the amx OR change your entry in the plugins.ini from superheromodvault.amx to -> superheromod.amx

imported_TicoMeElmo 08-14-2004 22:19

GRR someone deleted my superhero.ini post i posted a help thingy for that 21 levels thing and someone deleted it!!

jtp10181 08-14-2004 23:16

I probably moved it.... and it was retarded anyway


All times are GMT -4. The time now is 19:32.

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