matthewandnathan
11 years ago
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?❓
"Overlord Moving."
Sponsor
Rrtaya_tsamsiyu
11 years ago
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
one soul at a time
klingondragon
11 years ago
Just remove one of the many redundant upgrades to make room for your upgrade.
matthewandnathan
11 years ago
What is a redundant upgrade?
What is the complex workaround?
"Overlord Moving."
klingondragon
11 years ago
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
UTD^Force
11 years ago
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 🙂
A Muslim, ask me anything about Islam if you want
UTD^Force
Moderator and former map reviewer
Big fan of C&C Labs
Annihilationzh
11 years ago
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.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.
Gameanater
11 years ago

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.

Originally Posted by: Annihilationzh 



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 

...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.

Ail-Shan wrote:



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...



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.



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.
Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
UTD^Force
11 years ago
@ Gameanater's last question, make a different command button with different description, name & picture with the same upgrade for each use 😉
A Muslim, ask me anything about Islam if you want
UTD^Force
Moderator and former map reviewer
Big fan of C&C Labs
Gameanater
11 years ago

...make a different command button with different description, name & picture with the same upgrade for each use ;)

Originally Posted by: UTD^Force 




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.
Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
UTD^Force
11 years ago
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.
A Muslim, ask me anything about Islam if you want
UTD^Force
Moderator and former map reviewer
Big fan of C&C Labs
Gameanater
11 years ago

Unnecessary off-topic thing, the past participle of get can be one of these two, got or gotten.

Originally Posted by: UTD^Force 



.... And?

Any old friends still on here can add me on discord @jcdenton2187. I'm far more likely to respond there.
UTD^Force
11 years ago
*. . .*
A Muslim, ask me anything about Islam if you want
UTD^Force
Moderator and former map reviewer
Big fan of C&C Labs
Rrtaya_tsamsiyu
11 years ago

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.



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.
one soul at a time
UTD^Force
11 years ago

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.

Originally Posted by: Rrtaya_tsamsiyu 



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.



Exactly 🙂
A Muslim, ask me anything about Islam if you want
UTD^Force
Moderator and former map reviewer
Big fan of C&C Labs
Annihilationzh
11 years ago

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.

Originally Posted by: Rrtaya_tsamsiyu 


IMO, if you've managed to capture an enemies tech building, you deserve to be able to buy your upgrades cheaper.
If you need help, post in the forum. You'll get help a lot faster than if you send me a PM.

I reject all buddy requests. I don't think 'buddy' needs to be made official. It's not like you're marrying me.