Page 1 of 1

Mac server worldfile issue?

Posted: Fri Jun 09, 2006 8:26 pm
by Xalendare
Hello, I'm new to both the forums and the idea of running a server, and I'm having some issues with getting worldfiles/maps to work on my server.

So far, I've been playing randomly generated maps with friends, but I've recently tried to download a few maps and run those, to no avail. I've tried adding a map to the server config file using the flag "-world [path to file]", but Terminal keeps dumping out the following message:

Code: Select all

error: could not find bzflag world file
error: unexpected EOF
error: world file failed to load.
ERROR: A world was not specified
I've checked the path several times, its good. Any ideas what I'm doing wrong?

Posted: Fri Jun 09, 2006 9:56 pm
by The Knights Who Say Ni
it basically means that in youre map file at the End Of File [EOF] you are missing an end or something

Posted: Sat Jun 10, 2006 3:38 am
by Xalendare
It's a map I downloaded from BZFlag Mapatorium, and I know nothing about mapmaking. How do I fix this?

By the way, I've tried two maps, same error. It occurs to me that it might have something to do with the fact I'm on a Mac, perhaps different formatting. Any ideas?

Posted: Sat Jun 10, 2006 8:57 am
by CannonBallGuy
Shouldn't matter that you're on OS X. Never did for me.

Show us your conf file, map file and the whole output in terminal. :)

Posted: Sat Jun 10, 2006 6:00 pm
by A Meteorite
I get this occasionally on Mac OS X. It's seems related to the formatting - or lack of - on the first line (at least that's how I fixed it) but I can't seem to reproduce the problem right now. :?

Maybe try saving the file in TextEdit as UTF-8 or possibly some other formats and see if that does anything? Also run bzfs with "-d -d -d -d" to get more debug output.

And as CannonBallGuy said: please post everything involved in the server (config file and map).

Posted: Sat Jun 10, 2006 9:27 pm
by Xalendare
The files and Terminal output, as requested.

Terminal shell: (personal info removed, ask me if its necessary.)

Code: Select all

c-[IP address]:~/Games/Shooters/BZFlag/BZFlag-2.0.8.app/Contents/MacOS [username removed]$ ./bzfs -conf ~/bzfsmap.conf
using spam time of 10
using spam warn amount of 40
~/Games/Shooters/BZflag/Maps/FFA/kingcastle.bzw: error: could not find bzflag world file
~/Games/Shooters/BZflag/Maps/FFA/kingcastle.bzw: error: unexpected EOF
~/Games/Shooters/BZflag/Maps/FFA/kingcastle.bzw: error: world file failed to load.
c-[IP address]:~/Games/Shooters/BZFlag/BZFlag-2.0.8.app/Contents/MacOS [username removed]$
EDIT: Heh, heh, all that and I forgot to block out the Admin Password in the conf file. *Slaps forehead* Guess I'll be changing that...

Posted: Sun Jun 11, 2006 9:01 pm
by Xalendare
I'm sorry to bump this thread, but I could really use some help...

Posted: Sun Jun 11, 2006 9:07 pm
by trepan
Tilde expansion does not occur in -conf files.
Try using the full path, ex:
/home/trepan/bzflag/maps/map.bzw
(instead of ~/bzflag/maps/map.bzw)

Posted: Sun Jun 11, 2006 9:11 pm
by Xalendare
trepan wrote:Tilde expansion does not occur in -conf files.
Try using the full path, ex:
/home/trepan/bzflag/maps/map.bzw
(instead of ~/bzflag/maps/map.bzw)
Hah! That was it! Many, many thanks.

Posted: Tue Jun 13, 2006 5:38 pm
by BinarySpike
Tilde expansion does not occur in -conf files.

Whoa... I never knew...


By the way, there seems to be formatting problems every once in a while in certain maps...

To overcome this problem I open my maps in Project Builder (for 10.3+ users the eqivilent would be xcode) and I would convert it from whatever format to UTF-8

This can also be done in text edit but I've never tried so I can't be sure it works ;-)