Posted by: matthewandnathan - Thursday, February 5, 2015 12:20:21 AM
I tried to add a new upgrade object to the upgrade ini file, but when I ran the game it crashed. The worldbuilder bug finder said I had too many ugrades. What does that mean, and how do I get around it?[question]
Posted by: Rrtaya_tsamsiyu - Thursday, February 5, 2015 1:20:53 AM
You can only put 128 upgrades into the game. There's a complex way you can get around it but it makes capturing structures an issue
Posted by: klingondragon - Thursday, February 5, 2015 2:10:37 AM
Just remove one of the many redundant upgrades to make room for your upgrade.
Posted by: matthewandnathan - Thursday, February 5, 2015 4:26:57 AM
What is a redundant upgrade?
What is the complex workaround?
Posted by: klingondragon - Thursday, February 5, 2015 6:41:03 AM
An upgrade which was planned for the game but never actually used
Look through the list and see if you can find an upgrade which was never put in and replace it with yours
Posted by: UTD^Force - Thursday, February 5, 2015 7:19:01 AM
As I guess a redundant upgrade is an upgrade which you don't need.
Complex workaround, it is a complicated thing to do, I have never understood the way he mentioned. I think it was explained in the topic "Tricks & Tips in modding".
There could be something wrong with your upgrade, try checking it twice or removing unnecessary, unneeded, unwanted upgrades and check if that solves the problem.
EDIT: It looks like when I posted, Klingon had posted before me :)
Posted by: Annihilationzh - Thursday, February 5, 2015 4:23:20 PM
Another common technique is to have semi-similar upgrades for different factions, and have them do different things.
E.G. The black napalm upgrade could easily be reused as a USA or GLA upgrade for anything fire related. Only the picture and price will be the same, so you can completely change the description. You can even have a different picture on the button than on the queued picture.
Posted by: Gameanater - Thursday, February 5, 2015 5:58:40 PM
[quote=Annihilationzh;136083]Another common technique is to have semi-similar upgrades for different factions, and have them do different things.
E.G. The black napalm upgrade could easily be reused as a USA or GLA upgrade for anything fire related. Only the picture and price will be the same, so you can completely change the description. You can even have a different picture on the button than on the queued picture.[/quote]
That, AZH, is actually quite brilliant.
Ironically though I've sort of done this before. I'm going to go off-topic briefly just to ramble about it. xD
-------------------------
Let's say you want an armor upgrade for the China Tank General's tanks.
Rather than create a whole new one, just take the Composite Armor upgrade from the USA and copy that Command Button to the Propaganda Center's Command Set. Then add the necessary code to the tanks you want for the upgrade to take effect.
Yes, this will mean you have the Crusader saying "Composite Armor installed, sir" when the upgrade is done. You can't get the voice changed without either changing the voice used for the existing upgrade or creating another version of the Composite Armor upgrade that uses a different voice when it's done researching, but the latter would completely defeat the purpose of re-using upgrades and wouldn't really be re-using upgrades at all.
----------------------------
Back to the topic....
Bypassing the hardcoded upgrade limit:
http://www.cnclabs.com/forums/cnc_postst11604_Tips-and-Tricks.aspx
[quote=Ail-Shan]...in case you want to go over the 128 upgrade limit, you can use objects. Basically build an invulnerable unit with no art parameters (so nothing will be drawn) that uses the GrantUpgradeCreate behavior. In my case, this allows Tank General and Airforce general to use a set of 16 upgrades (Upgrade_TechTreeX_Y where X and Y are between 1 and 4) to unlock various unit, upgrades and sciences. Or Airforce and Stealth generals can get Laser Missiles and AP Rockets respectively, but both use Upgrade_MissileDamage. The only problem is that you shouldn't allow the player to capture other generals' buildings, since one upgrade may have two very different costs depending on the general using it. You may be able to work your way around such problems, but I don't think it's worth the effort.[/quote]
TBH, I do find it hard to understand this, as it is at level of modding far higher than my current expertise, but this the best explaination I've found so far...
-------------------------------------------
[quote]Only the picture and price will be the same, so you can completely change the description. You can even have a different picture on the button than on the queued picture.[/quote]
May I ask how you're going to get different descriptions for the same upgrade without creating a different version of the upgrade? I've never figured that out.
Posted by: UTD^Force - Thursday, February 5, 2015 7:35:59 PM
@ Gameanater's last question, make a different command button with different description, name & picture with the same upgrade for each use ;)
Posted by: Gameanater - Thursday, February 5, 2015 7:45:24 PM
[quote=UTD^Force;136088]...make a different command button with different description, name & picture with the same upgrade for each use ;)[/quote]
I must not remember how upgrades work. I thought they were Command Buttons that would just take a specific amount of time to "research" for lack of better terms.
For example, the Tank General's Nuclear Tanks upgrade, it has a slightly differant description than the vanilla Chinese upgrade, but I thought it was a separate upgrade... Which would defeat the purpose of re-using an existing upgrade.
I obviously don't remember this correctly or something.
Posted by: UTD^Force - Thursday, February 5, 2015 8:56:07 PM
I've just read the way again (to have more than 128 upgrades), and it looks like it's easy, I've just gotten it.
Unnecessary off-topic thing, the past participle of get can be one of these two, got or gotten.
Posted by: Gameanater - Thursday, February 5, 2015 8:59:03 PM
[quote=UTD^Force;136097]Unnecessary off-topic thing, the past participle of get can be one of these two, got or gotten.[/quote]
.... And?
Posted by: UTD^Force - Thursday, February 5, 2015 9:06:03 PM
*. . .*
Posted by: Rrtaya_tsamsiyu - Thursday, February 5, 2015 11:20:50 PM
[quote]I've just read the way again (to have more than 128 upgrades), and it looks like it's easy, I've just gotten it.[/quote]
The hard part is making it ok to capture buildings, from what Ail-Shan said. Something about the price. But, if different upgrades had the same price then it seems it would be ok.
Posted by: UTD^Force - Friday, February 6, 2015 4:03:24 AM
[quote=Rrtaya_tsamsiyu;136100][quote]I've just read the way again (to have more than 128 upgrades), and it looks like it's easy, I've just gotten it.[/quote]
The hard part is making it ok to capture buildings, from what Ail-Shan said. Something about the price. But, if different upgrades had the same price then it seems it would be ok.[/quote]
Exactly :)
Posted by: Annihilationzh - Friday, February 6, 2015 11:00:33 AM
[quote=Rrtaya_tsamsiyu;136100][quote]The hard part is making it ok to capture buildings, from what Ail-Shan said. Something about the price. But, if different upgrades had the same price then it seems it would be ok.[/quote]
IMO, if you've managed to capture an enemies tech building, you deserve to be able to buy your upgrades cheaper.