The Resource Mod

I started playing this mod in multiplayer mode with a friend and we reached a point where we couldn't change civics when we wanted to. Only at the times it would ask us if we wanted to changed after discovering the tech we were researching. That would work. But if we didn't want to change at that moment and waited until later, trying to accomplish it in the civics screen, it wouldn't let us choose the civic.

Anybody else encounter this issue?
 
Hi all!

This is my first post. I have searched for an answer, and thought I could figure things out, but I cannot.
I would like to add only resources (I downloaded Stolenrays Mango as a test) to BTS. I like to play the Tech_Limit_Medieval mod. Is this combination possible?
I have no idea about dll, sdk or other files mentioned in this thread. I took the Mango folder and shuffled the contents around but I simply couldn't get it to work.
Can anyone shed some light (simple instructions) on how to get those resource folders into that mod and make them work?

Cheers!
 
The download link for the whole mod is not working for me. I have just managed to loose my main drive and backup drives in short order and am trying to get all the good stuff back again.

Hi all!

This is my first post. I have searched for an answer, and thought I could figure things out, but I cannot.
I would like to add only resources (I downloaded Stolenrays Mango as a test) to BTS. I like to play the Tech_Limit_Medieval mod. Is this combination possible?
I have no idea about dll, sdk or other files mentioned in this thread. I took the Mango folder and shuffled the contents around but I simply couldn't get it to work.
Can anyone shed some light (simple instructions) on how to get those resource folders into that mod and make them work?

Cheers!

The mango download is not really set up for easy inclusion.

1) add a new foder in your mods Art/Terrain/Resources called Mango

2) copy the following into it Mango.nif, Mango.dds and treepage.dds

3) copy the mango_button.dds to Art/Interface/Buttons/WorldBuilder and rename it Mango.dds

4) copy the art XML entry and put it in your mods XML/Art/CIV4ArtDefines_Bonus.XML file ie copy
Code:
		<BonusArtInfo>
			<Type>ART_DEF_BONUS_MANGO</Type>
			<fScale>1.0</fScale>
			<fInterfaceScale>1.5</fInterfaceScale>
			<NIF>Art/Terrain/Resources/Mango/Mango.nif</NIF>
			<KFM/>
			<SHADERNIF/>
			<Button>Art/Interface/Buttons/WorldBuilder/mango.dds</Button>
			<FontButtonIndex>41</FontButtonIndex>
		</BonusArtInfo>

5) now you need to add the bonus to your mods bonus and improvement definitions. This is not in the download.

5.1) Add a definition to your CIV4BonusInfos.XML file found in XML/Terrain. I would suggest copping one that is already there and changing the names to MANGO. You will need to come back to this and change one number after point 6

5.2) In your CIV4ImprovementInfos.XML file, in same folder, add the MANGO to the improvement in the same way as the other resources.

6) Add the icon to the game fonts.

6.1) Get and install Game Font Editor by Asaf. Use it to insert the mang_gamefont.tga image into the end of the resources. Found in res/Fonts file GameFont_75

6.2) change the FontButtonIndex in the Art Define for MANGO to the number that matches its place

Hope this is clear as I have not had my coffee this morning ;)
 
There is a corrupted nif file for the Shrimp resource which if used will crash the game. Use this version instead of the one included in this MOD.
 

Attachments

I'm new to modding and having some issues combining files from different mods. I wanted to move a few resources from this mod to the Giant Earth Map Mod. To do so, I moved a few resources under the Modules folder from this mod to the Modules folder in the Giant Earth Map Mod.

When I load the Giant Earth Map Mod, the new resource worldbuilder icon show up as pink. On the map, many of the new resources show up as a red blob instead of the proper art. The only two exceptions are Tobacco and Cotton, which show up properly.

How can I get the new resources to show up properly on the map? Much appreciated for any guidance.
 
I'm new to modding and having some issues combining files from different mods. I wanted to move a few resources from this mod to the Giant Earth Map Mod. To do so, I moved a few resources under the Modules folder from this mod to the Modules folder in the Giant Earth Map Mod.

When I load the Giant Earth Map Mod, the new resource worldbuilder icon show up as pink. On the map, many of the new resources show up as a red blob instead of the proper art. The only two exceptions are Tobacco and Cotton, which show up properly.

How can I get the new resources to show up properly on the map? Much appreciated for any guidance.
Pink icons indicate there is an issue with the graphic that the game cannot read properly.

What editor are you using? I suggest you download GIMP.

Make sure you are saving the resource buttons (icons) as DDS 3 or DTX3.

If they are part of an atlas (multiple buttons\icons stored in a single file as separate cells) make sure that the minimaps are generated properly. This can be done when you export the file as a DDS 3 or DTX3 file. I suggest you do this anyway even if the file icon is saved as a separate image (doesn't hurt anything).

If you can post the graphics that are giving you issues (and the related XML files) maybe I can take a look at them.
 
Pink icons indicate there is an issue with the graphic that the game cannot read properly.

What editor are you using? I suggest you download GIMP.

Make sure you are saving the resource buttons (icons) as DDS 3 or DTX3.

If they are part of an atlas (multiple buttons\icons stored in a single file as separate cells) make sure that the minimaps are generated properly. This can be done when you export the file as a DDS 3 or DTX3 file. I suggest you do this anyway even if the file icon is saved as a separate image (doesn't hurt anything).

If you can post the graphics that are giving you issues (and the related XML files) maybe I can take a look at them.

I didnt use any editor or edit any files. I simply moved the "Tobacco" folder within MODS/The Resources Mod/Assets/Modules/Resources/ to MODS/Giant Earth Map/Assets/Modules/ .

Interestingly, only Tobacco and Cotton show up properly on the map, while all other resources just show up as a red blob. Tobacco and Cotton are not resources in the Giant Earth Map mod.
 
I didnt use any editor or edit any files. I simply moved the "Tobacco" folder within MODS/The Resources Mod/Assets/Modules/Resources/ to MODS/Giant Earth Map/Assets/Modules/ .

Interestingly, only Tobacco and Cotton show up properly on the map, while all other resources just show up as a red blob. Tobacco and Cotton are not resources in the Giant Earth Map mod.
I believe Tobacco and Cotton are already present in Civ4 so it is pulling them from the base game.

Did you create a Resources folder under Modules? Each Resource should be contained in its own subfolder.

For example:

MODS\Giant Earth Map\Assets\Modules\Resources\Tobacco

MODS\Giant Earth Map\Assets\Modules\Resources\Cotton

It would be helpful if you posted the Assets\XML\Art\Civ4ArtDefines_Bonus.xml file that you are using in mod along with the names of the resources you are having issues with.

Most likely the game is having an issue finding the appropriate NIF and KFM file for each resource you are trying to add:

For example:

<NIF>Art/Terrain/Resources/Iron/Iron.nif</NIF>
<KFM>Art/Terrain/Resources/Iron/Iron.kfm</KFM>
 
I believe Tobacco and Cotton are already present in Civ4 so it is pulling them from the base game.

Did you create a Resources folder under Modules? Each Resource should be contained in its own subfolder.

For example:

MODS\Giant Earth Map\Assets\Modules\Resources\Tobacco

MODS\Giant Earth Map\Assets\Modules\Resources\Cotton

It would be helpful if you posted the Assets\XML\Art\Civ4ArtDefines_Bonus.xml file that you are using in mod along with the names of the resources you are having issues with.

Most likely the game is having an issue finding the appropriate NIF and KFM file for each resource you are trying to add:

For example:

<NIF>Art/Terrain/Resources/Iron/Iron.nif</NIF>
<KFM>Art/Terrain/Resources/Iron/Iron.kfm</KFM>

That's very helpful. I found the issue, it has to do with the Civ4ArtDefines_Bonus.xml.

By default, the xml file was looking at this folder: Modules/Resources/Coffee/Art/Terrain/Resources/Coffee/

But since the Giant Earth Map doesnt have the Resources folder in Modules, the xml file couldnt find the art files. After I change the path to this folder, the graphic issue is fixed for most resources: Modules/Coffee/Art/Terrain/Resources/Coffee/


One minor issue remains. For some reason, Tea is the only resource that shows up pink on the world map.
 
That's very helpful. I found the issue, it has to do with the Civ4ArtDefines_Bonus.xml.

By default, the xml file was looking at this folder: Modules/Resources/Coffee/Art/Terrain/Resources/Coffee/

But since the Giant Earth Map doesnt have the Resources folder in Modules, the xml file couldnt find the art files. After I change the path to this folder, the graphic issue is fixed for most resources: Modules/Coffee/Art/Terrain/Resources/Coffee/


One minor issue remains. For some reason, Tea is the only resource that shows up pink on the world map.
I am glad you got it fixed.

If I understand correctly, the bonus resource shows up on the tile but it is pink instead of it's normal color.

I ran into this issue recently in a Mod I am making for Civ 4 Colonization. Took me a while to figure it out.

There is a ShadowCastor tag in the Civ4ArtDefines_Bonus.xml which should fix the issue. See example below:

<BonusArtInfo>
<Type>ART_DEF_BONUS_MINERALS</Type>
<fScale>1.0</fScale>
<fInterfaceScale>1.0</fInterfaceScale>
<NIF>Art/Terrain/Resources/Copper/Copper.nif</NIF>
<KFM>Art/Terrain/Resources/Copper/Copper.kfm</KFM>
<Button>,Art/Button_ATLAS_LOD.dds,2,5</Button>
<FontButtonIndex>44</FontButtonIndex>
<bShadowCastor>1</bShadowCastor>
<bRefractionCastor>0</bRefractionCastor>
</BonusArtInfo>

It might work for Civ 4 Mods as well. If that tag is present in the Civ4ArtDefines_Bonus.xml in your mod, try setting it to 1 and see if that fixes your issue.
 
I am glad you got it fixed.

If I understand correctly, the bonus resource shows up on the tile but it is pink instead of it's normal color.

I ran into this issue recently in a Mod I am making for Civ 4 Colonization. Took me a while to figure it out.

There is a ShadowCastor tag in the Civ4ArtDefines_Bonus.xml which should fix the issue. See example below:

<BonusArtInfo>
<Type>ART_DEF_BONUS_MINERALS</Type>
<fScale>1.0</fScale>
<fInterfaceScale>1.0</fInterfaceScale>
<NIF>Art/Terrain/Resources/Copper/Copper.nif</NIF>
<KFM>Art/Terrain/Resources/Copper/Copper.kfm</KFM>
<Button>,Art/Button_ATLAS_LOD.dds,2,5</Button>
<FontButtonIndex>44</FontButtonIndex>
<bShadowCastor>1</bShadowCastor>
<bRefractionCastor>0</bRefractionCastor>
</BonusArtInfo>

It might work for Civ 4 Mods as well. If that tag is present in the Civ4ArtDefines_Bonus.xml in your mod, try setting it to 1 and see if that fixes your issue.

For the tea resource (pink color on the map), I don't see the ShadowCastor tag:

<BonusArtInfos>
<BonusArtInfo>
<Type>ART_DEF_BONUS_TEA</Type>
<fScale>0.5</fScale>
<fInterfaceScale>1.6</fInterfaceScale>
<NIF>Modules/Tea/Art/Terrain/Resources/Tea/Tea.nif</NIF>
<KFM/>
<Button>Modules/Tea/Art/Interface/Buttons/WorldBuilder/Tea.dds</Button>
<FontButtonIndex>122</FontButtonIndex>
</BonusArtInfo>
</BonusArtInfos>
 
For the tea resource (pink color on the map), I don't see the ShadowCastor tag:

<BonusArtInfos>
<BonusArtInfo>
<Type>ART_DEF_BONUS_TEA</Type>
<fScale>0.5</fScale>
<fInterfaceScale>1.6</fInterfaceScale>
<NIF>Modules/Tea/Art/Terrain/Resources/Tea/Tea.nif</NIF>
<KFM/>
<Button>Modules/Tea/Art/Interface/Buttons/WorldBuilder/Tea.dds</Button>
<FontButtonIndex>122</FontButtonIndex>
</BonusArtInfo>
</BonusArtInfos>
Try adding the tags anyway to see if it makes a difference.

<bShadowCastor>1</bShadowCastor>
<bRefractionCastor>0</bRefractionCastor>

It may produce an error. If it does you can always remove it.

There may be some differences between the way Civ 4 handles bonus resources (as opposed to Civ 4 Colonization).

You can also try to search Civfanatics to see if there is a different version of the Tea resource.
 
Back
Top Bottom