Author Topic: map voting on RA2 possible?  (Read 4214 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: 1315
  • 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
Futhermore, you keep saying "occupation". It's not an occupation.
Denial is a crime against humanity!

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 bvughtoonice

  • Swanky Member
  • *****
  • Posts: 561
  • 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://quakelegacy.com/

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:

Costigan_Q2

November 11, 2024, 06:41:06 AM
"Stay cozy folks.

Everything is gonna be fine."

There'll be no excuses for having TDS after January 20th, there'll be no excuses AT ALL!!!
 

|iR|Focalor

November 06, 2024, 03:28:50 AM
 

RailWolf

November 05, 2024, 03:13:44 PM
Nice :)

Tom Servo

November 04, 2024, 05:05:24 PM
The Joe Rogan Experience episode 223 that dropped a couple hours ago with Musk, they're talking about Quake lol.

Costigan_Q2

November 04, 2024, 03:37:55 PM
Stay cozy folks.

Everything is gonna be fine.
 

|iR|Focalor

October 31, 2024, 08:56:37 PM

Costigan_Q2

October 17, 2024, 06:31:53 PM
Not activated your account yet?

Activate it now! join in the fun!

Tom Servo

October 11, 2024, 03:35:36 PM
HAHAHAHAHAHA
 

|iR|Focalor

October 10, 2024, 12:19:41 PM
I don't worship the devil. Jesus is Lord, friend. He died for your sins. He will forgive you if you just ask.
 

rikwad

October 09, 2024, 07:57:21 PM
Sorry, I couldn't resist my inner asshole.

Show 50 latest
Welcome, Guest. Please login or register.
November 25, 2024, 12:57:43 PM

Login with username, password and session length