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

Forum Info
Forum Members: 18,617
Total Threads: 8,723
Posts: 95,213

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 01-06-2004, 06:40 AM   #1 (permalink)
Junior Member
 
Join Date: Nov 2003
Posts: 15
Default adding units ZH

i try to clone the crusader tank the problem is the button is grey and i can't build the clone unit



Code:
Object AmericaTankCrusaderII
Code:
CommandSet AmericaWarFactoryCommandSet
  1  = Command_ConstructAmericaTankCrusader
  2  = Command_ConstructAmericaVehicleTomahawk
  3  = Command_ConstructAmericaVehicleHumvee
  4  = Command_ConstructAmericaVehicleMedic
  5  = Command_ConstructAmericaVehiclePaladin
  6  = Command_ConstructAmericaVehicleSentryDrone
  7  = Command_ConstructAmericaVehicleAvenger
  8  = Command_ConstructAmericaVehicleMicrowave
  9  = Command_UpgradeAmericaSentryDroneGun
  10 = Command_ConstructAmericaTankCrusaderII
  11 = Command_UpgradeAmericaTOWMissile
  13 = Command_SetRallyPoint
  14 = Command_Sell
End
Code:
CommandButton Command_ConstructAmericaTankCrusaderII
  Command       = UNIT_BUILD
  Object        = AmericaTankCrusaderII
  TextLabel     = CONTROLBAR:ConstructAmericaTankCrusaderII
  ButtonImage   = SACLeopard
  ButtonBorderType        = BUILD ; Identifier for the User as to what kind of button this is
  DescriptLabel           = CONTROLBAR:ToolTipUSABuildCrusaderII
End
rswar is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-06-2004, 09:59 AM   #2 (permalink)
Senior Member
 
Join Date: Jul 2003
Location: Germany
Posts: 303
Default

The code for the commandset and the commandbutton seems to be correct IMO. I am not sure but check your code for "Object AmericaTankCrusaderII". Maybe you edited:

Code:
Prerequisites
    Object = AmericaWarFactory
Just post the Code for "Object AmericaTankCrusaderII". Maybe I'll see the error.
2312222 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-06-2004, 10:59 AM   #3 (permalink)
Junior Member
 
Join Date: Nov 2003
Posts: 15
Default

Quote:
Originally Posted by 2312222
The code for the commandset and the commandbutton seems to be correct IMO. I am not sure but check your code for "Object AmericaTankCrusaderII". Maybe you edited:

Code:
Prerequisites
    Object = AmericaWarFactory
Just post the Code for "Object AmericaTankCrusaderII". Maybe I'll see the error.
the Object AmericaTankCrusaderII code is the same as the Object AmericaTankCrusader code

only a difrent name
rswar is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-07-2004, 07:05 AM   #4 (permalink)
Junior Member
 
Join Date: Nov 2003
Posts: 15
Default

found out that ZH don't load My Extractet
AmericaVehicle.ini
The Directory is correct
The CommandSet.ini and CommandButton.ini are working Correct
rswar is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-07-2004, 11:11 AM   #5 (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

If a build button is grey it means the game can't find the object the command button is referring to, because it doesn't exist (i.e. is not defined). Rather than giving you an error (although I would prefer that) it does this. And your vehicle doesn't exist because AmericaVehicle.ini does not load (you found that out), probably because it's not in the right place even though you think it is. It should go in ZH/Data/INI/Object, if it's not there put it there, problem solved. Otherwise, no idea.
CodeCat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-07-2004, 02:07 PM   #6 (permalink)
Junior Member
 
Join Date: Nov 2003
Posts: 15
Default

found it out

after the reinstall i name the object directory objects
rswar 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
Adding New Units ... help zogle Generals & Zero Hour Editing 5 01-25-2006 12:45 PM
Adding Units Groups -- not seperate Units? Twin Matrix LOTR: Battle For Middle Earth I & II Editing 6 01-13-2005 06:15 PM
Adding New Units Crawford Generals & Zero Hour Editing 2 01-10-2005 08:23 AM
Adding units to ZH KG115 Generals & Zero Hour Editing 11 01-13-2004 09:59 AM
Adding new units Blaine_the_God Generals & Zero Hour Editing 36 06-04-2003 09:43 PM


All times are GMT -4. The time now is 03:51 AM.


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