ADukes - Additional Map Question

This is where our experts try to teach you the very flexible modding system for our previous release - SOW Gettysburg and its add-ons. It's powerful, but dangerous. Post your tips and your questions.
Davinci
Reactions:
Posts: 3034
Joined: Wed Jul 02, 2008 12:53 pm

ADukes - Additional Map Question

Post by Davinci »

ADukes - I'm trying to add in an additional map that is larger than the default jump-map.

I'm calling this Map, Map3 .

But the game will crash on any name that I give it other than the default names, such as Map or CMDMap . Looking through the files I can't see where the game defines these default names.

I've tried listing it in the defines.ini file with no luck. I don't see them listed in the sowstr file either.

So, is it possible to add in an additional map, and how is it defined?

Example :

NEW,Map3,POPUP_Map3.dds,,,1,40,10,1400,640,1400,640,,,,,,
CANBUTTON,,,,IDS_Close,,1028,596,52,44,0,650,,,close,,,
MAPICONS,,Map_Icons.tga,,,,32,2,16,16,,,,,,,,
MAP3,,,,,,0,0,1400,640,1400,640,,,

That will crash the game due to the fact that the game doesn't accept Map3 in the last line.

Also - even if this isn't possible, I would still like to know where the game defines the names of Map, and CMDMap.

Thanks,

davinci
The only true logic is that, there is no true logic!
Marching Thru Georgia
Reactions:
Posts: 1769
Joined: Mon Mar 29, 2010 9:56 pm

Re: ADukes - Additional Map Question

Post by Marching Thru Georgia »

The last line should always be MAP or CMDMAP. It tells the game whether you are calling for the command map or the mini-map. It does not refer to the name of the frame.

In the 1st line, it is always NEW, CommandMap, frame name, (command map)
NEW, MAP2, frame name, (courier map)
and
NEW, MAP, frame name, (mini-map).
I can make this march and I will make Georgia howl.
Davinci
Reactions:
Posts: 3034
Joined: Wed Jul 02, 2008 12:53 pm

Re: ADukes - Additional Map Question

Post by Davinci »

The last line should always be MAP or CMDMAP.

Yes, but if that is the case, this would prevent another map by a different name from being used.

Since the game will only accept one of those two names, it 'will\ seems' to use the coordinates that have already been established for those maps.

to put that another way, if the 'coordinates \ size' of another map is different from that size it results in an error.
It tells the game whether you are calling for the command map or the mini-map. It does not refer to the name of the frame.
So, what is the correct wording to create or call a different map than one of those two?
In the 1st line, it is always NEW, CommandMap, frame name, (command map)
NEW, MAP2, frame name, (courier map)
and
NEW, MAP, frame name, (mini-map).
If I use one of those names, the game will not crash, but if the size of the map is different it creates an error line in the SOWGB log file, which means that it is incorrect.

Thanks,

davinci
The only true logic is that, there is no true logic!
Marching Thru Georgia
Reactions:
Posts: 1769
Joined: Mon Mar 29, 2010 9:56 pm

Re: ADukes - Additional Map Question

Post by Marching Thru Georgia »

You have to create a frame with the outside and inside dimensions that you want to use. Download the KS Napoleon mod, (large version), and look in the gscreens file for an example. I use a larger map in it 852x852. the frame is in \graphics\screens.
I can make this march and I will make Georgia howl.
Davinci
Reactions:
Posts: 3034
Joined: Wed Jul 02, 2008 12:53 pm

Re: ADukes - Additional Map Question

Post by Davinci »

You have to create a frame with the outside and inside dimensions that you want to use. Download the KS Napoleon mod, (large version), and look in the gscreens file for an example. I use a larger map in it 852x852. the frame is in \graphics\screens.
Yes, I'm aware of how you resized the map on the game that you guys are playing on, I included that size when I was working on the TenMileMap for some of you.

But, I'm trying to do something different with having multiple-size-maps in the game.

Basically, I still want to use the default-size jump map, but I'm trying to include another button to call up a larger-map that spreads out the map icons.

Now, I can do some of this at the moment, but as stated above, I receive an error message in the log file.

So, I think that this is possible considering that it does work, but work with errors.

The problem as I see it is that I have to have another name that goes where the Map or CMDMap name goes in the third line.

Without another name, the game still thinks that it should call-up the size of those two-maps, which is what causes the error.

Thanks for the input!

davinci
The only true logic is that, there is no true logic!
ADukes
Reactions:
Posts: 862
Joined: Mon Nov 26, 2007 10:38 pm

Re: ADukes - Additional Map Question

Post by ADukes »

You cannot have two different map graphics, because you cannot tell the game the x/y starting locations for the map frame in the DDS file.
Davinci
Reactions:
Posts: 3034
Joined: Wed Jul 02, 2008 12:53 pm

Re: ADukes - Additional Map Question

Post by Davinci »

You cannot have two different map graphics, because you cannot tell the game the x/y starting locations for the map frame in the DDS file.
So, the mapicons are programmed to only accept the coordinates of the first map,correct?

Which means that the second map uses those coordinates of the first map. (i.e...CommandMap)

So, I take it that this is all HardCoded since I can't seem to find this information in any of the csv files!

So, I can have a larger map in the game along with the other two default maps, I just can't have the mapicons with the larger map. That sort of defeats the purpose here.

Thanks, for the input!

davinci
The only true logic is that, there is no true logic!
ADukes
Reactions:
Posts: 862
Joined: Mon Nov 26, 2007 10:38 pm

Re: ADukes - Additional Map Question

Post by ADukes »

Map icons depend on the size of the map setting MAP,,,,,,0,0,1400,640,1400,640,,,

Both maps can use different settings, but as mentioned above you cannot use different sized map graphics Map_MM.dds.
Davinci
Reactions:
Posts: 3034
Joined: Wed Jul 02, 2008 12:53 pm

Re: ADukes - Additional Map Question

Post by Davinci »

I think that you just gave me another way of solving this problem.

Question - does a Command Map have to be in the game?

Thanks,

davinci
The only true logic is that, there is no true logic!
Saddletank
Reactions:
Posts: 2171
Joined: Sat Dec 24, 2011 4:49 am

Re: ADukes - Additional Map Question

Post by Saddletank »

You don't want to remove the command map (unless this mod is for your own private use)!
HITS & Couriers - a different and realistic way to play SoW MP.
Post Reply