Jump to content


Photo

Replacing ZH China Inf General's Patriotism Cameo.


  • Please log in to reply
5 replies to this topic

#1 thudo

thudo

    Wacko AI Guy!

  • Division Leaders
  • 12,164 posts
  • Location:Lemonville North, Canada
  • Projects:DoW AI Scripting Project
  • Division:DoW
  • Job:Division Leader

Posted 30 August 2004 - 12:55 PM

We're working on improving the Skirmish AI for ZH but I came across a rather stupid EA blunder: the Patriotism icon/cameo for the Infantry General is already highlighted as being researched AND the cameo stupidly looks the same to the Nationalism icon. I want to:

a) ensure the Patriotism icon/cameo (researched from the Inf General's Propaganda Center) is NOT highlighted/lit up to denote its not researched and..
b) add my own cameo to replace it so it looks distinct to the Nationalism Upgrade.

I realize the Inf General already has the Nationalism upgrade pre-upgraded by-default but it seems utterly stupid to see the same icon showing knowing that Patriotism is another upgrade to Nationalism.

Btw, where are all the upgrade cameos for all the units/buildings stored? Which .big file.. can't find them anywhere!! Some .tga file must be there.
Advanced Skirmish AI Team Lead for the coolest Warhammer40k PC RTS out there:

Dawn of War Advanced AI Headquarters

Latest DoW Advanced AI Download!

#2 AdmiralGT

AdmiralGT

    title available

  • Members
  • 1,702 posts
  • Location:Bristol, UK
  • Projects:Petrolution

Posted 30 August 2004 - 01:14 PM

The existing Cameos are located in EnglishZH.big (for the new Zero Hour ones) and in English.big (for all the Generals ones). Bear in mind that if you have a foreign language version they wont be called English but something else.

The .tga that these cameos are in are then the ones called SAUserInterface (USA), SNUserInterface (China) and SUUserInterface (GLA).

I couldnt figure out what the rest of your post was trying to achieve but I presume you want to change the Cameo's. To do this you need to change the code of the Units and right at the top you'll see Upgrade_Cameo01 and stuff. Thats the cameo's for each unit. If you dont want it to have the cameo change the necessary line to = NONE or just put a ; in front of the UpgradeCameo bit.

#3 thudo

thudo

    Wacko AI Guy!

  • Division Leaders
  • 12,164 posts
  • Location:Lemonville North, Canada
  • Projects:DoW AI Scripting Project
  • Division:DoW
  • Job:Division Leader

Posted 30 August 2004 - 05:33 PM

The existing Cameos are located in EnglishZH.big (for the new Zero Hour ones) and in English.big (for all the Generals ones). Bear in mind that if you have a foreign language version they wont be called English but something else.

The .tga that these cameos are in are then the ones called SAUserInterface (USA), SNUserInterface (China) and SUUserInterface (GLA).

I couldnt figure out what the rest of your post was trying to achieve but I presume you want to change the Cameo's. To do this you need to change the code of the Units and right at the top you'll see Upgrade_Cameo01 and stuff. Thats the cameo's for each unit. If you dont want it to have the cameo change the necessary line to = NONE or just put a ; in front of the UpgradeCameo bit.

<{POST_SNAPBACK}>


Found it thanks! I forgot that Generals stores the cameos as a collage of smaller images all in one. Now its a question of changing the China Infantry Generals' PATRIOTISM cameo upgrade (stupidly looks the same as Nationalism) and ensure it looks dark before it can be upgraded.

In essence, I want to fix this EA bug: the China Inf General has Nationalism already upgraded by default. Note when you play as the Inf General the Nationalism Flag is already highlighted showing its researched. HOWEVER, note in the Propaganda Center the upgrade for the PATRIOTISM upgrade - ITS THE SAME LOOK AS THE NATIONALISM UPGRADE! Bahhhhh! Plus.. the Patriotism Upgrade does not show as a cameo for the Inf General's MiniGunner/Rocket Soldier. In other words, I want to make a PATIOTISM-only upgrade cameo in the Propaganda tower (it'll look like the Nationalism one but more distinct) + remove the Nationalism Cameo for both the Inf General's MiniGunner and Rocket Soldier (as that is redundant as the Inf General gets Nationalism anyway.. dunno.. may keep it anyway) then just add the new Patriotism Cameo to both units. Done!
Advanced Skirmish AI Team Lead for the coolest Warhammer40k PC RTS out there:

Dawn of War Advanced AI Headquarters

Latest DoW Advanced AI Download!

#4 AdmiralGT

AdmiralGT

    title available

  • Members
  • 1,702 posts
  • Location:Bristol, UK
  • Projects:Petrolution

Posted 30 August 2004 - 05:43 PM

Just to say, it looks the same because it is the same Cameo. They both use SSNationlism.

The fixes are pretty easy. Just change the Cameo for Patriotism and then add or edit the Cameo lines for Minigunner and Tank Hunter.

#5 thudo

thudo

    Wacko AI Guy!

  • Division Leaders
  • 12,164 posts
  • Location:Lemonville North, Canada
  • Projects:DoW AI Scripting Project
  • Division:DoW
  • Job:Division Leader

Posted 30 August 2004 - 09:22 PM

Just to say, it looks the same because it is the same Cameo. They both use SSNationlism.

The fixes are pretty easy. Just change the Cameo for Patriotism and then add or edit the Cameo lines for Minigunner and Tank Hunter.

<{POST_SNAPBACK}>


Well not really.. You'll notice the Patriotism cameo is exactly the same as the Nationalism one. Changing the Nationalism one will change it for all China Factions which I don't want. So what I will do is create another cameo in the large .tga template then associate that new one with Patriotism leaving the original Nationalism one alone.
Advanced Skirmish AI Team Lead for the coolest Warhammer40k PC RTS out there:

Dawn of War Advanced AI Headquarters

Latest DoW Advanced AI Download!

#6 Mastermind

Mastermind

    Server Technician

  • Undead
  • 7,014 posts
  • Location:Cambridge, MA
  • Projects:MasterNews 3
  •  The Man Behind the Curtain

Posted 31 August 2004 - 03:56 AM

If you want to do that, use GenCameoMapper (see my sig) to map the image you place there, and then rename the entry for patriotism in upgrade.ini and or commandbutton.ini.
:)
Posted Image

Well, when it comes to writing an expository essay about counter-insurgent tactics, I'm of the old school. First you tell them how you're going to kill them. Then you kill them. Then you tell them how you just killed them.

Too cute! | Server Status: If you can read this, it's up |




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users