Compiled Map Texture Broken
Moderator: Moderators
Compiled Map Texture Broken
Hello,
So I have compiled my map with the latest mapconv using the following bmp images...
Heightmap: 1025x1025
Texturemap: 8192x8192
Metalmap: 1025x1025
It all compiles but when I load the game in spring, the terrain is textured red, instead of the intended texture. Any assistance is appreciated. Thank you.
So I have compiled my map with the latest mapconv using the following bmp images...
Heightmap: 1025x1025
Texturemap: 8192x8192
Metalmap: 1025x1025
It all compiles but when I load the game in spring, the terrain is textured red, instead of the intended texture. Any assistance is appreciated. Thank you.
Re: Compiled Map Texture Broken
Did you rename the .smf file? Thats what can cause it. If not, post the command line and the map.
Re: Compiled Map Texture Broken
Thanks Behe you are god sent.
I did not rename the smf file and I was using the GUI so I'm not certain what command is built. I can try to build it from the command line if you would like and let you know. Otherwise, here is the sdz file.
http://www.filehosting.org/file/details ... gofWar.sdz
If you would prefer I host the files elsewhere let me know. Thanks a tonne!
I did not rename the smf file and I was using the GUI so I'm not certain what command is built. I can try to build it from the command line if you would like and let you know. Otherwise, here is the sdz file.
http://www.filehosting.org/file/details ... gofWar.sdz
If you would prefer I host the files elsewhere let me know. Thanks a tonne!
Re: Compiled Map Texture Broken
Wierd how the gui mapconv embedded the path of the .smt file into the .smf:
"C:\Users\Francois\Documents\Spring\map\FogofWar.smt"
instead of just:
FogofWar.smt
Use the command line:
Edit: or just use the supplied example.bat to compile your map
"C:\Users\Francois\Documents\Spring\map\FogofWar.smt"
instead of just:
FogofWar.smt
Use the command line:
Code: Select all
Mapconv.exe -t texture.bmp -h heightmap.bmp -m metalmap.bmp -o FogofWar.smf -x 500 -n -200 -c 0.7 -i -l
Re: Compiled Map Texture Broken
I apologize for my stupidity. heightmap is -a not -h... Sorry for asking to be spoon fed lol.
Re: Compiled Map Texture Broken
Still having the same issue with the texture map after compiling from the command line using.
C:\Users\Francois\Documents\Spring\mapconv>MapConv.exe -t "C:\Users\Francois\Documents\Spring\map\FogofWarTM.bmp" -a "C:\Users\Francois\Documents\Spring\map\FogofWarHM.bmp" -m "C:\Users\Francois\Documents\Spring\map\FogofWarMM.bmp" -o "C:\Users\Francois\Documents\Spring\map\FogofWar.smf" -x 300 -n -65 -c 0.7 -i -l
C:\Users\Francois\Documents\Spring\mapconv>MapConv.exe -t "C:\Users\Francois\Documents\Spring\map\FogofWarTM.bmp" -a "C:\Users\Francois\Documents\Spring\map\FogofWarHM.bmp" -m "C:\Users\Francois\Documents\Spring\map\FogofWarMM.bmp" -o "C:\Users\Francois\Documents\Spring\map\FogofWar.smf" -x 300 -n -65 -c 0.7 -i -l
Re: Compiled Map Texture Broken
Is it possible my texture bitmap is of the wrong type. My texture is 24 bit windows bmp.
And just since it isnt documented anywhere what are all of the accepted file types and specs for mapconv files... Metal, texture, height, type, feature etc..
And just since it isnt documented anywhere what are all of the accepted file types and specs for mapconv files... Metal, texture, height, type, feature etc..
Re: Compiled Map Texture Broken
I usually use jpg for texture and png for the rest, you could try that. Also disable compression for a better final result (might speed up compiling too).
Re: Compiled Map Texture Broken
Well, I tried the file types you suggested to no avail. I am literally at a loss as to what to try next. I have compiled on two separate windows machines and one Linux machine using wine. Any other suggestions?
Re: Compiled Map Texture Broken
http://springrts.com/phpbb/viewtopic.php?f=56&t=16341kfriars wrote:Any other suggestions?
imo the easiest way and no messing around with command line.
(you can import your hm+texture images)
Re: Compiled Map Texture Broken
Bah, I forgot about spring map-edit since it wasnt working on my linux machine. Thank you so much knorke. Still LOADS of work to do, but at least now I know it will not be in vain. Thank you ALL VERY MUCH for your help.
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Compiled Map Texture Broken
You can rename smf/smd/mapinfo.lua to whatever you want. If you rename the smt, the texture will break.
Also, yet another world map...
Also, yet another world map...
Re: Compiled Map Texture Broken
Well actually, this map will be suited paricularily to a mod I am making with two other people. It is a full featured remake of the turnbased strategy game Diplomacy. It's ambitious.. and I realize there are better options for turn based games aside from Spring, however it is for a school project and Spring was our only choice for an engine. So thank you all for your help, I truly appreciate it!
Re: Compiled Map Texture Broken
-o doesnt permit full path. just the filename!kfriars wrote:Still having the same issue with the texture map after compiling from the command line using.
C:\Users\Francois\Documents\Spring\mapconv>MapConv.exe -t "C:\Users\Francois\Documents\Spring\map\FogofWarTM.bmp" -a "C:\Users\Francois\Documents\Spring\map\FogofWarHM.bmp" -m "C:\Users\Francois\Documents\Spring\map\FogofWarMM.bmp" -o "C:\Users\Francois\Documents\Spring\map\FogofWar.smf" -x 300 -n -65 -c 0.7 -i -l
Re: Compiled Map Texture Broken
Nice to see you worked it out though SpringMapEdit is a compromise that shouldn't be necessary to make it work.
Just an early comment, go easy there on the bumpiness, Spring pathing is a bit erhm, sensitive, to that. For best result use SSMF to add splat textures for snow, grass, mountain and desert plus specular map to make the desert and snow brighter than the rest.
Just an early comment, go easy there on the bumpiness, Spring pathing is a bit erhm, sensitive, to that. For best result use SSMF to add splat textures for snow, grass, mountain and desert plus specular map to make the desert and snow brighter than the rest.
Re: Compiled Map Texture Broken
Behe, you are absolutely correct, trying to compile the output to another folder is what was causing the problem. Just figured I would put this here in case anyone else runs into this problem. Again thank you all for the help!