More Awesome Than You!
Welcome, Guest. Please login or register.
2024 November 23, 05:51:44

Login with username, password and session length
Search:     Advanced search
540287 Posts in 18067 Topics by 6545 Members
Latest Member: cincinancy
* Home Help Search Login Register
+  More Awesome Than You!
|-+  TS2: Burnination
| |-+  The Podium
| | |-+  Enabling repair option for repairmen
0 Members and 3 Chinese Bots are viewing this topic. « previous next »
Pages: [1] THANKS THIS IS GREAT Print
Author Topic: Enabling repair option for repairmen  (Read 4221 times)
jrd
Terrible Twerp
****
Posts: 2498



View Profile
Enabling repair option for repairmen
« on: 2006 October 02, 15:11:52 »
THANKS THIS IS GREAT

I have a custom object which can break, and is repair-able by my playables. However the repairman ignores it when he is on the lot.

I thought just adding the repair BHAV to the OBJF resource should do it, however it still does not work: the repairman claims nothing is broken.
Is there something else I need to do to enable the function?

The object in question is Shaklin's central heating from Shaklin's page. I have unfortunately not gotten a reply from Shaklin on this, so I'm asking the experts in the community. I wish to know this anyway, as I may run in to the issue in future content.
« Last Edit: 2006 October 02, 15:23:34 by Jordi » Logged
syberspunk
Heretic
Terrible Twerp
****
Posts: 2365


ISTJ - what a crazy random happenstance


View Profile WWW
Re: Enabling repair option for repairmen
« Reply #1 on: 2006 October 02, 17:23:11 »
THANKS THIS IS GREAT

You might wanna ask Josh of djssims since he has a global hack that enables the repairman to fix broken toy robots.

Maybe you could take a look at that hack or ask/pm him. Smiley

Ste
Logged

jrd
Terrible Twerp
****
Posts: 2498



View Profile
Re: Enabling repair option for repairmen
« Reply #2 on: 2006 October 02, 17:52:40 »
THANKS THIS IS GREAT

That's where I stoleĤĤĤĤĤgot the idea from… as far as I can tell all that hack does is add the repair function to the resource.
This also seems to be how other base game objects work…

Can't hurt though.
Logged
twojeffs
Stupid Schlemiel
****
Posts: 1690



View Profile WWW
Re: Enabling repair option for repairmen
« Reply #3 on: 2006 October 02, 21:38:41 »
THANKS THIS IS GREAT

I was going to post the answer earlier, but the site was being a PITA and wouldn't stay connected long enough.

The heater isn't coded properly to be usable by the repairman. When broken is only sets an attribute on the object itself. In order for the repairman to 'see' it as repairable, it must have the repair functions defined in the OBJF (which you obviously knew already) and when broken it must set it's repair level (data 0x0F) to non-zero.
Logged
jrd
Terrible Twerp
****
Posts: 2498



View Profile
Re: Enabling repair option for repairmen
« Reply #4 on: 2006 October 02, 21:44:55 »
THANKS THIS IS GREAT

Ah, that second one would be it. Thanks!
And the site /was/ a PITA…
Logged
jfade
Obtuse Oaf
***
Posts: 904


Esteemed Senator Emeritus


View Profile WWW
Re: Enabling repair option for repairmen
« Reply #5 on: 2006 October 02, 21:50:59 »
THANKS THIS IS GREAT

Heh, I just tried it myself and it didn't work, so I was about to reply and guess that was the reason why, but I wasn't for sure, so thanks for the information twojeffs, that's useful stuff to know! Smiley
Logged


Nifty Sims hacks and programs at: DJS Sims
jrd
Terrible Twerp
****
Posts: 2498



View Profile
Re: Enabling repair option for repairmen
« Reply #6 on: 2006 October 02, 22:15:34 »
THANKS THIS IS GREAT

Fix attempt #1 failed. But now I know what to look for… I'm going to fix this yet Wink

Perhaps it is easier to just replace the custom break and repair functions with those of the sink.
Logged
twojeffs
Stupid Schlemiel
****
Posts: 1690



View Profile WWW
Re: Enabling repair option for repairmen
« Reply #7 on: 2006 October 03, 00:50:45 »
THANKS THIS IS GREAT

Worked for me.

Are you using the debug 'kaput' to break the heater? That uses a separate bhav that you'd also have to mod to set the repair level.
Logged
jrd
Terrible Twerp
****
Posts: 2498



View Profile
Re: Enabling repair option for repairmen
« Reply #8 on: 2006 October 03, 07:15:03 »
THANKS THIS IS GREAT

Heh... of course, that's it. I forgot to set the debug option.

//Yup, that did it. Thanks again twojeffs. *Goes to add the break and repair function to several other objects*
« Last Edit: 2006 October 03, 07:26:49 by Jordi » Logged
jrd
Terrible Twerp
****
Posts: 2498



View Profile
Re: Enabling repair option for repairmen
« Reply #9 on: 2006 October 06, 12:53:58 »
THANKS THIS IS GREAT

Hmmm... the Malaysia piracy move deleted the fixed versions.

If anyone wants them, let me know.
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.098 seconds with 20 queries.