OpenArena Message Boards

OpenArena => Technical Snafus => Topic started by: Cacatoes on April 21, 2009, 02:10:58 PM



Title: Common issue with map rotation messed up
Post by: Cacatoes on April 21, 2009, 02:10:58 PM
When people are allowed to vote, it sometimes screws up the map rotation of the server.
Am I doing something wrong, or is this a bug ?
I wish there was a way to start back rotation of maps with a single callvote command ;) (being admin, "vstr right_variable" does the job)

It's a minor improvement, but that may avoid a few cases where servers are staying misconfigured for too long.

Edit: the best option may be to avoid map rotation being broken ;)


Title: Re: Common issue with map rotation messed up
Post by: sago007 on April 21, 2009, 02:30:26 PM
On the server running oaxB35 you can use custom vote to restore map rotation.

Just place a votecustom.cfg file like this (warning - untested code) in the mod dir:
Code:
{
votecommand "restore"
displayname "Restore my map rotation?"
command "vstr right_variable"
}
{
votecommand "ffa_rotation"
displayname "Restore FFA map rotation?"
command "exec ffarotation.cfg"
}
{
votecommand "ctf_rotation"
displayname "Restore CTF map rotation?"
command "exec ctfrotation.cfg"
}

"/custom/" must be in g_voteNames
Then it can be restored by calling "/callvote custom restore" or through the Vote menu.


Title: Re: Common issue with map rotation messed up
Post by: 0kelvin on April 21, 2009, 02:52:53 PM
openarena



Title: Re: Common issue with map rotation messed up
Post by: sago007 on April 21, 2009, 03:01:35 PM
I don't like OA mapvote screen, the fonts are big and everytime I click the arrow to scroll down I have to wait some seconds before it scrolls, sometimes move the pointer in and out and click many times to select a name. Or use keyboard arrows and press enter.
I have noticed that the mouse had problems.

I didn't know why for a long time so I couldn't fix it.

But a few days ago Superbots,Grunt told be that it worked if you pressed "Back" and selected it again... and it does. This gives me an idea on what is wrong.

About the delay on page change... it is a design decision. I only send one mappage at a time meaning that every time you hit an arrow the client will make a call to the server for the next page. The alternative was to send all maps but that could cause problems if the server had too many maps and it would be a waste if the client never wanted to vote for a map change.


Title: Re: Common issue with map rotation messed up
Post by: Cacatoes on April 21, 2009, 03:44:21 PM
On the server running oaxB35 you can use custom vote to restore map rotation.

Just place a votecustom.cfg file like this (warning - untested code) in the mod dir:
Code:
{
votecommand "restore"
displayname "Restore my map rotation?"
command "vstr right_variable"
}
{
votecommand "ffa_rotation"
displayname "Restore FFA map rotation?"
command "exec ffarotation.cfg"
}
{
votecommand "ctf_rotation"
displayname "Restore CTF map rotation?"
command "exec ctfrotation.cfg"
}

"/custom/" must be in g_voteNames
Then it can be restored by calling "/callvote custom restore" or through the Vote menu.

This is really interesting, I didn't check well OAX's features but this is promising, I'll give it a try, thank you ;)


Title: Re: Common issue with map rotation messed up
Post by: Cacatoes on April 21, 2009, 04:19:07 PM
Little problem with it, the vote still can't be called.

Directory listing:
Code:
~/.openarena/oaxB35$ ls -l
total 488
-rw-r--r-- 1 oa oa  61916 2009-04-22 00:12 cacatoes2.log
-rw-r--r-- 1 oa oa 398679 2009-04-21 18:16 oax.pk3
-rw-r--r-- 1 oa oa   2745 2009-04-22 00:04 q3config_server.cfg
-rw-r--r-- 1 oa oa  13636 2009-04-21 15:22 readme.txt
-rw-r--r-- 1 oa oa     86 2009-04-21 23:46 votecustom.cfg

votecustom.cfg
Code:
~/.openarena/oaxB35$ cat votecustom.cfg 
{
vodecommand "restore"
displayname "Restore the map rotation ?"
command "vstr a1"
}

I have enabled voting (extract from server2.cfg) :
Code:
// --- votes ---
set g_votenames "/map_restart/nextmap/map/g_gametype/kick/clientkick/g_doWarmup/
timelimit/fraglimit/custom/"
set g_votecustom "restore" // I added this eventually

Inside OA, I type :
Code:
/callvote custom
It outputs:
Code:
Custom vote commands are:
(the list is empty) :D

So I'm not sure votecustom.cfg is correctly read ...


Title: Re: Common issue with map rotation messed up
Post by: sago007 on April 22, 2009, 02:25:52 AM
votecustom.cfg
Code:
~/.openarena/oaxB35$ cat votecustom.cfg 
{
vodecommand "restore"
displayname "Restore the map rotation ?"
command "vstr a1"
}

(...)

So I'm not sure votecustom.cfg is correctly read ...

Try 'votecommand' instead of 'vodecommand'


Title: Re: Common issue with map rotation messed up
Post by: Cacatoes on April 22, 2009, 12:22:41 PM
:D

I knew that was something like this, I'll try ;)