Quick Modding Questions Thread

Is the caching disabled?
If not, then load your mod again, but press the shift key during loading. Then please test it again.

ok so its a matter of just testing it. and when finished just load it as the map or is it loaded in Scenario?

Technically there's no difference. A scenario is a map with preset civs, preset cities, etc.
You'll have to use the "play a scenario" option to play it, no matter how much you change in the WB file.
 
Is the caching disabled?
If not, then load your mod again, but press the shift key during loading. Then please test it again.

If this was for me, yes. Caching ist disabled. Could be the problem, that I´ve added the preserves as two modules, each with a buildinginfos.xml with national park in it too?
 
That could be the problem, depending on in which order the files are loaded.
I would recommend to try a non-modular approach, at least for testing.

Whatever is the result, the national park should not have doubles in the modular files, because the last loaded entry will override the previous entries.
 
Hello!

This is not exactly a modding question, but since I am doing various modifications to the game this could be related.

I have noticed weird bug today: when range units fight (gun units or archers) following happens:
-a sub-unit on 1 side gets killed (death animation shown) so 3 men get reduced to 2 men
-combat continues and SUDDENLY the dead man stands up and keeps on firing
-after battle the final death animations for either side are not shown, the dead unit just poofs into thin air and message reports that it was killed

this happens with all units who use bows, rifles, machine guns and other raneg attacks.
melee combat happens normally.

Any ideas what can cause that?

I understand that I am using about a dozen of custom made units in my mod that could act weirdly due to poor work done on animations, but this also affects ALL of the original units as well that were never touched.

thanks!
 
What could be causing this extended spacing in the PLE hover text, I'm not so good with Python.
 

Attachments

  • Civ4ScreenShot0007.JPG
    Civ4ScreenShot0007.JPG
    230.1 KB · Views: 51
Actually that's done in Python. PLE replaces the default DLL hover unit help with its own Python version in CvMainInterface.py. It has a number of issues, however, one of them being miscalculation of widget height. I don't think that fixing height calculation is feasible, it just shouldn't have been done in Python at all. I've modified PLE to completely disable that part, so that it just uses the old DLL hover unit help again. If that's fine with you I can try to post the code (the file is here, but it's heavily modified and has PLE but no BUG, so you can't merge it easily).
 
I'm getting a python exception that I'm unsure of how to fix. What could be wrong?

Code:
	# replaces the buggy civ 4 version.
	def getInterfacePlotUnit(self, i):
		return self.lPLEUnitList[i][self.IDX_UNIT]

Edit: I fixed that error , but now get an attribute error for getAttitudeColors.
 

Attachments

  • Civ4ScreenShot0007.JPG
    Civ4ScreenShot0007.JPG
    156.1 KB · Views: 40
You can't really merge that file, it has much more mod-specific changes than PLE, and PLE itself is modified. I'll try to isolate the hover text and get back to you within a day or two.
 
Rule 1: This is paramount. NEVER CHANGE THE CORE FILES.

Rule 2: Create a Mod folder with the name of your mod.
Rule 3: Copy the file you would like to be changed to this mod folder

e.g. If the original file is in "assets\XML\units\", copy it to "Mods\My Mod\assets\XML\units\"

Regarding your question about destroyers as a flotilla. This can be done in the mod as described above.

First you need to make the model smaller. This data can be found in XML\Art\CIV4ArtDefines_Unit.xml

After you have copied this file to your mod folder, open it up and then find the section called ART_DEF_UNIT_DESTROYER. You will see a parameter called <scale>. e.g. it may be 0.7. Change this to 0.25, which is about a third the size.

Second you need to edit the XML\Units\CIV4UnitInfos.xml. After making a copy as above, you then need to find the section called UNITCLASS_DESTROYER Look for the subsection <UnitMeshGroups>. In their you'll find 4 parameters you need to change <iGroupSize>, <iMeleeWaveSize>, <iRangeWaveSize> and in a smaller sub-subsection, <iRequired>. Change the numbers in those from 1 to 3.

For a description of all parameters and what they do go here - http://modiki.civfanatics.com/index.php/Main_Page

For tutorials on how to add units to here
http://forums.civfanatics.com/showthread.php?t=139721
http://forums.civfanatics.com/showthread.php?t=176460

More tutorials can be found here
http://forums.civfanatics.com/forumdisplay.php?f=177

This is probably the most important - How to create your own mod
http://forums.civfanatics.com/showthread.php?t=262402

Post any more questions you have in this thread


I think I see now that I am a customer, not a cook- all this utterly baffles me. I think I'll just try to provide any help I can to others and hope that DaCubz succeeds with his huge 2.9 re-write for TTTMA. Thank you for pointing me here though, it at least showed me how big the job was going to be.
 
Does anyone know how to add axeman sword instead of an axe or some another unit. If someone can explain to me the steps or just give me a tutorial which explains how to replace weapons.
 
I've been running into a problem with some of my units. Half of them gain experience and can be promoted just fine; the other half don't for whatever reason. Does anyone know what might be causing this?
 
I've been running into a problem with some of my units. Half of them gain experience and can be promoted just fine; the other half don't for whatever reason. Does anyone know what might be causing this?

Do all these units have a unitcombat assigned?

Tutorial is OK, but is not complited, i think so. I replaced sword with spear but spear is pink color.

In the folder with the unit, which as the spear, there has to be a .dds file, which gives the spear the colour. Copy that file to your units folder, that should fix it.
(if you don't know which file: Just test them)
 
Thank you The_J this is working i will now try with different units, but in his tutorial he say if you want edit archers these is more complicated (Maybe yes or maybe no, I have not tried). Do you know some other similar tutorial like this?
 
Where can I find the file where this is written:
"X has completed his greatest work:The largest civilizations in the world"
 
Thank you The_J this is working i will now try with different units, but in his tutorial he say if you want edit archers these is more complicated (Maybe yes or maybe no, I have not tried). Do you know some other similar tutorial like this?

Sorry, no idea :dunno:.
I guess some of the more general tutorials might cover this, but this is not my area anymore :dunno:.

Where can I find the file where this is written:
"X has completed his greatest work:The largest civilizations in the world"

Do you mean the text itself, or how the popup is generated in Python?
 
Back
Top Bottom