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

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!
|-+  The Bowels of Trogdor
| |-+  The Small Intestines of Trogdor
| | |-+  Push Interaction opcode(s) for Interaction Index > 0xFF
0 Members and 1 Chinese Bot are viewing this topic. « previous next »
Pages: [1] THANKS THIS IS GREAT Print
Author Topic: Push Interaction opcode(s) for Interaction Index > 0xFF  (Read 15712 times)
jase
Dimwitted Dunce
*
Posts: 174



View Profile
Push Interaction opcode(s) for Interaction Index > 0xFF
« on: 2007 April 03, 01:34:24 »
THANKS THIS IS GREAT

Anybody know off the top of their head what magic opcode bits to twiddle on Push Interaction (0x000D) to reference an interaction index above 0xFF?
« Last Edit: 2007 April 03, 01:46:35 by jase » Logged

Isn't it about time you did your part in God's plan?  Go on, install InTeen today.  What would Jesus do?
dizzy
Souped!
*
Posts: 1572


unplugged


View Profile
Re: Push Interaction opcode(s) for Interaction Index > 0x7F
« Reply #1 on: 2007 April 03, 01:44:18 »
THANKS THIS IS GREAT

Flags 0x10 (opcode +3) and data (+5 to 7). See Ashes/Stomp - Find More Ashes for reference:

Code:
     1: Push Interaction: getting interaction # from 1 of Local 0 onto the stack object's queue, inherited priority, Icon Index is 0x0, use name; true: true, false: true
        [ 000D: (00) 0000001E000701000A00000A00000000 ]
Logged

jase
Dimwitted Dunce
*
Posts: 174



View Profile
Re: Push Interaction opcode(s) for Interaction Index > 0xFF
« Reply #2 on: 2007 April 03, 01:50:14 »
THANKS THIS IS GREAT

That's exactly what I was fishing for.  Thanks for the quick reply.
Logged

Isn't it about time you did your part in God's plan?  Go on, install InTeen today.  What would Jesus do?
jase
Dimwitted Dunce
*
Posts: 174



View Profile
Re: Push Interaction opcode(s) for Interaction Index > 0xFF
« Reply #3 on: 2007 April 03, 02:25:11 »
THANKS THIS IS GREAT

I'm going to change gears for a sec.  Do you know of any way to push an interaction without tripping its associated TEST/Guardian.  I've tried twiddling the "force run check tree" bit to no avail.  Seems like it always fires.
Logged

Isn't it about time you did your part in God's plan?  Go on, install InTeen today.  What would Jesus do?
J. M. Pescado
Fat Obstreperous Jerk
El Presidente
*****
Posts: 26288



View Profile
Re: Push Interaction opcode(s) for Interaction Index > 0xFF
« Reply #4 on: 2007 April 03, 03:09:59 »
THANKS THIS IS GREAT

My method for bypassing the check tree for whatever reason tends to be to invoke it via RTBN. Pushing it onto queue doesn't seem to be able to bypass the check tree, you either need to invoke via RTBN or create a hidden version with no or reduced checks. For a Maxian object, RTBN tends to be your best bet.
Logged

Grant me the serenity to accept the things I cannot change, the courage to change the things I cannot accept, and the wisdom to hide the bodies of those I had to kill because they pissed me off.
jase
Dimwitted Dunce
*
Posts: 174



View Profile
Re: Push Interaction opcode(s) for Interaction Index > 0xFF
« Reply #5 on: 2007 April 03, 04:44:08 »
THANKS THIS IS GREAT

The problem with RTBN is that it almost always fails when you attempt to "Run in Stack Object's" (where S.O. is a sim) and they're currently executing an interaction (as they usually are).  I much prefer RTBN, but its miserable for trying to force actions onto sims (works very well for objects though that are almost always in their main/idle loop).  Incidentally, there appears to be a new RTBN call type in Seasons: 03 - Run in GUID's Stack from the looks of it.  The Temperature Resistivity Controller uses it heavily.
« Last Edit: 2007 April 03, 05:08:04 by jase » Logged

Isn't it about time you did your part in God's plan?  Go on, install InTeen today.  What would Jesus do?
J. M. Pescado
Fat Obstreperous Jerk
El Presidente
*****
Posts: 26288



View Profile
Re: Push Interaction opcode(s) for Interaction Index > 0xFF
« Reply #6 on: 2007 April 03, 05:07:13 »
THANKS THIS IS GREAT

The problem with RTBN is that it almost always fails when you attempt to "Run in Stack Object's" (where S.O. is a sim) and they're currently executing an interaction (as they usually are).  Incidentally, there appears to be a new RTBN call type in Seasons: 03 - Run in GUID's Stack from the looks of it.  The Temperature Resistivity Controller uses it heavily.
RTBN works fine if you're running "push onto my stack" (0x02). You can see this being heavily used in Macrotastics. The other two tend to barf on "check tree primitive" if you invoke anything which isn't an "instant", and will not function unless you're in debug mode and can hit cancel. 0x03 has existed at least since OFB, possibly longer, and lets you invoke code from a GUID after doing Test Object 0x04, without actually having that object present, and appears to otherwise function as 0x02.
Logged

Grant me the serenity to accept the things I cannot change, the courage to change the things I cannot accept, and the wisdom to hide the bodies of those I had to kill because they pissed me off.
jase
Dimwitted Dunce
*
Posts: 174



View Profile
Re: Push Interaction opcode(s) for Interaction Index > 0xFF
« Reply #7 on: 2007 April 03, 05:11:10 »
THANKS THIS IS GREAT

But what I'm trying to do is to force an interaction onto another sim.  Indeed, push onto my stack works 99% of the time.  Run in Stack Object's stack, however, works like 1% when S.O. is a sim.  There's no equivalent Push onto Stack Object's stack that i know of - save Push Interaction (0xD) which runs check trees (blah).
« Last Edit: 2007 April 03, 05:22:04 by jase » Logged

Isn't it about time you did your part in God's plan?  Go on, install InTeen today.  What would Jesus do?
dizzy
Souped!
*
Posts: 1572


unplugged


View Profile
Re: Push Interaction opcode(s) for Interaction Index > 0xFF
« Reply #8 on: 2007 April 03, 05:21:40 »
THANKS THIS IS GREAT

It sounds to me like you need to use a Controller/Social object to convey that interaction.
Logged

J. M. Pescado
Fat Obstreperous Jerk
El Presidente
*****
Posts: 26288



View Profile
Re: Push Interaction opcode(s) for Interaction Index > 0xFF
« Reply #9 on: 2007 April 03, 08:19:02 »
THANKS THIS IS GREAT

But what I'm trying to do is to force an interaction onto another sim.  Indeed, push onto my stack works 99% of the time.  Run in Stack Object's stack, however, works like 1% when S.O. is a sim.  There's no equivalent Push onto Stack Object's stack that i know of - save Push Interaction (0xD) which runs check trees (blah).
Sounds like you need a push-interaction onto a controller which then RTBNs the desired code. You can see this being done in Macro-Caffeinate for the incooperative coffee actions.
Logged

Grant me the serenity to accept the things I cannot change, the courage to change the things I cannot accept, and the wisdom to hide the bodies of those I had to kill because they pissed me off.
jase
Dimwitted Dunce
*
Posts: 174



View Profile
Re: Push Interaction opcode(s) for Interaction Index > 0xFF
« Reply #10 on: 2007 April 28, 05:44:43 »
THANKS THIS IS GREAT

That's the road I ultimately ended up going down (the social controller).  Despite the extra coding, it was worth it in the end (plus it dovetails nicely with all versions of Sims 2).  As fun as bludgeoning a problem with a blunt tool can be at times, there is merit to poking it with a well-sharpened stick (especially if "it" happens to be Inge).
Logged

Isn't it about time you did your part in God's plan?  Go on, install InTeen today.  What would Jesus do?
J. M. Pescado
Fat Obstreperous Jerk
El Presidente
*****
Posts: 26288



View Profile
Re: Push Interaction opcode(s) for Interaction Index > 0xFF
« Reply #11 on: 2007 April 28, 06:15:59 »
THANKS THIS IS GREAT

Poking Inge with a stick is always funny, yes.
Logged

Grant me the serenity to accept the things I cannot change, the courage to change the things I cannot accept, and the wisdom to hide the bodies of those I had to kill because they pissed me off.
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.12 seconds with 20 queries.