Paullik74 Posted December 8, 2015 Posted December 8, 2015 Hi,on my base servers, when is voting g_gametype, after voting, it changed map. Is there any way how to set WHICH map it has load? Because... I have mapRaceArena.pk3 on my server and when somebody calls vote for g_gametype, after passed voting everytime server change map to racearena. And there is a possibility people who calls that vote don't have this map. So how can I set, after voting g_gametype it will be change map for example to, for FFA -> mp/ffa3, for DUEL -> mp/duel1 and for TFFA -> mp/ffa2?? Smoo likes this
Clan FJA Posted December 8, 2015 Posted December 8, 2015 Hello, one solution is to put this file in your base folder :https://drive.google.com/file/d/0B4Xbj09jZQUaeHZFMVAzUXRwamc/view?usp=sharingIt will put base maps on the top of list.Now, when someone vote to change the gametype, the server will always switch to a base map and not to a extra map (racearena, ...). It is not a perfect solution but no one will be disconnected due to an extra map.I changed the order of base maps, so now when you change the gametype :FFA => mp/ffa3, then mp/ffa2, mp/ff4, mp/ffa5, mp/ffa1, extra mapsDUEL => no changeCTF => mp/ctf2, then mp/ctf3, mp/ctf4, mp/ctf5, mp/ctf4, extra maps
Paullik74 Posted December 8, 2015 Author Posted December 8, 2015 Thanks, it will work on sv_pure 1 server too?
Clan FJA Posted December 8, 2015 Posted December 8, 2015 it is a serverside file. Clients don't need it. It is a good question. I think it should work.But, you know, sv_pure 1 is not a real protection. It can be contourned, and you prevent people from using their prefered skins.
Paullik74 Posted December 8, 2015 Author Posted December 8, 2015 I wish the player I'm doing these servers for knew it . Thanks again .
Raz0r Posted December 8, 2015 Posted December 8, 2015 EDIT: Ignore me, @@Clan FJA's solution seems good. Look into setting up a map cycle using the nextmap cvar. set mapcycle1 "set g_gametype 0; map mp/ffa1; set nextmap vstr mapcycle2" set mapcycle2 "set g_gametype 6; map mp/duel1; set nextmap vstr mapcycle3" set mapcycle3 "set g_gametype 0; map mp/ffa2; set nextmap vstr mapcycle4" set mapcycle4 "set g_gametype 0; map mp/ffa3; set nextmap vstr mapcycle5" set mapcycle5 "set g_gametype 0; map mp/ffa4; set nextmap vstr mapcycle6" set mapcycle6 "set g_gametype 0; map mp/ffa5; set nextmap vstr mapcycle1" vstr mapcycle1You may want to edit the racearena map's .arena file to not list it as a playable map on all gametypes. That may work.
Paullik74 Posted December 10, 2015 Author Posted December 10, 2015 Hm, so I try votefix.pk3 and it seem don't work for me :/. I got pk3 file in base folder on server-side. Trying both of sv_pure settings. Not work :/.
Clan FJA Posted December 10, 2015 Posted December 10, 2015 Hm, so I try votefix.pk3 and it seem don't work for me :/. I got pk3 file in base folder on server-side. Trying both of sv_pure settings. Not work :/. make sure the file is named _votemapfix.pk3 and NOT votemapfix.pk3The "_" is very important and should overwrite all files. If it is not the case, so try by naming the file "zzzzzzzzz_votemapfix.pk3".
Paullik74 Posted December 10, 2015 Author Posted December 10, 2015 yep it name is _votefix.pk3... I will try it again...
Clan FJA Posted December 13, 2015 Posted December 13, 2015 does it work with zzzzzzzz_votemapfix.pk3 ? Did I make a error, @@Raz0r ?
Paullik74 Posted December 17, 2015 Author Posted December 17, 2015 Sorry, I'm little busy last days. Will try it as soon as possible.
Paullik74 Posted December 19, 2015 Author Posted December 19, 2015 First little test. OpenJK linux dedicated server (latest update), sv_pure 0, _votefix.pk3 rename to a_votefix.pk3, there is Server initialization screen: https://ctrlv.cz/qBCI . a_votefix.pk3 was load last, right? When file had name zzzz_votefix.pk3, it was FIRST loaded from ./base folder... something like this https://ctrlv.cz/EiaB . I have different fs_homepath and fs_basepath... fs_homepath /root/game_servers/jka/new/gamedata ... fs_basepath . (current folder) I join to the server, FFA is startup gametype... esc -> callvote -> gametype -> Team FFA... it changed map to rift sanctuary... then again vote to duel, it change map to the academy v2... again vote team ffa, change map jedi'shome...
Clan FJA Posted December 19, 2015 Posted December 19, 2015 Oh, you use the Linux version, ok. So it should work with zzzzz_votemapfix.pk3 as name.If you use a specific mod, put the file in the mod folder. any idea, @@Raz0r ?
Raz0r Posted December 19, 2015 Posted December 19, 2015 Your basepath and homepath should be reversed. basepath should be the read-only assets directory, homepath should be for user settings and overrides.
Paullik74 Posted December 24, 2015 Author Posted December 24, 2015 I think I was testing it with reversed setting, but server wasn't running... I will test it again as soon as possible... I read somewhere in fs_basepath must be placed dedicated server binary file, is it true?
Paullik74 Posted December 29, 2015 Author Posted December 29, 2015 Hm, I really can't say if votefix work or not . Seems like it change something, but not work correctly. Server-side: OpenJK Linux Dedicated (64bit), sv_pure 0, filename zzzzzz_votefix.pk3, fs_game OpenJK, homepath same like basepath. Without votefix, when gametype FFA and map is ffa3 and vote TFFA, it change map to ffa4. With votefix, it change to ffa2. And now, when you callvote to change gametype, it change to some custom map. I'm really confused . So, I dediced to change the question . Want this behavior:When callvote gametype FFA, change timelimit 0, fraglimit 0 and map ffa3.When callvote gametype TFFA, change timelimit 15, fraglimit 0 and map ffa2.When callvote gametype DUEL, change timelimit 3, fraglimit 1, duel_fraglimit 10 and map duel1.Always this, no mapcycles.Would it be possible? Create my own .pk3 file with same scripts like in votefix??
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now