Scenario creation guide part 11 (CAMPAIGN.TXT file)

Post Reply
Paul59
General - King Tiger
General - King Tiger
Posts: 3808
Joined: Tue Jul 21, 2015 11:26 pm

Scenario creation guide part 11 (CAMPAIGN.TXT file)

Post by Paul59 »

The last thing that you need to make your scenario work properly is the Campaign.txt.

This is created automatically when you first create the scenario (See Scenario creation guide part 1). It sits in the main scenario folder, which is in My Documents/My Games/FieldOfGlory2/CAMPAIGNS.

Here is a screenshot of the one in my Kynoskephalai scenario folder:

Image

When it is created by the Editor it is completely blank, so we will have to fill it out ourselves. I will take you through my completion of the Campaign.txt for my Kynoskephalai scenario.

The easiest way to start, is to find a Campaign.txt from an existing completed scenario in your Campaigns folder, and just copy it over the blank Campaign.txt in your new scenario folder. You can then just change the values that need to be different.

So, I am going to copy the Campaign.txt from my Apollonia scenario and paste it in the Kynoskephalai folder.

When I open the Campaign.txt it now looks like this:

NOSKIRMISH
TYPE 0

[Apollonia_220BC]
SIDE0 45
SIDE1 35
DATE 2780
MAPX 1028
MAPY 394

Now I will take you through this line by line:

NOSKIRMISH This is telling the game not to use the scenario as a Skirmish module. Don’t edit this line.

TYPE 0 This tells the game which type of module the folder contains.

TYPE 0 = Preset (historical type) scenarios module.
TYPE 1 = An actual campaign.
TYPE 2 = A skirmish only module.
TYPE 3 = A quick battles module.
TYPE 4 = A tutorial module.

So as Kynoskephalai is going to be an historical scenario we will leave the number as 0.

[Apollonia_220BC] The name in the square brackets is the name of your scenario .BAM file. So open the Scenarios folder and copy the .BAM name into the square brackets. In this case we want it to read [Kynoskephalai]

SIDE0 45 This is the sidename number of Side 0, in this case 45, which is Atropatene.

Each nation/faction in the game has a sidename, which is the name that the game displays in the battlefield UI. I believe it also selects the flag to be displayed in the scenario selection screen UI. These sidenames can be found in the Text2.txt in the main game folder, but to save you searching I will list the current sidenames here:

IDS_SIDENAME_0,"Blue", // Default
IDS_SIDENAME_1,"Red", // Default
IDS_SIDENAME_2,"Alan",
IDS_SIDENAME_3,"Ancient British",
IDS_SIDENAME_4,"Antigonid",
IDS_SIDENAME_5,"Armenian",
IDS_SIDENAME_6,"Bosporan",
IDS_SIDENAME_7,"Caledonian",
IDS_SIDENAME_8,"Carthaginian",
IDS_SIDENAME_9,"Dacian",
IDS_SIDENAME_10,"Gallic",
IDS_SIDENAME_11,"German",
IDS_SIDENAME_12,"German/Gothic",
IDS_SIDENAME_13,"Graeco-Bactrian",
IDS_SIDENAME_14,"Greek",
IDS_SIDENAME_15,"Hunnic",
IDS_SIDENAME_16,"Illyrian",
IDS_SIDENAME_17,"Indian",
IDS_SIDENAME_18,"Indo-Greek",
IDS_SIDENAME_19,"Jewish",
IDS_SIDENAME_20,"Kushan",
IDS_SIDENAME_21,"Lysimachid",
IDS_SIDENAME_22,"Macedonian",
IDS_SIDENAME_23,"Numidian",
IDS_SIDENAME_24,"Palmyran",
IDS_SIDENAME_25,"Parthian",
IDS_SIDENAME_26,"Pergamene",
IDS_SIDENAME_27,"Persian",
IDS_SIDENAME_28,"Pictish",
IDS_SIDENAME_29,"Pontic",
IDS_SIDENAME_30,"Ptolemaic",
IDS_SIDENAME_31,"Pyrrhic",
IDS_SIDENAME_32,"Roman",
IDS_SIDENAME_33,"Sarmatian",
IDS_SIDENAME_34,"Scots-Irish",
IDS_SIDENAME_35,"Seleucid",
IDS_SIDENAME_36,"Skythian/Saka",
IDS_SIDENAME_37,"Slave Revolt",
IDS_SIDENAME_38,"Spanish",
IDS_SIDENAME_39,"Spartan",
IDS_SIDENAME_40,"Syracusan",
IDS_SIDENAME_41,"Thracian",
IDS_SIDENAME_42,"Gothic",
IDS_SIDENAME_43,"Lydian",
IDS_SIDENAME_44, "Arab",
IDS_SIDENAME_45, "Atropatene",
IDS_SIDENAME_46, "Bithynian",
IDS_SIDENAME_47, "Georgian",
IDS_SIDENAME_48, "Libyan",
IDS_SIDENAME_49, "Ligurian",
IDS_SIDENAME_50, "Moorish",
IDS_SIDENAME_51, "Mountain Indian",
IDS_SIDENAME_52, "Nabataean",
IDS_SIDENAME_53, "Campanian",
IDS_SIDENAME_54, "Bruttian/Lucanian",
IDS_SIDENAME_55, "Apulian",
IDS_SIDENAME_56, "Kappadokian",
IDS_SIDENAME_57, "Caucasian",
IDS_SIDENAME_58, "Ostrogothic",
IDS_SIDENAME_59, "Visigothic",
IDS_SIDENAME_60, "Gepid",
IDS_SIDENAME_61, "Vandal",
IDS_SIDENAME_62, "Frankish",
IDS_SIDENAME_63, "Romano-British",
IDS_SIDENAME_64, "Anglo-Saxon",
IDS_SIDENAME_65, "Etruscan",
IDS_SIDENAME_66, "Samnite",
IDS_SIDENAME_67, "Latin",
IDS_SIDENAME_68, "Umbrian",
IDS_SIDENAME_69, "Italian Hill Tribe",
IDS_SIDENAME_70, "Galatian",
IDS_SIDENAME_71, "Kyrenean",
IDS_SIDENAME_72, "Thessalian",
IDS_SIDENAME_73, "Lombard",
IDS_SIDENAME_74, "Byzantine",
IDS_SIDENAME_75, "Avar",
IDS_SIDENAME_76, "Bulgar",
IDS_SIDENAME_77, "Hephthalite",
IDS_SIDENAME_78, "Slav",
IDS_SIDENAME_79, "Welsh",
IDS_SIDENAME_80, "Turkish",
IDS_SIDENAME_81, "Breton",
IDS_SIDENAME_82, "Assyrian",
IDS_SIDENAME_83, "Kushite",
IDS_SIDENAME_84, "Elamite",
IDS_SIDENAME_85, "Egyptian",
IDS_SIDENAME_86, "Babylonian",
IDS_SIDENAME_87, "Cimmerian",
IDS_SIDENAME_88, "Urartian",
IDS_SIDENAME_89, "Median",
IDS_SIDENAME_90, "Hebrew",
IDS_SIDENAME_91, "Cypriot",
IDS_SIDENAME_92, "Phoenician",
IDS_SIDENAME_93, "Mannaean",
IDS_SIDENAME_94, "German/Ostrogothic",
IDS_SIDENAME_95, "German/Visigothic",
IDS_SIDENAME_96, "English",
IDS_SIDENAME_97, "Swiss",
IDS_SIDENAME_98, "Irish",
IDS_SIDENAME_99, "Anglo-Irish",
IDS_SIDENAME_100, "Welsh", // Medieval Welsh side ID
IDS_SIDENAME_101, "Scots",
IDS_SIDENAME_102, "French",
IDS_SIDENAME_103, "Burgundian",
IDS_SIDENAME_104, "German", // Medieval German side ID
IDS_SIDENAME_105, "Free Canton",
IDS_SIDENAME_106, "Danish",
IDS_SIDENAME_107, "Swedish",
IDS_SIDENAME_108, "Free Company",
IDS_SIDENAME_109, "Low Countries",
IDS_SIDENAME_110, "Yorkist",
IDS_SIDENAME_111, "Lancastrian",
IDS_SIDENAME_112, "Tudor",
IDS_SIDENAME_113, "Florentine",
IDS_SIDENAME_114, "Milanese",
IDS_SIDENAME_115, "Venetian",
IDS_SIDENAME_116, "Papal",
IDS_SIDENAME_117, "Neapolitan",
IDS_SIDENAME_118, "Aragonese",
IDS_SIDENAME_119, "Castilian",
IDS_SIDENAME_120, "Portuguese",
IDS_SIDENAME_121, "Navarrese",
IDS_SIDENAME_122, "Granadine",
IDS_SIDENAME_123, "Ottoman",
IDS_SIDENAME_124, "Lithuanian",
IDS_SIDENAME_125, "Tatar",
IDS_SIDENAME_126, "Byzantine",
IDS_SIDENAME_127, "Russian",
IDS_SIDENAME_128, "Serbian",
IDS_SIDENAME_129, "Bulgarian",
IDS_SIDENAME_130, "Polish",
IDS_SIDENAME_131, "Teutonic Order",
IDS_SIDENAME_132, "Catalan Company",
IDS_SIDENAME_133, "Hungarian",
IDS_SIDENAME_134, "Wallachian",
IDS_SIDENAME_135, "Moldavian",
IDS_SIDENAME_136, "Albanian",
IDS_SIDENAME_137, "Timurid",
IDS_SIDENAME_138, "Black Sheep Turcoman",
IDS_SIDENAME_139, "White Sheep Turcoman",
IDS_SIDENAME_140, "Georgian", // Medieval
IDS_SIDENAME_141, "Mamluk Egyptian",
IDS_SIDENAME_142, "Muslim Indian",
IDS_SIDENAME_143, "Hindu Indian",
IDS_SIDENAME_144, "Berber",
IDS_SIDENAME_145, "Hussite",
IDS_SIDENAME_146, "Anatolian Turcoman",
IDS_SIDENAME_147, "Norman",
IDS_SIDENAME_148, "Andalusian",
IDS_SIDENAME_149, "Anglo-Norman",
IDS_SIDENAME_150, "Catalan",
IDS_SIDENAME_151, "Castilian/Leónese",
IDS_SIDENAME_152, "Sicilian",
IDS_SIDENAME_153, "Italian", // Medieval Italian SideID
IDS_SIDENAME_154, "Norwegian",
IDS_SIDENAME_155, "Baltic",
IDS_SIDENAME_156, "Mongol",
IDS_SIDENAME_157, "Latin",
IDS_SIDENAME_158, "Crusader",
IDS_SIDENAME_159, "Seljuq Turkish",
IDS_SIDENAME_160, "Fatimid Egyptian",
IDS_SIDENAME_161, "Cuman",
IDS_SIDENAME_162, "Syrian",
IDS_SIDENAME_163, "Khwarazmian",
IDS_SIDENAME_164, "Ayyubid Egyptian",
IDS_SIDENAME_165, "Ghaznavid",
IDS_SIDENAME_166, "Ghurid",
IDS_SIDENAME_167, "Cypriot", // Medieval Cypriot
IDS_SIDENAME_168, "Viking",
IDS_SIDENAME_169, "Scots", // Pre-Feudal
IDS_SIDENAME_170, "Magyar",
IDS_SIDENAME_171, "Khorasanian",
IDS_SIDENAME_172, "Dailami",
IDS_SIDENAME_173, "Pecheneg",
IDS_SIDENAME_174, "Khazar",
IDS_SIDENAME_175, "Croatian",
IDS_SIDENAME_176, "Spanish", // Dark Ages Spanish
IDS_SIDENAME_177, "Navarrese", // Dark Ages Navarrese
IDS_SIDENAME_178, "Moravian",
IDS_SIDENAME_179, "Rus",
IDS_SIDENAME_180, "Arab", // Moslem Arab
IDS_SIDENAME_181, "Turkish", // Moslem Turkish
IDS_SIDENAME_182, "Saxon", // Old Saxons
IDS_SIDENAME_184, "Hyksos",
IDS_SIDENAME_185, "Mitanni",
IDS_SIDENAME_186, "Syro-Canaanite",
IDS_SIDENAME_187, "Hittite",
IDS_SIDENAME_188, "Nubian",
IDS_SIDENAME_189, "Neo-Hittite/Aramaean",
IDS_SIDENAME_190, "Sea Peoples",
IDS_SIDENAME_191, "Philistine",
IDS_SIDENAME_192, "Sumerian/Akkadian",
IDS_SIDENAME_193, "Amorite",
IDS_SIDENAME_194, "Minoan",
IDS_SIDENAME_195, "Mycenaean",
IDS_SIDENAME_196, "Trojan",
IDS_SIDENAME_197, "Nomad",
IDS_SIDENAME_198, "Luwian",
IDS_SIDENAME_199, "Zagros Highlanders",
IDS_SIDENAME_200, "Syrian", // Ancient Mari/Ebla etc.
IDS_SIDENAME_201, "Makkan",
IDS_SIDENAME_255, "Rebel",

For Kynoskephalai, Side 0 will be the Macedonians, so we need to write 22 instead of 45.

SIDE1 35 Obviously, this is the sidename number for side 1. In this case the 35 refers to the Seleucids (from the Apollonia scenario), and we will need to change this to 32 for the Romans.

Note that you can also easily find the sidename numbers for your scenario by opening the .BAM file in Wordpad (or a similar program), and you will see them displayed on lines 7 and 8.

DATE 2780 This is the date of the battle. It is used in the scenario selection screen UI.

Note that the game uses the year 3000 BC as it’s year zero. Therefore as Kynoskephalai was in 197 BC, we need to input 2803. For years BC, the calculation is 3000 minus the year date, so for Kynoskephalai it is 3000-197 = 2803. For years AD, it is simply the year plus 3000.

MAPX 1028 This is the x coordinate on the world map of your battle location. It is used to determine the location of the battlefield marker on the ancient world map in the scenario selection screen UI.

MAPY 394 This is the x coordinate on the world map of your battle location.

To find these two values, you need to open the EpicMap_Ptolemy.dds in your graphics editing software. You will find the map in C/Program Files/Slitherine/Field of Glory II/Data/UI/Textures. Just hover your mouse pointer over the map, and it should show you the map coordinates. For Kynoskephalai these values should be 620 and 508.

It might be a bit difficult for some to get these coordinates, especially if you don’t have a decent graphics editing program. Don’t worry, you have two options:

First, you can copy the coordinates from an existing scenario, either vanilla, or a good custom scenario. There are already 22 vanilla historical scenarios, I have 5 user made scenarios available, Odenathus’ scenarios have accurate map coordinates, and some of the other user made scenarios may have them too. So you should find a scenario that has a similar location to your battle.

Secondly, you can ask on the forum for help, someone may be able to look up the coordinates for you.

So the Campaign.txt file for Kynoskephalai will look like this:

NOSKIRMISH
TYPE 0

[Kynoskephalai]
SIDE0 22
SIDE1 32
DATE 2803
MAPX 620
MAPY 508

That concludes everything you need to do for a straightforward scenario.

Later, I will show you how to quickly create “reversed side” and Multiplayer versions of your scenario.
Field of Glory II Scenario Designer - Age of Belisarius, Rise of Persia, Wolves at the Gate and Swifter than Eagles.

Field of Glory II Medieval Scenario Designer.

FOGII TT Mod Creator

Warhammer 40,000: Sanctus Reach Tournament Scenario Designer.
Paul59
General - King Tiger
General - King Tiger
Posts: 3808
Joined: Tue Jul 21, 2015 11:26 pm

Re: Scenario creation guide part 11 (CAMPAIGN.TXT file)

Post by Paul59 »

I have just updated the list of Side names in the first post, it is now correct as of game version 1.5.12 and the Wolves at the gate DLC. A large number have been added in the last few DLCs.
Field of Glory II Scenario Designer - Age of Belisarius, Rise of Persia, Wolves at the Gate and Swifter than Eagles.

Field of Glory II Medieval Scenario Designer.

FOGII TT Mod Creator

Warhammer 40,000: Sanctus Reach Tournament Scenario Designer.
vakarr
1st Lieutenant - 15 cm sFH 18
1st Lieutenant - 15 cm sFH 18
Posts: 842
Joined: Sat Mar 04, 2006 6:57 am
Contact:

Re: Scenario creation guide part 11 (CAMPAIGN.TXT file)

Post by vakarr »

Note that the map co-ordinates appear at the bottom of the screen in the free Paint.net software, exactly as he says, you don't need expensive editing software to find those co-ordinates. I wish I had know this before when I was making campaigns!!!
rbodleyscott
Field of Glory 2
Field of Glory 2
Posts: 28053
Joined: Sun Dec 04, 2005 6:25 pm

Re: Scenario creation guide part 11 (CAMPAIGN.TXT file)

Post by rbodleyscott »

vakarr wrote: Thu Feb 24, 2022 4:28 am Note that the map co-ordinates appear at the bottom of the screen in the free Paint.net software, exactly as he says, you don't need expensive editing software to find those co-ordinates. I wish I had know this before when I was making campaigns!!!
I always use paint.net for this purpose.
Richard Bodley Scott

Image
Post Reply

Return to “Field of Glory II: Scenario Design”