logo   login
right
Home Forums Downloads Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Forum Info
Forum Members: 18,677
Total Threads: 8,798
Posts: 95,843

Administrators:
DeeZire, Redemption

There are currently 33 users online.
Partner Links

Free Credit Repair

Learn the Ticket Broker Secrets
Advertisements


Generals & Zero Hour Editing Discuss any modding related issues to do with Generals and Zero Hour here.

Reply
 
LinkBack Thread Tools
Old 02-16-2004, 05:30 PM   #1 (permalink)
Junior Member
 
Join Date: Feb 2003
Location: Russia
Posts: 4
Default Limit in 128 upgrades. Help!

People prompt how to pass limit in 128 upgrades in CnC generals ZH???
froniki is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-16-2004, 05:51 PM   #2 (permalink)
Senior Member
 
Join Date: Jun 2003
Location: Texas
Posts: 709
Send a message via ICQ to Vanguard Send a message via AIM to Vanguard Send a message via MSN to Vanguard Send a message via Yahoo to Vanguard
Default

It says LIMIT. Meaning you can't go higer than that.
Vanguard is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-16-2004, 06:26 PM   #3 (permalink)
Junior Member
 
Join Date: Feb 2003
Location: Russia
Posts: 4
Default

I need to up it to maybe 512
and i need to know how can i do it?
froniki is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-16-2004, 06:27 PM   #4 (permalink)
Senior Member
 
Join Date: May 2003
Location: Eindhoven, Netherlands
Posts: 2,278
Send a message via ICQ to CodeCat Send a message via MSN to CodeCat
Default

You can't. There's a limit for a reason...
CodeCat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-16-2004, 06:37 PM   #5 (permalink)
Junior Member
 
Join Date: Feb 2003
Location: Russia
Posts: 4
Default

It bad very bad.....
froniki is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-16-2004, 06:55 PM   #6 (permalink)
Administrator
 
DeeZire's Avatar
 
Join Date: Dec 2002
Posts: 1,913
Send a message via ICQ to DeeZire
Default

Its not strictly a limit, its to do with 'bitwise functions'.

Each object (and in this case its properties) is stored in RAM as a binary string like this;-

0010100101001010

Each digit represents a property of the object, and some of those digits represent possible upgrade options. Where the digit is '1', the object has that property. Where the digit is '0' it doesnt. When you upgrade an object, you change the digit from '0' to '1'. Removing the upgrade changes the digit to '0'.

In programming terms, you take the binary string and perform a 'bitwise logical OR' on it. So, if the upgrade for 'extra armor' is this;-

0000000000000001

...and your object properties is this;-

0000000000101010

...then a logical OR will produce this;-

0000000000101011

... in other words, your object properties now gain the 'extra armor'.

Theres the programming lesson over with, what that means is that theres only so many possible combinations with which you can perform those functions in Zero Hour because of the way in which upgrades are stored as binary strings - and that limit is 128 (7 bits).

In simple terms - you cant have more than 128 but now you know why
DeeZire is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-16-2004, 11:00 PM   #7 (permalink)
Senior Member
 
Join Date: Mar 2003
Location: northeastern USA
Posts: 133
Default

great response deezire
MisterGoid is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-17-2004, 04:45 AM   #8 (permalink)
Senior Member
 
Join Date: May 2003
Location: Eindhoven, Netherlands
Posts: 2,278
Send a message via ICQ to CodeCat Send a message via MSN to CodeCat
Default

And KindOfs work the same way, just for your information. That's why you can't add any. And DamageTypes and DeathTypes probably work the same way too.
CodeCat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-17-2004, 06:13 AM   #9 (permalink)
Senior Member
 
Join Date: Dec 2002
Posts: 1,031
Send a message via ICQ to Phoib Send a message via MSN to Phoib
Default

Quote:
Originally Posted by DeeZire
Theres the programming lesson over with, what that means is that theres only so many possible combinations with which you can perform those functions in Zero Hour because of the way in which upgrades are stored as binary strings - and that limit is 128 (7 bits).

In simple terms - you cant have more than 128 but now you know why
Or: Your total number of upgrades is 128. Which doesn't mean that each upgrade has to be tied to a single unit, so combining them using the same logic twice (so each upgrades gives an extra to 2 units) every time gets it to 256 upgrades for the total number of objects.

Just use more global upgrades, and you won't run into that limit too soon.
Phoib is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 02-17-2004, 07:05 PM   #10 (permalink)
Senior Member
 
Join Date: Jun 2003
Location: Texas
Posts: 709
Send a message via ICQ to Vanguard Send a message via AIM to Vanguard Send a message via MSN to Vanguard Send a message via Yahoo to Vanguard
Default

Exactly.
Vanguard is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bridge Limit? AntiSocialKindaGuy Generals & Zero Hour Editing 7 10-13-2005 09:21 PM
Need Help - Upgrades + Buildings requiring upgrades to build Azad0r LOTR: Battle For Middle Earth I & II Editing 5 01-02-2005 05:37 AM
upgrades limit prob..., i got 126 but lim 128 right???? S0L0 Generals & Zero Hour Editing 16 12-27-2004 04:25 PM
Map Limit ? adamstrange Generals & Zero Hour Editing 1 08-20-2004 04:00 AM
upgrades limit damo1 Generals & Zero Hour Editing 7 12-22-2003 12:12 PM


All times are GMT -4. The time now is 05:00 AM.


Design By: Miner Skinz.com
Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.