Map import q

Please post here for questions and discussion about modding for Strategic Command.
Post Reply
The Land
Posts: 940
Joined: Fri Feb 19, 2010 4:58 pm

Map import q

Post by The Land »

Hello - I am having a problem with the map index creator and/or importer. The original .png looks ok but the output after importing is strange, as if the whole map has been sheared and split in half over a diagonal. Can anyone suggest what might be the issue? Thanks!
1985 Red Storm mod - Beta testing!

Always wanted to play a "Cold War goes hot" scenario? Come and join in!
The Land
Posts: 940
Joined: Fri Feb 19, 2010 4:58 pm

RE: Map import q

Post by The Land »

This is what I end up with - it's meant to be England and the Low Countries, from what looks like a perfectly normal PNG... hopefully illustrates what I mean by sheared and split.

Image
Attachments
Untitled.jpg
Untitled.jpg (39.14 KiB) Viewed 643 times
1985 Red Storm mod - Beta testing!

Always wanted to play a "Cold War goes hot" scenario? Come and join in!
User avatar
Elessar2
Posts: 1478
Joined: Wed Nov 30, 2016 12:35 am

RE: Map import q

Post by Elessar2 »

Yeah, that's because the imported map size is mismatched with the size you gave the scenario in the editor (which you are asked to do when you choose the New option).
The Land
Posts: 940
Joined: Fri Feb 19, 2010 4:58 pm

RE: Map import q

Post by The Land »

ORIGINAL: Elessar2

Yeah, that's because the imported map size is mismatched with the size you gave the scenario in the editor (which you are asked to do when you choose the New option).

I did wonder about that and thought I'd fixed it. I'll try again... :D
1985 Red Storm mod - Beta testing!

Always wanted to play a "Cold War goes hot" scenario? Come and join in!
The Land
Posts: 940
Joined: Fri Feb 19, 2010 4:58 pm

RE: Map import q

Post by The Land »

Does the importer work with portrait format maps? I have double-checked and my dimensions are correct... the only odd thing is that my map is a bit taller than it is wide...
1985 Red Storm mod - Beta testing!

Always wanted to play a "Cold War goes hot" scenario? Come and join in!
User avatar
BillRunacre
Posts: 6890
Joined: Mon Jul 22, 2013 2:57 pm
Contact:

RE: Map import q

Post by BillRunacre »

I don't think so, and the examples given do include some with portrait images.

I would try experimenting with (a copy of) your image to see if you can get it right.
Follow us on Twitter: https://twitter.com/FurySoftware

We're also on Facebook! https://www.facebook.com/FurySoftware/
The Land
Posts: 940
Joined: Fri Feb 19, 2010 4:58 pm

RE: Map import q

Post by The Land »

So here's one of the MapIndexes files I've had this problem with - does it import correctly for other people?
Attachments
mapIndexes.txt
(74.99 KiB) Downloaded 22 times
1985 Red Storm mod - Beta testing!

Always wanted to play a "Cold War goes hot" scenario? Come and join in!
User avatar
SIPRES
Posts: 442
Joined: Thu Jul 23, 2015 5:41 pm

RE: Map import q

Post by SIPRES »

ORIGINAL: The Land

So here's one of the MapIndexes files I've had this problem with - does it import correctly for other people?

I did try and get same problem.
I think the problem is related to your map size 153x123, I got similar problems a while ago
looks like it doesnt like odd values

When you use map scanner try maybe to modify slightly your image (reduce or increase few pixels width/height) to finally get 152x122 on your map index files

then try import mapindex again on editor
The Land
Posts: 940
Joined: Fri Feb 19, 2010 4:58 pm

RE: Map import q

Post by The Land »

ORIGINAL: SIPRES

ORIGINAL: The Land

So here's one of the MapIndexes files I've had this problem with - does it import correctly for other people?

I did try and get same problem.
I think the problem is related to your map size 153x123, I got similar problems a while ago
looks like it doesnt like odd values

When you use map scanner try maybe to modify slightly your image (reduce or increase few pixels width/height) to finally get 152x122 on your map index files

then try import mapindex again on editor

Yes, this sorts it out. The documentation suggests that the editor will cope with odd map indexes if you set the size to be one larger or one smaller. But in fact it doesn't.
1985 Red Storm mod - Beta testing!

Always wanted to play a "Cold War goes hot" scenario? Come and join in!
Post Reply

Return to “Scenario Design and Modding”