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

AMX Map Handler


Post New Thread Reply   
 
Thread Tools Display Modes
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 06-17-2004 , 10:18  
Reply With Quote #31

Extract them then, I think there should be a GCF extractor somewhere on the net.
Johnny got his gun is offline
Hardwood
Member
Join Date: May 2004
Location: Alberta, Canada
Old 06-17-2004 , 10:35  
Reply With Quote #32

Quote:
Originally Posted by Johnny got his gun
Extract them then, I think there should be a GCF extractor somewhere on the net.
THAT is a BAD idea. These maps are updated automagically and WILL fail if you've extracted them and placed them in the maps directory. I do have the GCFScape.exe which is how I got the list of map names. As you may have noticed HL can read all the maps in both places. (when starting a listenserver all known maps are listed) Maybe there's a routine you can call to get this info.
Hardwood is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 06-17-2004 , 12:03  
Reply With Quote #33

No, there are no "gcf routines" I'm afraid. :-\
Exactly where in the server's path is this gcf file?

I guess this is only an issue with CZ, since normal HLDS doesn't use gcfs. You run a listen server, or maybe you start the server from Steam itself?

This would require making a module that can look through gcf files, and none exist, I guess only GCF Scape does this so far...

Update: aah I found a specification of this linked from GCF scape, maybe this can be done in the future... but will take some time.
Johnny got his gun is offline
Hardwood
Member
Join Date: May 2004
Location: Alberta, Canada
Old 06-17-2004 , 13:02  
Reply With Quote #34

The gcf files are in "steamapps"
G:\Steam\SteamApps\[email protected]\counter-strike\cstrike\addons

Yes I do have a listenserver. It launches from a desktop icon which has the metamod .dll specified in it's target.
G:\Steam\Steam.exe -applaunch 10 -dll addons\metamod\dlls\metamod.dll

Incidently CZ and CS are identical in this listenserver default map issue.

Maybe the easiest way is to draw from a text file in amxx\configs that has the names of the default maps.

The only dedicated server I've used is the one that comes with Steam. I'm d/ling the hlds_v1120.exe right now to see the differences.
Hardwood is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 06-17-2004 , 14:44  
Reply With Quote #35

Right, having a txt file listing the default maps could be a quick fix for this plugin. If any new official maps are released it would be easy to just update that txt file. Well, it wouldn't be hard to update the plugin either. But what the...

Anyway, a GCF module would still be a cool thing to have. Dunno though what other uses it could have.
Johnny got his gun is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 10-03-2004 , 10:03  
Reply With Quote #36

0.3 up. Updated to not use any old/invalid/constant paths.
Johnny got his gun is offline
mmenzie
Senior Member
Join Date: Jul 2004
Location: New Windsor, NY
Old 11-10-2004 , 15:03   i have too many maps!!!
Reply With Quote #37

Hello, I hope someone in here can help me with this plugin. in the .sma file it states:
If you have above 128 maps, you probably want to edit "#define MAXMAPS 128"
but when i go to that line it shows:
#define MAXMAPS 128 // 120
I have 300 maps so i am guessing i change the 128 to 300 but what do i change the number 120 after the // to???

also the .sma file says:
you also have to edit the line "#pragma dynamic 20000" to some higher value.

does anyone have a suggestion of what i should change that to??

any help would be greatly appreciated since i have so many maps that manually writing a mapcycle.txt or maps.ini would take forever for a guy who is two finger typer.

thanks in advance
mike
mmenzie is offline
Send a message via ICQ to mmenzie Send a message via AIM to mmenzie Send a message via MSN to mmenzie Send a message via Yahoo to mmenzie
Old 11-10-2004, 15:27
Fisch.666
This message has been deleted by Fisch.666.
mmenzie
Senior Member
Join Date: Jul 2004
Location: New Windsor, NY
Old 11-10-2004 , 18:38  
Reply With Quote #38

thanks for the reply. and suggestions for the second part of my question???

thanks again
mike
mmenzie is offline
Send a message via ICQ to mmenzie Send a message via AIM to mmenzie Send a message via MSN to mmenzie Send a message via Yahoo to mmenzie
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 12-14-2004 , 10:08  
Reply With Quote #39

Finally, an update!

Didn't look like I ever published 0.3 here (at least 2.9 was here), so here goes the change log for the last versions:

Quote:
0.4 041214 "listmaps" command by client will now use this plugin's way of listing maps.
Valve's own method would overflow the client if you had a lot (>100) of maps on your server.
Also "listmaps" now works on server console as well.
0.3 041003 Fixed up old (amxmod/amxx) code. Shouldn't use any constant paths now.
Sp now a client, as well as the server, can issue commands like "listmaps" and it will look something like this:
Quote:
listmaps
----- Valid maps on server -----
1: as_crazytank_elite
2: as_oilrig
3: cs_1_hossie
4: cs_2_hossies
5: cs_747
6: cs_arabstreets
7: cs_assault
8: cs_backalley
9: cs_bangbox_4_hossies
10: cs_bikini
11: cs_crackhouse
12: cs_estate
13: cs_havana
14: cs_italy
15: cs_militia
----- Maps 1 - 15 of 60 -----
----- Use 'listmaps 16' for more -----
Quote:
listmaps 16
----- Valid maps on server -----
16: cs_office
17: cs_siege
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
----- Maps 16 - 30 of 60 -----
----- Use 'listmaps 31' for more -----
Johnny got his gun is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 12-28-2004 , 09:12  
Reply With Quote #40

Another update. 0.5 up.

listmaps now also takes wildcards:

Quote:
listmaps ice
----- Maps matching "ice" -----
16: cs_office
44: fy_icevalley
45: fy_iceworld
46: fy_iceworld2k
47: fy_iceworld4k
48: fy_iceworld_arena
49: fy_iceworld_se
50: fy_iceworld_xxl_b1
----- Last page displayed. Use 'listmaps ice' to find from start -----
Johnny got his gun is offline
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 06:12.


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