1

Topic: mac osx - own server problem

Hello everyone, first post here!
First of all, thx for a great game, I love it!

Here's my problem: I can't start my own server. As the subject says I'm on a Mac osx 10.4. I've already tried this: http://teewars.com/?page=docs&id=168 but I can't get it to work, and if I understand everything right I should start a server with the default settings if I just open teewars_srv but the terminal reports this:
[47c03ffc][server]: starting...
[47c03ffc][config/load]: loading /Users/vally/.teewars/default.cfg
[47c03ffc][datafile]: datafile loading. filename='data/maps/dm1.map'
[47c03ffc][server]: failed to load map. mapname='dm1'
logout
[Process completed]

I do have the map so thats not the problem. I've also searched the forums and I'm really sorry if the solutions has been shown.
The main reason I want to start my own server is to test a map I'm creating, its hard to do a map without testing it.

All help really appreciated

Grautur

2

Re: mac osx - own server problem

My guess is that you didn't start teewars_srv from the teewars directory.

3

Re: mac osx - own server problem

Well I've tried to copy it to every directory I could think off, didn't work. Always the same report.

4

Re: mac osx - own server problem

Launch it where it is, it points to the maps folder in the Application so just leave it.

I'm the Hanz's Heroes Clan Leader.

5

Re: mac osx - own server problem

Thargok wrote:

Launch it where it is, it points to the maps folder in the Application so just leave it.

Well that was of course the first thing I tried and it (obviously) didn't work. I guess I'm going to try to reinstall the game and see if it helps.

6

Re: mac osx - own server problem

Please can someone help me?

7

Re: mac osx - own server problem

Clapp wrote:

Please can someone help me?

That depends on what you want help with...

Used to be very active waay back

8

Re: mac osx - own server problem

I'm having the same exact problem. When I run from my own server config file I get:

[47d4353c][server]: starting...
[47d4353c][config/load]: loading my_server_config.cfg
[47d4353c][datafile]: datafile loading. filename='data/maps/dm1.map'
[47d4353c][server]: failed to load map. mapname='dm1'

I'm running the file from /teewars-0.3.3-osx_x86/Teewars.app/Contents/MacOS/ and the map is clearly in the folder where it should be. :I

9

Re: mac osx - own server problem

Thats the wrong dir. you should be in the Resource dir

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

10

Re: mac osx - own server problem

The .cfg file should be in the resource directory? I've tried putting it in /Contents/Resources/, /Contents/Resources/Data/, and /Contents/MacOS/, and I get the same error for each. sad

11 (edited by Clawbug 2008-03-10 00:30:10)

Re: mac osx - own server problem

The file really is my_server_config.cfg? It should be in the exact same path where the teewars_srv binary is.

The server can't find the map

[47d4353c][server]: failed to load map. mapname='dm1'

as that states. I don't know why though, as I am not familar with Mac/OSX. However, for Linux/Windows the maps should be in /data/maps/.

Have you checked the dm1.map really DOES exist?

12

Re: mac osx - own server problem

I'm positive that dm1.map is exactly where it is supposed to be. neutral

13

Re: mac osx - own server problem

and you can play teewars  from the same folder, right? Has anyone ever ran server under OSX?

14 (edited by void 2008-03-10 12:01:56)

Re: mac osx - own server problem

OSX is different from win/lin in that the folder layout had to change to make teewars an appfolder. You can do the folowing to make it work:

* Create a new dir
* Copy Teewars.app/Contents/MacOS/* to that dir
* Copy Teewars.app/Contents/Resources/* to that dir
* cd to the directory and run ./teewars_srv

I will give teewars osx a pass dureing the coming weaks to iron out stuff like this and make it easier for you smile

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

15

Re: mac osx - own server problem

I'm sorry for being dumb but after trying that I still get the same error.
Some questions:
Does the new directory go inside Teewars.app?
Do I need to copy the contents of MacOS and Resources and dump them together in the new directory, or leave the contents of the folders inside them?
And can you explain what "cd" means in the last bullet point..

Sorry sad

16

Re: mac osx - own server problem

"cd" is the *NIX command for "change directory." Fire up the terminal and use cd to get to that directory. The following commands (should) get you there:

cd ..
cd ..
cd Applications/Teewars.app/Contents/Resources

OS X applications are set up like folders: a .app file is really just a folder with a specific hierarchy. Generally speaking, there's the Resources and MacOS folder within the Contents folder, and they are separate. Leave them as they are, with the MacOS stuff in the MacOS folder, and the MacOS folder in the Contents folder. Resources actually contains the application itself. This stuff needs to be contained within the Resources folder, which itself should be located within the Contents folder.

Hope this clears some issues up fer ya.

17 (edited by Bomberzocker 2009-10-23 07:02:05)

Re: mac osx - own server problem

I have this problem, too. But I don't understand your solution. I have made this grautur. And now this:

[47dd5d3a][config/load]: loading /Users/Benedikt/.teewars/default.cfg
[47dd5d3a][datafile]: datafile loading. filename='data/maps/dm1.map'
[47dd5d3a][server]: failed to load map. mapname='dm1'

And my my_server_config.cfg:

sv_name=Benes Server
sv_gametype=dm
sv_warmup=10
sv_map=dm2
sv_maprotation=1Rey_4.1.map Arena.map Arenawarsv2.map dm-ruin.map dm_ninja.map dm_haze.map ImoTheP_AreNa.map kirby.map
sv_max_clients=8
sv_scorelimit=3
sv_teamdamage=1
sv_sendheartbeats=0
sv_timelimit=30

Ther is no dm1 in my config?!?

Sorry for my english; typical germans ;-)

18

Re: mac osx - own server problem

Bomberzocker wrote:

I have this problem ,too. But I don't understand your solution. I have made this grautur. And now this:

[47dd5d3a][config/load]: loading /Users/Benedikt/.teewars/default.cfg
[47dd5d3a][datafile]: datafile loading. filename='data/maps/dm1.map'
[47dd5d3a][server]: failed to load map. mapname='dm1'

And my my_server_config.cfg:

sv_name=Benes Server
sv_gametype=dm
sv_warmup=10
sv_map=dm2
sv_maprotation=1Rey_4.1.map Arena.map Arenawarsv2.map dm-ruin.map dm_ninja.map dm_haze.map ImoTheP_AreNa.map kirby.map
sv_max_clients=8
sv_scorelimit=3
sv_teamdamage=1
sv_sendheartbeats=0
sv_timelimit=30

Ther is no dm1 in my config?!?

Yes, I get the same problem when I change the map in the config. It still says: failed to load map... dm1.

A bit strange

19

Re: mac osx - own server problem

I think it's a mistake in the teewars mac version

Sorry for my english; typical germans ;-)

20

Re: mac osx - own server problem

You have several problems. First, it loads the wrong config.
[47dd5d3a][config/load]: loading /Users/Benedikt/.teewars/default.cfg
Map names shouldn't have .map after them

21

Re: mac osx - own server problem

look, my config maps end with .map
If I change the name of my config to default.cfg would it work?

Sorry for my english; typical germans ;-)