Post by Major Pain on Nov 21, 2013 12:21:10 GMT 1
OK... You need to have the Canvas Size 512 x 512 pixels.
If your Map is 400 x 400 you need to make a slight change to either the Map, or the 1.xml file. Without knowing which 1.xml file you used for your source, a couple of issues may be going on. The game cannot load a 400 x 400 map. It must be 512 x 512. So we need to place the map into a 512 x 512 Canvas.
Below is a 512 x 512 Canvas. To create it... Go to the Top Menu and Click on FILE -> NEW. This opens the New Canvas Dialogue Window. Make sure the Canvas (Image Size) is 512 x 512. Select ADVANCED OPTIONS below. Then Click on "Fill With" and Select Transparency.
I am assuming you have the 400 x 400 Map Image already Open, if not you need to Open it now. It will appear in its own Window Canvas. Go to the Top Menu on the Map Window and Select EDIT and COPY.
Now Select the new Blank 512 x 512 Window. On the Menu select EDIT -> PASTE. You should be able to drag it around on the Canvas. If you click off of it, you can reselect the Map with the Outline Tool.
When you have it where you want it, Save the Image Map_h.dds.
Below is how the Map should look in the 512 x 512 Canvas.
Now you need to go to the 1.xml and define the Map Size within the 512 x 512 Canvas.
In the 1.xml, you will see some text that shows:
<MapImageRect x1="407" y1="422" x2="0.795898" y2="0.825195"/>
You need to change the x1 and y1 numbers as well as the x2 and y2.
x1 and y1 defines the x,y pixel size of the Map Image within the 512 x 512 Canvas. x2 and y2 defines the x,y pixel offset.
If you use another map for a template, it will be easier to match the size of the other Map Image, and lay your new map over it You won't have to change the MapImageRect.
I might mention that when you create the new 1.xml, you need to make sure the Chapter name is typed correctly in the correct places. Below is the Chapter 'HUSKY' from Patton Campaign. Everywhere husky appears, we need to change it to the correct Chapter name. Also, you will need to name the MAPS/MISSIONS that will be in this Chapter, and set the location of the Crosshairs.
I find it useful to expand the text where it is easier to read and make changes.
----------------------------------------------------------------------------------------------------------------------------
<?xml version="1.0"?>
<base>
<RPG Season="0">
<KeyName></KeyName>
<StatsType>Chapter</StatsType>
<HeaderText>scenarios\chapters\allies\husky\header</HeaderText>
<SubheaderText>scenarios\chapters\allies\husky\subheader</SubheaderText>
<DescriptionText>scenarios\chapters\allies\husky\description</DescriptionText>
<MapImage>scenarios\chapters\allies\husky\map</MapImage>
<MapImageRect x1="407" y1="422" x2="0.795898" y2="0.825195"/> <-Map Image Size Definition
<InterfaceMusic>scenarios\chapters\allies\husky\music\explore1</InterfaceMusic>
<Missions>
<item Difficulty="0">
<Mission>scenarios\scenariomissions\allies\gela\1</Mission> <-Map/Mission name here!
<PosOnMap x="229" y="283"/> <- X,Y Coordinates for Cross Hairs
<MissionBonus></MissionBonus>
<AllBonuses/>
</item>
<item Difficulty="0">
<Mission>scenarios\scenariomissions\allies\palermo\1</Mission> <-Map/Mission name here!
<PosOnMap x="121" y="134"/> <- X,Y Coordinates for Cross Hairs
<MissionBonus></MissionBonus>
<AllBonuses/>
</item>
<item Difficulty="0">
<Mission>scenarios\scenariomissions\allies\messina\1</Mission> <-Map/Mission name here!
<PosOnMap x="269" y="172"/> <- X,Y Coordinates for Cross Hairs
<MissionBonus></MissionBonus>
<AllBonuses/>
</item>
</Missions>
<PlaceHolders/>
<Script>scenarios\chapters\allies\husky\script</Script>
<SettingName>scenarios\settings\africa</SettingName> <-Be sure to set Map Season!
<ContextName>scenarios\chapters\allies\husky\context</ContextName>
<PlayerSide>USA</PlayerSide>
<MODName></MODName>
<MODVersion></MODVersion>
</RPG>
</base>
---------------------------------------------------------------------------------------------------------------------------
I hope this helps.
MP
If your Map is 400 x 400 you need to make a slight change to either the Map, or the 1.xml file. Without knowing which 1.xml file you used for your source, a couple of issues may be going on. The game cannot load a 400 x 400 map. It must be 512 x 512. So we need to place the map into a 512 x 512 Canvas.
Below is a 512 x 512 Canvas. To create it... Go to the Top Menu and Click on FILE -> NEW. This opens the New Canvas Dialogue Window. Make sure the Canvas (Image Size) is 512 x 512. Select ADVANCED OPTIONS below. Then Click on "Fill With" and Select Transparency.
I am assuming you have the 400 x 400 Map Image already Open, if not you need to Open it now. It will appear in its own Window Canvas. Go to the Top Menu on the Map Window and Select EDIT and COPY.
Now Select the new Blank 512 x 512 Window. On the Menu select EDIT -> PASTE. You should be able to drag it around on the Canvas. If you click off of it, you can reselect the Map with the Outline Tool.
When you have it where you want it, Save the Image Map_h.dds.
Below is how the Map should look in the 512 x 512 Canvas.
Now you need to go to the 1.xml and define the Map Size within the 512 x 512 Canvas.
In the 1.xml, you will see some text that shows:
<MapImageRect x1="407" y1="422" x2="0.795898" y2="0.825195"/>
You need to change the x1 and y1 numbers as well as the x2 and y2.
x1 and y1 defines the x,y pixel size of the Map Image within the 512 x 512 Canvas. x2 and y2 defines the x,y pixel offset.
If you use another map for a template, it will be easier to match the size of the other Map Image, and lay your new map over it You won't have to change the MapImageRect.
I might mention that when you create the new 1.xml, you need to make sure the Chapter name is typed correctly in the correct places. Below is the Chapter 'HUSKY' from Patton Campaign. Everywhere husky appears, we need to change it to the correct Chapter name. Also, you will need to name the MAPS/MISSIONS that will be in this Chapter, and set the location of the Crosshairs.
I find it useful to expand the text where it is easier to read and make changes.
----------------------------------------------------------------------------------------------------------------------------
<?xml version="1.0"?>
<base>
<RPG Season="0">
<KeyName></KeyName>
<StatsType>Chapter</StatsType>
<HeaderText>scenarios\chapters\allies\husky\header</HeaderText>
<SubheaderText>scenarios\chapters\allies\husky\subheader</SubheaderText>
<DescriptionText>scenarios\chapters\allies\husky\description</DescriptionText>
<MapImage>scenarios\chapters\allies\husky\map</MapImage>
<MapImageRect x1="407" y1="422" x2="0.795898" y2="0.825195"/> <-Map Image Size Definition
<InterfaceMusic>scenarios\chapters\allies\husky\music\explore1</InterfaceMusic>
<Missions>
<item Difficulty="0">
<Mission>scenarios\scenariomissions\allies\gela\1</Mission> <-Map/Mission name here!
<PosOnMap x="229" y="283"/> <- X,Y Coordinates for Cross Hairs
<MissionBonus></MissionBonus>
<AllBonuses/>
</item>
<item Difficulty="0">
<Mission>scenarios\scenariomissions\allies\palermo\1</Mission> <-Map/Mission name here!
<PosOnMap x="121" y="134"/> <- X,Y Coordinates for Cross Hairs
<MissionBonus></MissionBonus>
<AllBonuses/>
</item>
<item Difficulty="0">
<Mission>scenarios\scenariomissions\allies\messina\1</Mission> <-Map/Mission name here!
<PosOnMap x="269" y="172"/> <- X,Y Coordinates for Cross Hairs
<MissionBonus></MissionBonus>
<AllBonuses/>
</item>
</Missions>
<PlaceHolders/>
<Script>scenarios\chapters\allies\husky\script</Script>
<SettingName>scenarios\settings\africa</SettingName> <-Be sure to set Map Season!
<ContextName>scenarios\chapters\allies\husky\context</ContextName>
<PlayerSide>USA</PlayerSide>
<MODName></MODName>
<MODVersion></MODVersion>
</RPG>
</base>
---------------------------------------------------------------------------------------------------------------------------
I hope this helps.
MP