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

Forum Info
Forum Members: 18,537
Total Threads: 8,626
Posts: 94,207

Administrators:
DeeZire, Redemption

There are currently 113 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 08-17-2007, 09:55 PM   #1 (permalink)
Junior Member
 
Join Date: Mar 2006
Posts: 1
Default Need help on Map.ini

I've magicly Figured out how to use modules in map.ini's affecting command sets but now I need Help With China. All Of china's buildings have 2 command sets as you may or may not know, 1 for unupgraded and 1 for upgraded with regular mines (so they can build emp mines.) Problem I'm having is exactly that. The Only example I have to go by is The code for The Internet center but it's hard to go off of because it actually has Multiple combinations for command sets (no upgrades, Mine1 and no sat, mine1 and sat1 , no mines and sat1...)


Long story short, something is wrong with this code (for a Map.ini) and I want to know what.


Object = Nuke_ChinaAirfield
CommandSet = Nuke_ChinaAirfieldCommandSet2
End

ReplaceModule ModuleTag_25
Behavior = CommandSetUpgrade ModuleTag_25_2
CommandSet = Nuke_ChinaAirfieldCommandSetUpgrade2
TriggeredBy = Upgrade_ChinaMines
End
End

CommandSet Nuke_ChinaAirfieldCommandSet2
1 = Nuke_Command_ConstructChinaJetMIG
2 = Command_UpgradeChinaAircraftArmor
3 = Nuke_Command_ConstructChinaVehicleHelix
11 = Command_UpgradeChinaTacticalNukeMig
12 = Command_UpgradeChinaMines
13 = Command_SetRallyPoint
14 = Command_Sell
End

CommandSet Nuke_ChinaAirfieldCommandSetUpgrade2
1 = Nuke_Command_ConstructChinaJetMIG
2 = Command_UpgradeChinaAircraftArmor
3 = Nuke_Command_ConstructChinaVehicleHelix
11 = Command_UpgradeChinaTacticalNukeMig
12 = Command_UpgradeEMPMines
13 = Command_SetRallyPoint
14 = Command_Sell
End

I'm also having trouble adjusting the prices/build times for units. I'm pretty sure that it should go like this but for some reason it won't work.

Object (object name)
Buildcost = X
Buildtime = X
End
Fleetatks is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-07-2008, 01:57 PM   #2 (permalink)
Senior Member
 
Join Date: Jan 2008
Posts: 188
Default

The first bit should look like this:

Code:
Object = Nuke_ChinaAirfield

  CommandSet = Nuke_ChinaAirfieldCommandSet2

  ReplaceModule ModuleTag_25
    Behavior = CommandSetUpgrade ModuleTag_25_Override
    CommandSet = Nuke_ChinaAirfieldCommandSetUpgrade2
    TriggeredBy = Upgrade_ChinaMines
  End

End
Your price and build times code is right, but it will only work for objects that already have those lines in their code, not for objects that do not have them (eg cvilian things).
beng 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



All times are GMT -4. The time now is 06:52 AM.


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