Quick Modding Questions Thread

Voyhkah, I feel your pain. :lol:

I feel the same way about XML nonsense with dummy traits or promotions or whatnot. I'd rather script things in Python. ;)
 
How would I make a new Domain? I'm complete n00b. :P

And yeah, you could whip something up with the SDK if you want.
 
I'm guessing there is a Domain Infos XML file somewhere. So you would basically make a brand new entry and label it with a field tag, like DOMAIN_ARMOR.
 
Something weird is happening...

I have this in CvGameTextMgr:

Code:
szBuffer.append(gDLL->getText("TXT_KEY_DLL_UPM", kBuilding.getUnitProductionModifier(iI), GC.getUnitClassInfo((UnitClassTypes)iI).getTextKeyWide()));

TXT_KEY_DLL_UPM reads this:

Code:
[ICON_BULLET]+%s1change%%[ICON_PRODUCTION] on %s2unit.

What I get is:
  • +???% :hammers: on Tank.

Anyone know why I'm getting the '???'?
 
The %s format item is for a text string. I would guess your function is returning an integer. Either convert it to a string before using the returned value or try using the %d format item.
 
By the way, Baldyr, you can't just create a new Domain in XML. They're defined in the SDK.
 
HI EVERYONE, IVE BEEN COMING HERE FOR ABOUT A MONTH NOW, THIS IS A GREAT SITE HAVE A FEW QUESTIONS.

BEEN PLAYING WITH THE "EXTRA" MOD, IVE ADDED SOME THINGS WITH MODULAR LOADING WITH IS GREAT BUT I CANT SEEM TO ADD OR MERGE THE "CvEventManager.py" WITH THE TECH BY CONQUEST.AND THE PIRATE MOD, I KEEP FAILING AS IT WONT START AS I CANT MERGE THE 3 "CvEventManager.py" OR CAUSE THERE IS EXTRA FILES IN THE PIRATE THAT IS GETTING THE GAME TO CRASH BEFORE IT LOADS TO TITLE

THANKS YOU....MUCH APPRECIATED
 
When I attached visual studio to Civ4 BtS while running, when it hit a breaktrap I made, Visual Studio and Civ4 became unresponsive, but task manager still showed VS as running. I had to kill both programs from task manager. Could screen resolution have to do with this?
 
I'm trying to add this plane as a recon only unit to my mod, but it still has fighter/bombing missions. How do I make it a recon only unit?
If you set the iBombRate to 0 it won't be able to bomb city defenses.

I'm not really sure how to remove the ability to attack ground units, possibly if you set the iAirCombatLimit to 0 (this is the percentage damage it can inflict this way - if it is 0 maybe the option won't appear at all). Or maybe if you set iAirCombat to 0 (the air combat strength, also used to do air attacks on units on the ground). Or both.
 
If you set the iBombRate to 0 it won't be able to bomb city defenses.

I'm not really sure how to remove the ability to attack ground units, possibly if you set the iAirCombatLimit to 0 (this is the percentage damage it can inflict this way - if it is 0 maybe the option won't appear at all). Or maybe if you set iAirCombat to 0 (the air combat strength, also used to do air attacks on units on the ground). Or both.

I set all of those to 0 and the only mission left was to recon. Thanks!
 
Please help me!
 
When I attached visual studio to Civ4 BtS while running, when it hit a breaktrap I made, Visual Studio and Civ4 became unresponsive, but task manager still showed VS as running. I had to kill both programs from task manager. Could screen resolution have to do with this?

What does happen with a debug dll?
 
I'm not sure if what I was doing was a debug dll, but I set a breaktrap in the code, then started the game, then attached Visual Studio to the running game. When I reached the break trap, almost (Not Windows Explorer and Task Manager) all the programs I had open (Civ4, Visual Studio, Firefox) became unresponsive. I tried killing Civ4 via Task Manager, but nothing happened until I killed Visual Studio.
 
When I attached visual studio to Civ4 BtS while running, when it hit a breaktrap I made, Visual Studio and Civ4 became unresponsive, but task manager still showed VS as running. I had to kill both programs from task manager. Could screen resolution have to do with this?

when debugging, run Civ4 in window mode.
 
Back
Top Bottom