24.11.2005, 07:02:00
OK, Wrath you're somewhat right. Thanks a lot to DCoder for this, we were discussing it and it popped out
All I did was to include all the campaign-created buildings (from Allied missions 1,3, and 6 and Soviet missions 1 and 3) into my rules file. Their BuildingType list entries come right aafter the default ones, then my mod's new buildings come after the campaign ones. This ensures (mostly) that the campaign buildings that are created have the correct parameters.
However, another edit was required to get the Soviet campaign to work (actually, the Soviet campaign is still under testing but Allied campaign works): Soviet Mission 1 is the only mission in the game where the triggers that effect mission completion are dependent on the buildings the mission creates. Thus, I (DCoder, lol) had to edit the indices of these triggers to refer to the correect BuildingTypes. Soviet mission 1 is now completeable, but as I just said, the rest of it is under testing.
@particle: just wait a little longer, it's not long now
All I did was to include all the campaign-created buildings (from Allied missions 1,3, and 6 and Soviet missions 1 and 3) into my rules file. Their BuildingType list entries come right aafter the default ones, then my mod's new buildings come after the campaign ones. This ensures (mostly) that the campaign buildings that are created have the correct parameters.
However, another edit was required to get the Soviet campaign to work (actually, the Soviet campaign is still under testing but Allied campaign works): Soviet Mission 1 is the only mission in the game where the triggers that effect mission completion are dependent on the buildings the mission creates. Thus, I (DCoder, lol) had to edit the indices of these triggers to refer to the correect BuildingTypes. Soviet mission 1 is now completeable, but as I just said, the rest of it is under testing.
@particle: just wait a little longer, it's not long now