Page 1 of 2
ADukes - Additional Map Question
Posted: Mon Feb 23, 2015 12:39 am
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
Re: ADukes - Additional Map Question
Posted: Mon Feb 23, 2015 4:11 am
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).
Re: ADukes - Additional Map Question
Posted: Mon Feb 23, 2015 4:39 am
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
Re: ADukes - Additional Map Question
Posted: Mon Feb 23, 2015 6:53 am
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.
Re: ADukes - Additional Map Question
Posted: Mon Feb 23, 2015 8:06 am
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
Re: ADukes - Additional Map Question
Posted: Mon Feb 23, 2015 9:20 pm
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.
Re: ADukes - Additional Map Question
Posted: Mon Feb 23, 2015 10:21 pm
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
Re: ADukes - Additional Map Question
Posted: Tue Feb 24, 2015 8:59 pm
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.
Re: ADukes - Additional Map Question
Posted: Wed Feb 25, 2015 1:47 am
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
Re: ADukes - Additional Map Question
Posted: Wed Feb 25, 2015 2:46 am
by Saddletank
You don't want to remove the command map (unless this mod is for your own private use)!