Company of Heroes 2

Company of Heroes 2

Not enough ratings
Adding an image to your mod.
By Trigg
If you did not add an image when you created your mod, and decide to do so later, here is how to do it.
   
Award
Favorite
Favorited
Unfavorite
5-step Instructions
  1. Create the image and save it in the place and file format described in Janne252's "Getting Started" document.

  2. Close your Attribute Editor and Mod Builder.

  3. Make a copy of your .mod ifle so you can restore it if you mess up.

  4. Edit your .mod file. It's just an XML file, so you can edit it with Notepad.

    The indented part of the .mod should have a structure like this. (The ... show where I left things out for clarity.) -
    ... <Children xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:anyType i:type="TableOfContents"> <Alias>Attrib</Alias> ... </d2p1:anyType> <d2p1:anyType i:type="TableOfContents"> <Alias>Locale</Alias> ... </d2p1:anyType> <d2p1:anyType i:type="TableOfContents"> <Alias>Info</Alias> ... </d2p1:anyType> </Children> <Guid>5a34455c-6527-4642-8bd9-3abe099d7dfd</Guid> <Type>PropertyBagGroupPack</Type> ...
    Note that the three children are named "Attrib", "Locale", and "Info". You need to add something to the "Info" section. Here is that section with a little more detail, and a ******* where you want to add something:
    ... <d2p1:anyType i:type="TableOfContents"> <Alias>Info</Alias> <Children> <d2p1:anyType i:type="BurnModInfo"> <Dependencies /> <Description>your description is here</Description> <Hidden>false</Hidden> <Name>Infantry Emphasis Mod</Name> </d2p1:anyType> ******* </Children> </d2p1:anyType> ...
    Notice that "Info" has its own children; onily one for now, but you are going to add another one that looks like this:
    ... <d2p1:anyType i:type="BurnFile"> <BurnSettings i:nil="true" /> <RelativeName>relic00065.tga</RelativeName> </d2p1:anyType> ...
    Use your own filename where I have relic00065.tga

    When you've added that, the "info" section should look like this:
    ... <d2p1:anyType i:type="TableOfContents"> <Alias>Info</Alias> <Children> <d2p1:anyType i:type="BurnModInfo"> <Dependencies /> <Description>your description is here</Description> <Hidden>false</Hidden> <Name>Infantry Emphasis Mod</Name> </d2p1:anyType> <d2p1:anyType i:type="BurnFile"> <BurnSettings i:nil="true" /> <RelativeName>relic00065.tga</RelativeName> </d2p1:anyType> </Children> </d2p1:anyType> ...

  5. Rebuild your mod and update the published version.
2 Comments
rat 17 Sep, 2021 @ 5:04am 
ATTENTION: In order to upload a picture with the current version of CoH2 you have to use the 32bit version!

You can do this by right clicking the game in the library, going to properties, then going to the betas tab and selecting the 32bit version from the drop down menu.
«¬Omnicron¬« 23 Aug, 2018 @ 4:29pm 
why do you have to do all of that just to add a simple preview image? =[