Note to admin: as requested before, a sub forum would be good for modding, if this happens could you move my topics into the sub forum for ease of access to prospective modders.
This is part 2 of my modding tutorials. This is about changing the parties in the game, so that you can edit the parties to introduce a new party as a replacement to the current parties.
DISCLAIMER: Before the tutorial starts, I recommend that you backup any files you are about to edit, your changing parts of the game, and you should be aware that this is not the intended use of the xml files in the game folders, I take no responsibility, and (although I can't speak for them) Stardock can not be blamed for damage you do to, including but not limited to, your save files, your program files and any other aspect of your computer.
Changing the name and colour of a party is fun, and changing the logo can look cool, but be aware that you won't be able to play online with your modified files unless the person you play against has EXACTLY the same edited files as you. The game will allow you to play modded games online as long as both participants have the files.
So here we go.
Changing the Names of the parties
First very simple modification we can make to the parties is to change the name of the parties in the files, this can be quite fun, whether you are introducing a replacement party (libertarian for republican for example) or beginning a total conversion mod like I have begun for the United kingdom (with plans for Australia, Japan and France ready to go also).
The one limitation we have at the moment is the limit of 2 active parties and 1 passive party. by default these are Democrat, Republican and Independent.
We will edit one of these parties in this tutorial.
To begin, you need to open the first file, This will be found in your program files of the game.
Default 64bit windows: C:\Program Files (x86)\Steam\steamapps\common\The Political Machine 2012\Data\English\Scenarios
Default 32bit windows: C:\Program Files\Steam\steamapps\common\The Political Machine 2012\Data\English\Scenarios
In this folder you will find a single file: USAModern.PM2ScenarioXML
You need to open this file using Notepad (or notepad++) in order to edit it. To do this, right click and [...open with] and select notepad.
This is the layout of the democrat party, that you should see:
Code: xml
- <Party ID="Left">
- <PartyName>Democrat</PartyName>
- <PartyNamePlural>Democrats</PartyNamePlural>
- <PartyImage>Democrats.png</PartyImage>
- <PartyColor COLOR="Red">10</PartyColor>
- <PartyColor COLOR="Green">10</PartyColor>
- <PartyColor COLOR="Blue">255</PartyColor>
- </Party>
You should not edit the party ID, this will cause problems in the game.
you can edit anything else within a > and a <
here is an example of a party called the Redarrow141 party
Code: xml
- <Party ID="Left">
- <PartyName>Redarrow141</PartyName>
- <PartyNamePlural>Redarrows</PartyNamePlural>
- <PartyImage>Redarrow.png</PartyImage>
- <PartyColor COLOR="Red">10</PartyColor>
- <PartyColor COLOR="Green">10</PartyColor>
- <PartyColor COLOR="Blue">255</PartyColor>
- </Party>
what will this do?
The first line <PartyName> changes the name of the party that will be displayed in game
the second line <PartyNamePlural> will change the name that is displayed as a plural
the third line is a party logo. For this to work, you need to put a picture with the same name in this folder:
64bit = [C:\Program Files (x86)\Steam\steamapps\common\The Political Machine 2012\Gfx\Logos]
32bit = [C:\Program Files\Steam\steamapps\common\The Political Machine 2012\Gfx\Logos]
So in my example I have a file called Redarrow.png in that folder.
This logo will then be displayed in game instead of the default democrat/republican logo.
the second bit of the XML format, <PartyColor> section, is the colour which your party is, and states will go when you win. For this you will need the RGB codes for the colour. This can be found easily online or using the colour pallet in windows paint program.
defaults are Blue:
Code: xml
- <PartyColor COLOR="Red">10</PartyColor>
- <PartyColor COLOR="Green">10</PartyColor>
- <PartyColor COLOR="Blue">255</PartyColor>
- </Party>
and Red:
Code: xml
- <PartyColor COLOR="Red">255</PartyColor>
- <PartyColor COLOR="Green">10</PartyColor>
- <PartyColor COLOR="Blue">10</PartyColor>
Side note: I apologise for the spelling of a few words, I am from England, and we spell things the proper way such as Colour instead of Color.