crossfire-mapper: some files are missing

Technical and coding related questions.

Moderator: Board moderators

Post Reply
fargris
Luser
Posts: 37
Joined: Sun Jan 11, 2009 4:13 pm

crossfire-mapper: some files are missing

Post by fargris »

I have built the crossfire-mapper, but it doesn't like the maps I have. The server is version 1.60 (crossfire-1.60.0.tar.gz) and the maps are 1.11 (crossfire-1.11.0.maps.tar.gz). What it complains about is:
# ./crossfire-mapper
Initializing Crossfire data...
Unable to open /var/log/crossfire/logfile as the logfile - will use stderr instead
Unable to open /var/log/crossfire/logfile as the logfile - will use stderr instead
[Error] Can't open regions file /usr/games/crossfire/share/crossfire/maps/regions.reg in init_regions.
[Error] Can't open regions file /usr/games/crossfire/share/crossfire/maps/regions.reg in init_regions.


done.

Couldn't stat template templates/map.template!
Leaf
Forum Aficionado
Posts: 1994
Joined: Tue Apr 29, 2003 5:55 pm
Location: Minnesota, USA
Contact:

Post by Leaf »

First, no reason or need to run mapper as root unless you have everything set up that way.

Did you compile the mapper program with the gcc command?

Does the regions.reg file exist at /usr/games/crossfire/share/crossfire/maps/ ?

If not, this is why it's recommended to run the same version of server, maps and archetypes as changes can be made to make different versions incompatible with each other.

If the missing regions.reg is the only problem here, fortunately regions.reg is just the regions file with the .reg extension added to it. This *MIGHT* work..

Code: Select all

cd /usr/games/crossfire/share/crossfire/maps/
cp regions regions.reg
"Put another, more succinct way: don't complain, contribute. It's more satisfying in the long run, and it's more constructive."
Eric Meyer
fargris
Luser
Posts: 37
Joined: Sun Jan 11, 2009 4:13 pm

Post by fargris »

Hi Leaf,

I figured that out after I posted the message, but it still fails with:

Couldn't stat template templates/map.template!

- and I can't see what to do about it.
Ryo
Forum Fanatic
Posts: 752
Joined: Mon May 19, 2003 9:16 pm
Location: Paris, France

Post by Ryo »

Hello.
fargris wrote:I figured that out after I posted the message, but it still fails with:

Couldn't stat template templates/map.template!

- and I can't see what to do about it.

You need to copy the contents of

Code: Select all

trunk/utils/templates
to

Code: Select all

branch/utils/templates
.

This subdirectory contains the templates mapper uses to generate files.
Post Reply