Jump to content


Photo

Level up buildings


  • Please log in to reply
21 replies to this topic

#21 FluffyHK47

FluffyHK47
  • New Members
  • 1 posts

Posted 15 November 2020 - 10:08 PM

The issue is that the upgrade's purchase counts as experience for the structure before enabling any upgrade. Since the Gondor Barracks have such a low exp requirement (400 as per patch 1.06) for Rank 2, the structure levels up before being granted the bonus level from the goodfactionbuildings.ini file.

 

Changing the LevelCap from 3 to 2 for the Level2 upgrade will fix the issue.

 

Spoiler

 

Another thing I discovered is that not having a "technology" to research and having two consecutive upgrades on the same structure (units too, I suppose) messes with how  the tooltip conditions are being handled. Long story short, you'll have to use LacksPrerequisiteLabel for the level 3 upgrade rather than the usual DescriptLabel.

 

Spoiler

 

If you're interested, I can post a detailed tutorial with some of the codes/tooltips I'm currently using. Fair warning, I'm using a gamedata.ini substitute and being rather thorough.

 



#22 romo2barber

romo2barber
  • New Members
  • 3 posts

Posted 18 November 2020 - 11:29 PM

First of all thank you for replying, I only just caught the reply because i didnt notice the 2nd page post.

 

Changing the LevelCap from 3 to 2 for the Level2 upgrade will fix the issue.

 

So I dont plan on publishing this mod, its for personal use only and as long as I can solve the skip level 2 for certain buildings issue then it's complete for my use-case. I will try your 2 suggestions and get back to you. I do really appreciate your willingness to help me.

 

edit: Made the changes and it works perfectly, thank you very much


Edited by romo2barber, 19 November 2020 - 11:51 AM.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users