Special Powers!! -1 reply

  • 1
  • 2

Please wait...

AzH

I'm too cool to Post

269,650 XP

17th September 2003

0 Uploads

24,050 Posts

0 Threads

#1 15 years ago

Hello, I hope someone can help with this.

I have all the ini files for Generals and I've located Napalm Strike, Black Market Nuke and Carpet Bombing. But I can't get the bloody things to appear in game. Can anybody tell me an easy way to do this?

Or (I'm dreaming now) supply me with an ini file with them already active?

If you do then please can I get a copy?

I would like to have access to them as General Abilities (which is what I think they were meant to be anyway).

Thanks. :D




battatta

Retired modder

50 XP

5th July 2003

0 Uploads

154 Posts

0 Threads

#2 15 years ago

Ok Here is how to do it...

CARPET BOMBING:

This tutorial will show you how to enable the Carpet Bombing superweapon in Generals. This was disabled by EA and only allowed to be used in the fifth China campaign mission. However this tutorial will show you how to enable the Carpet Bombs for use by the USA in all campaign, skirmish, and multiplayer games. You will need XCC Mixer version 1.24 to extract the INI files from the ini.big file from the Generals directory. Extract the files anywhere you like, after extraction you'll see a folder named Data has been created, I highly reccomend you DON'T directly extract this to your Generals folder, otherwise you could end up overwriting the Data folder thats already there. Open the newly created Data folder and copy the folder titled INI to the Data folder in your Generals directory.

Now open the file FactionBuilding.ini located in Data\INI\Object. Find this bit of code:

DisplayName = OBJECT:Airfield Side = America

Under that entry find this line:

; *** ENGINEERING Parameters ***

This defines the special parameters for this building. Under this section find:

RadarPriority = STRUCTURE KindOf = PRELOAD STRUCTURE SELECTABLE IMMOBILE AIRFIELD SCORE CAPTURABLE FS_FACTORY MP_COUNT_FOR_VICTORY AUTO_RALLYPOINT Body = StructureBody ModuleTag_10 MaxHealth = 1500.0 InitialHealth = 1500.0 End

Add this after it:

Behavior = OCLSpecialPower ModuleTag_23 SpecialPowerTemplate = SuperweaponCarpetBomb OCL = SUPERWEAPON_CarpetBomb End

Now find this:

; Behavior = OCLSpecialPower ModuleTag_23;this has been removed from everywhere but the ChinaAirfield in CHI05 ; SpecialPowerTemplate = SuperweaponCarpetBomb ; OCL = SUPERWEAPON_CarpetBomb ; CreateLocation = CREATE_AT_EDGE_NEAR_SOURCE ; End

Replace it with this:

Behavior = OCLSpecialPower ModuleTag_23 SpecialPowerTemplate = SuperweaponCarpetBomb OCL = SUPERWEAPON_CarpetBomb CreateLocation = CREATE_AT_EDGE_NEAR_SOURCE End

Save the file and close it. Now open CommandSet.ini located in Data\INI. Find this:

CommandSet AmericaAirfieldCommandSet

Under that entry find this line:

8 = Command_UpgradeAmericaLaserMissiles

Add this line after it:

9 = Command_CarpetBomb

Save the file and close it. Now open SpecialPower.ini located in Data\INI. Find this:

SpecialPower SuperweaponCarpetBomb

Under that entry find this line:

;;;RequiredScience = SCIENCE_CarpetBomb;;; Never ever ever use a required science with a public timer, since the hiddenbyscience never clears

Delete it.

Now find this line under the same entry:

PublicTimer = Yes

Change it to:

PublicTimer = No

You need to do this otherwise a game bug displays the countdown timer for the weapon as being ready at the start of every game before the Airfield is built.

You might also want to adjust the recharging time for the Carpet Bombs as by default the recharge time is set to two and a half minutes, which isn't a lot for a weapon which does a fair amount of damage. If you want to set the recharge time to something higher like five minutes, then under the same section (where the PublicTimer tag was replaced) find this line:

ReloadTime = 150000 ; in milliseconds

Replace it with:

ReloadTime = 300000

Done. You can now use Carpet Bombing which you deploy from the American Airfield.

Enjoy !

:dance:




battatta

Retired modder

50 XP

5th July 2003

0 Uploads

154 Posts

0 Threads

#3 15 years ago

Ok Here is how to do it...

NAPALM STRIKE:

Generals: Enabling Napalm Strikes

Now open the file FactionBuilding.ini located in Data\INI\Object. Find this bit of code:

DisplayName = OBJECT:CommandCenter Side = China

Under that entry find this line:

; *** ENGINEERING Parameters ***

This defines the special parameters for this building. Under this section find:

Behavior = OCLSpecialPower ModuleTag_16 SpecialPowerTemplate = SuperweaponNapalmStrike OCL = SUPERWEAPON_NapalmStrike End

Delete it.

Now Find:

DisplayName = OBJECT:Airfield Side = China

Under that entry find this line:

; *** ENGINEERING Parameters ***

This defines the special parameters for this building. Under this section find:

RadarPriority = STRUCTURE KindOf = PRELOAD STRUCTURE SELECTABLE IMMOBILE AIRFIELD SCORE CAPTURABLE FS_TECHNOLOGY MP_COUNT_FOR_VICTORY FS_FACTORY Body = StructureBody ModuleTag_09 MaxHealth = 1500.0 InitialHealth = 1500.0 End

Add this after it:

Behavior = OCLSpecialPower ModuleTag_16 SpecialPowerTemplate = SuperweaponNapalmStrike OCL = SUPERWEAPON_NapalmStrike End

Save the file and close it. Now open CommandSet.ini located in Data\INI. Find this:

CommandSet ChinaCommandCenterCommandSet

Under that entry find this line:

3 = Command_NapalmStrike

Delete it.

Now Find:

CommandSet ChinaAirfieldCommandSet

Under that entry find this line:

2 = Command_UpgradeChinaAircraftArmor

Add this line after it:

7 = Command_NapalmStrike

Save the file and close it. Now open SpecialPower.ini located in Data\INI. Find this:

SpecialPower SuperweaponNapalmStrike Enum = SPECIAL_NAPALM_STRIKE ReloadTime = 600000 ; in milliseconds RequiredScience = SCIENCE_NapalmStrike PublicTimer = Yes SharedSyncedTimer = Yes ViewObjectDuration = 30000 ViewObjectRange = 250 RadiusCursorRadius = 100 End

Change to:

SpecialPower SuperweaponNapalmStrike Enum = SPECIAL_NAPALM_STRIKE ReloadTime = 240000 PublicTimer = No SharedSyncedTimer = Yes ViewObjectDuration = 30000 ViewObjectRange = 250 RadiusCursorRadius = 100 End

Done now just save the file and close it. You can now use Napalm Strikes which you deploy from the China Airfield. You will need to add your own text description for this superweapon to the Generals string file and then specify the text string in the CommandButton.ini file, as by default this superweapon only contains a temporary place holder description.

The reason the code for this superweapon was removed from the China Command Center structure and added to the Airfield was because for some reason the Command Center doesn't seem to execute the code properly, I haven't got a clue why the hell that happens but it works better with the Airfield, and seen as how the superweapon calls a team of five MiGs to drop Napalm bombs on the designated target, it makes more sense to deploy it from the Airfield than the Command Center.

Enjoy !

:dance:




AzH

I'm too cool to Post

269,650 XP

17th September 2003

0 Uploads

24,050 Posts

0 Threads

#4 15 years ago

Battatta = Legend.

Thankyou B. You Da Man!!!!

:smokin:




AzH

I'm too cool to Post

269,650 XP

17th September 2003

0 Uploads

24,050 Posts

0 Threads

#5 15 years ago

Napalm Strike Works!

Carpet Bombing Works!

I've even gone so far as extracting and editing the CSF file.

Everything is going great in my first real mod experience and I have Uncle Potato to thank for it.

However....... (that always happens)

I've sorted out a Tool Tip for Napalm Strike but I get a little box at the end of the text (hava look and you'll see).

How do I get rid of the goddam thing??




battatta

Retired modder

50 XP

5th July 2003

0 Uploads

154 Posts

0 Threads

#6 15 years ago

The square is a result of Typing the [ENTER] key, just don't hit that while text editing in CSF files, use [SPACE] to give the correct tabulation, the best technique is just keep on writing and let the CSF do the TAB for you.

:dance:

PS: I Really like your salutation remark text, sounds like Gladiator's - Very Cool! :rock:




AzH

I'm too cool to Post

269,650 XP

17th September 2003

0 Uploads

24,050 Posts

0 Threads

#7 15 years ago

OK. Thanks for your help.

The sig is based on Gladiator and salutes uncle P for all his help so far, and I imagine, in the future too!!




AzH

I'm too cool to Post

269,650 XP

17th September 2003

0 Uploads

24,050 Posts

0 Threads

#8 15 years ago

Battatta Help!!

I've done Napalm Strike and Carpet Bombing. Now I've moved onto Black Market Nuke. I tried to follow and apply your tutorial from the first two but I hit a huge brick wall and bloodied my nose. Can you tell me what it is I am doing wrong?

Step 1.

I removed this-

Behavior = OCLSpecialPower ModuleTag_12 SpecialPowerTemplate = SuperweaponBlackMarketNuke OCL = SUPERWEAPON_BlackMarketNuke CreateLocation = CREATE_AT_EDGE_NEAR_SOURCE End

-from GLACommandCenter in FactionBuilding.ini and inserted it after-

; *** ENGINEERING Parameters *** RadarPriority = STRUCTURE KindOf = PRELOAD STRUCTURE SELECTABLE IMMOBILE CAPTURABLE FS_TECHNOLOGY MP_COUNT_FOR_VICTORY SCORE_CREATE FS_FACTORY Body = StructureBody ModuleTag_04 MaxHealth = 500.0 InitialHealth = 500.0 End

-in the GLABlackMarket entry in FactionBuilding.ini.

Step 2.

I amended CommandSet.ini like this-

CommandSet GLABlackMarketCommandSet 1 = Command_UpgradeGLAAPBullets 2 = Command_UpgradeGLAAPRockets 3 = Command_UpgradeGLAJunkRepair 4 = Command_UpgradeGLABuggyAmmo 5 = Command_UpgradeGLARadarVanScan 6 = Command_BlackMarketNuke 12 = Command_Sell End

Step 3.

I modified the entry for BlackMarketNuke in SpecialPower.ini to this-

SpecialPower SuperweaponBlackMarketNuke Enum = SPECIAL_BLACK_MARKET_NUKE ReloadTime = 600000 ; in milliseconds. min is 2x door/open close time! PublicTimer = No SharedSyncedTimer = Yes ViewObjectDuration = 30000 ViewObjectRange = 250 RadiusCursorRadius = 100 End

Step 4.

I loaded Generals and got this-

Release Crash at Tue Jul 22 12:29:16 2003 ; Reason Error parsing INI file 'Data\INI\CommandSet.ini' (Line: 'CommandSet GLABlackMarketCommandSet ')

Last error: Exception is access violation WinMain at 4017e0 Error code: EXCEPTION_ACCESS_VIOLATION Description: The thread tried to read from or write to a virtual address for which it does not have the appropriate access. Access address:00000004 was read from.

Stack Dump: (-1) : 0x004568CC (-1) : 0x6D6D6F43

Details: Register dump... Eip:004568CC Esp:0012DB8C Ebp:01A3BC24 Eax:00000001 Ebx:0012E542 Ecx:0365C650 Edx:00967D50 Esi:00000000 Edi:00000000 EFlags:00010246 CS:001b SS:0023 DS:0023 ES:0023 FS:0038 GS:0000 EIP bytes dump...

Bytes at CS:EIP (004568CC) : 8B 4E 04 85 C9 74 07 E8 58 AC FC FF 8B F0 8D 4C 24 20 C7 44 24 18 FF FF FF FF E8 35 C6 FB FF 85

Current stack:

This would suggest that the mistake lies within CommandSet.ini but I've checked and as far as I can tell everything is as it should be.

I tried to follow the tutorials for Carpets and Napalm and directly apply them to doing the Nuke but it ain't working.

Can you help......... please???




battatta

Retired modder

50 XP

5th July 2003

0 Uploads

154 Posts

0 Threads

#9 15 years ago

The problem IS WHERE YOU DECIDED TO PUT IT, i.e. BlackMarket does not support this kind of call, his code in factionbuilding.ini need some extra Behaviors to be able to manage this stuff, it's the same kind of stuff I commented on the last paragraf of NapStk tutorial regarding placing the call from the airfield in CHINA.

Solution: Move the call from Blackmarket to CommandCenter and it will run!

----------------------

PS: Ok, so the mighty Uncle P rises up and says from the honor tribune stand :fistpunch: FINISH HIM OFF ! (I'm bad-to-the-bones) :lol: And the crowd at the coliseum go wild :rock:

---------------------- Oh man you really mess with my old-retired-military-cardiac-ego!

:dance:




AzH

I'm too cool to Post

269,650 XP

17th September 2003

0 Uploads

24,050 Posts

0 Threads

#10 15 years ago

Hey Battatta,

Did that. Similar result.

This is what I did:

CommandSet GLACommandCenterCommandSet 1 = Command_ConstructGLAWorker 5 = Command_Ambush 6 = Command_EmergencyRepair 7 = Command_AnthraxBomb 8 = Command_BlackMarketNuke 11 = Command_SetRallyPoint 12 = Command_Sell End

This is what I got:

Release Crash at Tue Jul 22 15:46:38 2003 ; Reason Error parsing INI file 'Data\INI\CommandSet.ini' (Line: 'CommandSet GLACommandCenterCommandSet ')

Last error: Exception is access violation WinMain at 4017e0 Error code: EXCEPTION_ACCESS_VIOLATION Description: The thread tried to read from or write to a virtual address for which it does not have the appropriate access. Access address:00000004 was read from.

Stack Dump: (-1) : 0x004568CC (-1) : 0x6D6D6F43

Details: Register dump... Eip:004568CC Esp:0012DB8C Ebp:01A3BBA0 Eax:00000001 Ebx:0012E542 Ecx:0365C650 Edx:00967D50 Esi:00000000 Edi:00000000 EFlags:00010246 CS:001b SS:0023 DS:0023 ES:0023 FS:0038 GS:0000 EIP bytes dump...

Bytes at CS:EIP (004568CC) : 8B 4E 04 85 C9 74 07 E8 58 AC FC FF 8B F0 8D 4C 24 20 C7 44 24 18 FF FF FF FF E8 35 C6 FB FF 85

Current stack:

I'm thinking, Am I using the right Command?

- Command_BlackMarketNuke

Or should it be something different?

Thanks.




  • 1
  • 2