problem compiling map with featues [split from linux mapconv]

problem compiling map with featues [split from linux mapconv]

Discuss maps & map creation - from concept to execution to the ever elusive release.

Moderator: Moderators

Post Reply
wolas
Posts: 112
Joined: 30 Jul 2010, 20:40

problem compiling map with featues [split from linux mapconv]

Post by wolas »

Ok I tried and tried and tried and now i m tired. I just cant add feature what I m doing wrong? Its my first map and I guess tutorials dont work as there is no such thing as featuremap.bmp. I tried add geovent in that featuretextfile and it works.

When I try to add some tree or something like that I got errors that feature is not found. I tried to move definitions in /features/All World/ it dont work.
So where is mistake? It is probably noobish one.

That baobab is taken from tabula v4 so it should really work, when I just add it?
  • wolas@N1:~/Desktop/springdev/map/WWF$ ./compile_and_pack.sh
    Range : 0 -> 65535
    Compressing 4050/ 4096 - 3079 tiles
    Compress done , ratio: 76.2939
    Feature ad0_baobab_0 Instance 0x921c5e8 Terrain height: 41.1908
    Feature tcpice1 Instance 0x921c568 Terrain height: 41.1908

    Creating archive maps.7z

    Compressing maps/detailtex.bmp
    Compressing maps/features/ad0_baobab_0.lua
    Compressing maps/features/tcpice.tdf
    Compressing maps/objects3d/ad0_baobab_0.s3o
    Compressing maps/objects3d/tcpice1.s3o
    Compressing maps/unittextures/ad0_baobab_1.tga
    Compressing maps/unittextures/ad0_baobab_2.tga
    Compressing maps/unittextures/icetex.dds
    Compressing maps/unittextures/icetex2.png
    Compressing maps/WWF.smd
    Compressing maps/WWF.smf
    Compressing maps/WWF.smt
    then it moves map.7z to WWF.sd7
    Everything is Ok
    wolas@N1:~/Desktop/springdev/map/WWF$ spring | grep feature
    [f=0000000] Loading feature definitions
    [f=0000000] Initializing map features
    [f=0000000] Unknown map feature type ad0_baobab_0
    [f=0000000] Unknown map feature type tcpice1
    [f=0000000] Unknown feature named 'ad0_baobab_0'
    [f=0000000] Unknown feature named 'tcpice1'


    compile and pack.sh
    #!/bin/sh
    mapname=WWF

    springMapConvNG -ct 2 -th 0 -maxh 300 -minh -900 -o $mapname -m metalmap.bmp -t texture.bmp -h heightmap.bmp -features features.txt && mv $mapname.sm? ./maps/ && 7z a -ms=off maps.7z maps && mv maps.7z ~/.spring/maps/WWF.sd7

    features.txt
    tcpice1 300 -500000 300 0
    ad0_baobab_0 350 -500000 300 0
User avatar
tizbac
Posts: 136
Joined: 19 Jun 2008, 14:05

Re: New mapconv that works flawlessy on linux

Post by tizbac »

See if spring gives error about parsing .tdf & .lua earlier
wolas
Posts: 112
Joined: 30 Jul 2010, 20:40

Re: New mapconv that works flawlessy on linux

Post by wolas »

Well there is no other errors, I didint even modyfy those files so there shouldnt be any errors when parsing. What I do is move to maps folder as you see in script "mv $mapname.sm? ./maps/" and that maps folder has everything (see 7z log) what it should have( I hope).
User avatar
tizbac
Posts: 136
Joined: 19 Jun 2008, 14:05

Re: New mapconv that works flawlessy on linux

Post by tizbac »

Compressing maps/features/tcpice.tdf != tcpice1
wolas
Posts: 112
Joined: 30 Jul 2010, 20:40

Re: New mapconv that works flawlessy on linux

Post by wolas »

It is this file actually can contain many many feature descriptions. And I tried lua way and tdf way both fails and both are pulled from existing maps.
User avatar
tizbac
Posts: 136
Joined: 19 Jun 2008, 14:05

Re: problem compiling map with featues [split from linux mapconv

Post by tizbac »

It's not related to the mapconv anyway , i've made maps with features with it and it works pefectly :/
wolas
Posts: 112
Joined: 30 Jul 2010, 20:40

Re: problem compiling map with featues [split from linux mapconv

Post by wolas »

#!/bin/sh
mapname=wwf

springMapConvNG -ct 2 -th 0 -maxh 300 -minh -900 -o $mapname -m metalmap.bmp -t texture.bmp -h heightmap.bmp -features features.txt && mv $mapname.sm? ./map/maps/ && 7z a -ms=off maps.7z ./map/* && mv maps.7z ~/.spring/maps/$mapname.sd7

fixed version

problem was wrong directory structure. I said that it was probably noobish mistake why didint you pointed it out :)
Post Reply

Return to “Map Creation”