Upgrade Button failing

Aristos

Lightseeker
Joined
Dec 11, 2001
Messages
3,912
Location
Deep inside...
Hi Thal,

I want to report a tiny yet annoying issue:

When playing with UoP only as of VEM120/122, no VEM, the Upgrade Unit button does not work.

When using full VEM (both components), the button works just fine. Something is wrong, as it should work with only UoP on.

Could you look into it? I couldn't find the bug.

thanks,
 
There was a post awhile back (weeks ago?) about upgrade button nonfunction; said the 'U' key worked.
(Just in case you were having actual in-game frustrations, not just bug reporting).
 
Yes, I noticed that. "U" still works, which points to the lua, but I couldn't find the error.

I just got used to the button. Not a big deal, but annoying, and I am sure easy to solve.
 
This is the error message:

Runtime Error: [string "C:\Users\xxxxxx\Documents\My Games\S..."]:99: FATAL UpdatePromotions PROMOTION_TRENCHES_1 does not exist in UnitPromotions!

I am using "partial" VEM, meaning that I disabled everything but Diplomacy and WWGD components (by using underscore in front of the others). I thought UoP is independent of VEM (but not the other way around), and that we could do this.

Any hint?
 
I experience the same problem. Took me a while to figure out it was not a compatibility problem with my mod.

The tuner does not display any error when clicking the button.
 
I just noticed yesterday that when using just CivUp, the upgrade button does start working once you've reached the Modern era.

Hope this info helps pinpoint where the mod coding error is.
 
CiVUP can be used without VEM, but components of each are interdependent. The trenches promotion is defined in the VEM/Armies component, so if that is disabled, other parts of VEM that rely on it won't work.
 
Well, no it can't be used. I tried one game with CivUP only and I see the same error: Upgrade button does not work. This is with latest everything (.511 and DLC's).
 
Ooh I understand now, thanks for the clarification. I'm looking into it right now.

Update: I believe I've found and fixed the problem for v126. The code for updating promotions when a unit upgrades now checks to make sure the promotion exists. :thumbsup:
 
Back
Top Bottom