Adding art assets

CaptainBarracud

Chieftain
Joined
Mar 19, 2016
Messages
1
Hello,
I'm working on a sponsor mod, and I cannot for the life of me find out how to add images (.dds) to my mod. I added them externally to an "art" folder in my project's directory, but when I build the mod, the content of the Art folder is not within the produced mod file.
In short: How do I add images to a mod?
 
Oooh! I know this (just learned modding myself and I had the exact same problem...).

Click on the image (in your art folder likely), and in ModBuddy there is a properties window. Scroll down to "Import into VFS" and set that to true.
- Need to do this for all images.

For Sponsor images there are special files you also need to create/use.
Usually labeled *_Envrinonment.xml and looks like:
Code:
<LeaderEnvironment  FallbackImage="cyberSponsorScene.dds">
</LeaderEnvironment>

The second file is *_Scene.xml and looks like.
Code:
<LeaderScene>
	<FallbackImage ID="Level1" image="cyberSponsorScene.dds"/>
	<FallbackImage ID="Level2_Purity" image="cyberSponsorScene.dds"/>
	<FallbackImage ID="Level2_Harmony" image="cyberSponsorScene.dds"/>
	<FallbackImage ID="Level2_Supremacy" image="cyberSponsorScene.dds"/>
	<FallbackImage ID="Level3_Purity" image="cyberSponsorScene.dds"/>
	<FallbackImage ID="Level3_Harmony" image="cyberSponsorScene.dds"/>
	<FallbackImage ID="Level3_Supremacy" image="cyberSponsorScene.dds"/>

	<Environment ID="Level1"    XML="GSC_Environment.xml" />
	<Environment ID="Level2_Purity"    XML="GSC_Environment.xml" />
	<Environment ID="Level2_Harmony"   XML="GSC_Environment.xml" />
	<Environment ID="Level2_Supremacy"   XML="GSC_Environment.xml" />
	<Environment ID="Level3_Purity"   XML="GSC_Environment.xml" />
	<Environment ID="Level3_Harmony"    XML="GSC_Environment.xml" />
	<Environment ID="Level3_Supremacy"    XML="GSC_Environment.xml" />
</LeaderScene>

In the code you need to point to your one or more Scene images, you can have different scene images per affinity level. Note: In my example code here I only use a single scene image.

Many leader mods have these file which you can look at if you download for example. Also here on forums is tutorial/reference. http://forums.civfanatics.com/showthread.php?t=543252

Hope this helps...
 
Back
Top Bottom