Sky Demon
17 years ago
After getting on my bro's P.C through our Network (We network or house computers to share files & stuff) and playing Zero-Hour for 10 or so minutes, I noticed that the special power shortcuts there are alot smaller than the C&C Generals shortcuts. They take up far to much space in C&C Generals and that's why they limited it.

I have a theory that making the shorcuts smaller ingame should allow for more to be granted in the 'PlayerTemplate.ini', unfortunately I don't have any idea where that sort of stuff is in the files, yet.

And CommieDog. It's no problem, I can wait a week or so.
icewind
17 years ago
I don't think that would work because they probably hard coded the max buttons because they know that if you would exceed these you would get GUI error, so if you want to add more you should change the gamecode.
You can't blame me for my defeat, it's all the fault of my soldiers.
Making the web a weirder place, one forum at a time.
Derideal web comic.  Try it, it's good.
Stewox
17 years ago
just for note
Sorry there , the Zerohour also has Generals.str , i remember this came from public sources but it not working correctly if you change the name , in game.dat there is no mention of zerohour.str only generals.str ,

As for the carpet not working , lol i forgot too to edit the commandcenter , but i figured out in a while , knew about it but forgot, anyways i love ZH modding , i wonder how RA3 will be like , i don't need SDKs just simple advanced and very effective ZH ini system 👍


oh i got all turned on with the carpet bomb mods i made recently , sorry there i just have enough and so i forgot exactly what i was doing , i could but then i must make quite some time to get in again , anyways is fun making own carpet bombs , especially buildable , i have all the code you need , i save everything ... then i made some special carpet mods , and also incorporated one carpet cluster bomb code from reborn 2 i think , the code looked nothing special , but it was locked to 10 dropped items (bombs) i set to 50 and double check ,(i have SELECTABLE ..not ignored in ui) so i saw that just the bombs taken that much of space units each , original payload 10 then bomb took 1 space , with ex. 20 bomb payloas(OCL) will take 2 space and etc... and so that's why i ended up , but i will continue someday , it's a kind of season thingy , one time that game , one time this game , sometimes i end up with RA2YR😁

so anyone interested in having a look of my "Hijacked B2 bomber" for GLA stealth general , buildable at GLA Airfield(i used Contra 005 version,ZH original is left in) , don't worry you wouldn't have to edit a thing to make it work (orelse you want tweak) and i made .STR(missing) entries too.
UserPostedImage
garek007
3 months ago
Hi all, super old thread, but I'm hoping someone will see this. I'm trying to do the same thing with the China Cash Hack, but the game is crashing on startup when I try to add the behavior to the FactionBuilding.ini. Without that edit, it loads and I can see the icon in the America Command Center, it just doesn't work.

Note that I'm trying to actually reverse this and give cash to an ally, so it doesn't say CashHack, but rather, GiveCash. Still, I can't figure out why it's crashing.


Here is what I've tried.

//CommandSet.ini
CommandSet AmericaCommandCenterCommandSet
1 = Command_ConstructAmericaDozer
2 = Command_GiveCashFromCommandCenter
5 = Command_A10ThunderboltMissileStrike
6 = Command_Paradrop
7 = Command_SpyDrone
8 = Command_EmergencyRepair
9 = Command_DaisyCutter
10 = Command_SpySatelliteScan
11 = Command_SetRallyPoint
12 = Command_Sell
End

//CommandButton.ini
CommandButton Command_GiveCash
Command = SPECIAL_POWER
SpecialPower = SuperweaponCashHack
Options = NEED_TARGET_ALLY_OBJECT NEED_TARGET_NEUTRAL_OBJECT CONTEXTMODE_COMMAND
TextLabel = CONTROLBAR:CashHack
ButtonImage = SSCashHack
; TEMP CURSORS, needs real ones -- amit
CursorName = Hack
InvalidCursorName = GenericInvalid
ButtonBorderType = ACTION ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:TooltipFireSuperWeaponCashHack
End

CommandButton Command_GiveCashFromCommandCenter
Command = SPECIAL_POWER_FROM_COMMAND_CENTER
SpecialPower = SuperweaponCashHack
Options = NEED_TARGET_ALLY_OBJECT NEED_TARGET_NEUTRAL_OBJECT CONTEXTMODE_COMMAND
TextLabel = GUI:SuperweaponCashHack
ButtonImage = SSCashHack
; TEMP CURSORS, needs real ones -- amit
CursorName = Hack
InvalidCursorName = GenericInvalid
;ButtonBorderType = ACTION ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:TooltipFireSuperWeaponCashHack
End

//SpecialPower.ini
//NOTE ON THIS ONE that I am leaving the Enum value as SPECIAL_CASH_HACK because all I'm trying to do at first is clone CashHack, rename it but let the actual function work as is, until I can fiddle further and reverse the flow of cash.
SpecialPower SuperweaponGiveCash
Enum = SPECIAL_CASH_HACK
ReloadTime = 0 ; in milliseconds
InitiateAtLocationSound = CashHackActivate
End

//FactionBuilding.ini
//Under AmericaCommandCenter I've added this, and commented out the science requirement. This is what makes the game crash
Behavior = GiveCashSpecialPower ModuleTag_12345
SpecialPowerTemplate = SuperweaponGiveCash
;UpgradeMoneyAmount = SCIENCE_CashHack3 4000
;UpgradeMoneyAmount = SCIENCE_CashHack2 2000
MoneyAmount = 1000 ; amount of money to steal
End

It seems to me that maybe I need the ObjectCreationList.ini involved, but I haven't gotten that to work.
Jackal
  • Jackal
  • 50.75% (Neutral)
  • Private
3 months ago
Does anyone here have a link to a step by step guide to add the AirF_ carpet bomb to the regular USA general for C&C Generals ZR? What I am looking for is a step by step guide that displays the code and tells me exactly where to place the code.
I am also wanting the Carpetbomb to work exactly like it works for "Grainger"