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

Maps.ini Generator


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management        Approver:   DS (30)
EKS
Veteran Member
Join Date: Mar 2004
Location: Norway
Old 03-18-2004 , 06:28   Maps.ini Generator
Reply With Quote #1

This plugin generates maps.ini based on your mapcycle.txt file. It normaly
generates the file one pr. server startup, but can easly generate a maps.ini
on every mapchange. This is controled by the cvar amx_genmapsfile

Credits:
Ops in #AMXmod @ Quakenet for alot of help ( + AssKicR & CheesyPeteza )

If your looking for a plugin with alot of more options/features, please use THIS plugin.

Changelog:
  • 1.1.7 ( 26.05.2004 )
    - Change: Plugin now gets the base dir, instead of having it hard coded
Attached Files
File Type: sma Get Plugin or Get Source (mapsgen.sma - 4122 views - 3.5 KB)
__________________
Github archive for plugins, the repos for the other c++ projects are there to.

Last edited by EKS; 06-26-2006 at 10:16.
EKS is offline
CheesyPeteza
Senior Member
Join Date: Feb 2004
Location: UK
Old 03-18-2004 , 06:40  
Reply With Quote #2

For NS support you just need to add:

parse(InfoR, InfoR, 127) after read_file.

Also you could check the first few characters of the map name to give a description of it:

co_ = Combat
ns_ = Classic
de_ = Bomb Defusal
__________________
YO|Cheesy Peteza

[email protected]

CheesyPeteza is offline
PM
hello, i am pm
Join Date: Jan 2004
Location: Canalization
Old 03-18-2004 , 07:11  
Reply With Quote #3

make sure the amxx basedir is amxx
Code:
new gMapsFile[32]="addons/amx/maps.ini"
should be
Code:
new gMapsFile[32]="addons/amxx/maps.ini"
as default
__________________
hello, i am pm
PM is offline
EKS
Veteran Member
Join Date: Mar 2004
Location: Norway
Old 03-18-2004 , 07:35  
Reply With Quote #4

@PM I forgot, thx. Its fixed now.

@CheesyPeteza. Once i get my steam server working in a LAN, il proberlby fix the issue with NS. If there is alot of ppl that want the plugin to describe the map name, i make that to ( ie de_ ). But if i do, there will be a posiblity to compile the plugin without that.
EKS is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 03-18-2004 , 10:16  
Reply With Quote #5

Maybe I will post my AMX Map Handler that actually knows to put the maps.ini IN THE RIGHT FOLDER
:-P

Johnny got his gun is offline
SniperBeamer
AMX Mod X Founder
Join Date: Jun 2003
Location: Good Old Europe
Old 03-18-2004 , 10:21  
Reply With Quote #6

Code:
new gMapsFile[32]="addons/amxx/maps.ini"
should be
Code:
new gMapsFile[32]="addons/amxx/configs/maps.ini"
__________________
SniperBeamer is offline
EKS
Veteran Member
Join Date: Mar 2004
Location: Norway
Old 03-18-2004 , 13:23  
Reply With Quote #7

Quote:
Originally Posted by Johnny got his gun
Maybe I will post my AMX Map Handler that actually knows to put the maps.ini IN THE RIGHT FOLDER
:-P

*cough*

Quote:
Originally Posted by SniperBeamer
Code:
new gMapsFile[32]="addons/amxx/maps.ini"
should be
Code:
new gMapsFile[32]="addons/amxx/configs/maps.ini"
thx, that was a stupid mistake. I fixed it.
EKS is offline
EKS
Veteran Member
Join Date: Mar 2004
Location: Norway
Old 03-24-2004 , 14:45  
Reply With Quote #8

new version
  • 1.1.6 ( 21.03.2004 )
    - Fixed NS style mapcycle.txt ( Thx to CheesyPeteza for saving me time on this )
    - If the mapcycle file has comments they are no longer read ( line starts with // )
    - Plugin now contains debug code, can be enable by changing the #define
EKS is offline
EKS
Veteran Member
Join Date: Mar 2004
Location: Norway
Old 05-26-2004 , 18:04  
Reply With Quote #9

Update
  • 1.1.7 ( 26.05.2004 )
    - Change: Plugin now gets the base dir, instead of having it hard coded
EKS is offline
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 03-02-2005 , 09:35  
Reply With Quote #10

this is an old plugin but it's good
so you don't have to do it manually if you
have much maps on the server
__________________
- Bye bye!
nightscreem 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 11:40.


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