Posted by: LetsPopSomeTanks - Monday, February 17, 2020 5:32:57 PM
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.
[quote];------------------------------------------------------------------------------
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
...[/quote]
Posted by: AdrianeMapMaker - Tuesday, February 18, 2020 6:10:32 AM
you can just remove and delete those whole 2 module -- bam done
Posted by: LetsPopSomeTanks - Tuesday, February 18, 2020 1:10:24 PM
[quote=adrianemapmaker;149491]you can just remove and delete those whole 2 module -- bam done [/quote]
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.
Posted by: SkyMix_RMT - Wednesday, February 19, 2020 6:56:54 AM
The problem might be that the game is not using the .ini you edited. Make sure it's in the correct dorectory.
Posted by: LetsPopSomeTanks - Wednesday, February 19, 2020 9:06:24 AM
[quote=SkyMix_RMT;149494]The problem might be that the game is not using the .ini you edited. Make sure it's in the correct dorectory.[/quote]
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.
Posted by: Rrtaya_tsamsiyu - Friday, February 21, 2020 4:50:17 AM
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.
Posted by: AdrianeMapMaker - Sunday, February 23, 2020 8:17:34 AM
can we see the code and try just using bigs instead of using the directory so you wont messed up the game.