Alpha Centauri 2

Sid Meier's Alpha Centauri & Alien Crossfire => Modding => Bug/Patch Discussion => Topic started by: Lord Avalon on June 30, 2014, 05:55:15 AM

Title: Bug? I built Citizens Defense Force, but Base can Scrap Perimeter Defense
Post by: Lord Avalon on June 30, 2014, 05:55:15 AM
I built Morgan Energy Monopoly on the SE coast of my starting continent. Later I saw "*Perimeter Defense" in my facilities list, like it had built one - except that I had already built the Citizens Defense Force, and this base did not actually build a Perimeter Defense, so it shouldn't be able to scrap it.

Since I didn't notice this right away, I don't know if these saves are any good (I had to go back 20 and 30 turns).
Title: Re: Bug? I built Citizens Defense Force, but Base can Scrap Perimeter Defense
Post by: Nexii on June 30, 2014, 12:39:40 PM
Might be the free perimeter defense on capture of hive base bug?  I think I've seen this recurring although Yitzi had fixed this in a previous patch.  can't confirm though yet
Title: Re: Bug? I built Citizens Defense Force, but Base can Scrap Perimeter Defense
Post by: Yitzi on June 30, 2014, 03:15:48 PM
Essentially, that star means the game thinks you did build one.  Most likely it is (as Nexii said) due to the "free PD on capture of hive base" bug, which I have not managed to fix.  And a savegame that doesn't let me reproduce the bug isn't going to be very helpful.
Title: Re: Bug? I built Citizens Defense Force, but Base can Scrap Perimeter Defense
Post by: Lord Avalon on June 30, 2014, 08:56:21 PM
So when I captured a Hive base, one of my bases got a Perimeter Defense?
Title: Re: Bug? I built Citizens Defense Force, but Base can Scrap Perimeter Defense
Post by: Geo on June 30, 2014, 09:01:54 PM
So when I captured a Hive base, one of my bases got a Perimeter Defense?

That's the bug. :hunter:
Title: Re: Bug? I built Citizens Defense Force, but Base can Scrap Perimeter Defense
Post by: Lord Avalon on June 30, 2014, 10:31:43 PM
Essentially, that star means the game thinks you did build one.  Most likely it is (as Nexii said) due to the "free PD on capture of hive base" bug, which I have not managed to fix.  And a savegame that doesn't let me reproduce the bug isn't going to be very helpful.
Sorry. Here's a save where I'm about to take People's Endeavor and wipe out Yang - and another save where I sabotaged the PD first. I noticed that getting a free PD doesn't always happen.


Is it related to having the Citizen's Defense Force?
Title: Re: Bug? I built Citizens Defense Force, but Base can Scrap Perimeter Defense
Post by: Yitzi on July 01, 2014, 04:12:36 AM
Essentially, that star means the game thinks you did build one.  Most likely it is (as Nexii said) due to the "free PD on capture of hive base" bug, which I have not managed to fix.  And a savegame that doesn't let me reproduce the bug isn't going to be very helpful.
Sorry. Here's a save where I'm about to take People's Endeavor and wipe out Yang - and another save where I sabotaged the PD first. I noticed that getting a free PD doesn't always happen.


Is it related to having the Citizen's Defense Force?

Shouldn't be related to the CDF.  Let me check out the save...
Title: Re: Bug? I built Citizens Defense Force, but Base can Scrap Perimeter Defense
Post by: Yitzi on July 01, 2014, 04:39:03 AM
Well, that save provided enough information to find the procedure responsible.  Now I have to figure out what's actually going on...
Title: Re: Bug? I built Citizens Defense Force, but Base can Scrap Perimeter Defense
Post by: Yitzi on July 01, 2014, 06:26:42 AM
Ok, I found the bug and know how to fix it...or would, except that there are two possibilities of what's supposed to happen.  I'll post a poll regarding which it should be.

EDIT: I examined a bit more and have reached a conclusion: What's supposed to happen is that the conquered base loses the perimeter defense, and there are actually four bugs, two due to a poor copy-paste, the third (and most important) probably due to a confusion of variables, and the fourth a simple oversight that isn't relevant without modding (but once the others are fixed, could cause a sea base to lack a pressure dome under the wrong conditions).  I'm in the middle of patch 3.1 so I can't post a fix now, but it'll be included in 3.1.
Templates: 1: Printpage (default).
Sub templates: 4: init, print_above, main, print_below.
Language files: 4: index+Modifications.english (default), TopicRating/.english (default), PortaMx/PortaMx.english (default), OharaYTEmbed.english (default).
Style sheets: 0: .
Files included: 31 - 840KB. (show)
Queries used: 15.

[Show Queries]