Satrap's Court GA points

Zaldron

King
Joined
Jun 5, 2006
Messages
822
In v131 the bonus GA points from Satrap's Court appear to cap at 999, not accumulating any further beyond that point. This may very well be a vanilla bug in GA point accrual.
 
Could you clarify this a bit?

  • :c5goldenage: points stored towards next goldenage.
  • :c5goldenage: points needed for next goldenage.
  • :c5goldenage: point rate per turn.
Which one of these cannot pass 999?

Sure, the short answer is A, current GA points towards next GA.

Long answer: I was in a golden age attained normally. Satrap's Court usually adds 4 GA points per turn, and I had three of them so I would expect 12 additional GA points per turn even during a golden age.

What I actually observed is that this worked great for a long time, but once my current GA points (towards next GA) reached 999, I never gained any additional points towards a GA from my Satrap's Court, and in fact even once my golden age ended and a new one started (resetting the counter to a low number) they (Satrap) *still* weren't adding points to my now small total. Not only that but I *suspect* that it also stopped all CS functionality as well (culture and military almost for sure, less sure if maritime quit working).

All that said I'm no longer sure about the cause and effect. Did reaching 999 GA points break a bunch of VEM scripting? Or did something else happen that broke CSes and Satrap's Court at the same time, coincidental to me attaining 999 GA points. I might have a save but I can't get to it right now.
 
Hmm the code here is straightforward:
PHP:
Player_ChangeYieldStored(player, YieldTypes.YIELD_HAPPINESS, buildingInfo.InstantGoldenAgePoints)

function Player_ChangeYieldStored(player, yieldType, yield)
    ...
    elseif yieldType == YieldTypes.YIELD_HAPPINESS then
        player:ChangeGoldenAgeProgressMeter(yield)
It basically just passes the InstantGoldenAgePoints value into the (vanilla game core) ChangeGoldenAgeProgressMeter function. If there is indeed a problem here it'd be a vanilla bug. I think that's unlikely in this case.

Do any error messages appear in the tuner when you end your turn while this is happening? The mostly likely circumstance is a bug in code before this is halting the program, so it never gets to this, the most visible symptom of a different problem.
 
Well I installed fire tuner and found two saves - and the problem doesn't happen anymore in the reloaded saves so I guess we can call this closed.
 
If it does happen again, check the tuner. Nothing I'm aware of should limit goldenage points, so it's probably some other, more obscure bug preventing things from reaching the GA calculation. Most bugs report an error message to the tuner. :)
 
Back
Top Bottom