[BTS] Help with the Resource Mod

Graceheart the Leopard

Resident Amur leopard
Joined
Sep 24, 2007
Messages
3,476
I don't want all the resources from the Resource Mod in my mod (which is based off WolfRevolution), but if I remove even a few, the game freezes on "initializing...". The only way I can get it to work is if I keep every resource, but if I do, Sevopedia (which comes with WolfRevolution) and the rest of the game fonts doesn't work, even though I copied the Resource Mod's font file, which is based of WOC like Wolf Revolution and has literally more than enough icons for the mod and should not have run out of resource icons:

Spoiler :
190DA29D9D1C60F95AC1D69B1781E4EDE23050F1


Here's the link to the mod. Anyone able to help?
 
Resources are one of the more difficult things to edit. I don't know too much about them... but the guys in the C2C sub-forum might know. PM one of them and see if they know something.
 
Removing a resource should not cause that sort of a problem. As long as you are completely removing it:lol:. I am downloading your mod to have a look. I did quite a lot of work on getting resources into C2C. Adding in resources is more of a problem because of the hard coded limits in the dll and python code.

edit there is a problem somewhere. I can tell by just looking at the pedia, see attached. My red marks indicate where the problem is. In the index panel the icon is missing and the text is bold on a few lines. This may just be a case of that particular icon not being defined correctly.

I need to do a bit of investigation and research as it has been a long time since I did this stuff.

I used the GameFontEditor by Asaf to check your font files and no errors came up there, so I need to look elsewhere.

edit 2 There is an MLF_....XML file in the Res/Fonts folder along with some other XML. I am assuming they are doco as I don't thing the Civ IV program will even look in here for XML. The MLF file has an error in it the <Modules/> should be </Modules>. Fixing it does not fix the problem.

The two definitions look important. Does your dll look in the Res/Font folder for these XML values? I don't see them in any other XML.

edit 3 I can't find anything wrong in the XML or Python (so far). Are you sure your dll supports extra resources?
 

Attachments

  • font_problem_indicator.jpg
    font_problem_indicator.jpg
    240.6 KB · Views: 161
Last edited:
Removing a resource should not cause that sort of a problem. As long as you are completely removing it:lol:.

The resources are modular. I'm deleting the module folders, which should get rid of them.

I can't find anything wrong in the XML or Python (so far). Are you sure your dll supports extra resources?

Oooooh.

But I don't know how to mod the SDK. :dunno: How exactly could you increase the resource limit?
 
Just because your problem looks similar to the "too many resources" problem does not mean it is. I forgot to try and play a game to see if the other symptoms are there. I was just looking at your mad as it stood and saw some errors.

I'll look at the removal of some of the resources. Are there any in particular you tried to remove?

Do you remove them by deleting the folder or by just editing the MLF file and setting the load value to 0? edit the MLF file in the resource directory is wrong! According to it you are either not using MLF or you should be getting no resources at all!

Edit and WOW! I removed alligator, cobra, cave bear, cave lion and cave lioness with out seeing any problems. I then removed the cheetah and everything changed! The pedia was the normal BtS one not the one in the mod for starters! The problems I was seeing with the fonts went away as well.
Ignore that a second look suggests I miss clicked and loaded a different mod. I think I need my morning coffee:lol:
 
Last edited:
Just because your problem looks similar to the "too many resources" problem does not mean it is. I forgot to try and play a game to see if the other symptoms are there. I was just looking at your mad as it stood and saw some errors.

I'll look at the removal of some of the resources. Are there any in particular you tried to remove?

Do you remove them by deleting the folder or by just editing the MLF file and setting the load value to 0? edit the MLF file in the resource directory is wrong! According to it you are either not using MLF or you should be getting no resources at all!

Edit and WOW! I removed alligator, cobra, cave bear, cave lion and cave lioness with out seeing any problems. I then removed the cheetah and everything changed! The pedia was the normal BtS one not the one in the mod for starters! The problems I was seeing with the fonts went away as well.
Ignore that a second look suggests I miss clicked and loaded a different mod. I think I need my morning coffee:lol:

@Dancing Hoskuld, I'm just deleting them from the folder and nothing works. Here's a version of the mod with only some of the resources.
 
For me that latest version works very well. It even fixes the bug I mentioned above. Tuesday-Thursday are hectic for me. At the moment I would guess that either there is something in the Civ IV cache or our Civilization.ini files have some differences.
 
For me that latest version works very well. It even fixes the bug I mentioned above. Tuesday-Thursday are hectic for me. At the moment I would guess that either there is something in the Civ IV cache or our Civilization.ini files have some differences.

For the record, "works very well" means you can successfully begin a new game, not just access the mod, right?

Clearing the cache doesn't work. What could be in the .ini file that can cause the problem?

EDIT: setting DisableCaching to 1 SEEMS to work for now. Let me report back in the near future.
 
Last edited:
For the record, "works very well" means you can successfully begin a new game, not just access the mod, right?
Yes but it can't find the ini and other settings files.

These are usually in a UserSettings folder which you don't have. I would expect a Distant Horizons/UserSettings folder. However creating such a folder seems to cause the game to not get past initialization. It has not crashed but seems to be looping. Perhaps I should not have put the Revolution.ini in there before I looked at it.

edit yes the RevolutionDCM.ini file does not belong in the UserSettings folder. With the folder empty everything starts OK except the Revolution part which says it is looking in another mod or my games folder.
 
Back
Top Bottom