PDA

View Full Version : Making Spriklers unbreakable


Night Racer
17th Apr 2012, 06:42 PM
I think I might be on the right track. Thanks to Receccha's Global mod PDF tutorial I found the AutomaticSprinkler Set Broken global. Ill mess around a bit and get back with my results.

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

This is new territory for me so sorry if this is obvious.
Im trying to mod the 3 sprinklers to be unbreakable, But I cant figure out how to get there :/ I finally was able to figure out how to get Object Workshop to work, I loaded the objects.cache from the seasons folder and found a sprinkler, but looking through all the files and settings, object breaking isnt an option? There is one for "Repair" but the description says "Script is used by repair men to repair objects" Is it not possible to make the sprinklers unbreakable? Is that why there currently are no mods (That I can find) That already do this? That is really annoying, since in the time span of 3 or 4 days after placement, half of my sprinklers are already broken and flowers are beginning to die. Why are these dumb things so fragile? It wouldn't be so bad if they weren't so hard to click on, at times IMPOSSIBLE. :faceslap:

maybesomethingdunno
18th Apr 2012, 10:45 PM
Sounds like you are indeed on the right track. :)

Looking in the AutomaticSprinkler semi-globals, there is a "Sub - Water Garden" BHAV. For me, Node 3 is "[private 0x1011] Sub - Set Broken (no args)". You could try setting its OpCode to be "[global 0x02F3] No-Op (no args)" (which does nothing except return True). Alternatively, you could edit the "Sub - Set Broken" BHAV so that it never performs any of its code is executed (the use of the No-Op BHAV would work fine), just in case the "Water Garden" BHAV isn't the only BHAV to use "Set Broken" BHAV.

Be sure the Group number remains the same so that it overrides the original.

Night Racer
19th Apr 2012, 01:19 AM
Oh thanks. That helped alot :). Im currently play testing a lot with lots of sprinklers to see if they break or not to see if I did it right. I wanted the mod as a .Package file, but forgot at the time and just Saved. So im hopping i didnt mess anything up; but so far everything seems to be working fine. If I wanted to package it up and share it here on the site, how would I go about doing that since I already modified my game files? :I

maybesomethingdunno
19th Apr 2012, 01:27 AM
From memory (so hopefully this is right):

Right Click on the BHAV in the Resource List and Export somewhere (e.g. the Desktop). Open SimPE and there should be an option to create a new .package file (look under "File"). Right click in the Resource List area and choose "Import". Find your BHAV and import it. Save the .package file.