Hi all
I've been busy with the B5 Mod and have managed to get a few more events (some from C2C) added to the ones you had in.
So far I've successfully added in the following:-
I've also added in variations of the following events but have yet to see them fire off.
These are where I have run into a problem.
The event appears to fire and I have experienced one assault courtesy of the Huns variation but python keeps throwing out the following messages, which I am assuming means there is some C++ reference for the event.
Line 142 in Buffy is:-
Which is part of this whole section in Buffy:-
If this does require C++ coding then I'll have to remove the event as I have no C++ skill at all. If it's possible to resolve the issue without messing with C++ then I'm hoping someone that reads the FFP posts will be able to point me in the right direction or tell me what needs to be changed in order to get it to work.
Any help is greatly appreciated.
I've been busy with the B5 Mod and have managed to get a few more events (some from C2C) added to the ones you had in.
So far I've successfully added in the following:-
- Ion Storm event - destroys trade routes.
- Abundant World - Food bounty to help growth.
- Famine - Opposite of above.
- Faux Pas - Same as standard Civ event.
- The Huns - Same as standard event.
I've also added in variations of the following events but have yet to see them fire off.
- Tsunami - Modified to be a Meteor Strike (may need some Python Modification to make it work)
- Mining Accident - Same as standard event.
- Influenza - Similar to standard event.
- Best Defense - Same as standard event.
These are where I have run into a problem.
- The Huns - Same as standard event.
- The Vandals - Same as standard event.
- The Goths - Same as standard event.
- The Philistines - Same as standard event.
- The Vedic Aryans - Same as standard event.
The event appears to fire and I have experienced one assault courtesy of the Huns variation but python keeps throwing out the following messages, which I am assuming means there is some C++ reference for the event.
Line 142 in Buffy is:-
Code:
if (loopCity.canTrain(iCounterUnit, false, false, false, false)):
Which is part of this whole section in Buffy:-
Code:
# BUG - 3.17 - Start
if (GameUtil.isVersion(317)):
# rest indented but unchanged
# Can we build the counter unit?
iCounterUnitClass = gc.getInfoTypeForString('UNITCLASS_CRUISER_II')
iCounterUnit = gc.getCivilizationInfo(player.getCivilizationType()).getCivilizationUnits(iCounterUnitClass)
if iCounterUnit == -1:
return false
(loopCity, iter) = player.firstCity(false)
bFound = false
while(loopCity):
if (loopCity.canTrain(iCounterUnit, false, false, false, false)):
bFound = true
break
(loopCity, iter) = player.nextCity(iter, false)
if not bFound:
return false
# BUG - 3.17 - End
If this does require C++ coding then I'll have to remove the event as I have no C++ skill at all. If it's possible to resolve the issue without messing with C++ then I'm hoping someone that reads the FFP posts will be able to point me in the right direction or tell me what needs to be changed in order to get it to work.
Any help is greatly appreciated.