View Full Version : Modeling Question
abd123
25th Feb 2012, 04:04 PM
I have used this on my rug alright
it seems to be working but my sim give a bubble talk picture that says: "can't walking throught there" how can I fix this problem ?
base.Actor.RouteToSlot(this.Target, this.Target .GetRoutingSlots ());
this is another code that seems to be working but my sim give a bubble talk picture that says :"can't walking throught there" how can I fix this problem ?
Route route = base.Actor .CreateRoute();
InteractionInstance currentInteraction = base.Actor.CurrentInteraction;
if (currentInteraction != null && currentInteraction.Target == this.Actor)
{
base.Actor.AddExitReason(ExitReason.ObjectInUse);
return false;
}
// add your data into the empty bar
route.SetOption(Route.RouteOption.IgnoreChildren, true);
route.PlanToSlot (this.Actor ,Slot.RoutingSlot_0);
base.Actor.ShowTNSIfSelectable(message + SlotInfo, StyledNotification.NotificationStyle.kSimTalking);
if(!base.Actor.DoRoute (route)){
return false;
}
if(this.Target.InUse)
{
base.Actor.AddExitReason (ExitReason .ObjectInUse );
return false;
}
When I get far to my rug it give this message:
http://thumbs2.modthesims.info/img/7/0/3/3/9/4/3/MTS_abd123-1275964-Screenshot-17_Edit.jpg
When I get close to my rug it give the same message:
http://thumbs2.modthesims.info/img/7/0/3/3/9/4/3/MTS_abd123-1275966-Screenshot-19_Edit.jpg
cmomoney
25th Feb 2012, 05:17 PM
Do you have a ''RoutingSlot_0" for the sim tou route to?
abd123
25th Feb 2012, 05:38 PM
Do you have a ''RoutingSlot_0" for the sim tou route to?
I don't know! :| maybe how do I know ?
I used :
this.Target .GetRoutingSlots ());
I Thought it may provide me the routing slot I need!
cmomoney
25th Feb 2012, 06:46 PM
That gets the routing slots for the object, but they have to already exist in the object.
abd123
25th Feb 2012, 06:58 PM
That gets the routing slots for the object, but they have to already exist in the object.
ok ... how do I know they already exist ? because I don't know how to extract the RIG and look at it ! :giggler:
These is what I think are the slots that are used !
which one is used for my rug :giggler:
None,
RoutingSlot_0 = 824351308u, // Used for an Easel
RoutingSlot_1,
RoutingSlot_2,
RoutingSlot_3,
RoutingSlot_4 = 824351304u,
RoutingSlot_5,
RoutingSlot_6,
RoutingSlot_7,
RoutingSlot_8 = 824351300u,
RoutingSlot_9,
RoutingSlot_10 = 2792941319u,
RoutingSlot_11 = 2792941318u,
RoutingSlot_12 = 2792941317u,
RoutingSlot_13 = 2792941316u,
RoutingSlot_14 = 2792941315u,
RoutingSlot_15 = 2792941314u,
RoutingSlot_16 = 2792941313u,
RoutingSlot_17 = 2792941312u,
RoutingSlot_18 = 2792941327u,
RoutingSlot_19 = 2792941326u,
RoutingSlot_Sentinel,
ContainmentSlot_0 = 2820733094u,
ContainmentSlot_1,
ContainmentSlot_2 = 2820733092u,
ContainmentSlot_3,
ContainmentSlot_4 = 2820733090u,
ContainmentSlot_5,
ContainmentSlot_6 = 2820733088u,
ContainmentSlot_7,
ContainmentSlot_8 = 2820733102u,
ContainmentSlot_9,
ContainmentSlot_10 = 1390898901u,
ContainmentSlot_11 = 1390898900u,
ContainmentSlot_12 = 1390898903u,
ContainmentSlot_13 = 1390898902u,
ContainmentSlot_14 = 1390898897u,
ContainmentSlot_15 = 1390898896u,
ContainmentSlot_16 = 1390898899u,
ContainmentSlot_17 = 1390898898u,
ContainmentSlot_18 = 1390898909u,
ContainmentSlot_19 = 1390898908u,
ContainmentSlot_20 = 1340566044u,
ContainmentSlot_21,
ContainmentSlot_22,
ContainmentSlot_23,
ContainmentSlot_41 = 1307010871u,
ContainmentSlot_42 = 1307010868u,
ContainmentSlot_43,
ContainmentSlot_62 = 1273455570u,
ContainmentSlot_Sentinel,
FXJoint_0 = 831137836u,
FXJoint_1,
FXJoint_2,
FXJoint_3,
FXJoint_4 = 831137832u,
FXJoint_5,
FXJoint_6,
FXJoint_7,
FXJoint_8 = 831137828u,
FXJoint_9,
FXJoint_Science_0 = 2632732107u,
FXJoint_Science_1 = 2632732106u,
FXJoint_Science_2 = 2632732105u,
FXJoint_Science_3 = 2632732104u,
FXJoint_SandsOfUnderstanding = 1563649546u,
FXJoint_Sentinel,
IKTarget_0 = 2730534067u,
IKTarget_1 = 2730534066u,
IKTarget_2 = 2730534065u,
IKTarget_3 = 2730534064u,
IKTarget_4 = 2730534071u,
IKTarget_5 = 2730534070u,
IKTarget_6 = 2730534069u,
IKTarget_7 = 2730534068u,
IKTarget_8 = 2730534075u,
IKTarget_9 = 2730534074u,
IKTarget_Sentinel,
PlacementSlot_N = 1555052449u,
PlacementSlot_S = 1555052476u,
PlacementSlot_E = 1555052458u,
PlacementSlot_W = 1555052472u,
PlacementSlot_Sentinel,
TransformBone = 3446206465u
cmomoney
28th Feb 2012, 02:48 PM
Slots are in the RSLT resource of you package. Rugs don't have routing slots, so you are either going to have to add one, or replace the RSLT in your rug with one from an object with a routing.
orangemittens
28th Feb 2012, 11:06 PM
Iirc rugs don't have an RSLT resource...at least none of the base game ones I've used in the past have. I don't know if a routing slot can be added if an object doesn't have an RSLT but, if not, it may be the case that you need to add an RSLT resource to your rug or clone some other object that has one and change it into a rug. On the other hand maybe there is a rug that has one and I just haven't happened to stumble across it.
leesester
28th Feb 2012, 11:14 PM
In theory you can add an RSLT and reference it in the VPXY.
orangemittens
28th Feb 2012, 11:27 PM
Yes...in theory that *should* work...I prolly shouldn't have mentioned it since I've never actually tested it :P
In reality I *know* you can change objects with an RSLT into a rug and the slots will still work :)
Please don't tell me EA really spelled windowslots "windoughslots"...lol.
cmomoney
28th Feb 2012, 11:47 PM
I don't know if rugs have one in the package, but there is one referenced in the VPXY.
leesester
29th Feb 2012, 12:02 AM
Please don't tell me EA really spelled windowslots "windoughslots"...lol.
Actually, that was me OM...
/me fails at spelling
whiterider
29th Feb 2012, 12:22 AM
Clearly, you knead a speltcheck.
orangemittens
29th Feb 2012, 12:53 AM
Actually, that was me OM...Well in that case I think it's a cute feature :)
None of the rugs I've seen have an RSLT in their .package. The RSLT the VPXY is referencing in several of them appears to be absent from Fullbuild0 unless I'm missing it. You could prolly just borrow that line and change it to match the new RSLT Instance if that's the way you chose to do it :)
abd123
29th Feb 2012, 06:22 PM
I managed to add a new one from an existing RSTL but the problem is how to use my
code which I wrote to work because it still give me a fail message:can't walking throught there"
I thought you may need the package so I send it to you to check it out !
Kitabalibar
29th Feb 2012, 06:42 PM
For the Rug, I used a simple function: RouteToObjectRadius(this, 0.5f). It is not perfect but working :)
cmomoney
29th Feb 2012, 06:48 PM
1. The routing slot in your RSLT needs to be named as the FNV32 hash of 'RoutingSlot_0'.
2. The position of the routing slot needs to be where you want the sims to route to. Currently it is 1,1,1, which won't work. Try 0,0,0 if you are not sure.
abd123
1st Mar 2012, 04:39 PM
1. The routing slot in your RSLT needs to be named as the FNV32 hash of 'RoutingSlot_0'.
2. The position of the routing slot needs to be where you want the sims to route to. Currently it is 1,1,1, which won't work. Try 0,0,0 if you are not sure.
I tried it out still not work here it's it's still give me the false message which mean it's not working!
For the Rug, I used a simple function: RouteToObjectRadius(this, 0.5f). It is not perfect but working
I tried it but nothing happend at all ! :S
cmomoney
1st Mar 2012, 04:51 PM
You misunderstood. When I said change the name, I meant the name of the actual slot(SlotName in Grid), not the RSLT resource itself. You will need to change the RSLT's ID back to what it was.
abd123
1st Mar 2012, 04:52 PM
You misunderstood. When I said change the name, I meant the name of the actual slot(SlotName in Grid), not the RSLT resource itself. You will need to change the RSLT's ID back to what it was.
oh you mean that one ! how could I misunderstoond this ? :faceslap:
ok now what should the SlotName be 824351308u maybe?
cmomoney
1st Mar 2012, 05:13 PM
0x31229a4c
abd123
1st Mar 2012, 05:25 PM
0x31229a4c
Ok still fail message !
cmomoney
1st Mar 2012, 05:33 PM
You forgot to change the positions.
abd123
1st Mar 2012, 05:40 PM
You forgot to change the positions.
Oh ! yes I forgot to change it ! :faceslap: ok but still it give me the fail message when I made the correction the position !
vBulletin v3.0.14, Copyright ©2000-2013, Jelsoft Enterprises Ltd.