Author Topic: Help setting up Railwarz CTF Linux Server  (Read 44935 times)

Offline bvughtoonice

  • Swanky Member
  • *****
  • Posts: 561
  • Join Quake Legacy Mod Revival Discord!
    • View Profile
    • Mod Revival made easy on discord chat!
  • Rated:
Help setting up Railwarz CTF Linux Server
« on: April 30, 2016, 02:13:42 PM »
Files you might need.
Quote
Quake2 pak0 etc
https://stuff.mit.edu/afs/sipb/contrib/idgames/share/quake2/baseq2/

Linux/Windows
https://code.google.com/archive/p/tmg/downloads

TMG Railwarz CTF Mod for Windows
http://www.angelfire.com/mt2/quakebots/railwarz.zip

TMG Railwarz CTF Mod for Linux
http://www.moddb.com/mods/tmg/downloads/tmg-railwarz-ctf-mod-12-railwarz-linux

I am trying to setup a Quake 2 Railwarz CTF server.
I have all the files in place i think.
when trying to start the server i get this error message.

Quote
[mb@mb ~]$ ./rwz.sh
running server r1q2 on ip : 27910
Added packfile ./baseq2/pak2.pak (2 files)
couldn't exec default.cfg
couldn't exec config.cfg
====== Quake2 Initialized
====== Quake2 Initialized ======
R1Q2 build 7864, compiled Oct  1 2008.
http://www.r1ch.net/stuff/r1q2/
Linux i386 (/home/mb/quake/r1q2ded-old)

couldn't exec q2srv.cfg
couldn't exec r1q2srv.cfg
------- Loading gamei386.so -------
Loaded Game DLL, version 3

=====================================
   TMG_MOD version 1.2
 This game library contains the bot
    detection system developed
        by Doug 'RaVeN' Buckley.
TMGBot 'Base' Bot code developed By Ponpoko
=====================================


==== Wav Mod v.01 set up ====
Adding Wav's to cycle: rsnake, busdriver, ghetto_song1, ghetto_song2, kick_da_baby, excuse_me, stand_up, livingproof

********************
ERROR: Game Error: Too many maps in rotation: Limit is 25
********************
==== ShutdownGame ====

the map.lst file is for map rotation correct?
what file do i need to create/edit for the mapvote list?
and what do  need to set in the config to have the mapvote list available on the server??

----------------------

Quote
warp_list   "q2ctf1 q2ctf2 q2ctf3 q2ctf4 q2ctf5"   This variable is a space separated list of maps that may be warped to on the server using the warp command. Any base map name (bsp file name) can be specified. Admins and players who start elections for warp requests must specific a map in this list.

is this the actual vote list?

Quote
sv_maplist   none   This variable may be set to a list of maps to rotate the server through. For example:
sv_maplist "q2ctf1 q2ctf3 q2ctf4"
Will cycle the server through the maps q2ctf1, q2ctf3, and q2ctf4.

could sv_maplist do it all? do i even need the maps.lst file if i add this to the server config?
« Last Edit: April 30, 2016, 02:48:44 PM by beaver{KEA} »
  • 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 QwazyWabbit

  • Carpal Tunnel Member
  • ******
  • Posts: 1372
    • View Profile
  • Rated:
Re: Help setting up Railwarz CTF Linux Server
« Reply #1 on: May 01, 2016, 12:39:40 AM »
Man, those are some shitty, spammy web sites. I have not been able to set this up yet, I just looked at the zip files.

As far as your maps.lst file goes, yes, some mods never used a maps list file but used a cvar to contain all the map names in their rotation. The result was sometimes a fairly limited rotation but you could change it on the fly but it looks like this mod uses maplist files.

Play this two ways:
1. keep the map list file short, say, 3 maps. Check the startup and rotation.
2. remove the map list file and set the sv_maplist in your config, also keeping it short.

See which method works.

Looking into the TMG archive and binary, the message is clearly from the mod and the argument to the message is a variable but I can't tell what variable it is at this moment. It appears the 25 might be a configurable number.

There are also default paths to map files:
./cfg/maps_ctf.txt
./cfg/maps_dm.txt

It looks like the name of the map list file might be the cvar maplist.

There are *.nav files, 31 of them. Looks like routes for the bots for the named maps.

I'd start with the q2dm1 through q2dm5 rotation to test the startup of the server as they have in the maps_dm.txt file.

  • 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 bvughtoonice

  • Swanky Member
  • *****
  • Posts: 561
  • Join Quake Legacy Mod Revival Discord!
    • View Profile
    • Mod Revival made easy on discord chat!
  • Rated:
Re: Help setting up Railwarz CTF Linux Server
« Reply #2 on: May 04, 2016, 04:30:12 AM »
hey man thanks for the reply.

here is the best source
https://bitbucket.org/jwaggoner/tmg
along with
https://code.google.com/archive/p/tmg/downloads

i kinda gave up on the linux server and switched over to windows server. finally made some progress. ill try to see if i can achieve the same thing on linux server for better performance in the long run.  :dohdohdoh:


i have now learned that
set mapqueue "maps_ctf" in the railwarz.cfg or whatever server.cfg file you use points to
quake2/ctf/cfg/maps_ctf.txt

edit this for your map votiing list. map rotation may or may not work perfectly.
i have 128 maps here on voting list and map voting works well.

more of my progress can be seen here.
http://railwarz.com/forum/index.php?topic=462.msg4260;topicseen#new

connect   216.52.143.109:27910   
if you want to check it out
running on windows server 2008 r2 2 cpu cores. 2 gig ram. 5gig SSD in chicago. nfoservers.com
tons of ctf maps there http downloads works great.
curious to see how the server will perform with 20+ players on it.


Quote
ul_ctf1 "Rockon"
ul_ctf2 "instantBlues"
ul_ctf4 "Dragon Keep"
f2w "f2w"     
theshack "shack"
trapped "trapped"
wont10 "Way it Wont"
gobctf1 "gobctf"
nxctf1 "Neoxotb CTF 1"
nxctf2 "Fleeting Fury"
nxctf3 "Else Where"
nxctf4 "Heartless"
nxctf4b "Rampless"
nxctf5 "Alpha Redux"
nxctf6 "Synthisis"
nxctf7 "Tribute"
afctf2a "Crackho 2.0"
octoball "Octo-Rena"
blckbase "Lightning Round"
slimyctf "Slime Mixer"
cfctf1 "FeldMan Complex"
codctf2 "Strong Resemblence"
codctf3 "Dead Heat"
codctf5 "Metal Rotunda"
codctf6 "Super Guido Bros"
delctf1 "Delirium"
delctf2 "Delusion"
delctf3b "Destiny Awaits Remix"
dhctf2 "Anthem"
dueling "dueling castles"
flag40 "deserted campground"
fortsup " FortSupreme"
geminictf "gemini temples"
gymctf2 "gymctf2"
judctf1 "return fire"
lmctf11 "enchanted kingdom"
lmctf21 "bridge"
lmctf22 "disputed"
lmctf24 "trembling"
lmctf31 "LMCTFReunion"
lmctf33 "RockyRailCTF"
codctf4 "type mapvote inConsole86MoreMaps!"
lmctf34 "oldfortremake--"
enchanted "EnchantedCastle--"
mactf01 "oldFort--"
mactf02 "Warehousewar--"
mactf03 "Doomed--"
mactf04 "Quakeaholic--"
mactf05 "mirror--"
mactf06 "kiukku--"
octo2beta "serenity--"
one "One Milkman--"
outdoors "GreatOutdoors--"
ow01ctf "obiwan--"
pbbzctf1 "UndBridge--"
pla2b "waterhole--"
pow2ctf "moshpit--"
b4ctfb "LushXL--"
stdctf4a "Rumn'Choke--"
rtctf1a "Bletsw.Doors--"
rtctf3 "rtctf3--"
dgctf1 "CrackHo1.0--"
q2ctflr3 "OasisValley--"
q2ctfw4 "McKin Strong--"
smap14 "Twin Castles--"
smap17 "Return Fire--"
smap49 "Be Quick--"
smap52 "RkNRllRebel--"
dr4ig02 "R.A.T.S.--"
b9beta "CrazyTrain--"
fragtwca1 "Fragtown--"
nectf1 "nectf--"
sherm_ctf7 "breaking--"
smap10 "supforts--"
smap53 "XL Night--"
lmctf36 "Gunslinger"
lmctf39 "LMCTF Blues"
lmctf41 "Airline"
marics_ctf1 "Divides--"
marics_ctf2 "thunder roars--"
marics_ctf3 "MayhemMid--"
marics_ctf4 "FacingDragons--"
marics_ctf5 "TooManyCrates--"
marics_ctf6 "NarrowPass--"
marics_ctf7 "BothEnds--"
marics_ctf8 "ValleyShadow--"
marics_ctf9 "NightsPlutonian--"
marics_ctf10 "Arcanum--"
marics_ctf11 "Rooftop--"
marics_ctf12 "LlamaTomb--"
marics_ctf13 "AntagonismHeights--"
marics_ctf14 "DragonXL--"
marics_ctf14_5 "DragonLite--"
marics_ctf15 "AnthrValymorShadows--"
marics_ctf16 "Under--"
marics_ctf17 "StoneSimp--"
marics_ctf18 "Pit--"   
marics_ctf19 "SuperPit--"
marics_ctf20 "DefAnxty--"
marics_ctf21 "VariationBlues--"
beerct3 "NeonNexus--"
lfctf10 "Lush--"
as2m7rb "CacoRedBase--"
lmctf39 "LMCTFBlues--"
q2uctf1 "TooEdgy--"
q2uctf4 "DriedEdge--"
as2m7 "Caco--"
lm2rail "LM2rail--"
lrail "LightRail--"
sr2 "SkyRail2--"
kitchen "kitch--"
q2ctf1 "McKinley--"
q2ctf2 "Stronghold---"
q2ctf3b "SmeltII--"
q2ctf4 "outland--"
q2ctf4a "outII--"
q2ctf8 "Hangar--"
lfctf1 "Neuro"
lfctf4 "Clones--"
lfctf5 "Samurai--"
lfctf6 "Mines--"
lfctf7 "Mcshimn--"
lfctf8 "Dakyne--"
lfctf9 "Slips--"
rtctf1w "BletsNOdOORS--"
sherm_ctf2 "TuTS--"
smap05 "OutpostOmega--"
xlctf2b "xlctf2b"
  • 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 QwazyWabbit

  • Carpal Tunnel Member
  • ******
  • Posts: 1372
    • View Profile
  • Rated:
Re: Help setting up Railwarz CTF Linux Server
« Reply #3 on: May 05, 2016, 01:33:27 AM »
The bitbucket source is a bit dated and isn't quite ready to compile on modern Linux yet. :) I had to modify the makefile and some other things to make it work... The Visual Studio project is older also. I had to modify it to build in VS2010. I have not tried it in VS2015.

I'll have more in a bit...
  • 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 QwazyWabbit

  • Carpal Tunnel Member
  • ******
  • Posts: 1372
    • View Profile
  • Rated:
Re: Help setting up Railwarz CTF Linux Server
« Reply #4 on: May 05, 2016, 02:01:10 AM »
The phrase "Too many maps in rotation" doesn't exist in the source code. I suspect the version you ran that showed that result wasn't built from that source. This source looks newer.

The variable "mapqueue" doesn't appear in this source either. This source is doing something a little different with the maplist. It keeps an array of 128 map names in game and the vote tally for each. I've never seen this before and it looks like it's done for the menues. I'd say right now you're limited to a total of 128 maps.

The source won't compile on Linux as-is. It's strictly Windows until it can be modified.

Examples: stricmp and strnicmp functions don't exist on Linux.

I have the code building clean on Windows but I haven't tried to run it yet.
  • 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 bvughtoonice

  • Swanky Member
  • *****
  • Posts: 561
  • Join Quake Legacy Mod Revival Discord!
    • View Profile
    • Mod Revival made easy on discord chat!
  • Rated:
Re: Help setting up Railwarz CTF Linux Server
« Reply #5 on: May 05, 2016, 09:08:05 AM »
can you post link to linux makefile id like to give it a try again see if i can get linux server going
  • 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 QwazyWabbit

  • Carpal Tunnel Member
  • ******
  • Posts: 1372
    • View Profile
  • Rated:
Re: Help setting up Railwarz CTF Linux Server
« Reply #6 on: May 05, 2016, 04:30:11 PM »
Here's the makefile. You will get lots of warnings and errors on the source files.
To do a complete rebuild, do this command in the shell:

make all

After the initial rebuild, you can do incremental builds just type make at the command line. The only time you need to "make depends" is if you add/alter include files or *.h, this rebuilds the dependency tree so make knows which .C files to recompile.

I've made lots of changes to my copy of the code but I don't have diffs to post. I run the code through Linux, VS2010 and Xcode (clang) compilers and massage thoroughly. :)

Regarding stricmp and strnicmp:

Place this block in q_shared.h, just below the definition of the NULL pointer in lines 39-41.

Code: [Select]
#ifndef _WIN32
#define stricmp strcasecmp
#define strnicmp strncasecmp
#endif



Code: [Select]
#
# Quake2 gamei386.so Makefile for Linux 2.0
#
# Jan '98 by Zoid <zoid@idsoftware.com>
#
# ELF only
#
# Edited May 5, 2016 by QwazyWabbit
#
# Requires GNU make
#

ARCH=i386

# on x64 machines do this preparation:
# sudo apt-get install ia32-libs
# sudo apt-get install libc6-dev-i386
# this will let you build 32-bits on ia64 systems
#

#use these cflags to optimize this build
CFLAGS=-O3 -m32 -march=$(ARCH) -DARCH="$(ARCH)"
#use these when debugging
#CFLAGS=-g -m32 -DARCH="$(ARCH)" -Wall

# flavors of Linux
ifeq ($(shell uname),Linux)
#SVNDEV := -D'SVN_REV="$(shell svnversion -n .)"'
#CFLAGS += $(SVNDEV)
CFLAGS += -DLINUX
LIBTOOL = ldd
endif

# OS X wants to be Linux and FreeBSD too.
ifeq ($(shell uname),Darwin)
#SVNDEV := -D'SVN_REV="$(shell svnversion -n .)"'
#CFLAGS += $(SVNDEV)
CFLAGS += -DLINUX
LIBTOOL = otool
endif

SHLIBEXT=so
#set position independent code
SHLIBCFLAGS=-fPIC

ORIGDIR=Source

DO_SHLIB_CC=$(CC) $(CFLAGS) $(SHLIBCFLAGS) -o $@ -c $<

.c.o:
$(DO_SHLIB_CC)

#############################################################################
# SETUP AND BUILD
# GAME
#############################################################################

GAME_OBJS = \
anticheat.o bot.o bot_fire.o bot_func.o bot_za.o camper.o e_hook.o eavy.o filehand.o \
filtering.o g_chase.o g_cmds.o g_combat.o g_ctf.o g_func.o g_items.o g_main.o g_misc.o \
g_monster.o g_phys.o g_save.o g_spawn.o g_svcmds.o g_target.o g_trigger.o g_utils.o \
g_weapon.o gslog.o highscore.o hud.o intro.o locdamage.o m_move.o s_map.o models.o \
p_client.o p_hud.o p_light.o p_menu.o p_trail.o p_view.o p_weapon.o q_shared.o \
runes.o stdlog.o timer.o vote.o

game$(ARCH).$(SHLIBEXT) : $(GAME_OBJS)
$(CC) $(CFLAGS) -shared -o $@ $(GAME_OBJS) -ldl -lm
$(LIBTOOL) -r $@


#############################################################################
# MISC
#############################################################################

clean:
/bin/rm -f $(GAME_OBJS) game$(ARCH).$(SHLIBEXT)

depend:
gcc -MM $(GAME_OBJS:.o=.c)

depends:
$(CC) $(CFLAGS) -MM *.c > dependencies

all:
make clean
make depends
make

-include dependencies


Modified make file to include "make all", this rebuilds the entire project from a Linux command line.
« Last Edit: May 06, 2016, 09:28:40 PM by QwazyWabbit »
  • 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 QwazyWabbit

  • Carpal Tunnel Member
  • ******
  • Posts: 1372
    • View Profile
  • Rated:
Re: Help setting up Railwarz CTF Linux Server
« Reply #7 on: May 06, 2016, 10:22:41 PM »
If you're into programming and you want to be astounded by a truly awesome and insane C function, check out the code here in the TMG mod.

https://bitbucket.org/jwaggoner/tmg/src/58b52f6341fa2e1d6608035eb36e974787a1329c/TMG/bot_za.c?at=master&fileviewer=file-view-default

Scroll down to line 2215 and behold the Bots_Move_NORM function. This single function is 3,649 lines long! It contains 38 GOTO's and it must have been insanely difficult to debug. Normally a C function is no more than 20 or 30 lines long and it performs a single "function" as part of solving a larger problem or set of tasks. Something 100 times larger than that just leaves me shaking my head. FYI, there are 72 goto's in the entire project, 53% of them are in this single function. A superb example of how NOT to write code. The author must be a genius because I can't keep that much code in my head, I like my functions to be a single page on the screen so I can see it all at once and not scroll forever.

 :ubershock:
« Last Edit: May 14, 2016, 12:12:20 PM by QwazyWabbit »
  • 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 QwazyWabbit

  • Carpal Tunnel Member
  • ******
  • Posts: 1372
    • View Profile
  • Rated:
Re: Help setting up Railwarz CTF Linux Server
« Reply #8 on: May 07, 2016, 11:10:07 PM »
Here's the project as I have it so far. It builds clean in Windows on VS2010 Ultimate (I haven't tested it in VS2015 yet but it should convert easily) and fairly clean in Linux and OS X. I cleaned up some code and removed unused variables and whatnot to satisfy clang and gcc. Some warnings still exist but they're mostly harmless. I tested it all with bots active on Windows and it runs. Linux makefile included, just "make all" to build.

Let me know if you find some bugs. I'm sure they exist. :)

If you have the flags and banners for this mod I'd appreciate it if you could send them along. Does it use the same as other CTF? I haven't investigated this but it looks likely. All I have for red and blue flags are pyramids in R1Q2.
  • 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 bvughtoonice

  • Swanky Member
  • *****
  • Posts: 561
  • Join Quake Legacy Mod Revival Discord!
    • View Profile
    • Mod Revival made easy on discord chat!
  • Rated:
Re: Help setting up Railwarz CTF Linux Server
« Reply #9 on: May 08, 2016, 12:33:43 AM »
man thanks for doing all this! look forward to giving the linux a go again!
if i can just get the mapvote feature to work on linux!

i installed the game in ctf folder so i think it uses same files as ctf.




  • 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 QwazyWabbit

  • Carpal Tunnel Member
  • ******
  • Posts: 1372
    • View Profile
  • Rated:
Re: Help setting up Railwarz CTF Linux Server
« Reply #10 on: May 08, 2016, 09:32:05 PM »
You're welcome. I've enjoyed hacking this mod a bit.

Here's another updated zip file.

This version compiles cleanly on Linux, OS X and Windows.
I also fixed the timeleft and GetTime functions that were a little kluged.

The convert_string function contained a dependency on undefined behavior that was spotted by clang on OS X. The function failed on OS X. I don't have a Linux server so I don't know if it was broken in Linux like it was on Mac. I rewrote it so it works properly on all platforms and added some wrapper functions that might be useful.

Fixed some buffer overflows that were glaringly obvious.
Any warnings or errors you get now will be your own. :)
  • 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 QwazyWabbit

  • Carpal Tunnel Member
  • ******
  • Posts: 1372
    • View Profile
  • Rated:
Re: Help setting up Railwarz CTF Linux Server
« Reply #11 on: May 14, 2016, 05:20:15 PM »
Hey all,
I have been granted access to the repository at https://bitbucket.org/jwaggoner/tmg
and after some general learning curve difficulties changing over from my local SVN repository to the git system, I've updated the code there and you can now clone the latest changes. It should all be good in Linux and Windows.

Caution: the VS project files might need tweaking for your local setup, I didn't put the mod in my ctf folder.

If you spot a bug, let me know.

QW
  • 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 bvughtoonice

  • Swanky Member
  • *****
  • Posts: 561
  • Join Quake Legacy Mod Revival Discord!
    • View Profile
    • Mod Revival made easy on discord chat!
  • Rated:
Re: Help setting up Railwarz CTF Linux Server
« Reply #12 on: May 15, 2016, 10:18:18 AM »
just tried it out! the mapvote works perfect first try!

thank you! i can now convert my windows machine to linux!

i wasnt able to get map rotation to work properly ether or highscores working. nether are very important.

i do wish i could get wallfly setup on my server eventually.

but i will test  this new build out n see how it all goes!
  • 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 QwazyWabbit

  • Carpal Tunnel Member
  • ******
  • Posts: 1372
    • View Profile
  • Rated:
Re: Help setting up Railwarz CTF Linux Server
« Reply #13 on: May 15, 2016, 09:35:06 PM »
Quote from: beaver&#123;KEA} on May 15, 2016, 10:18:18 AM
Quote from: beaver{KEA} on May 15, 2016, 10:18:18 AM
just tried it out! the mapvote works perfect first try!

thank you! i can now convert my windows machine to linux!

i wasnt able to get map rotation to work properly ether or highscores working. nether are very important.

i do wish i could get wallfly setup on my server eventually.

but i will test  this new build out n see how it all goes!

Cool! Always nice when it works right the first time.
I looked at map voting and it looked broken to me, I have not touched the functionality at all so it's good to know it works at this stage.

I haven't looked at map rotation or highscores at all yet.
I've been re-stacking the code to be a little more organized so that any changes will be coherent going forward. Headers are all jumbled up and declarations are thrown around all over the place. I had a fun learning curve with GIT to get over as well.

I just found a bug that crashes the server involving the menu when you're dead. I'm tracking it down now.

  • 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 bvughtoonice

  • Swanky Member
  • *****
  • Posts: 561
  • Join Quake Legacy Mod Revival Discord!
    • View Profile
    • Mod Revival made easy on discord chat!
  • Rated:
Re: Help setting up Railwarz CTF Linux Server
« Reply #14 on: May 16, 2016, 08:22:38 AM »
the only thing about mapvoting that could be improved is the way it displays in console.

if u type mapvote in console u get out putlike



if it was more like
Quote
mapfilename - "map name"
mapfilename - "map name"
mapfilename - "map name"
mapfilename - "map name"
mapfilename - "map name"
mapfilename - "map name"
mapfilename - "map name"
mapfilename - "map name"
mapfilename - "map name"

in a list format instead of jumbled would be nicer if even possible?

if not no big deal. :)
  • 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/

 

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 21, 2024, 11:18:55 PM

Login with username, password and session length