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,842

Administrators:
DeeZire, Redemption

There are currently 22 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 04-06-2006, 08:07 AM   #1 (permalink)
Member
 
Join Date: May 2004
Location: UK
Posts: 98
Default How to make verry stong units?

I'm trying to make an AOD map and i'd like some verry strong units to spawn but i don't know how to to make units that spawn have stronger armour or lots of HP. I tryed makeing my own armour and applying it to the unit in map.ini but that crashes the game. So whats the best way to do this please?
TerroR is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-06-2006, 04:14 PM   #2 (permalink)
Senior Member
 
Join Date: Jun 2003
Location: Germany
Posts: 363
Send a message via ICQ to Dibelius
Default

Your thoughts were ok but I guess you had a mistake in the code of map.ini because it normally works perfectly with new armors in there.

here 1 example:
Code:
;NB: this example is just the renamed 'TankArmor' without any changes!
Armor TankArmor_HARD
  Armor = CRUSH              50%
  Armor = SMALL_ARMS         25%
  Armor = GATTLING           10%
  Armor = COMANCHE_VULCAN    25%
  Armor = FLAME              25%
  Armor = RADIATION          50%
  Armor = MICROWAVE           0%
  Armor = POISON             25%
  Armor = SNIPER              0%
  Armor = MELEE               0%
  Armor = LASER               0%
  Armor = HAZARD_CLEANUP      0%
  Armor = PARTICLE_BEAM     100%
  Armor = KILL_PILOT        100%
  Armor = SURRENDER           0%
  Armor = SUBDUAL_MISSILE     0%
  Armor = SUBDUAL_VEHICLE   100%
  Armor = SUBDUAL_BUILDING    0%
End

Object Tank_ChinaTankEmperor
  ArmorSet
    Conditions        = None
    Armor             = TankArmor_HARD ; << here the tank got the new armor
    DamageFX          = TankDamageFX
  End
End
You can also do it by changing the HP values. But that's more complicated as you actually need the 'ReplaceModule' thing and you must know the exact name of the ModuleTag (e.g. "ModuleTag_04" but they vary) to do so.
Dibelius is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-06-2006, 04:51 PM   #3 (permalink)
Member
 
Join Date: May 2004
Location: UK
Posts: 98
Default

Thansk a lot i'l give thata try
TerroR is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-07-2006, 01:11 PM   #4 (permalink)
Member
 
Join Date: May 2004
Location: UK
Posts: 98
Default

damn when i play the map online it works fine up untill the tank with custom armour spawns, then it missmatches

Heres the map.ini code, anything wrong with it?

Code:
Weather
 SnowEnabled = yes ; enable/disable snow on the map.
 SnowTexture = ExSnowFlake1.tga ;texture used for each snow particle.
 SnowBoxDimensions = 100 ; width/height of box around camera containing snow.
 SnowBoxDensity = 1 ; amount of snow particles per world-unit. Raise to increase particle count.
 SnowFrequencyScaleX = 0.0533 ;speed of side-to-side wave movement.
 SnowFrequencyScaleY = 0.0275 ;speed of side-to-side wave movement. 
 SnowAmplitude = 4.0 ;amount of side-to-side movement. 
 SnowVelocity = 3.0 ;speed at which snow falls
 SnowPointSize = .15 ;scale the size of snow particles.
 SnowMaxPointSize = 10.0 ; maximum pixel size of point sprite particles (min-spec requires <= 64).
 SnowMinPointSize = 0.0 ; minimum pixel size of point sprite particles.

 ;Some video cards can't do hardware accelerated particles.  Set this
 ;setting to "no" in order see what emulation will look like.  Use the
 ;SnowQuadSize setting to make it look similar to PointSprite version.

 SnowPointSprites = yes ;set to "no" for point-sprite emulation.
 SnowQuadSize = 0.5 ;scale the size of snow particles when using point-sprite emulation.
End

Armor SuperBossArmor
  Armor = STEALTHJET_MISSILES 1%
  Armor = JET_MISSILES        1%
  Armor = RADIATION         1%
  Armor = POISON            1%
  Armor = EXPLOSION         1%
  Armor = SMALL_ARMS        1%
  Armor = COMANCHE_VULCAN   2%
  Armor = GATTLING          1%
  Armor = CRUSH              0%    ;humans are easily crushed ["I'm crushing your head"]
  Armor = ARMOR_PIERCING    1%     ;humans don't get hit by tank rounds.  
  Armor = INFANTRY_MISSILE  1%
  Armor = FLAME             1%     ;humans don't like fire
  Armor = PARTICLE_BEAM     2%     ;humans don't fare well against orbital beams...
  Armor = SNIPER            2%
  Armor = LASER             1%     ;LASERs are anti-personel and anti-projectile only (for point defense laser)
  Armor = HAZARD_CLEANUP    0%      ;Not harmed by cleaning weapons
  Armor = KILL_PILOT        0%      ;Jarmen Kell uses against vehicles only.
  Armor = SURRENDER         100%    ;Capture type weapons are effective only against infantry.
  Armor = SUBDUAL_MISSILE   0%
  Armor = SUBDUAL_VEHICLE   0%
  Armor = SUBDUAL_BUILDING  0%
End

Armor SuperHumanArmor
  Armor = STEALTHJET_MISSILES 10%
  Armor = JET_MISSILES        10%
  Armor = RADIATION         10%
  Armor = POISON            10%
  Armor = EXPLOSION         10%
  Armor = SMALL_ARMS        10%
  Armor = COMANCHE_VULCAN   20%
  Armor = GATTLING          10%
  Armor = CRUSH              0%    ;humans are easily crushed ["I'm crushing your head"]
  Armor = ARMOR_PIERCING    10%     ;humans don't get hit by tank rounds.  
  Armor = INFANTRY_MISSILE  10%
  Armor = FLAME             15%     ;humans don't like fire
  Armor = PARTICLE_BEAM     20%     ;humans don't fare well against orbital beams...
  Armor = SNIPER            20%
  Armor = LASER             10%     ;LASERs are anti-personel and anti-projectile only (for point defense laser)
  Armor = HAZARD_CLEANUP    0%      ;Not harmed by cleaning weapons
  Armor = KILL_PILOT        0%      ;Jarmen Kell uses against vehicles only.
  Armor = SURRENDER         100%    ;Capture type weapons are effective only against infantry.
  Armor = SUBDUAL_MISSILE   0%
  Armor = SUBDUAL_VEHICLE   0%
  Armor = SUBDUAL_BUILDING  0%
End

Armor TankArmor_HARD
  Armor = STEALTHJET_MISSILES 10%
  Armor = JET_MISSILES        10%
  Armor = INFANTRY_MISSILE    10%
  Armor = ARMOR_PIERCING      10%
  Armor = EXPLOSION           10%
  Armor = CRUSH               50% 
  Armor = SMALL_ARMS          20% 
  Armor = GATTLING            10% 
  Armor = COMANCHE_VULCAN     10% 
  Armor = FLAME               10% 
  Armor = RADIATION           10% 
  Armor = MICROWAVE           0% 
  Armor = POISON              10% 
  Armor = SNIPER              0% 
  Armor = MELEE               0% 
  Armor = LASER               0% 
  Armor = HAZARD_CLEANUP      0% 
  Armor = PARTICLE_BEAM      50% 
  Armor = KILL_PILOT          0% 
  Armor = SURRENDER           0% 
  Armor = SUBDUAL_MISSILE     0% 
  Armor = SUBDUAL_VEHICLE   100% 
  Armor = SUBDUAL_BUILDING    0% 
End 

Armor TankArmor_EMPEROR
  Armor = STEALTHJET_MISSILES 25%
  Armor = JET_MISSILES        25%
  Armor = INFANTRY_MISSILE    25%
  Armor = ARMOR_PIERCING      25%
  Armor = EXPLOSION           25%
  Armor = CRUSH               50% 
  Armor = SMALL_ARMS          20% 
  Armor = GATTLING            10% 
  Armor = COMANCHE_VULCAN     25% 
  Armor = FLAME               20% 
  Armor = RADIATION           10% 
  Armor = MICROWAVE           0% 
  Armor = POISON              10% 
  Armor = SNIPER              0% 
  Armor = MELEE               0% 
  Armor = LASER               0% 
  Armor = HAZARD_CLEANUP      0% 
  Armor = PARTICLE_BEAM      50% 
  Armor = KILL_PILOT          0% 
  Armor = SURRENDER           0% 
  Armor = SUBDUAL_MISSILE     0% 
  Armor = SUBDUAL_VEHICLE   100% 
  Armor = SUBDUAL_BUILDING    0% 
End 

Object CINE_ChinaTankOverlord
  ArmorSet 
    Conditions        = None 
    Armor             = TankArmor_HARD 
    DamageFX          = TankDamageFX 
  End 
End

Object CINE_AmericaInfantryRanger
  ArmorSet 
    Conditions        = None 
    Armor             = SuperHumanArmor 
    DamageFX          = InfantryDamageFX 
  End 
End

Object Tank_ChinaTankEmperor
  ArmorSet 
    Conditions        = None 
    Armor             = TankArmor_EMPEROR 
    DamageFX          = TankDamageFX 
  End 
End

Object CINE_GLAInfantryJarmenKell
  ArmorSet 
    Conditions        = None 
    Armor             = SuperBossArmor
    DamageFX          = InfantryDamageFX 
  End 
End
TerroR is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-07-2006, 01:47 PM   #5 (permalink)
Senior Member
 
Join Date: Jun 2003
Location: Germany
Posts: 363
Send a message via ICQ to Dibelius
Default

hm... confusing.

does this ONLY happen with the armor code or even without maybe?
The mismatches can also caused by mistakes in scripts...

And afaik it should work, cause I made something similar in my mod and there were no mismatches at all when I played online with friends. :/

What I'm not sure about is that these CINE units you used could be responsible for the mismatch. I'd try it only with the default units that you can really build in game, because CINE units are modified copies of them and have additional and/or reduced code.

If that all doesn't help you should try it without armor templates and just do it by changing the HP values like this example shows you:

Code:
Object AmericaTankCrusader
  ReplaceModule ModuleTag_02   ; << replaces this tag by the one below
    Body = ActiveBody ModuleTag_OVERRIDE
    MaxHealth       = 480
    InitialHealth   = 480

    SubdualDamageCap        = 960 
    SubdualDamageHealRate   = 500
    SubdualDamageHealAmount = 50
    End
  End
End
The difficulty is that you must replace the correct ModuleTag. In the original code of the AmericaTankCrusader the ModuleTag_02 indicates the ActiveBody. But other units can have other ModuleTags like ModuleTag_03, _04 etc. for the ActiveBody. This means you must lookup which tag indicates the ActiveBody.

Hint: You can define you new module tag completely new, even without the subdual tags. Then your AOD unit can't be deactivated by tank-disable weapons (electric cuntermeasures).
Dibelius is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-07-2006, 02:15 PM   #6 (permalink)
Member
 
Join Date: May 2004
Location: UK
Posts: 98
Default

Well it has nothing to do with the CINE units because the missmatch happpened with the normal emperor tank :/

Thanks for the quick reply i'll have to give the huge ammounts of health a go
TerroR is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-07-2006, 03:16 PM   #7 (permalink)
Member
 
Join Date: May 2004
Location: UK
Posts: 98
Default

argggg again it missmatched with the health boost as soon as it spawns
I tested it in skirmish and it works
Code:
Object CINE_ChinaTankOverlord
  ReplaceModule ModuleTag_02
    Body = ActiveBody ModuleTag_OVERRIDE
    MaxHealth       = 25500.0
    InitialHealth   = 25500.0

    SubdualDamageCap = 2200
    SubdualDamageHealRate = 500
    SubdualDamageHealAmount = 50
    End 
  End 
End 

Object Tank_ChinaTankEmperor
  ReplaceModule ModuleTag_02
    Body = ActiveBody ModuleTag_OVERRIDE
    MaxHealth       = 7000.0
    InitialHealth   = 7000.0

    SubdualDamageCap = 2200
    SubdualDamageHealRate = 500
    SubdualDamageHealAmount = 50
    End 
  End 
End 

Object CINE_GLAInfantryJarmenKell
  ReplaceModule ModuleTag_02
    Body = ActiveBody ModuleTag_OVERRIDE
    MaxHealth       = 30000.0
    InitialHealth   = 30000.0
    End 
  End 
End 

Object CINE_AmericaInfantryRanger
  ReplaceModule ModuleTag_03
    Body = ActiveBody ModuleTag_OVERRIDE
    MaxHealth       = 15000.0
    InitialHealth   = 15000.0
    End 
  End 
End
TerroR is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-07-2006, 03:43 PM   #8 (permalink)
Senior Member
 
Join Date: Jun 2003
Location: Germany
Posts: 363
Send a message via ICQ to Dibelius
Default

ummmm... :S
I only can repeat: both things worked in my case. I dunno why you have such problems with it. :/

You could try to make it with another unit than the emperor.
Dibelius is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-07-2006, 04:07 PM   #9 (permalink)
Member
 
Join Date: May 2004
Location: UK
Posts: 98
Default

I have tryed with 3 different units, same results.
Shame i liked the map, wont work without strong units. Thanks for your help Dibelius
TerroR is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-07-2006, 04:42 PM   #10 (permalink)
Senior Member
 
Join Date: Jun 2003
Location: Germany
Posts: 363
Send a message via ICQ to Dibelius
Default

If you haven't already done this you should download some existing AOD maps and look into the map.ini and/or scripts. Maybe they did in another way.
Dibelius 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
Make units unselectable (map.ini) TerroR Generals & Zero Hour Editing 10 08-27-2006 06:30 AM
How do you make the AI build units you added [if possible] SmokeyDaBear Generals & Zero Hour Editing 4 06-26-2005 01:26 AM
how do i make new units in yuri's revenge? cabbageking Red Alert 2 & Yuri's Revenge Editing 32 05-01-2005 07:25 AM
make air units do not swoop? ravage LOTR: Battle For Middle Earth I & II Editing 5 12-22-2004 03:13 AM
Is it possible to get the ai to use units you make yourself KG115 Generals & Zero Hour Editing 1 03-09-2004 04:22 PM


All times are GMT -4. The time now is 09:18 PM.


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