1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

buildFighter in Events?

Discussion in 'Civ4 - Road to War' started by wotan321, Sep 14, 2007.

  1. wotan321

    wotan321 Chieftain

    Joined:
    Oct 25, 2001
    Messages:
    1,218
    Location:
    NC, USA
    I am having a crash a few turns in.

    I have edited the mod, but I am hoping you can give me some insight into how I can fix the part I have broken. Here is what I get in my PythonErr.log
    I have added UUs, a few techs, some new events.

    It loads fine, plays about 4 or 5 turns, then I get a CTD that blames the main EXE file.

    What does the buildFighter module do? What would be the effect of editing it out of the CvRtWEventManager? Can I cure this problem while leaving it in?

    I know I don't provide all the info you may need, but any help would be appreciated.
     
  2. Dale

    Dale Chieftain

    Joined:
    Mar 14, 2002
    Messages:
    6,986
    Did you change any fighters?

    Anyways, I'll tell you what it does:
    It helps the AI to have a decent airforce. A small cheat if you will. ;)

    You can disable it totally by deleting the following lines from near the top of that python file:
    Code:
                    # Fighters
                    if (self.Map < 99):
                            for i in range(gc.getMAX_CIV_PLAYERS()):
                                self.buildFighter(i)
    
     
  3. wotan321

    wotan321 Chieftain

    Joined:
    Oct 25, 2001
    Messages:
    1,218
    Location:
    NC, USA
    Thanks, I did that. I never could figure out WHY those lines caused a problem, it is doubtless some change I made that hosed it for me.
     
  4. wotan321

    wotan321 Chieftain

    Joined:
    Oct 25, 2001
    Messages:
    1,218
    Location:
    NC, USA
    Dale,

    I wasn't able to figure out the problem with the Python that was crashing the mod for me. As mentioned, I simply ## out the lines for the BuildFighter stuff. I simply went back and halved the cost of all fighters to see if that would make a difference. Later on, I noticed my neighbors had 3 or 4 fighters circling each city, so I guess my little change helped. Every civ was not doing it, but some were, making bombing very costly for me.
     
  5. Gwynin

    Gwynin Chieftain

    Joined:
    Sep 6, 2007
    Messages:
    118
    Some testing games Ive been playing with beta 3 Ive seen cities with 15+ fighters on intercept, needless to say that my airfoce only was used for defense :)
     

Share This Page