View topic - Compiled Map Texture Broken



All times are UTC + 1 hour


Post new topic Reply to topic  [ 16 posts ] 
Author Message
PostPosted: 09 Feb 2012, 23:04 

Joined: 28 Sep 2011, 00:00
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.

Image


Top
 Offline Profile  
 
PostPosted: 09 Feb 2012, 23:18 
Moderator
User avatar

Joined: 26 Oct 2007, 15:21
Did you rename the .smf file? Thats what can cause it. If not, post the command line and the map.


Top
 Offline Profile  
 
PostPosted: 09 Feb 2012, 23:32 

Joined: 28 Sep 2011, 00:00
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/311362/FogofWar.sdz

If you would prefer I host the files elsewhere let me know. Thanks a tonne!


Top
 Offline Profile  
 
PostPosted: 09 Feb 2012, 23:42 
Moderator
User avatar

Joined: 26 Oct 2007, 15:21
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:
Code:
Mapconv.exe -t texture.bmp -h heightmap.bmp -m metalmap.bmp -o FogofWar.smf -x 500 -n -200 -c 0.7 -i -l


Edit: or just use the supplied example.bat to compile your map


Top
 Offline Profile  
 
PostPosted: 10 Feb 2012, 00:03 

Joined: 28 Sep 2011, 00:00
I apologize for my stupidity. heightmap is -a not -h... Sorry for asking to be spoon fed lol.


Top
 Offline Profile  
 
PostPosted: 10 Feb 2012, 00:49 

Joined: 28 Sep 2011, 00:00
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


Top
 Offline Profile  
 
PostPosted: 10 Feb 2012, 01:43 

Joined: 28 Sep 2011, 00:00
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..


Top
 Offline Profile  
 
PostPosted: 10 Feb 2012, 02:05 
User avatar

Joined: 07 Feb 2005, 21:30
Location: Cheese factory
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).


Top
 Offline Profile  
 
PostPosted: 10 Feb 2012, 02:28 

Joined: 28 Sep 2011, 00:00
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?


Top
 Offline Profile  
 
PostPosted: 10 Feb 2012, 02:33 
Moderator
User avatar

Joined: 22 Feb 2006, 01:02
Location: cheap kitchen
kfriars wrote:
Any other suggestions?
http://springrts.com/phpbb/viewtopic.php?f=56&t=16341
imo the easiest way and no messing around with command line.
(you can import your hm+texture images)


Top
 Offline Profile  
 
PostPosted: 10 Feb 2012, 02:52 

Joined: 28 Sep 2011, 00:00
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.

Image


Top
 Offline Profile  
 
PostPosted: 10 Feb 2012, 04:17 
Evolution RTS Developer
User avatar

Joined: 17 Nov 2005, 02:43
Location: Raegquitting Spring on 04/24/12
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...

Image


Top
 Offline Profile  
 
PostPosted: 10 Feb 2012, 04:46 

Joined: 28 Sep 2011, 00:00
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!


Top
 Offline Profile  
 
PostPosted: 10 Feb 2012, 08:00 
Moderator
User avatar

Joined: 26 Oct 2007, 15:21
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


-o doesnt permit full path. just the filename!


Top
 Offline Profile  
 
PostPosted: 10 Feb 2012, 10:31 
User avatar

Joined: 07 Feb 2005, 21:30
Location: Cheese factory
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.


Top
 Offline Profile  
 
PostPosted: 11 Feb 2012, 19:21 

Joined: 28 Sep 2011, 00:00
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!


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Site layout created by Roflcopter et al.