Raised This Month: $7 Target: $400
 1% 

Mapchooser4


Post New Thread Reply   
 
Thread Tools Display Modes
James
Senior Member
Join Date: Dec 2004
Old 01-08-2007 , 04:59   Re: Mapchooser4
Reply With Quote #21

When I running 2 hlds (with different maplists) from one directory, will be both server's historys (maphist.ini) different? I read a code a little and i dont think so. If I wrong I apologize, if not I suggest

Code:
format(g_maphistFile, 63, "%s/maphist.ini", g_maphistFile)
change to
Code:
new hostname[63]
get_cvar_string("hostname",hostname,63)
...
format(g_maphistFile, 63, "%s/%s/maphist.ini", g_maphistFile,hostname)

Last edited by James; 01-08-2007 at 05:02.
James is offline
James
Senior Member
Join Date: Dec 2004
Old 01-08-2007 , 05:07   Re: Mapchooser4
Reply With Quote #22

And here I post finnished CZ translation ;)
Attached Files
File Type: txt mapchooser4.txt (10.5 KB, 469 views)
James is offline
jowy77
Member
Join Date: Nov 2006
Location: Vigo, Spain
Old 01-08-2007 , 06:37   Re: Mapchooser4
Reply With Quote #23

Spanish complete translation...



[es]
CHO_FIN_EXT_T = Seleccion finalizada. El mapa actual se ha extendido por %.0f minutos mas
CHO_FIN_EXT_R = Seleccion finalizada. El mapa actual se ha extendido por %.0f rondas mas
CHO_FIN_EXT_W = Seleccion finalizada. El mapa actual se ha extendido por %.0f victorias mas
CHO_FIN_EXT_HMT = Seleccion: Mapa %s sera ejecutado en %.0f time
CHO_FIN_NEXT = Seleccion finalizada. El siguiente mapa sera %s
CHOSE_EXT = %s Seleccion prolongada.
X_CHOSE_X = %s elegir %s
CHOOSE_NEXTM = AMX Elegir Mapa
EXTED_MAP = Extender mapa %s
TIME_CHOOSE = Es hora de elegir el proximo mapa...
ALEADY_VOTING = Votando mapa...
VOT_NOT_ALLOWED = Votacion no permitida en este momento
VOTING_STARTED = Comienza la votacion. esperar un momento...




Only 1 KARMA please .., thx

sorry my English
__________________
Sorry my English


jowy77 is offline
KWo
AMX Mod X Beta Tester
Join Date: Jul 2004
Location: Poland
Old 01-08-2007 , 10:01   Re: Mapchooser4
Reply With Quote #24

Thank You, guys, for help with translations. It will be included for the next version (I need to fix one bug it was in default mapchooser - it may affect also mpachooser4) and someone asked me to add some features from AMX ' default mapchooser. I hope during 3 weeks I'll find some time to work on it and finish.
About that thing with 2 or more hostnames - sometimes hostname contains some illegal characters (they cannot be placed in the filename or folder name), so You may need to look in my Record Demo plugin (somewhere in Approved) how it's solved the problem with some strange characters contained by user's name. If You do it so - and You will post the correct way to solve the problem - I can include that Your patch.
__________________
The Fullpack of podbot mm V3B22 - 24 apr 2012!!! is available here.
The All-In-One 3.2a package - 02 jun 2013 (AMX X 1.8.2 [with ATAC 3.0.1b , CSDM2.1.3c beta, CM OE 0.6.5, podbot mm V3B22c and mm 1.20) is available here.
The newest Beta V3B23a (rel. 28 august 2018!!!) is available here.
KWo is offline
James
Senior Member
Join Date: Dec 2004
Old 01-08-2007 , 15:24   Re: correct patch?
Reply With Quote #25

Patch for more HLDS's from one Directory (I hope this will be correct way ;) )


Search
Code:
new Float:amx_ext_count = 0.0
After add
Code:
new hostname[64]
Search
Code:
get_configsdir(g_maphistFile,63)
After add
Code:
get_cvar_string("hostname",hostname,63)
replace_all(hostname,63,"/","-")
replace_all(hostname,63,"\","-")
replace_all(hostname,63,":","-")
replace_all(hostname,63,"*","-")
replace_all(hostname,63,"?","-")
replace_all(hostname,63,">","-")
replace_all(hostname,63,"<","-")
replace_all(hostname,63,"|","-")
Search
Code:
format(g_maphistFile, 63, "%s/maphist.ini", g_maphistFile)
Replace with:
Code:
format(g_maphistFile, 63, "%s/mapchooser/%s",g_maphistFile,hostname)
  if (!dir_exists(g_maphistFile))
    mkdir(g_maphistFile)
	
format(g_maphistFile, 63, "%s/maphist.ini", g_maphistFile)
Attached Files
File Type: sma Get Plugin or Get Source (mapchooser4.sma - 1305 views - 15.0 KB)

Last edited by James; 01-16-2007 at 16:05.
James is offline
James
Senior Member
Join Date: Dec 2004
Old 01-28-2007 , 07:37   Re: Mapchooser4
Reply With Quote #26

Quote:
2. It "remembers" the history of the last 5 played maps to prevent get them to the map vote menu again.
This option doesnt seems work to me

I use standart CVARS except amx_use_mapcycle, i set up amx_use_mapcycle 1. maps.ini is fine, played maps are written to file.

But still if I play for example awp_shapa, then i play 2 other maps, and then awp_shapa is in the votemap menu Dont know where is the catch..
__________________
Do good things, and good things happen to you
James is offline
KWo
AMX Mod X Beta Tester
Join Date: Jul 2004
Location: Poland
Old 01-29-2007 , 02:48   Re: Mapchooser4
Reply With Quote #27

The first item in the menu is the nextmap from Your mapcycle. Probably that's the reason why it appears sometimes for You. It may happen also if the mapcycle is too short (less than 10 maps).
__________________
The Fullpack of podbot mm V3B22 - 24 apr 2012!!! is available here.
The All-In-One 3.2a package - 02 jun 2013 (AMX X 1.8.2 [with ATAC 3.0.1b , CSDM2.1.3c beta, CM OE 0.6.5, podbot mm V3B22c and mm 1.20) is available here.
The newest Beta V3B23a (rel. 28 august 2018!!!) is available here.
KWo is offline
James
Senior Member
Join Date: Dec 2004
Old 01-29-2007 , 03:52   Re: Mapchooser4
Reply With Quote #28

I have 23 maps in mapcycle, maybe it is the first thing.. I will watch if repeately map is 1st in map menu...
__________________
Do good things, and good things happen to you
James is offline
Seehank
Senior Member
Join Date: Nov 2005
Location: Slovakia
Old 02-17-2007 , 21:02   Slovak Translation
Reply With Quote #29

Slovak Translation:

[sk]
CHO_FIN_EXT_T = = Volba ukoncena. Tato mapa zostane dalsich %.0f minut
CHO_FIN_EXT_R = = Volba ukoncena. Tato mapa zostane dalsich %.0f kol
CHO_FIN_EXT_W = = Volba ukoncena. Tato mapa zostane dalsich %.0f vyhier
CHO_FIN_EXT_HMT = Vote: Map %s bude pokracovat dalsich %.0f minut
CHO_FIN_NEXT = Volba ukoncena. Dalsia mapa bude %s
CHOSE_EXT = %s volil predlzenie sucasnej mapy
X_CHOSE_X = %s volil %s
CHOOSE_NEXTM = Zvol si dalsi mapu
EXTED_MAP = Predluzuje mapu %s
TIME_CHOOSE = Je cas volit dalsiu mapy...
ALEADY_VOTING = Uz prebieha ina volba...
VOT_NOT_ALLOWED = Volba teraz nie je mozna
VOTING_STARTED = Volba zacala. Cakajte prosim...
__________________
Cheater ONCE, cheater FOREVER !!!
Seehank is offline
KWo
AMX Mod X Beta Tester
Join Date: Jul 2004
Location: Poland
Old 03-19-2007 , 15:35   Re: Mapchooser4
Reply With Quote #30

I've updated the plugin. The people at this forum asked me to include some functions the default AMX 2006.3 mapchooser had, so I've just translated it into AMX X. Because in that version there were some my ideas KRoT@L included into it, I think it's fair it's exactly me - I translated it for AMX X (I haven't had any chance to ask him personally about that - he stays offline since long time).
So - I believe also AMX users they migrated to AMX X they will like this version of mapchooser. Please try it and tell me about bugs You can find here.
__________________
The Fullpack of podbot mm V3B22 - 24 apr 2012!!! is available here.
The All-In-One 3.2a package - 02 jun 2013 (AMX X 1.8.2 [with ATAC 3.0.1b , CSDM2.1.3c beta, CM OE 0.6.5, podbot mm V3B22c and mm 1.20) is available here.
The newest Beta V3B23a (rel. 28 august 2018!!!) is available here.
KWo 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 04:03.


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