AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=7)
-   -   AMX Mod X 0.20-3 Talk (https://forums.alliedmods.net/showthread.php?t=5192)

BAILOPAN 08-24-2004 02:59

AMX Mod X 0.20-3 Talk
 
Sorry if we didn't fix anything from RC2. After all the release was one day after, targetted at fixing immedate things.

Please repost any problems that were not corrected.

Known Issues:
"defined twice" language key errors. DON'T POST THEM.
amx_client_languages is not a registered CVAR.

If you have problems compiling plugins with amxxsc, use the old sc.exe from amxmodx-0.16. Remember, amxmodx 0.20 can load .amx files too. Posting compiler crashes is rather unhelpful. We didn't write the compiler and we know it sucks, we'll try to fix it the best we can.

Melt284 08-24-2004 03:36

1) Base plugin errors:
Quote:

L 08/22/2004 - 19:41:44: [AMXX] Run time error 4 on line 86 (plugin "stats_logging.amxx")
L 08/22/2004 - 19:41:59: [AMXX] Run time error 10 on line 100 (task "20406642") (plugin "adminhelp.amxx")
2) Attackers/Victims at round end/death do not show up at all (and they are turned on)

3) Stats/Top15 do not contain line breaks and are all placed beside eachother instead of seperate lines

4) Some broken plugins include:
Quote:

high_ping_kicker = L 08/23/2004 - 03:22:38: [AMXX] Run time error 4 on line 128 (plugin "high_ping_kicker.amxx")
admin_gag = bad_load
weaponarena = compiler crash

Siessen 08-24-2004 04:33

compiling
 
how do i compile in this new version?
i got all my plugins compiled in the old 0.16 version without problems but here i can't seem to get it right :?

maybe i use the wrong command, or should i place the sma files somewhere else than in scripting?

plsss help me, 0.20 tp2 did'nt work last time but this one does so i wanna test it right away ^^

BAILOPAN 08-24-2004 04:51

Run compile.sh from scripting as ./compile.sh

lionello 08-24-2004 04:51

Code:

Warning:  Unable to open sound/misc/headshot.wav for transfer
Warning:  Unable to open sound/misc/doublekill.wav for transfer
Warning:  Unable to open sound/misc/impressive.wav for transfer
Warning:  Unable to open sound/misc/multikill.wav for transfer
Warning:  Unable to open sound/misc/godlike.wav for transfer
Warning:  Unable to open sound/misc/ultrakill.wav for transfer
Warning:  Unable to open sound/misc/killingspree.wav for transfer
Warning:  Unable to open sound/misc/rampage.wav for transfer
Warning:  Unable to open sound/misc/unstoppable.wav for transfer
Warning:  Unable to open sound/misc/monsterkill.wav for transfer
Warning:  Unable to open sound/misc/humiliation.wav for transfer
Warning:  Unable to open sound/misc/takenlead.wav for transfer
Warning:  Unable to open sound/misc/tiedlead.wav for transfer
Warning:  Unable to open sound/misc/lostlead.wav for transfer

I gut those error message..
Who can tell me why???

Siessen 08-24-2004 04:53

tryed, just got different error

siessen@ipx11026:~/nsp/addons/amxx/scripting> ./compile.sh
amxxsc: sc3.c:1651: int primary(value *): Assertion sc_status==statFIRST' failed.

xargs: Prozeß ./amxxsc abgebrochen durch das Signal 6.
ls: compiled/*.sma: Datei oder Verzeichnis nicht gefunden
Welcome to the AMX Mod X 0.20-261 Compiler.
Copyright (c) 1997-2004 ITB CompuPhase, AMX Mod X Team

billcat 08-24-2004 05:11

siessen@ipx11026:~/nsp/addons/amxx/scripting> ./compile.sh
amxxsc: sc3.c:1651: int primary(value *): Assertion sc_status==statFIRST' failed.


I had to modify the plugin from
#include <amxmod>
to
#include <amxmodx>

to get past these errors on my box.

Siessen 08-24-2004 05:14

owkey, tnx alot.

gonna get on to it right after i get home from work ^^

billcat 08-24-2004 05:18

good luck getting beyond that. all of the ns amxx plugins I'm using are so dependant on ns2amx it looks like they will all have to be rewritten or modified to work under the new engine and ns2amx modules. I'm sure this will be good in the long run but for now all my NS amx plugins refuse to load.

aceracer 08-24-2004 08:00

L 08/24/2004 - 19:57:02: [AMXX] Run time error 4 on line 529 (plugin "miscstats.amxx")
L 08/24/2004 - 19:57:02: [AMXX] Run time error 4 on line 86 (plugin "stats_logging.amxx")

L 08/24/2004 - 19:57:12: [AMXX] Run time error 10 on line 180 (task "92890818") (plugin "multilingual.amxx")
L 08/24/2004 - 19:57:17: [AMXX] Run time error 10 on line 100 (task "92890818") (plugin "adminhelp.amxx")

Pretty much the same errors I had before. I think I only saw the language error once so far...of course I do have other errors but those are plugin specific so I'llleave it to the plugin creaters to fix those. Again guys...keep up the great work your doing.

Neo-Vortex 08-24-2004 09:38

hmmm, now i notice this thread... *hits head on wall and walks off*

karlos 08-24-2004 10:32

still have this request: in util.cpp the func UTIL_ShowMOTD is
Code:
void UTIL_ShowMOTD( edict_t *client , char *motd, int mlen, const char *name) {     if (!gmsgServerName)         return;             // :TODO: Maybe output a warning log?     MESSAGE_BEGIN( MSG_ONE , gmsgServerName, NULL, client );     WRITE_STRING(name);     MESSAGE_END();     char *n = motd;     char c = 0;     int a;     while ( *n ) {         a = mlen;         if ( a > 175 ) a = 175;         mlen -= a;         c = *(n+=a);         *n = 0;         MESSAGE_BEGIN( MSG_ONE , gmsgMOTD, NULL, client );         WRITE_BYTE( c ? FALSE : TRUE );         WRITE_STRING( motd );         MESSAGE_END();         *n = c;         motd = n;     }     MESSAGE_BEGIN( MSG_ONE , gmsgServerName, NULL, client );     WRITE_STRING( hostname->string );     MESSAGE_END(); }
my request is to change it to something like that
Code:
void UTIL_ShowMOTD( edict_t *client , char *motd, int mlen, const char *name) {     if (gmsgServerName){         MESSAGE_BEGIN( MSG_ONE , gmsgServerName, NULL, client );         WRITE_STRING(name);         MESSAGE_END();     }     char *n = motd;     char c = 0;     int a;     while ( *n ) {         a = mlen;         if ( a > 175 ) a = 175;         mlen -= a;         c = *(n+=a);         *n = 0;         MESSAGE_BEGIN( MSG_ONE , gmsgMOTD, NULL, client );         WRITE_BYTE( c ? FALSE : TRUE );         WRITE_STRING( motd );         MESSAGE_END();         *n = c;         motd = n;     }     if (gmsgServerName){         MESSAGE_BEGIN( MSG_ONE , gmsgServerName, NULL, client );         WRITE_STRING( hostname->string );         MESSAGE_END();     } }
this way gmsgServerName is still checked (i had errors with it myself, my old version of OpFor cant display it) AND a MOTD is SHOWN (that is very important to me). Otherwise i would have to recompile it myself again, what i would like to prevent as i have some probs with it

karlos 08-24-2004 12:17

trim func dosnt work correctly (it trims chars too)
in my fun i made this:
Code:
new test[14], test2[14], test3[14]     format(test,13," abcde  ")     format(test2,13,"^t^t^tabc  ")     format(test3,13,"^t ^t abc^t ")     trim(test)     trim(test2)     trim(test3)     log_amx(test)     log_amx(test2)     log_amx(test3)
output is:
Code:
L 08/24/2004 - 17:17:59: [test.amxx] abcde L 08/24/2004 - 17:17:59: [test.amxx]    ac L 08/24/2004 - 17:17:59: [test.amxx]   b
it seems that this problem occurs when there are tabs (^t) in text

knocker 08-24-2004 12:45

Quote:

Originally Posted by aceracer
L 08/24/2004 - 19:57:12: [AMXX] Run time error 10 on line 180 (task "92890818") (plugin "multilingual.amxx")
L 08/24/2004 - 19:57:17: [AMXX] Run time error 10 on line 100 (task "92890818") (plugin "adminhelp.amxx")

i get these too ... :?

Kamikaze 08-24-2004 13:03

I'm getting this error from engine.inc when compiling Warcraft 3 Frozen Throne:

// amxx\scripting\include\engine.inc(287) : error 032: array index out of bounds (variable "fCheckAt")

Here's the lines in engine.inc:

/* Will return the contents of a point (inside map? in sky? outside map? etc.). */
stock PointContents(Float:fCheckAt[3]) {
return point_contents(fCheckAt[3]);
}

Line 287 points to return point_contents(fCheckAt[3]);


Also getting tag mismatch warning with mysql.inc file:

// amxx\scripting\include\mysql.inc(22) : warning 213: tag mismatch
// amxx\scripting\include\mysql.inc(36) : warning 213: tag mismatch
// amxx\scripting\include\mysql.inc(42) : warning 213: tag mismatch


/* Opens connection. If already such exists then that will be used.
* Function returns sql id to use with other sql natives.
* Host can be plain ip or with port seperated with ':' char. */
stock mysql_connect(host[],user[],pass[],dbname[],error[],maxlength)
{
return dbi_connect(host, user, pass, dbname, error, maxlength)
} <---- this being line 22



/* Clears query (sql) and closes connection (if any other plugin doesn't use it). */
stock mysql_close(sql)
{
return dbi_close(sql) <----------- this being line 36
}




/* Stores last error of current query/connection (sql) in (dest) with (maxlength) characters maximum. */
stock mysql_error(sql,dest[],maxlength)
{
return dbi_error(sql, dest, maxlength) <-------- this being line 42
}

Kamikaze 08-24-2004 13:23

CVS version fixed the engine.inc bug, the mysql bug is still there.

Anyone having trouble with that engine.inc bug should go on the CVS and download the engine.inc on there.

devicenull 08-24-2004 13:30

Kamikaze: Mysql, create your sql connection variable like this
Code:
new Sql:sql
Where the second sql is the variable name, just like floats and stuff

Also, this would be nice to put in amxmisc or dbi
Code:
stock init_sql(Sql:db) {     new host[64], username[32], password[32], dbname[32], error[32]     get_cvar_string("amx_sql_host",host,64)     get_cvar_string("amx_sql_user",username,32)     get_cvar_string("amx_sql_pass",password,32)     get_cvar_string("amx_sql_db",dbname,32)     db = dbi_connect(host,username,password,dbname,error,31)     if (db == SQL_FAILED) {         return -1     } return 1 }

Kamikaze 08-24-2004 13:55

Mysql module is not loading at all for me, I get this error:

L 08/24/2004 - 12:44:03: [AMXX] Module is not a valid library (file "cstrike\addons\amxx\modules\mysql_amxx.d ll")
08/24/2004 - 12:44:03: [AMXX] Function not found (name "dbi_result") (plugin "admin_sql.amxx")

Anyone else getting this:

Server used:
Windows Server 2003
AMXX 0.20 T3
Metamod 1.17.2

Why isn't the source file there for admin_sql.sma?

All I see is admin.sma and in that file you can comment out for sql version but do I use admin.amxx or admin_sql.amxx? I'm confused about that, doesn't matter with the Mysql not loading but just wondering.

Kamikaze 08-24-2004 13:57

I get this runtime error that will make the server lock up:

L 08/24/2004 - 12:47:06: [AMXX] Run time error 10 on line 197 (plugin "grenades_are_heavy.amxx"):

Points to these lines:

public ImpactDamage(id,grenadeid) {
new Float:gorigin[3], origin[3]
entity_get_vector(grenadeid, EV_VEC_origin, gorigin)
origin[0]=floatround(gorigin[0])
origin[1]=floatround(gorigin[1])
origin[2]=floatround(gorigin[2])
if ( !is_user_alive(id) ) return
message_begin(MSG_ONE, get_user_msgid("Damage"), {0,0,0}, id)
write_byte(30) // dmg_save
write_byte(30) // dmg_take
write_long(0) // visibleDamageBits
write_coord(origin[0]) // damageOrigin.x
write_coord(origin[1]) // damageOrigin.y
write_coord(origin[2]) // damageOrigin.z
message_end() <------ this is line 197
}

Anyone have any ideas?

Sorry if this might not be relievent, just trying to post as many bugs as I can to help fix them for the final release.

Kamikaze 08-24-2004 14:06

Typing amx_modules in the server console will crash the server (using Windows).

devicenull 08-24-2004 14:17

1 Attachment(s)
Quote:

Originally Posted by Kamikaze
Typing amx_modules in the server console will crash the server (using Windows).

Not here, mine works fine

Also, this plugin will reliably produce a mysql crash..
Run it, use dbi_test in the server's console

About admin.sma. They were merged into one, there is a flag in the source file indicating which one was used

Kamikaze 08-24-2004 14:24

Quote:

Originally Posted by devicenull
About admin.sma. They were merged into one, there is a flag in the source file indicating which one was used

I'm still confused, should I use admin.amxx or admin_sql.amxx, if I compile admin.sma file with the mysql option, it won't create a admin_sql.amxx file, why is it there to begin with?


I'll try the mysql test for you too, I'm just running an additional test server anyways just to try out AMXX 0.20 so it's no problem at all :)

devicenull 08-24-2004 14:25

Its there so its easier to install, I guess. Its the same file, just compiled differently

Kamikaze 08-24-2004 14:30

I see.

admin_mysql.amxx is just admin.amxx compiled with the mysql option, if I wanted to changed admin.sma, I would just use admin.amxx (I changed the Max admins part).

I get these errors:

L 08/24/2004 - 13:28:00: [AMXX] Module is not a valid library (file "cstrike\addons\amxx\modules\mysql_amxx.d ll")
L 08/24/2004 - 13:28:00: [AMXX] Function not found (name "dbi_result") (plugin "admin.amxx")
L 08/24/2004 - 13:28:00: [AMXX] Function not found (name "dbi_connect") (plugin "dbtest.amxx")

Mysql file exists too, just doesn't want to load for me, I'm using Mysql 4.21 with Windows Server 2003.

devicenull 08-24-2004 14:35

Yea, its not loading the mysql module, so the plugin wont work (it crashes the mysql module, which usually takes down the entire server)

BAILOPAN 08-24-2004 14:46

I will look into this. Apparently my compiles of MySQL are still weird.

karlos 08-24-2004 15:01

@ BAILOPAN:
u should read my post (2nd one) here (Preview Release 0.20-2 Talk) , there r still error in 2 inc files and my post on first page of this thread,
i mentioned there an error of a func and made a request

mahnsawce 08-24-2004 15:26

Karlos,

I'm fixing up the three include files now. I'll also be line-by-line auditting the ns2amx "port" include file (ns2amx.inc) as I wasn't the one who originally made it.

Meatwad 08-24-2004 15:33

There is also a problem with amx_say. If you don't have the language plugin, it gives you some kind of lang_notfound error.

Agent 08-24-2004 17:25

I've got another problem, sorry if this is posted somewhere else, I tried to look around but didnt really find anything.

I am running a Linux DoD server with AMXX 0.20. It is running and there are no errors. The problem I'm having is that in the amxmodmenu I can kick and ban people but I cannot slay/slap or change their teams using those menus. I can slay and slap them without using the menu's. I did download and install the dod componants and that had no effect. Can someone please help me with this?

Otherwise AMX Mod X 0.20 is working great thanks a bunch.

BIGPhil 08-24-2004 18:24

I get a seg fault with no modules or plugins running on a linux box (suse 9.1 apparently - I know very little about linux) playing TFC.

/hlds_run: line 423: 29232 Segmentation fault $HL_CMD

Cable Guy 08-24-2004 18:49

.20.3
 
Well i'm gettin there,have everything workin,except stats.amx and stats_logging,says bad load.I didn't relize it but the pluggins ini didn't have the cstrike section,caught it in another post,uploaded the pluggins and the ini's and restarted,i'm not going to load any pluggins untill I get the base server normal,whats the deal with the stsats?I may have missed it will backpedal this forum to see if the asnswer is here

Cable Guy 08-24-2004 19:06

just noticed
 
just noticed in the first download the files in the modules folders were dll's,I uploaded them to the dll's folder instead of modules,which by the way they didn't show up in modules,but they did upload to dll's,are they in the rite spot?Or should i put them elswhere.stats related dll's by the way

FlyingMongoose 08-24-2004 19:07

1 Attachment(s)
There are output errors in CS Stats, When it shows end round info and it does not show attacker or victims. (Much of the output does not work or does not work properly), I have a screenshot, (included in post)

Linux Server, Metamod 1.17.2 (all I know about the server itself)
Using StatsX as well ass csstats, miscstats and stats_logging

csstats_rank 1
csstats_maxsize 3500
amx_statsx_duration 12.0
amx_statsx_freeze -2.0

Languages is enabled (set to english by default)

Full Plugins List
Quote:

; AMX Mod X plugins

; Admin Base - Always one has to be activated
admin.amxx ; admin base (required for any admin-related)
;admin_sql.amxx ; admin base - SQL version (comment admin.amxx)

; Basic
admincmd.amxx ; basic admin console commands
adminhelp.amxx ; help command for admin console commands
adminslots.amxx ; slot reservation
multilingual.amxx ; Multi-Lingual management

; Menus
menufront.amxx ; front-end for admin menus
cmdmenu.amxx ; command menu (speech, settings)
plmenu.amxx ; players menu (kick, ban, client cmds.)
telemenu.amxx ; teleport menu (Fun Module required!)
mapsmenu.amxx ; maps menu (vote, changelevel)

; Chat / Messages
adminchat.amxx ; console chat commands
;antiflood.amxx ; prevent clients from chat-flooding the server
scrollmsg.amxx ; displays a scrolling message
imessage.amxx ; displays information messages
adminvote.amxx ; vote commands

; Map related
nextmap.amxx ; displays next map in mapcycle
;mapchooser.amxx ; allows to vote for next map
timeleft.amxx ; displays time left on map

; Configuration
pausecfg.amxx ; allows to pause and unpause some plugins
statscfg.amxx ; allows to manage stats plugins via menu and commands

; Counter-Strike
restmenu.amxx ; restrict weapons menu
;statsx.amxx ; stats on death or round end (CSStats Module required!)
;miscstats.amxx ; bunch of events announcement for Counter-Strike
;stats_logging.amxx ; weapons stats logging (CSStats Module required!)


; Custom - Add 3rd party plugins here
admin_allinone.amxx ; all in one plugin
amx_atac.amxx ; atac plugin
amx_atac_cfg.amxx ; atac plugin configs
custom_map_configs.amxx ; custom map configs
awplimit.amxx ; awp limit plugin
g3sg1limit.amxx ; g3sg1 limit plugin
sg550limit.amxx ; sg550 limit plugin
I altered the custom_map_configs to autodetect certain map prefixes so all awp_ maps would just use 1 config file, awp_ if each one needed extra stuff you just used it like normal. I doubt that would affect this, plus the fact that it's de_dust in the screenshot

narcussist 08-24-2004 19:14

Quote:

ModName: amxx_mm.dll
ModVer: 0.2.0.0 Offset: 000378de
this is what i get in HLDS windows error

only happens with the 0.2

here are the modules i am running
Quote:

; AMX Mod X Modules
; You can specify both linux & win32 modules here
; To enable a module, remove the semi-colon from the line

; ------------------------------
; Fun - provides extra functions
; ------------------------------
;fun_amxx_i386.so
fun_amxx.dll

; ----------------------------------------------------
; Engine - provides engine functions core to Half-Life
; ----------------------------------------------------
;engine_amxx_i386.so
engine_amxx.dll

; ----------------------------------------------------------
; Fakemeta - provides a massive interface into the HL engine
; ----------------------------------------------------------
;fakemeta_amxx_i386.so
;fakemeta_amxx.dll

; -------------------------------------------
; Database Access - only enable one of these
; -------------------------------------------
; MySQL
;mysql_amxx_i386.so
;mysql_amxx.dll
; PostgreSQL
;pgsql_amxx_i386.so
;pgsql_amxx.dll
; Microsoft SQL
;mssql_amxx.dll

; ---------------------------------------------
; GeoIP - determines the country of ip adresses
; ---------------------------------------------
;geoip_amxx_i386.so
;geoip_amxx.dll

; ------------------------------------
; Array - advanced arrays in scripting
; ------------------------------------
;array_amxx_i386.so
;array_amxx.dll

; --------------------------------
; Sockets - network socket support
; --------------------------------
;sockets_amxx_i386.so
;sockets_amxx.dll

; --------------------------------------------------
; Day of Defeat Fun - adds functions specific to DoD
; --------------------------------------------------
;dodfun_amxx_i386.so
dodfun_amxx.dll

; -------------------------------------------------------
; Day of Defeat X - adds stats and addition DoD functions
; -------------------------------------------------------
;dodx_amxx_i386.so
dodx_amxx.dll
:dodx_amx.dll
Plugins
Quote:

; AMX Mod X plugins

; Admin Base - Always one has to be activated
admin.amxx ; admin base (required for any admin-related)
;admin_sql.amxx ; admin base - SQL version (comment admin.amxx)

; Basic
admincmd.amxx ; basic admin console commands
adminhelp.amxx ; help command for admin console commands
adminslots.amxx ; slot reservation
multilingual.amxx ; Multi-Lingual management

; Menus
menufront.amxx ; front-end for admin menus
cmdmenu.amxx ; command menu (speech, settings)
plmenu.amxx ; players menu (kick, ban, client cmds.)
;telemenu.amxx ; teleport menu (Fun Module required!)
mapsmenu.amxx ; maps menu (vote, changelevel)

; Chat / Messages
adminchat.amxx ; console chat commands
;antiflood.amxx ; prevent clients from chat-flooding the server
scrollmsg.amxx ; displays a scrolling message
imessage.amxx ; displays information messages
adminvote.amxx ; vote commands

; Map related
nextmap.amxx ; displays next map in mapcycle
;mapchooser.amxx ; allows to vote for next map
timeleft.amxx ; displays time left on map

; Configuration
;pausecfg.amxx ; allows to pause and unpause some plugins
statscfg.amxx ; allows to manage stats plugins via menu and commands

; Day of Defeat
stats.amxx ; stats on death or round end (DoD Module required!)
statssounds.amxx ; precache plugin for stats plugins
stats_logging.amxx ; weapons stats logging (DoD Module required!)

; OLD STYLE Configuration
;pausecfg.amx ; allows to pause and unpause some plugins
;statscfg.amx ; allows to manage stats plugins via menu and commands

; OLD STYLE Day of Defeat
;stats.amx ; stats on death or round end (DoD Module required!)
;statssounds.amx ; precache plugin for stats plugins
;stats_logging.amx ; weapons stats logging (DoD Module required!)

; Custom - Add 3rd party plugins here
admin_glow.amx
admin_llama.amx
adminlisten.amx
amxx_point.amx
dod_anti_afk.amx
dod_bladez_only_by_vote.amx
dod_grenade_events.amx
dod_humiliation.amx
dod_mapbonus.amxx ; use amx_statscfgmenu or amx_statscfg to activate
dod_oneweaponmod.amxx ; One weapon mode. commands : amx_setoneweapon <weaponId> ,
dodx_tk_manager.amxx ; TK manager for DoD
ghostchat.amx
glow_menu.amx
gore.amx
mapmanager.amxx
mortar_event.amx
psychosound.amx
sound.amx
any reason it would cause a server crash :?:

Server:
Windows XP Pro
DOD

|2ob 08-24-2004 19:16

: infront of dod in modules?

also, are you guys going to fix the CSSTATS parse error? no columns in top15, HUD stats do not display properly.

narcussist 08-24-2004 19:28

Quote:

Originally Posted by |2ob
: infront of dod in modules?

You would figure ; or : should work the same, but i may be wrong, thanks for that input of noticing that, i will try to switch it to ;

AlisonWonderland 08-24-2004 20:09

2 Attachment(s)
I'm currently testing this distribution on my cs server. I got everything working okay initially. The amxmodmenu was working okay yesterday, but today my amx mod menu looks like this:

Cable Guy 08-24-2004 21:06

mine
 
mine worked fine yesterday and is working fine with.3 many bugs fixed it appears,but only half of statsme working,not sure but it looks like a corrupted file

Meatwad 08-24-2004 21:31

Make shure you replace your old plugins/plugins.ini with the new format. Put yoiur custom plugins, under custom - 3rd party plugins.


All times are GMT -4. The time now is 18:43.

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