Page 1 of 2

Hosting Q3 DC with modern linux distro guide

Posted: Mon Oct 02, 2017 2:08 am
by 1nick9
hey guys ended up getting q3dc deticated server going with modern distro so thought i'd right up a quick (very brief) howto.
firstly I've only got this running with x86 ubuntu 17.04 server but should work with all x86 distros, haven't even tried x64 as the bins x86 n my server only got 4gb ram anyway so didn't see point in stuffing round with it.

so first ya gonna need some files:
pak0.pk3 (from original q3a disc)
sega.pk3
dcmaps (i use dc-mappackv2.1.pk3)
some game cfg files
linuxq3apointer-1.16n.x86.tar (the tar not run)

all of these are availbe on my dropbox with link to in download section besides pak0.pk3 and cfg files.

so get all of them on ya linux box.
no do

Code: Select all

mkdir /home/username/.q3a/
(username will vary depending on what uve chosen.

now copy the linuxq3apointer-1.16n.x86.tar into the .q3a dir and untar with

Code: Select all

tar vxsf linuxq3apointer-1.16n.x86.tar

it should extract all of the update to the dir, then copy the needed files to the ~/.q3a/baseq3/ dir, being:
pak0.pk3
sega.pk3
dcmaps.pk3
and cfg files for games.

ya pretty much done, just run the bin directly in /home/username/.q3a/bin/x86/glibc-2.0/q3ded with desired settings, tho to make things easier lets make a script to just run.

so make a script in ya home/username folder

Code: Select all

nano /home/username/ffa.sh

nano will open up creating new txt file, enter:

Code: Select all

#!/bin/sh
screen -d -m /home/username/.q3a/bin/x86/glibc-2.0/q3ded +set dedicated 2 +set net_port 27960 +exec ffa1.cfg

ctl + x when done answer yes to save changes.
then make it excutable with chmod +x /ffa.sh and run, should have a server going (for testing u got the .sh script right maybe take out the screen -d -m part to make sure runs right instead of having to swap between screen sessions.

to setup other game types just copy the ffa.sh to another name eg. ctf.sh and edit the net_port ##### and the +exec ###.cfg it loads.

done. of course need to port forward on ya router.
tho with this u must run the script ea boot, i played round trying to get it running as a service but the os didnt like seeing the exec command as part of it n refused to run as service, dam id using a clashing switch. if you know a way to get round this please let me no as be handy to have it run as a service instead of manually invoked.

you could also setup some pointers with ln to save type absolute path, but i didnt bother as once the first sh script run just cp it and change the port and cfg it loads.

enjoy!

Re: Hosting Q3 DC with modern linux distro guide

Posted: Mon Oct 02, 2017 2:09 am
by 1nick9
did mess bout with setup scripts trying to get it to install got it running but would ignore the part set for bins and look in top /bin dir for em. randomly tried to run the q3ded bin and noticed it was looking to that dir so figure just do the manual install to there and worked ripper.

Re: Hosting Q3 DC with modern linux distro guide

Posted: Mon Oct 02, 2017 2:35 am
by 1nick9
also maybe someone else should make mirror of the files, the dropbox im using just free account so not much transfer allowance.

Re: Hosting Q3 DC with modern linux distro guide

Posted: Mon Oct 02, 2017 9:18 am
by mrneo240
I snagged all of your files and zipped them. I'll post a mirror on firedrop and mega for ya.

Re: Hosting Q3 DC with modern linux distro guide

Posted: Mon Oct 02, 2017 7:27 pm
by Bob Dobbs
Nice job, 1nick9

Re: Hosting Q3 DC with modern linux distro guide

Posted: Mon Oct 02, 2017 7:39 pm
by 1nick9
yeah was pretty simple to do man. was gonna have a crack at breaking the tar from run but ended up finding out dude at oc had done it tho his link was down so just popped it into google his file name n found a wiki quake3 site that had it.
the main problem i noticed with the setup scripts is the function switch no longer being

Code: Select all

function FUNCNAME {
}

instead

Code: Select all

FUNCNAME ()
{
}


changing those got it to run but the pathing was still wrong n before looked closely at it decided to try run the q3ded bin and it ran n looked in that dir so just did manual install to that dir as easiest option.

Re: Hosting Q3 DC with modern linux distro guide

Posted: Tue Oct 03, 2017 12:04 am
by 1nick9
mrneo240 wrote:I snagged all of your files and zipped them. I'll post a mirror on firedrop and mega for ya.

just noticed your post too man. cheers that'd be good. all the files from the oc website guide and then the forums for the map packs tho most of the guide links down, not sure bout map packs link on forums but figured another mirror won't hurt. also the tar up on one other wiki site i found via google when searching the file name, which is where i got it from and saved trouble messing bout breaking the tar from run, if someone else already done it and can get it why do it again?

still be good to have another mirror up besides my dropbox due to transfer limits with free account.

Re: Hosting Q3 DC with modern linux distro guide

Posted: Tue Oct 03, 2017 1:07 pm
by mrneo240
1nick9 wrote:
mrneo240 wrote:I snagged all of your files and zipped them. I'll post a mirror on firedrop and mega for ya.

just noticed your post too man. cheers that'd be good. all the files from the oc website guide and then the forums for the map packs tho most of the guide links down, not sure bout map packs link on forums but figured another mirror won't hurt. also the tar up on one other wiki site i found via google when searching the file name, which is where i got it from and saved trouble messing bout breaking the tar from run, if someone else already done it and can get it why do it again?

still be good to have another mirror up besides my dropbox due to transfer limits with free account.


not a problem. look for it tomorrow when ill have 10MB/s upload speed :D

Re: Hosting Q3 DC with modern linux distro guide

Posted: Wed Oct 04, 2017 9:11 am
by mrneo240
here ya go!
i also added a file that i found on my laptop dc-mappack.pak3, im prettysure its used for connecting to dreamcast servers from the pc client

https://mega.nz/#F!EkkllYqB!OWG7ZQO5WLXOmD6I1Bp_5w

Re: Hosting Q3 DC with modern linux distro guide

Posted: Wed Oct 04, 2017 6:55 pm
by 1nick9
mrneo240 wrote:here ya go!
i also added a file that i found on my laptop dc-mappack.pak3, im prettysure its used for connecting to dreamcast servers from the pc client

https://mega.nz/#F!EkkllYqB!OWG7ZQO5WLXOmD6I1Bp_5w

sweet thanks!
all those map packs in there work with pc client playing on dc, from memory they was some updated packs someone made not the official so handy to have the old original one, remember reading about 2.1 might have had bugs with some maps hence why i use it.

got em off this thread
http://dreamcast.onlineconsoles.com/php ... hp?t=10391