LetsPopSomeTanks
6 years ago
I am trying to remove the GLA Stinger Site's ability to detect stealth. I don't feel as though it's realistic that some guys under camo netting can spot stealth aircraft, so I much prefer to have them need a radar van instead. I understand it was done for balancing, but I have been tweaking my game files to make them how I want them, as I mostly just play solo vs AI anyway. Eventually I want to make my own scenarios/missions. As of now though, I just play Skirmish.

I didn't see anything in Worldbuilder that allowed you to change abilities, so I started looking through FactionBuilding.ini. I extracted it with FinalBig and opened it in Notepad. In there, there are some lines about StealthDetector. I figured this must the line of code that gives buildings the ability to detect stealth. I removed the code from the file and placed it in "C:\Program Files (x86)\Origin Games\Command and Conquer Generals Zero Hour\Command and Conquer Generals Zero Hour\Data\INI\Object". However, in game it was still detecting stealthed units. So, either I have to change the code itself, or there is another INI file that controls this as well.

EDIT: I also tried changing the detection range to 0. Did not work.

Any thoughts? Below is the code from the file that I was referring to. Any help would be greatly appreciated.

;------------------------------------------------------------------------------
Object GLAStingerSite

...

Behavior = StealthDetectorUpdate ModuleTag_18
DetectionRate = 1000 ; how often to rescan for stealthed things in my sight (msec)
DetectionRange = 225 ;Dustin, enable this for independant balancing!
ExtraRequiredKindOf = AIRCRAFT
CanDetectWhileGarrisoned = No ;Garrisoned means being in a structure that you units can shoot out of.
CanDetectWhileContained = No ;Contained means being in a transport or tunnel network.
End

Behavior = StealthDetectorUpdate ModuleTag_19
DetectionRate = 1000 ; how often to rescan for stealthed things in my sight (msec)
DetectionRange = 135 ;Dustin, enable this for independant balancing!
;ExtraForbiddenKindOf = AIRCRAFT
CanDetectWhileGarrisoned = No ;Garrisoned means being in a structure that you units can shoot out of.
CanDetectWhileContained = No ;Contained means being in a transport or tunnel network.
End

...

Sponsor
AdrianeMapMaker
6 years ago
you can just remove and delete those whole 2 module -- bam done
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb 

UserPostedImage




LetsPopSomeTanks
6 years ago

you can just remove and delete those whole 2 module -- bam done

Originally Posted by: adrianemapmaker 



That's what I did. I removed all of the quoted text between the ellipses and it didn't work - the Stinger sites still detected stealth units.
SkyMix_RMT
6 years ago
The problem might be that the game is not using the .ini you edited. Make sure it's in the correct dorectory.
Check out:
My Music  (Techno/House/Experimental)
My Website  (GeneralsCentral)
My Youtube Channel  (Inactive)
World Builder Community Discord 
LetsPopSomeTanks
6 years ago

The problem might be that the game is not using the .ini you edited. Make sure it's in the correct dorectory.

Originally Posted by: SkyMix_RMT 



I have it in "C:\Program Files (x86)\Origin Games\Command and Conquer Generals Zero Hour\Command and Conquer Generals Zero Hour\Data\INI\Object" which is the path that I pulled it out of with FinalBig, so it should be the correct place.
Rrtaya_tsamsiyu
6 years ago
In my experience the game will sometimes not implement changes immediately. No idea what causes this, or what fixes it. Basically just keep messing with it, may have to restart your computer, eventually the changes will take effect. It's as if older code is cached somewhere or something.
one soul at a time
AdrianeMapMaker
6 years ago
can we see the code and try just using bigs instead of using the directory so you wont messed up the game.
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb 

UserPostedImage