全軍破敵:戰鎚3

全軍破敵:戰鎚3

Scrap Upgrade UI Framework
68 則留言
Louie04k 8 月 24 日 上午 7:02 
why does the upgrasde button sometimes show and other times not when clicking on an army?
Judassem 8 月 20 日 上午 5:11 
Is this mod still needed or has CA fixed this issue?
Trident121 7 月 11 日 上午 2:45 
Cannot see this mod in SFO as dwarfs. I Aldo have better Ui mod. Conflict?
Porkenstein 4 月 21 日 下午 1: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  [作者] 4 月 2 日 上午 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 4 月 1 日 下午 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 3 月 31 日 下午 4: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 3 月 30 日 下午 4:00 
Did the dwarf upgrades break or rather all of them the upgrade button vanished.
EliteGamer11388 3 月 30 日 下午 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 3 月 30 日 上午 5:48 
Same here, kislev has a new army invocations that this mod overrides.
AkumulatoR 3 月 29 日 上午 3:08 
This mod breaks nukislev army invocations button by taking its place.
lechkingofdead 3 月 26 日 下午 2:13 
im here to let ya know to update ya mod file because thew game has updated and some mods have broken
mace_palframan 3 月 7 日 下午 2:32 
Wondering, if there is a dark elf one? Looked through the list, found everything but DE.
BAGHolder  [作者] 1 月 27 日 上午 9:54 
Pushed another minor update: hide the UI upgrade button for loaned-army (their units cannot be upgraded by player anyway).
BAGHolder  [作者] 1 月 27 日 上午 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 1 月 26 日 下午 11: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 1 月 26 日 下午 10:48 
A useful mod, but breaks "[Ui] Chop's 1080 Modpack Support | Compilation: 1920x1080 Res"
Tag_Ur_It--> 1 月 26 日 下午 3: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  [作者] 1 月 26 日 下午 2: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  [作者] 1 月 26 日 下午 2: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 1 月 20 日 下午 7: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--> 1 月 15 日 上午 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 1 月 14 日 上午 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 1 月 14 日 上午 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 2024 年 12 月 28 日 下午 7:05 
@BAGHolder Big thanks for this fix! Sadly that CA made this such way and forced us to seek for TWUI solutions.
Belial 2024 年 12 月 22 日 上午 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 2024 年 12 月 22 日 上午 12: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 2024 年 12 月 21 日 下午 8:28 
@Nanu Thanks for the incompatibility fix!
Avallac 2024 年 12 月 21 日 下午 6:08 
Thank you.
Nanu 2024 年 12 月 21 日 下午 4:38 
@BAGHolder Well each unit has several hundred potential upgrades the mod chooses from so it would get overwhelming fast lol
BAGHolder  [作者] 2024 年 12 月 21 日 下午 3:57 
@Nanu

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

Now some people may miss the free upgrade :-)
Nanu 2024 年 12 月 21 日 上午 8:57 
Patch is up. I no longer see Dynamic RoR effects on your UI. I think these mods work together now.
Nanu 2024 年 12 月 21 日 上午 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 2024 年 12 月 21 日 上午 7:28 
@Nanu and @BAGHolder, thanks for the update, I was worried something may be wrong
BAGHolder  [作者] 2024 年 12 月 21 日 上午 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 2024 年 12 月 20 日 下午 2:03 
@Nanu thanks Nanu for the follow-up!
Nanu 2024 年 12 月 20 日 下午 1: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  [作者] 2024 年 12 月 20 日 下午 1:36 
@Dante

Thank you for the information!
I didn't know that...most mods out there restricts upgrade using money + resource..
Dante 2024 年 12 月 20 日 下午 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  [作者] 2024 年 12 月 19 日 下午 3:19 
@Iconomy

Cannot be the UI mod. Must be some other mod adding upgrades.
Iconomy 2024 年 12 月 19 日 上午 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  [作者] 2024 年 12 月 19 日 上午 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 2024 年 12 月 18 日 下午 5:52 
Boss, do you know where the demon Prince's random army skills are?
BAGHolder  [作者] 2024 年 12 月 18 日 上午 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  [作者] 2024 年 12 月 18 日 上午 8:38 
@Synthetic Man

Not a problem at all --- feel free to do so, see the last section.
Synthetic Man 2024 年 12 月 18 日 上午 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 2024 年 12 月 17 日 下午 8: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 2024 年 12 月 15 日 上午 10:23 
Great work! It's sad that modders have to fix stuff like that though.
nullmana 2024 年 12 月 15 日 上午 9:46 
Thanks a lot for your framework. you just saved my weekend fixing my mod :)
Huppias 2024 年 12 月 15 日 上午 7:11 
@BAGHolder Yes, CA doesn't have some large unit cards to draw, Add to ui => units => infopics