Quick Modding Questions Thread

Hi, just to check regarding this function changeExtraHealth(int).

I was trying to add 1 health to all cities of all players. Since this function only works for cities, i had to add 1 health to each city of each player using loops. That works fine, I saw the extra health in all my cities, and using espionage, I saw the extra health in all rival cities as well.

However, if I conquer a rival city, the extra health is gone. 1 turn ago, I took a peek in that city with espionage and it is there. Why is this so?
 
Hi, I have downloaded the Giant Eath Map mode, and noticed that the "Ancient Resources Map" is unplayable.
So I tried editing the map with the text editor, making everyone start with a single city and scouts.
but it still didnt do anything - I am being defeated automatically, as if it was an empty map.
What should I do to make it playable?
 
Hi, I have downloaded the Giant Eath Map mode, and noticed that the "Ancient Resources Map" is unplayable.
So I tried editing the map with the text editor, making everyone start with a single city and scouts.
but it still didnt do anything - I am being defeated automatically, as if it was an empty map.
What should I do to make it playable?

Did you download the whole mod? It should work perfectly fine, if it doesnt redownload the mod, and retry it, ik from expirience it plays just fine, but if you have problems, id comment in the GEM thread
 
Besides what's said above:
In these cases, it can be that the worldbuilder crashes due to some missing or wrong infos.
So please turn on Python excetions (world builder is done in Python).
To do that, go to My Documents\My Games\BtS, open the Civilization4.ini and change
PHP:
; Set to 1 for no python exception popups
HidePythonExceptions = 1

to 0.
Try to load the map again, and if you get an error popup, then post this one.
 
Has anyone every had a gamefonts file get slanted? (Attached file shows the issue.)

What would cause it, (I did some similar adjustments to gamefonts75, but it has stayed normal.) and any ideas on fixing it? (I assume this will cause problems with the game, but am not sure.)
 

Attachments

The plan: double the available number of available icons for bonuses.

Step 1: Increase the size of the gamefonts file.

Step 2: Copy and paste as necessary to produce said slots.

Step 3: Happy with my work for now, save and quit.

Step 4: To check the gamefonts75 file for something, load the gamefonts file.

Step 5: Notice the thing is quite skewed.

I did a similar series of steps with the gamefonts75 file, and no skew, which adds to the confusion.
 
You must have accidentally clicked some keyboard shortcut in whatever graphics program you're using. Hard to tell, but it seems no pixels were "destroyed" in the process so you might try moving them back, line by line :crazyeye:
 
How do you change the picture of this icon?
 

Attachments

  • Civ4ScreenShot0037.JPG
    Civ4ScreenShot0037.JPG
    219.9 KB · Views: 71
The button for those sorts of things is in CIV4MissionInfos.xml. That particular mission is MISSION_GREAT_WORK, so change the button for the MissionInfo with that type.
 
You must have accidentally clicked some keyboard shortcut in whatever graphics program you're using. Hard to tell, but it seems no pixels were "destroyed" in the process so you might try moving them back, line by line :crazyeye:

I ended up just using a shear tool in GIMP to fix this.

Also found out that the original file appeared to be too big. (I tried just a straight copy paste and resave, ran into the same problem. I shrunk it a bit, got an even stranger effect where the image slanted, wrapped around, and the colored were split in some very wierd ways, I've attached that resulting file. I needed to drop it to a width of 1100 to get it to save normally. Yet another annoyance with gamefonts it seems.)
 

Attachments

If you disable vassal states for a scenario, but then create a civ a vassal state, will that civ remain a vassal state and have all the options as a regular one? and still no one can become a new vassal state?

If not is there a way to disable trading vassals in a scenario but still being able to be one via world builder?
 
I am working on my first mod, and I there is a problem -
I changed the civilizations, the religions, a few units, leaderheads, cities, and I am using the GEM map I edited for my needs.
But when I load the mod that map does not work.
I mean - I load the mod, enter the scenraio, select the map, but then I can choose just the regular civilizations. and it crashes after I press OK.
I also made another version of the map, not in a mod, just a WB map that can work on regular BTS settings. And that version works. I load it as a scenario.
So - What is the prbolem with the mod?
Is it the XMLs I edited?
And if so, what kind problem can it be?
 
Does it work if you start the mod without the map?

And you should enable python exceptions (because such crashes can be caused by a crash in the worldbuilder, which is written in Python).
How? Open My Documents\My Games\BtS\Civilization4.ini, and change
PHP:
; Set to 1 for no python exception popups
HidePythonExceptions = 1

the 1 to 0.
 
Do you mean if I can play the regular public maps when the mod is loaded? So, yes.

I tried to open it again (in the mod), and it didnt carsh.
But something strange happened:
I chose babylonia, and it somehow put me in the right location that I made when I edited the map, but all the other civilizations are random civilizations in random starting locations, except for sumeria.
Sumeria was also in the right starting location, but it appeared as regular sumeria (the regular names of the civ and leader), and not as what I defind in the XMLs and in the map that I edited...
Does it mean that the starting locations are the only thing that works in this mod?

And what does the python exception do?
My problem is not the crashing. It's that when I play the mod in the map, it starts with random civs.. It can't read the mod.
 
Anyone know what this compiler error means?
1>CvInfos.cpp(11414) : error C2440: '=' : cannot convert from 'int (*)[4]' to 'int ** '

I don't see how they're fundamentally different.
 
So how do I fix it?

(Ok, so I've never taken a real programming class (Hoping too soon). Everything I know is from books, tutorials, websites, threads, and help from friends.)
 
Back
Top Bottom