Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline LetsPopSomeTanks  
#1 Posted : Monday, February 17, 2020 5:32:57 PM(UTC)
LetsPopSomeTanks
Private
Joined: 1/22/2020(UTC)
Posts: 14

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

...

Edited by user Monday, February 17, 2020 5:58:43 PM(UTC)  | Reason: Not specified

Sponsor
Offline AdrianeMapMaker  
#2 Posted : Tuesday, February 18, 2020 6:10:32 AM(UTC)
AdrianeMapMaker
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 3/8/2016(UTC)
Posts: 1,156
Philippines

Thanks: 312 times
Was thanked: 185 time(s) in 149 post(s)
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





Offline LetsPopSomeTanks  
#3 Posted : Tuesday, February 18, 2020 1:10:24 PM(UTC)
LetsPopSomeTanks
Private
Joined: 1/22/2020(UTC)
Posts: 14

Originally Posted by: adrianemapmaker Go to Quoted Post
you can just remove and delete those whole 2 module -- bam done


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.

Edited by user Tuesday, February 18, 2020 1:11:37 PM(UTC)  | Reason: Not specified

Offline SkyMix_RMT  
#4 Posted : Wednesday, February 19, 2020 6:56:54 AM(UTC)
SkyMix_RMT
Major
Joined: 2/21/2015(UTC)
Posts: 386
Portugal

Thanks: 80 times
Was thanked: 132 time(s) in 96 post(s)
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
Offline LetsPopSomeTanks  
#5 Posted : Wednesday, February 19, 2020 9:06:24 AM(UTC)
LetsPopSomeTanks
Private
Joined: 1/22/2020(UTC)
Posts: 14

Originally Posted by: SkyMix_RMT Go to Quoted Post
The problem might be that the game is not using the .ini you edited. Make sure it's in the correct dorectory.


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.
Offline Rrtaya_tsamsiyu  
#6 Posted : Friday, February 21, 2020 4:50:17 AM(UTC)
Rrtaya_tsamsiyu
Colonel
Joined: 5/8/2012(UTC)
Posts: 615
United States
Location: USA, Tennessee, Home, Livingroom, couch.

Thanks: 102 times
Was thanked: 194 time(s) in 139 post(s)
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
Offline AdrianeMapMaker  
#7 Posted : Sunday, February 23, 2020 8:17:34 AM(UTC)
AdrianeMapMaker
General
C&C Labs Staff: Labs Staff MemberMaps Staff: Maps Staff Member
Joined: 3/8/2016(UTC)
Posts: 1,156
Philippines

Thanks: 312 times
Was thanked: 185 time(s) in 149 post(s)
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





Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.