Total War: WARHAMMER III

Total War: WARHAMMER III

Scrap Upgrade UI Framework
67 kommentarer
Judassem 20. aug. kl. 5:11 
Is this mod still needed or has CA fixed this issue?
Trident121 11. juli kl. 2:45 
Cannot see this mod in SFO as dwarfs. I Aldo have better Ui mod. Conflict?
Porkenstein 21. apr. kl. 13:34 
"If you are mod author, feel free to just credit this & insert these ui files directly into your own mod --- after all we are all doing free work for CA :-)"

You are the best, mr holder
BAGHolder  [ophavsmand] 2. apr. kl. 4:40 
updated to 6.1.

Briefly tested it works fine & the kislev invocation button is there.

If you still notice any issue, try resubscribe.
Pfleger Von Yggdrasill 1. apr. kl. 12:26 
I don't think dirty dan's mods work with this one, or is it need to be placed above this one?
Uryens 31. mar. kl. 16:14 
Not dwarf upgrades, any mod adding unit upgrades that requires this. And some that dont require it but have not been updated properly either.
karcen 30. mar. kl. 16:00 
Did the dwarf upgrades break or rather all of them the upgrade button vanished.
EliteGamer11388 30. mar. kl. 12:53 
Ugh, I hate when updates break mods. I get that updates are good, and a lot of times necessary, but not all modders return to update their work. Not saying this one will or won't, just some don't. There isn't really a good solution, other than waiting.
Jolc3r 30. mar. kl. 5:48 
Same here, kislev has a new army invocations that this mod overrides.
AkumulatoR 29. mar. kl. 3:08 
This mod breaks nukislev army invocations button by taking its place.
lechkingofdead 26. mar. kl. 14:13 
im here to let ya know to update ya mod file because thew game has updated and some mods have broken
mace_palframan 7. mar. kl. 14:32 
Wondering, if there is a dark elf one? Looked through the list, found everything but DE.
BAGHolder  [ophavsmand] 27. jan. kl. 9:54 
Pushed another minor update: hide the UI upgrade button for loaned-army (their units cannot be upgraded by player anyway).
BAGHolder  [ophavsmand] 27. jan. kl. 9:53 
@ViGabooo

Dwarf has no upgrade in vanilla --- should be the mod issue (whichever mod added the upgrade)

@Barmaley

You may ask Chop if he can make this compatible.
ViGabooo 26. jan. kl. 23:36 
i can't upgrade dwarf units, i have the resources (the currency not the oathgold) but i still can't upgrade with it the oathgold is fine.
Barmaley 26. jan. kl. 22:48 
A useful mod, but breaks "[Ui] Chop's 1080 Modpack Support | Compilation: 1920x1080 Res"
Tag_Ur_It--> 26. jan. kl. 15:45 
@BAGHolder thank you! I had to stop myself from playing cause I knew i'd just upgrade everything and it would be boring so thank you OP
BAGHolder  [ophavsmand] 26. jan. kl. 14:47 
@Tag_Ur_It-->

Thank you for reporting! I hope you saved your awesome run, because it is now patched :-)

Clan moulder is now excluded from using scrap upgrade. I guess they are supposed to always use flesh lab for upgrade.

The exploit happened because CA used the same db table for flesh lab & scrape upgrade..
BAGHolder  [ophavsmand] 26. jan. kl. 14:17 
@Backmechuisa

Thank you for the great solution!

Implemented & credited you in the description --- if you want to be added an author I am happy to do that too!

@Radious

The updated ui script now has the button hidden for factions without upgrade option.
akeean 20. jan. kl. 19:46 
GOAT. Why would CA restrict this all of a sudden...? There are so many more important things in the game that are broken by implementation or even as basic concept (sieges, butt ladders, actual siege and land battle maps, broken database tables, units not holding their weapons or with textures missing, wrong unit tags, diplomacy & trade, loads of quest battles, endgame crisis and an actual chaos invasion etc). Yeah but sure, make sure only greenskins and wood elves can use scrap mechanics.

I wonder if they get confused by bug reports of people trying to load old campaigns that ran scrap mods that CA's random breaking updates with minor actual improvements broke and they take that as signal as "scrap upgrade mods tend to cause instability to the game, lets better not have that as easily moddable"
Tag_Ur_It--> 15. jan. kl. 10:09 
I was able to add every scrap upgrade at the same time to any unit for free during a clan mouolder run. Is that normal?
Backmechuisa 14. jan. kl. 1:39 
Many modders will likely use your file as a basis to create upgrade unit mods, so I hope this modification proves helpful to many of them.
While working on compatibility using the file you provided, I came across this issue and sought to find a solution.
Thank you for your work and contribution.
Backmechuisa 14. jan. kl. 1:39 
Hey BAGHolder, thanks for your efforts.
However, the current visibility code in the hud_campaign.twui.xml file causes inactive buttons to appear even for factions that cannot upgradeable units.
So, I would recommend the following modification:
I’ve moved from the existing functionality of detecting upgradeable units into the VisibilitySetter condition.
This way, factions with upgradeable units will naturally have the button activated, while those without such units will have the button hidden naturally, without requiring additional options or Lua code.

--
context_function_id="IsContextValid(SelectedCharacter.MilitaryForceContext.FactionLoanedFromContext) == false">
--
from this.

--
context_function_id="Component("units", "main_units_panel").ForceContainsUpgradableUnits">

--
to this.
Mortrau 28. dec. 2024 kl. 19:05 
@BAGHolder Big thanks for this fix! Sadly that CA made this such way and forced us to seek for TWUI solutions.
Belial 22. dec. 2024 kl. 6:07 
@BAGHolder, thank you very much for your work.
I've already implemented your solution to my update of "Immortal Armouries".
Let me know if you want to be added as a contributor.
Thank you
Dante 22. dec. 2024 kl. 0:48 
For those of you using this Framework with Alternative Unit Cards by r1kko, here is a submod enabling compatibility between them so you will see r1kko's unit cards instead of CA's vanilla unit cards: https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3389219182 . Be warned that it does use AI 2x upscaling.
Dante 21. dec. 2024 kl. 20:28 
@Nanu Thanks for the incompatibility fix!
Avallac 21. dec. 2024 kl. 18:08 
Thank you.
Nanu 21. dec. 2024 kl. 16:38 
@BAGHolder Well each unit has several hundred potential upgrades the mod chooses from so it would get overwhelming fast lol
BAGHolder  [ophavsmand] 21. dec. 2024 kl. 15:57 
@Nanu

That is great, thank you very much for the efforts!

Now some people may miss the free upgrade :-)
Nanu 21. dec. 2024 kl. 8:57 
Patch is up. I no longer see Dynamic RoR effects on your UI. I think these mods work together now.
Nanu 21. dec. 2024 kl. 8:49 
@BAGHolder I think I found the issue. I was able to get some units to hide their effects by delaying the locking function. The rest were not getting locked due to changes in the prefixes that I forgot to update in the script. I'm uploading a patch soon that I hope will make these two mods compatible.
Milhojas 21. dec. 2024 kl. 7:28 
@Nanu and @BAGHolder, thanks for the update, I was worried something may be wrong
BAGHolder  [ophavsmand] 21. dec. 2024 kl. 4:37 
@Nanu

Thank you for the info!

Well, this mod only removed CA's check condition on culture (only greenskin & woodelf tree), and only changed two ui files...

Looks to me the script lock no longer works for the new UI. Not sure if it is possible to add such a condition in the ui files..

If nothing else, we can just say it is not meant to be used together due to the free lunch :-)
Dante 20. dec. 2024 kl. 14:03 
@Nanu thanks Nanu for the follow-up!
Nanu 20. dec. 2024 kl. 13:49 
@BAGHolder The upgrades my mod uses aren't meant to be purchasable. I use the following line of code to lock all effects added by my mod:

cm:faction_set_unit_purchasable_effect_lock_state(faction, effect, "", true);

This worked for the vanilla UI that CA removed. I haven't looked at your mod yet but I imagine it would be simple to create a patch that checks for my effects (I use a standard prefix for all of them to ensure any that aren't locked or are added by submods get locked on game load) and doesn't add them to your UI. I'll take a look this weekend
BAGHolder  [ophavsmand] 20. dec. 2024 kl. 13:36 
@Dante

Thank you for the information!
I didn't know that...most mods out there restricts upgrade using money + resource..
Dante 20. dec. 2024 kl. 12:31 
If anybody was wondering why you could buy unit upgrades for free right off the bat for these factions including Ogres and Skaven, its due to a incompatibility with Nanu's Dynamic Regiments of Renown . The framework inadvertently exposes Nanu's upgrades for free for those factions.
BAGHolder  [ophavsmand] 19. dec. 2024 kl. 15:19 
@Iconomy

Cannot be the UI mod. Must be some other mod adding upgrades.
Iconomy 19. dec. 2024 kl. 10:22 
Not sure if this is due to your mod or the dynamic ROR mod or the Wood Elf upgrades mod, but playing as Khorne I was able to upgrade units to any ROR variant for free from the scrap menu
BAGHolder  [ophavsmand] 19. dec. 2024 kl. 5:27 
@Huppias

Do you mean the UI file for his army skills?

You can use context viewer to find out (just google "wh3 context viewer").
Huppias 18. dec. 2024 kl. 17:52 
Boss, do you know where the demon Prince's random army skills are?
BAGHolder  [ophavsmand] 18. dec. 2024 kl. 8:38 
@Radious

Hi Radious! I don't see a direct way to limit the button appearance ... would do if I can.


This is controlled by the "hud_campaign.twui.xml" file under data.pack.
On line 12269, CA limits the button by an if condition for greenskin culture, or Drycha or argwylon.

I simply removed those conditions -- which makes the button appear for every race.


I don't see an easy way to verify if a race has scrap upgrade or not, because it is only coded in UI file only, not any db table entry.

Alternatively, one can add more "or condition" to include any specific culture / faction they wish.
BAGHolder  [ophavsmand] 18. dec. 2024 kl. 8:38 
@Synthetic Man

Not a problem at all --- feel free to do so, see the last section.
Synthetic Man 18. dec. 2024 kl. 4:08 
Hello hello! We have figured out how to tweak it slightly and restrict it to specific factions only. Is it okay if we incorporate a modified version of your framework into our mod? With full credits of course.
Radious 17. dec. 2024 kl. 20:52 
Good day. Thank you for this fix. Is it possible to hide upgrade icon for all other races which do not have upgrades enabled? It will confuse a lot people to see it on every race when we for example did upgrades for other 3 only.
Ubermorgen 15. dec. 2024 kl. 10:23 
Great work! It's sad that modders have to fix stuff like that though.
nullmana 15. dec. 2024 kl. 9:46 
Thanks a lot for your framework. you just saved my weekend fixing my mod :)
Huppias 15. dec. 2024 kl. 7:11 
@BAGHolder Yes, CA doesn't have some large unit cards to draw, Add to ui => units => infopics
BAGHolder  [ophavsmand] 15. dec. 2024 kl. 4:33 
@Huppias

I think it is because CA didn't do large unit cards for some units, so it default to greenskin infantry --- just let it be :-)