1

Topic: OS X Server

Can i make a LAN server with OS X? I downloaded Teewars for OS X but theres no teewars_srv file, and i cant see how i can host one with the OS X client.

Can someone help?

2

Re: OS X Server

Not easy for the moment... We had a hard time repackaging everything for OSX, but I have a experimental launcher that lets you start server or client.

if you really want to run the server, do the following (warning, terminal hacking involved):

mkdir teeserv
cd teeserv
cp path/to/Teewars.app/Contents/MacOS/teewars_srv .
cp -R path/to/Teewars.app/Contents/Resources/data .
./teewars_srv

Edit your config as usual.

Languages shapes the way we think, or don't.

3 (edited by raph 2008-01-11 14:15:52)

Re: OS X Server

where do i put the config? And does the teeserv directory have to be in my teewars directory?

and what does my pwd have to be before i start "hacking"

4

Re: OS X Server

Your config is in ~/.teewars/
And you can put the new dir wherever you want

Languages shapes the way we think, or don't.

5

Re: OS X Server

Okay, ive worked it allll out big_smile

With OS X, you can set up a server by doing the following:

- Copy your teewars data directory into your home folder (directory with default.cfg)
- Make sure you have the same data in your teewars.app directory as is in your home folder
- Configure your server by editing default.cfg, which can be opened with a few simple Terminal commands:

cd .teewars
open default.cfg

- Open teewars_srv and then connect to localhost:8303 with Teewars.app

done! big_smile

6

Re: OS X Server

My tip is not to use default.cfg but to create a fresh .cfg. default.cfg is constantly being edited in-game and your settings will just edit themselfs when joining other servers, atleast that's my experience..

Official Teeworlds map developer and community moderator
Administrator for the Teeworlds community Teesites

7

Re: OS X Server

well, i dont know how to use a different cfg for the server

8

Re: OS X Server

http://teewars.com/?page=docs&id=168

smile

Official Teeworlds map developer and community moderator
Administrator for the Teeworlds community Teesites

9

Re: OS X Server

yeah i have the actual .cfg for the server, but how do i make the server use that .cfg with OS X?

10

Re: OS X Server

./teewars_srv -f srv1.cfg

put the new cfg in the same directory as teewars_srv

Languages shapes the way we think, or don't.

11

Re: OS X Server

by putting the new cfg in the teewars_srv directory, teewars_srv will run the new config?

As far as ive seen, OS X doesnt do command lines for apps.