Which files should I edit to get a 4th style show up in editor and random map plugin?
I edited MapGenerate2.BSF and MapGenerateBattle2.BSF to have a (region == 3). - thesre are in
My Documents\My Games\PIKEANDSHOT\CAMPAIGNS\EARLY17THCENTURY\DATA\battle\scripts
I have placed the correct base and overlay folders. TILES.TXT in each of this folder also edited. There are in:
C:\Documents and Settings\Ja\My Documents\My Games\PIKEANDSHOT\CAMPAIGNS\EARLY17THCENTURY\DATA\tiles
Still, the 4th style fails to show in editor and skirmish.
New Terrain Sets
Moderators: rbodleyscott, Slitherine Core, Gothic Labs
-
rbodleyscott
- Field of Glory 2

- Posts: 28330
- Joined: Sun Dec 04, 2005 6:25 pm
Re: New Terrain Sets
Hmm, assuming your terrain set is called MIDDLEEAST, you will needSabratha wrote:Which files should I edit to get a 4th style show up in editor and random map plugin?
I edited MapGenerate2.BSF and MapGenerateBattle2.BSF to have a (region == 3). - thesre are in
My Documents\My Games\PIKEANDSHOT\CAMPAIGNS\EARLY17THCENTURY\DATA\battle\scripts
I have placed the correct base and overlay folders. TILES.TXT in each of this folder also edited. There are in:
C:\Documents and Settings\Ja\My Documents\My Games\PIKEANDSHOT\CAMPAIGNS\EARLY17THCENTURY\DATA\tiles
Still, the 4th style fails to show in editor and skirmish.
IDS_TERRAIN_STYLE_MIDDLEEAST, "Middle Eastern",
in Text1.txt in your campaign folder
You also need the line
STYLE MiddleEast
in Tiles.txt
The latter (if I recall correctly) is what tells the Editor it can use that Tile set.
Styles don't show as such in the Pike and Shot Skirmish setup, they are defined by the region specified in the ArmyList.txt file applying to the campaign in which the Skirmish is set.
You will need the statement
REGION 3
at the start the Middle Eastern ArmyLists.txt file.
If the above doesn't do the trick, ask me again, I may have forgotten something.
You could in fact make the Skirmish setup allow choice of terrain style instead of tying it to the Campaign used, as that is how it works in BA2, but it would require some alterations to the Skirmish.txt and Skirmish.bsf UI files. If you have BA2 you could look and see how those files differ in BA2 from P&S.
Richard Bodley Scott


Re: New Terrain Sets
Check! It is:rbodleyscott wrote: Hmm, assuming your terrain set is called MIDDLEEAST, you will need
IDS_TERRAIN_STYLE_MIDDLEEAST, "Middle Eastern",
in Text1.txt in your campaign folder.
IDS_TERRAIN_STYLE_STEPPEEUROPE, "Pontic-Caspian steppe",
This is in Text1.txt. I know this file works ok, cause the unit names from that file show up properly.
Check! It is:rbodleyscott wrote: You also need the line
STYLE MiddleEast
in Tiles.txt
The latter (if I recall correctly) is what tells the Editor it can use that Tile set.
STYLE SteppeEurope
This is in Tiles.txt inside both the "SteppeEurope_Overlay" and "SteppeEurope_Base" folders, which are in:
C:\Documents and Settings\Ja\My Documents\My Games\PIKEANDSHOT\CAMPAIGNS\EARLY17THCENTURY\DATA\TILES
Thing is, with all the files above edited, the 4th style fails to show even in editor, ot to mentiopn the Slith Random Map plugin window.rbodleyscott wrote: Styles don't show as such in the Pike and Shot Skirmish setup, they are defined by the region specified in the ArmyList.txt file applying to the campaign in which the Skirmish is set.
I have a hunch that some of the files in the campaign folder is not replacing the ones from the vanilla main game directory. The reason why I'm thinking so, is that I made a test and copied the files to the vanilla directory. While the 4th style did not show in the Slith Random Map plugin window, it DID show correctly in the editor.
Does nay of said files need some sort of "REPLACE" command added?
-
rbodleyscott
- Field of Glory 2

- Posts: 28330
- Joined: Sun Dec 04, 2005 6:25 pm
Re: New Terrain Sets
You are right that they are not being replaced, but it is because you have them in the wrong place.Sabratha wrote:Thing is, with all the files above edited, the 4th style fails to show even in editor, not to mention the Slith Random Map plugin window.
I have a hunch that some of the files in the campaign folder is not replacing the ones from the vanilla main game directory. The reason why I'm thinking so, is that I made a test and copied the files to the vanilla directory. While the 4th style did not show in the Slith Random Map plugin window, it DID show correctly in the editor.
Does any of said files need some sort of "REPLACE" command added?
See the file tree near the end of http://www.slitherinebravo.net/GameWiki ... tub_engineThis is in Tiles.txt inside both the "SteppeEurope_Overlay" and "SteppeEurope_Base" folders, which are in:
C:\Documents and Settings\Ja\My Documents\My Games\PIKEANDSHOT\CAMPAIGNS\EARLY17THCENTURY\DATA\TILES
For some reason the folder structure (which must be strictly adhered to for things to work correctly) is different in custom campaigns and the tile folders should in fact be in:
C:\Documents and Settings\Ja\My Documents\My Games\PIKEANDSHOT\CAMPAIGNS\EARLY17THCENTURY\TILES
I have tested this with one of my own custom campaigns, and it works in the Editor.
It doesn't work in the Random Map plugin in the current version of the program, because that does not use the styles, it uses the regions as map types.
However, it does work with the next update that will be coming out in April, which reverts to using Styles directly.
Richard Bodley Scott


-
rbodleyscott
- Field of Glory 2

- Posts: 28330
- Joined: Sun Dec 04, 2005 6:25 pm
Re: New Terrain Sets
In the meantime, you can probably get the Random Map window to show Steppe Europe by editing
FUNCTION IsValidSkirmishMapType(n)
{
if (n >= 0 && n <= 3)
{
return 1 ;
}
// could be extended to support other, non-contiguous map types?
return 0 ;
}
in Slith_RandomMap2.BSF
------------------------------
You will also need
IDS_SKIRMISH_MAP_TYPE_3,"Steppe Europe",
in text1.txt
FUNCTION IsValidSkirmishMapType(n)
{
if (n >= 0 && n <= 3)
{
return 1 ;
}
// could be extended to support other, non-contiguous map types?
return 0 ;
}
in Slith_RandomMap2.BSF
------------------------------
You will also need
IDS_SKIRMISH_MAP_TYPE_3,"Steppe Europe",
in text1.txt
Richard Bodley Scott


Re: New Terrain Sets
Wow, thank you very much. This is exactly the info I needed. 
