Author Topic: map voting on RA2 possible?  (Read 2360 times)

Offline SquiSHeR

  • Full Member
  • ***
  • Posts: 127
  • test
    • View Profile
  • Rated:
map voting on RA2 possible?
« on: February 19, 2017, 09:42:40 AM »
Hallo,

I am admin of one of the last RA2 servers in europe. Upon recent request, I would like to allow voting for a map change. Is this possible in RA2? Which server serttings would be necessary? How can clients initiate a map change vote?
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline 2d

  • Carpal Tunnel Member
  • ******
  • Posts: 1149
  • Bow Down to the King
    • View Profile
  • Rated:
Re: map voting on RA2 possible?
« Reply #1 on: February 19, 2017, 11:13:40 AM »
vote map ra2map?
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus
[14:05] <MoIOM|haunted> I challenged 2dum to a .....match.....
[14:06] <MoIOM|haunted> he beat me 4-3, although i blew myself up twice :>
[23:04] <[2d> i can now die in peace ROFL!

Offline Reefer

  • Jr. Member
  • **
  • Posts: 66
  • Why not?
    • View Profile
    • Donde Quake 2?
  • Rated:
Re: map voting on RA2 possible?
« Reply #2 on: February 19, 2017, 01:34:42 PM »
 ;) haha yeah 2d not trolling at all. If i were a knowledge person i would attempt to answer your question: how does one add the vote functionality to a rocket arena 2 server on the server side?

What's the ip of your ra2 server? I suck anyway so the high ping doesn't  other me too much.  :P
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus
"I acknowledge that a game just took place and an outcome was achieved. It is tangible that fun was had by some if not all." MoneyDukes

Offline beaver{KEA}

  • Sr. Member
  • ****
  • Posts: 327
  • Join Quake Legacy Mod Revival Discord!
    • View Profile
    • Mod Revival made easy on discord chat!
  • Rated:
Re: map voting on RA2 possible?
« Reply #3 on: February 19, 2017, 03:03:53 PM »
in railwarz server.cfg its

set allow_vote "1"

so players have the ability to vote.. it might work give it a try if not im sure someone will have the right cvar
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus
Bring more Life back to your favorite mod! on discord chat!#gloom #vortex #qpong #kots #giex #q2jump #ra2 #wod #wodx #railwarz #LMCTF #LFireCTF #expertctf https://discord.gg/44gk8j9

Offline dgauss

  • Newbie
  • *
  • Posts: 9
    • View Profile
  • Rated:
Re: map voting on RA2 possible?
« Reply #4 on: February 19, 2017, 04:36:39 PM »
RA2 doesn't natively support map voting, so you have to run Q2Admin and manage it through that. Precompiled builds here, or source is on GitHub here.

On Linux you need to rename the original gamei386.so file in the arena directory to gamei386.real.so, and save the Q2Admin module, along with all the text files, as gamei386.so. On Windows the process is the same; rename the original gamex86.dll file in the arena directory to gamex86.real.dll, and save the Q2Admin module in the arena directory, along with all the text files, as gamex86.dll.

There's lots of settings in Q2Admin, but minimally you need to have vote_enable "Yes" in q2admin.txt and some regex in q2adminvote.txt to specify the maps that can be voted. For example:

RE:^map ra2map[1-9]$
RE:^map ra2map1[0-9]$
RE:^map ra2map2[0-8]$
RE:^map q2dm[1-8]$
« Last Edit: February 19, 2017, 07:24:00 PM by dgauss »
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline SquiSHeR

  • Full Member
  • ***
  • Posts: 127
  • test
    • View Profile
  • Rated:
Re: map voting on RA2 possible?
« Reply #5 on: February 23, 2017, 03:19:42 AM »
Hello dgauss,

thank you very much for the help. I installed q2admin as you suggested and it seems to load correctly on my ra2 server. however voting does not work for some reason. When I type "vote map ra2map1" (for example) as a client, the console says "invalid vote command specified".

Here is the config I set:

q2admin.txt
Code: [Select]
;
; Enable q2admin vote features (q2adminvote.txt).
;
vote_enable "Yes"

q2adminvote.txt
Code: [Select]
;
;Vote commands list.
;
;This lists all the spawning entities that will be disabled.
;
;The file q2adminvote.txt is read from the quake2 directory and the mod
;directory.  This allows server admin's to setup lrcon's as global and
;mod specific as well.
;
;The format for q2adminvote.txt is as follows:
;
;Lines beginning with a ';' are comments.
;
;vote command format:
;<matchtype><vote command>
;
; <matchtype> can be one of three values:
; 'EX:'  Exact match.
; 'SW:'  Starts with match.
; 'RE:'  Regular Expression match.
;
;e.g.
;EX:map q2dm1
;SW:fraglimit
;RE:^map q2dm[123456]$
;
;There is a limit of 1024 disbaled entity types can be setup.
;
; ------- Map votes -------
RE:map ra2map[123456789]$
RE:map ra2map1[0123456789]$
RE:map ra2map2[012345678]$
RE:map ra2map4[0123456789]$
RE:map ra2map5[01234567]$
RE:map ra2av[1234]$
RE:map ra2cd[123]$
EX:map madcow
EX:map fatalarena
EX:map catodm1
EX:map joltarena
EX:map dust
EX:map ra2gz1

; ------- General votes -------
SW:timelimit
SW:fraglimit
SW:kick
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline dgauss

  • Newbie
  • *
  • Posts: 9
    • View Profile
  • Rated:
Re: map voting on RA2 possible?
« Reply #6 on: February 23, 2017, 02:37:15 PM »
You need a caret "^" before the "map" command in each of your regex strings.

q2adminvote.txt
Code: [Select]
; ------- Map votes -------
RE:^map ra2map[123456789]$
RE:^map ra2map1[0123456789]$
RE:^map ra2map2[012345678]$
RE:^map ra2map4[0123456789]$
RE:^map ra2map5[01234567]$
RE:^map ra2av[1234]$
RE:^map ra2cd[123]$
EX:map madcow
EX:map fatalarena
EX:map catodm1
EX:map joltarena
EX:map dust
EX:map ra2gz1
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline dgauss

  • Newbie
  • *
  • Posts: 9
    • View Profile
  • Rated:
Re: map voting on RA2 possible?
« Reply #7 on: February 23, 2017, 02:43:41 PM »
Also, since you're running R1Q2, check you have set sv_allow_map "1" in your server config.
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline SquiSHeR

  • Full Member
  • ***
  • Posts: 127
  • test
    • View Profile
  • Rated:
Re: map voting on RA2 possible?
« Reply #8 on: February 24, 2017, 03:21:36 AM »
Also, since you're running R1Q2, check you have set sv_allow_map "1" in your server config.

Actually it was set to 2. I think 2 converts the "map" command "to "gamemap" command to avoid reloading gamedll.

I tried setting it to 1 but it didn't fix the problem. I also adapted the regular expressions to begin with the caret sign but still no success. Still says "invalid vote command specified" on the client.

Code: [Select]
set sv_allow_map "2"
« Last Edit: February 24, 2017, 09:09:58 AM by SquiSHeR »
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline dgauss

  • Newbie
  • *
  • Posts: 9
    • View Profile
  • Rated:
Re: map voting on RA2 possible?
« Reply #9 on: March 02, 2017, 02:50:04 PM »
The q2admin.txt and q2adminvote.text you posted work fine for me on Q2PRO under Windows, so I'm not sure what the problem is. I don't have a Linux box to replicate and I haven't used R1Q2 in years.

What does clientvotecommand output?

If you downloaded the whole bundle of text files, try deleting every other q2admin*.txt file except those two you posted earlier and restart server?

Can you paste the server log after restarting and having a client connect and issue some vote commands?

Tastyspleen is running R1Q2 and Q2Admin, so it's possible to get it working. Send quadz a message if all else fails.
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

Offline SquiSHeR

  • Full Member
  • ***
  • Posts: 127
  • test
    • View Profile
  • Rated:
Re: map voting on RA2 possible?
« Reply #10 on: March 10, 2017, 12:28:34 AM »
I finally figured it out. It was the windows line endings of the q2admin config files. I converted them with "dos2unix" command, restarted the server and it worked fine!

Thank you dgauss for your help! :)
  • Insightful
    Informative
    Funny
    Nice Job / Good Work
    Rock On
    Flawless Logic
    Well-Reasoned Argument and/or Conclusion
    Demonstrates Exceptional Knowlege of the Game
    Appears Not to Comprehend Game Fundamentals
    Frag of the Week
    Frag Hall of Fame
    Jump of the Week
    Jump Hall of Fame
    Best Solution
    Wins The Internet
    Whoosh! You done missed the joke thar Cletus!
    Obvious Troll Is Obvious
    DO YOU EVEN LIFT?
    DEMO OR STFU
    Offtopic
    Flamebait
    Redundant
    Factually Challenged
    Preposterously Irrational Arguments
    Blindingly Obvious Logical Fallacies
    Absurd Misconstrual of Scientific Principles or Evidence
    Amazing Conspiracy Theory Bro
    Racist Ignoramus

 

El Box de Shoutamente

Last 10 Shouts:

 

adz1La

October 18, 2020, 12:05:02 AM
 ;)
 

|iR|Focalor

October 10, 2020, 11:35:41 PM
 

beaver{KEA}

October 07, 2020, 06:16:38 PM
6V6+ ON RA2 NOW

pepp5

October 06, 2020, 03:19:43 PM
My standard way of encouraging people to quit farting around and start the match:  Eddie Van Halen up.  RIP EVH.
 

quadz

October 06, 2020, 01:17:03 PM
R.I.P. Eddie Van Halen :(
 

Admin

September 23, 2020, 09:43:07 AM
It's the same VPN-using misanthrope who's been at this for months. Recently switched to sending private messages.
 

[BTF]Fatknitty

September 23, 2020, 08:30:36 AM
can someone please get rid of the spambot on DM?

-Unh0ly-

September 20, 2020, 03:34:22 AM

-Unh0ly-

September 18, 2020, 12:47:34 AM

https://youtu.be/keF839vDH0A

joe rogan is  a quaker !!!!
 

|iR|Focalor

September 11, 2020, 12:54:20 AM

Show 50 latest
Welcome, Guest. Please login or register.
October 21, 2020, 11:11:51 PM

Login with username, password and session length