Sid Meier's Civilization VI

Sid Meier's Civilization VI

View Stats:
WoNDrOuS31 Jan 18, 2018 @ 11:24am
XP Bonus from Buildings LOST after Unit Upgrade???
I feel like my units lose the XP bonus from buildings (Barracks and such) after upgrade (i.e. Warrior to Swordsman).

Has anyone else noticed this or am I imagining things?
< >
Showing 1-5 of 5 comments
Drunk Demoman Jan 19, 2018 @ 10:33am 
Haven't played CIV 6 yet, will on sunday when I get my new PC. However, unless you have some elite unit with double attack, march, etc. I don't see why losing a few promotions is a huge deal. Most of the time (at least in 5), your early units are actually worse than the new ones you can make due to the milt buildings and wonders.

I can see why you'd be a bit irked by that though, a promotion is a promotion, after all. Will test on Sunday :o
jswilliams Jan 19, 2018 @ 11:49am 
He's talking about a melee/ranged unit trained at a Barracks get +25% xp, but he thinks that bonus is lost on upgrade.

It's a good question. I've given up mostly trying to sort my units by xp but not entirely. It would be cool if someone compiled a list of unit X does Y and Z is your exp, but I think there is also rounding up that happens over time. Cause sometimes I'm pretty sure a unit will get 4 xp for a ranged attack and then 5. And I've seen Scouts (Survey not active) get 8 xp for the deathblow on a Barbarian. Not sure if I've seen a Scout with Survey active get 16 xp for a deathblow.
WoNDrOuS31 Jan 22, 2018 @ 11:02am 
Thanks for the reply, jswilliams.

I do know about the rounding-up on XP from time to time.

The thing is, I've tried changing the XP gain values by fixing a few codes from base game, and the problem still exists. I have created a testing mod where I increased the XP bonus from Barracks from +25% to +300%, and by testing, it works pefectly... UNTIL the unit gets upgraded. 15XP from a single attack, all the way down to 4, 5XP again, never to go back.

I know the problem seems quite meager because, as far as I'm aware, most people enjoy Standard or quicker speed games, but I'm one of the few who only enjoy Marathon speed, so... yes, the XP bonus loss matters... a LOT. A unit needs 45XP to level up just once, for crying out loud.

I am not quite sure of the game's exact mechanics, but as I understand it, when one "Upgrades a Unit" the game effectively creates a new (upgraded version of the) unit on the same coordinates where it deletes the existing, pre-upgraded unit. This, of course, does not create a unit with the XP bonus because the game only modifies the XP gain when the unit is "trained from the city" where the XP bonus applies.

I have no idea how to fix this myself since I only have limited knowledge of XML, SQL, etc. and I don't know how to get to the actual codes that operate the "Modifiers" of the game...

Devs?? Are you hearing me???
WoNDrOuS31 Jan 22, 2018 @ 11:06am 
Originally posted by jswilliams:
And I've seen Scouts (Survey not active) get 8 xp for the deathblow on a Barbarian. Not sure if I've seen a Scout with Survey active get 16 xp for a deathblow.

Yeah, so that part is because the Game explicitly defines the XP values from attacking, defending, bonus XP gain from killing blows, etc. AND the max XP gain from a single action of a unit is explicitly defined to be "8". (Check the GlobalDefines.xml file. ^^)

I have changed that value to be "50" instead of "8" in my testing, by the way, which is how I was able to get my units to gain 15XP from a single attack.
jswilliams Jan 22, 2018 @ 12:04pm 
Ahhh limit of 8. Thanks. I play Marathon although and it's fun to grind Scouts up to Ambush, which makes them the best units in the game until Renaissance, then....Rifling...*shudder*
< >
Showing 1-5 of 5 comments
Per page: 1530 50

Date Posted: Jan 18, 2018 @ 11:24am
Posts: 5