Raised This Month: $66 Target: $400
 16% 

AMX Map Handler


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management        Approver:   Johnny got his gun (102)
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 03-18-2004 , 11:22   AMX Map Handler
Reply With Quote #1

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 -----
Attached Files
File Type: sma Get Plugin or Get Source (maphandler.sma - 6773 views - 27.9 KB)
Johnny got his gun is offline
SniperBeamer
AMX Mod X Founder
Join Date: Jun 2003
Location: Good Old Europe
Old 03-18-2004 , 11:29  
Reply With Quote #2

Code:
#define MAPHANDLERFILE "addons/amxx/amx_maphandler.ini"
should be
Code:
#define MAPHANDLERFILE "addons/amxx/configs/amx_maphandler.ini"
__________________
SniperBeamer is offline
people
Junior Member
Join Date: Mar 2004
Old 03-18-2004 , 13:53  
Reply With Quote #3

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(61 : 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
people is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 03-18-2004 , 14:21  
Reply With Quote #4

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...
Johnny got his gun is offline
SniperBeamer
AMX Mod X Founder
Join Date: Jun 2003
Location: Good Old Europe
Old 03-18-2004 , 14:49  
Reply With Quote #5

but we don't use sc 2.4 anymore
__________________
SniperBeamer is offline
mICKE
Member
Join Date: Mar 2004
Location: Sthlm, Sweden
Old 03-18-2004 , 14:51  
Reply With Quote #6

shall you use it in next release of AMXX?
mICKE is offline
Send a message via ICQ to mICKE
SniperBeamer
AMX Mod X Founder
Join Date: Jun 2003
Location: Good Old Europe
Old 03-18-2004 , 14:59  
Reply With Quote #7

no
__________________
SniperBeamer is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 03-19-2004 , 03:23  
Reply With Quote #8

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.
Johnny got his gun is offline
people
Junior Member
Join Date: Mar 2004
Old 03-19-2004 , 17:05  
Reply With Quote #9

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
...
people is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 03-19-2004 , 17:44  
Reply With Quote #10

That looks really odd, I have no idea why it does that.
What is your OS etc?
Johnny got his gun is offline
Reply


Thread Tools
Display Modes

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 01:35.


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