Test Menu Interactions - regards ITUN?

Talk nerdy to us here.
Post Reply
IngeJones
Reactions:
Posts: 32
Joined: November 11th, 2013, 6:00 pm

Test Menu Interactions - regards ITUN?

Post by IngeJones » April 15th, 2013, 2:51 am

I have a custom interaction on a custom object that is not being used autonomously. No problem when user-directed. DebugEnabler Test Interactions output indicates available for autonomous use. Does the report only regard my Definition Test, or does the report indicate my ITUN was correctly connected to the interaction also?

User avatar
twallan
Reactions:
Posts: 270
Joined: December 26th, 2011, 6:00 pm

Post by twallan » April 15th, 2013, 1:27 pm


"Test Menu Interactions" performs the following function, and displays the result:

<!-- ws:start:WikiTextCodeRule:0:
<pre class="text">InteractionTestResult InteractionDefinition:Test(ref InteractionInstanceParameters parameters, ref GreyedOutTooltipCallback greyedOutTooltipCallback);</pre>
-->
<style type="text/css"><!--
/**
* GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann
* (http://qbnz.com/highlighter/ and http://geshi.org/)
*/
.text {font-family:monospace;}
.text .imp {font-weight: bold; color: red;}
.text span.xtra { display:block; }

-->
</style><pre class="text">InteractionTestResult InteractionDefinition:Test(ref InteractionInstanceParameters parameters, ref GreyedOutTooltipCallback greyedOutTooltipCallback);</pre>


You could probably test your ITUN by setting the "Autonomous" to "False" and see whether the interaction reports that instead. :)

IngeJones
Reactions:
Posts: 32
Joined: November 11th, 2013, 6:00 pm

Post by IngeJones » April 15th, 2013, 3:37 pm

I have tried setting DisallowAutonomous="True" and rerunning your debugger, but it still says its autonomously available, so I guess it's not interesting in the ITUN then. I've had 3 other modders look at my ITUN and script now and none of them can spot any reason it shouldn't be working. It's a toilet with a custom "use" interaction, and I copied the ITUN from the original toilet, changing only the relevant fields, so all the attraction to use it should be identical.

User avatar
twallan
Reactions:
Posts: 270
Joined: December 26th, 2011, 6:00 pm

Post by twallan » April 15th, 2013, 3:53 pm


Where can I check out this package myself ?

IngeJones
Reactions:
Posts: 32
Joined: November 11th, 2013, 6:00 pm

Post by IngeJones » April 15th, 2013, 4:13 pm

Would you believe it's working now? I did 3 things:
1) edited the Allow Autonomous line as above, and then edited it back again.
2) I removed a line that was in the original toilet ITUN:
<Check type="UseToilet" value="0" /> which I had edited to say "UsePrisonToilet" which is of course my interaction name. There was no line like this in the last object I made which was working ok so I thought it was worth a try.
3) Changed
this.AddInteraction(UsePrisonToilet.Singleton);
to
this.AddInteraction(PrisonToilet.UsePrisonToilet.Singleton);

User avatar
twallan
Reactions:
Posts: 270
Joined: December 26th, 2011, 6:00 pm

Post by twallan » April 15th, 2013, 4:24 pm


I doubt step 3 had any effect, unless you happened to have two "UsePrisonToilet" classes at different scopes in your code (which would be very confusing).

Possible the ITUN bounced during load due to something it was not expecting. You would have received no error if that had been the case. :)

User avatar
twallan
Reactions:
Posts: 270
Joined: December 26th, 2011, 6:00 pm

Post by twallan » April 15th, 2013, 4:26 pm


And yes, "Check" must be one of these specific EA Standard enum values:

<!-- ws:start:WikiTextCodeRule:0:
<pre class="text">public enum CheckType<br/>{<br/> None,<br/> All,<br/> Sitting,<br/> Social,<br/> SelfRegarding,<br/> OutsideLot,<br/> Farewell,<br/> GoHome,<br/> InappropriateForVisitor,<br/> GetIntoBed,<br/> Sleep,<br/> Eat,<br/> PrepareFood,<br/> Cleanup,<br/> CleanYourself,<br/> VisitTheater,<br/> Greet,<br/> WatchMovie,<br/> UseToilet,<br/> RepairToilet,<br/> TakeBath,<br/> Last<br/>}</pre>
-->
<style type="text/css"><!--
/**
* GeSHi (C) 2004 - 2007 Nigel McNie, 2007 - 2008 Benny Baumann
* (http://qbnz.com/highlighter/ and http://geshi.org/)
*/
.text {font-family:monospace;}
.text .imp {font-weight: bold; color: red;}
.text span.xtra { display:block; }

-->
</style><pre class="text">public enum CheckType
{
None,
All,
Sitting,
Social,
SelfRegarding,
OutsideLot,
Farewell,
GoHome,
InappropriateForVisitor,
GetIntoBed,
Sleep,
Eat,
PrepareFood,
Cleanup,
CleanYourself,
VisitTheater,
Greet,
WatchMovie,
UseToilet,
RepairToilet,
TakeBath,
Last
}</pre>


IngeJones
Reactions:
Posts: 32
Joined: November 11th, 2013, 6:00 pm

Post by IngeJones » April 15th, 2013, 4:28 pm

well so it was that one! Hmm what is that all about? What's so special about those that they have to have a speshul little line to themselves?

User avatar
twallan
Reactions:
Posts: 270
Joined: December 26th, 2011, 6:00 pm

Post by twallan » April 15th, 2013, 4:34 pm


It appears the "Check" is used to restrict usage during certain types of Situations. Perhaps altering how often a sim uses an interaction while attending a party and such. :)

Post Reply