Quick Modding Questions Thread

EDIT: Problem solved. Just found the line in the Civ4BuildInfos...

Hi,

I´ve added the Jungle Mod as a module with the name "DschungelMod" to my Mod-Mix which is based on Better BAT AI. Everything works fine beside the button of the jungle preserve.

In the Civilopedia and World Builder it´s shown correctly, in the bar where the improvemts are shown for the worker, it´s not shown. I´ve added some screenshots and the code in the Civ4ArtDefines_Improvements.XML

Code:
<Civ4ArtDefines xmlns="x-schema:Dschungel_CIV4ArtDefinesSchema.xml">
  <ImprovementArtInfos>
    <ImprovementArtInfo>
      <Type>ART_DEF_IMPROVEMENT_JUNGLE_PRESERVE</Type>
      <bExtraAnimations>0</bExtraAnimations>
      <fScale>1.0</fScale>
      <fInterfaceScale>1.0</fInterfaceScale>
      <NIF>Art/Structures/Improvements/ForestPreserve/ForestPreserve.nif</NIF>
      <KFM>Art/Structures/Improvements/ForestPreserve/ForestPreserve.kfm</KFM>
      <Button>Modules/DschungelMod/Art/Interface/Buttons/Builds/forestry.dds</Button>
    </ImprovementArtInfo>
  </ImprovementArtInfos>
</Civ4ArtDefines>

I don´t understand why it´s working in the civilopedia and WB but not in the game. Thank you very much for your help.
 
Hello everyone.
Quick question: can I give a unit 2 different buildings as pre-reqs? (I know how to give 1)
If yes, I need help writing proper xml tags for the list.

thanks! :)

Nope, not possible without SDK work :/.
 
What do I need to add in the sdk to get the red circle to appear underneath a newly attacked unit?
 

Attachments

  • Untitled.jpg
    Untitled.jpg
    479.6 KB · Views: 97
I have a saved game for my mod and it crashes the next turn every time. If i delete a certain city it does not crash. I can't figure out why though. The city wont build anything in the next turn. I tried to change everything (changed buidling its building, specialists, plots it is working, delete units on that square) yet nothing fixes it except for removing the city. any ideas?
 
:dunno: has to be something in the .dll then, but it might as well be a Firaxis bug. BtS itself might crash due to such things, but very seldom.

Not firaxis, definatly the mod but great:mad: only thing i fant fix. nothing in the dll would do that though that can think of:confused:Advanced diplomacy, dcm and the ignore diplo option dont effect cities. I am assuming BBAI than but it is a user controlled city. But even if it is dll woudlnt something need to change? nothing n the city changes which is what is weird. you would think to crash on one turn versus the one before it would have to be different
 
Two possible things that can happen to a city from external sources:

Perhaps some other civ's unit is trying to use espionage there. Something related to that in the XML, DLL, or possibly Python could cause a crash.

If you are in a war, perhaps it is an air mission being done against the city. Doesn't DCM add several? Perhaps one of them has a bug in the DLL.
 
nope no wars and no spies are on that plot (wven if i delete city, next turn neither). Culture, great people, population, all that fun stuff isnt next turn either i do not get it.

Only thing i can think of is i have a python code that randomly picks city to give ancient wonder (1 in 15 chance each turn). Possibly that city keeps getting picked (since random seed isnt on) but idk what could be the error then. there is no python error and i checked all of the ancient wonders, all art is good including buttons.
 
How do you set up a Permanent Defensive Alliance in World builder between two or more civs?
 
Yeah I meant editing the worldbuilder file. Yes that seems logical for teams that are united from the start.

But what about the option of an alliance whereby it only comes into affect when one party is attacked.
 
<derp> found it, it was in a post I requested updating. :blush:
DefensivePactWithTeam= the list of teams that a defensive pact exists at the start of the game. This can be cancelled later unless permanent war peace is defined.
 
Quick Q: Which files needed to be edited to add a new Corporation? I edited BuildingInfos, UnitInfos, and CorporationInfo...but the game keeps crashing, so obviously something else is needed.
 
Whenever I build something new (new building, new units, new corporation, etc.) I use the art-define from whatever I used as a template, to avoid that problem. So it's not that. I guess I'll go back and see if there was anything else.
 
Back
Top Bottom