AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   AMX Map Handler (https://forums.alliedmods.net/showthread.php?t=308)

Johnny got his gun 03-18-2004 10:22

AMX Map Handler
 
1 Attachment(s)
Adding and removing maps from your server has never been this easy.
With AMX Map Handler you just put the maps into your server and don't
have to worry about editing mapcycle.txt or maps.ini, since this is
done automatically.

List of features:
* Autoupdates maps.ini (remove a map from /maps/ and after next mapchange maps.ini will be updated accordingly. Move it back and any description you gave the map will still be there.
* Command to generate mapcycle to any file, like mapcycle.txt :-)
* amx_listmaps command to list maps in "amx_help" page printing style (amx_mh_page is a cvar that tells how many maps should be displayed on each page). It completely replaces the client "listmaps" command (which can overflow the client!), and also works on server console.
* amx_randommap chooses a random map and changes to it
* NEW in 0.5: listmaps command now also takes wildcards, so you can display all maps consisting of the wildcard like this:
Quote:

listmaps de_
----- Maps matching "de_" -----
18: de_airstrip
19: de_aztec
20: de_cbble
21: de_chateau
22: de_dust
23: de_dust2
24: de_dust_castle
25: de_dustybleek
26: de_inferno
27: de_meta_16x16
28: de_meta_8x8
29: de_meta_snow_16x16
30: de_museum
31: de_nuke
32: de_piranesi
----- Use 'listmaps de_ 33' to find more -----

SniperBeamer 03-18-2004 10:29

Code:
#define MAPHANDLERFILE "addons/amxx/amx_maphandler.ini"
should be
Code:
#define MAPHANDLERFILE "addons/amxx/configs/amx_maphandler.ini"

people 03-18-2004 12:53

hmm will not compile:

/home/users/amxmodx/tmp/phpDT65To.sma(1) : error 008: must be a constant expression; assumed zero
/home/users/amxmodx/tmp/phpDT65To.sma(2) : error 008: must be a constant expression; assumed zero
/home/users/amxmodx/tmp/phpDT65To.sma(3) : error 008: must be a constant expression; assumed zero
/home/users/amxmodx/tmp/phpDT65To.sma(4) : error 008: must be a constant expression; assumed zero
/home/users/amxmodx/tmp/phpDT65To.sma(5) : error 008: must be a constant expression; assumed zero
/home/users/amxmodx/tmp/phpDT65To.sma(113) : error 008: must be a constant expression; assumed zero
/home/users/amxmodx/tmp/phpDT65To.sma(618) : error 035: argument type mismatch (argument 1)
/home/users/amxmodx/tmp/phpDT65To.sma(651) : error 035: argument type mismatch (argument 1)
/home/users/amxmodx/tmp/phpDT65To.sma(665) : error 035: argument type mismatch (argument 1)
/home/users/amxmodx/tmp/phpDT65To.sma(666) : error 035: argument type mismatch (argument 2)

10 Errors.

Same errors when I compile with sc on my machine

Johnny got his gun 03-18-2004 13:21

Hmm yes it doesn't compile with 2.1 compiler, you have to use the 2.4 one... I should probably change that back.

2.1 doesnt like this: #define SOMEDEFINE "ofastringlikeapath.ini"
but works in 2.4...

SniperBeamer 03-18-2004 13:49

but we don't use sc 2.4 anymore

mICKE 03-18-2004 13:51

shall you use it in next release of AMXX?

SniperBeamer 03-18-2004 13:59

no

Johnny got his gun 03-19-2004 02:23

Ok that's it Im switching back to old compiler...
Quote:

should be
Small:

#define MAPHANDLERFILE "addons/amxx/configs/amx_maphandler.ini"


well that file is an internal data file (not for editing) but Ill move it anyway. I guess the vault.ini file is not for editing either, but still it is in configs...
However I guess we cannot tell scripters where they want to keep their data files that aren't part of default AMXX setup.

Update: Fixed, new version up.

people 03-19-2004 16:05

Next problem, is it my server?

Pluging loads but getting this in the server console:
[AMX Map Handler] DEBUG - Initing
[AMX Map Handler] Found 62 valid maps in server.
[AMX] Starting dump of maps...
[AMX] Successfully wrote 42656 lines to 'addons/amxx/configs/maps.ini'.


when you go into the maps.ini all that it has is the map name not the description that AMXX need for the meny system. Plus as you keep on changelevel it just adds to the list. Thi is what my map.ini looks like after 3 maps changes:

as_oilrig
as_oilrig
as_oilrig
cs_arabstreets
cs_arabstreets
cs_arabstreets
cs_assault
cs_assault
cs_assault
cs_assault2k
cs_assault2k
cs_assault2k
...

Johnny got his gun 03-19-2004 16:44

That looks really odd, I have no idea why it does that.
What is your OS etc?


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

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