Author Topic: map voting on RA2 possible?  (Read 3890 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: 1276
  • 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:

 

-Unh0ly-

March 18, 2024, 03:51:45 AM

https://www.youtube.com/watch?v=NjGjxwHT6ok

played guitar drums bass and sang cuz everyone too lame to start a band with me

0rbisson

March 14, 2024, 04:29:08 AM
HT1 or whatever the stupid map name is instant server killer. the map is trash, Everyone leaves
 

Costigan_Q2

March 10, 2024, 04:00:02 PM
This is my fave TS post.

And quadz posted it - some ppl must haaate that. :)
 

-Unh0ly-

February 29, 2024, 08:35:47 AM
MONDAY NIGHT RAILWARZ GAMES   74.91.120.171:27910 -- BIG FUCKIN GAMES.... LETS GO!!!!!!!
 

|iR|Focalor

February 29, 2024, 01:19:58 AM
 

|iR|Focalor

February 27, 2024, 12:23:01 AM

0rbisson

February 26, 2024, 11:38:19 AM
player "shogun" known hacker back on ts servers. http://forum.tastyspleen.net/quake/index.php?topic=21160.msg201752#msg201752
 

|iR|Focalor

February 17, 2024, 10:11:59 PM
 

Costigan_Q2

February 16, 2024, 07:45:01 AM
Almost 4 months ey? that's a new record.

Last accepted: profile;u=7126
Date Registered:17-10-2023
WaKy-FeLa

Last registered: profile;u=7150
Date Registered:09-02-2024
damsonpharmacy

0rbisson

February 14, 2024, 10:51:18 PM
pings back up to 400+ on dm

Show 50 latest
Welcome, Guest. Please login or register.
March 28, 2024, 05:01:15 PM

Login with username, password and session length