Pages: [1]
  Print  
Author Topic: Common issue with map rotation messed up  (Read 8783 times)
Cacatoes
Banned for leasing own account
Posts a lot
*

Cakes 73
Posts: 1427


also banned for baiting another to violate rules


« 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 Wink (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 Wink
Logged

Todo: Walk the cat.
sago007
Posts a lot
*

Cakes 62
Posts: 1664


Open Arena Developer


WWW
« Reply #1 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.
Logged

There are nothing offending in my posts.
0kelvin
I LEFT THE FORUM BY EDITING ALL MY POSTS OUT!!! HAHAHA!!! TAKE THAT, INTERNET!
Half-Nub


Cakes -54
Posts: 87



« Reply #2 on: April 21, 2009, 02:52:53 PM »

openarena

« Last Edit: August 06, 2010, 01:07:44 PM by 0kelvin » Logged
sago007
Posts a lot
*

Cakes 62
Posts: 1664


Open Arena Developer


WWW
« Reply #3 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.
Logged

There are nothing offending in my posts.
Cacatoes
Banned for leasing own account
Posts a lot
*

Cakes 73
Posts: 1427


also banned for baiting another to violate rules


« Reply #4 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 Wink
Logged

Todo: Walk the cat.
Cacatoes
Banned for leasing own account
Posts a lot
*

Cakes 73
Posts: 1427


also banned for baiting another to violate rules


« Reply #5 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) Cheesy

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

Todo: Walk the cat.
sago007
Posts a lot
*

Cakes 62
Posts: 1664


Open Arena Developer


WWW
« Reply #6 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'
Logged

There are nothing offending in my posts.
Cacatoes
Banned for leasing own account
Posts a lot
*

Cakes 73
Posts: 1427


also banned for baiting another to violate rules


« Reply #7 on: April 22, 2009, 12:22:41 PM »

Cheesy

I knew that was something like this, I'll try Wink
Logged

Todo: Walk the cat.
Pages: [1]
  Print  
 
Jump to: