Author |
Message |
Doc Flabby Server Help Squatter

Joined: Feb 26 2006 Posts: 636 Offline
|
Posted: Thu Aug 03, 2006 7:11 am Post maybe stupid Post subject: HOW-TO: A guide to installing subgame2 in linux (debian) |
 |
|
|
|
As good as ASSS is sometimes subgame has its advantages. This is how I got it running on the linux.
First you need a working wine installation of wine version 0.9.12 or later. This is in the testing package repositry in debian. to install (assuming you are running a testing version of debian you would type as root)
Similarly installing on other linux is there is normally a similar way such as emerge of gentoo
To check if wine is setup correctly switch to a non-root user
type
It should display the version number of wine
If that happens all is good. and wine is setup.
The next stage is to create a user in which subgame will run
switch to root (or use sudo) type
choose a name and password for the user. Im gonna call it subgame, with password docflabbyiscool. I suggest u use a different password
now you need to change to the user of the newly created user so either login as subgame or type as root
if u type
it should say
subgame
switch to subgames home folder and run wine to set it up
alot of crap and errors will appear on the screen but thats normal wait for it to go away.
mkdir ~/.wine/drive_c/subgame
cd ~/.wine/drive_c/subgame
|
copy all the subgame files in the subgames zip to this directory
now fire up nano or vim or whatever you edit text files with and setup server.ini for subgame. plenty of help is advailable here http://www.shanky.com/server/ and in these forums.
I would recomment changing this section of server.ini so it looks like this to prevent subgame hogging the cpu
[CPU]
LoopDelay=0
ProcessMaxTime=4
SleepPerIteration=1
SlowIterationWarningLevel=100
SleepTime=5
|
once you have done that its time to make sure the permissions are correct
everything in the subgame folder should be chmod 755
and chown subgame.
Once you have done that its time to try the server out.
this should launch the subgame server. you can then try connecting to it in continuum. To stop it use ctrl+c.
To get the server to launch at start up you need to create a script to run it
cd #
touch startsubgame
chmod 755 startsubgame
|
edit the startsubgame file so it looks like this (assuming your subgame user is called subgame)
cd /home/subgame/.wine/drive_c/subgame
wine subgame2.exe
|
save that file
test it works
it should start the subgame server
to get it running on startup we use crontab
make sure you are the subgame user (whoami)
add this line
@reboot /home/subgame/startsubgame >> /home/subgame/subgamelog 2>&1
|
this will create a log file for you of subgame. Now try rebooting the computer to see if subgame starts up
If all is good your subgame server should now be setup on linux
DISCLAIMER: ive only tried this on a debian server using wine version 0.9.12 if this breaks your computer its not my fault
If you want to see it in action PSSF Kitty Girls!!! is a test zone currently running subgame2 on linux in this way. _________________ Rediscover online gaming. Get Subspace | STF The future...prehaps
Last edited by Doc Flabby on Fri Nov 03, 2006 11:06 am, edited 2 times in total |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Thu Aug 03, 2006 10:33 am Post maybe stupid Post subject: |
 |
|
|
|
I haven't tried it, but I have some cosmetic changes for your howto.
You should use "su - subgame", which has the added benefit of changing to ~.
I'm pretty sure that your cron change will only work with some cron variants.
"cd #" can be replaced by "cd"
mkdir ~/.wine/drive_c/subgame
cd ~/.wine/drive_c/subgame #is this even needed?
|
can replace:
cd .wine
cd drive_c
mkdir subgame
cd subgame |
There are probably things I missed (I'm not sure that adduser is the preferred method, for example), but it's probably not that important. _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me |
|
Back to top |
|
 |
Doc Flabby Server Help Squatter

Joined: Feb 26 2006 Posts: 636 Offline
|
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Fri Aug 04, 2006 8:26 am Post maybe stupid Post subject: |
 |
|
|
|
No, I meant is the cd part really necessary? You could add a wget and an unzip command aftewards and then I'd be ok, but as it is, you just tell them to put it all in there. |
|
Back to top |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
|
Back to top |
|
 |
Doc Flabby Server Help Squatter

Joined: Feb 26 2006 Posts: 636 Offline
|
Posted: Mon Aug 21, 2006 6:35 am Post maybe stupid Post subject: |
 |
|
|
|
opps forgot about this topic.
That script won't work unfortunatly, i coulnt get it to work neways....its probabbly me! |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Mon Aug 21, 2006 10:36 am Post maybe stupid Post subject: |
 |
|
|
|
That's a gentoo rc script, so without gentoo, it probably won't work. |
|
Back to top |
|
 |
Doc Flabby Server Help Squatter

Joined: Feb 26 2006 Posts: 636 Offline
|
|
Back to top |
|
 |
Animate Dreams Gotta buy them all! (Consumer whore)

Age:37 Gender: Joined: May 01 2004 Posts: 821 Location: Middle Tennessee Offline
|
Posted: Thu Nov 02, 2006 10:31 pm Post maybe stupid Post subject: |
 |
|
|
|
Erm.
I get to the part where you're supposed to do
cd #
wine
And apparently wine is supposed to do something OTHER than:
Usage: wine PROGRAM [ARGUMENTS...] Run the specified program
wine --help Display this help and exit
wine --version Output version information and exit
But that's all it does. The subsequent step of making a new directory was just giving me errors:
[billerman@vps ~]$ mkdir ~/.wine/drive_c/billerman
mkdir: cannot create directory `/home/billerman/.wine/drive_c/billerman': No such file or directory
Which may be because Wine hasn't done what you expected it would do in the previous step. So, um... got any ideas? |
|
Back to top |
|
 |
Doc Flabby Server Help Squatter

Joined: Feb 26 2006 Posts: 636 Offline
|
Posted: Fri Nov 03, 2006 11:10 am Post maybe stupid Post subject: |
 |
|
|
|
ah you found a mistake - ive corrected it in my post
you need to type not wine
just to get wine to set its self up and create the correct folders. |
|
Back to top |
|
 |
|