Page 1 of 2

Chair problem

PostPosted: Mon Jun 02, 2008 1:48 pm
by Valdez
I tried to make a chair and it isn't working. I set the AlcScript up correctly and made sure the y-axis is in the right direction. I can click it with a hotspot but when I click nothing happens. Am I supposed to do something more than just the click region and the AlcScript? And if you need to see it here is my AlcScript for my Chair:

Code: Select all
good_chair:
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: rgn_chair_good
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: sittingmod
                ref: sittingmod:good_chair
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1


Anything wrong there or any suggestions you might have? Don't forget to tell me some common problems with this certain feature.

Thanks,
Valdez :geek:

Re: Chair problem

PostPosted: Mon Jun 02, 2008 2:16 pm
by boblishman
Have you made sure that the object centre of the chair is exactly at ground level ... and that the "seat" of the chair is exactly 2 Blender units above the object centre (and therefore the ground) ... ?

Re: Chair problem

PostPosted: Mon Jun 02, 2008 3:00 pm
by Valdez
I have been trying to get it equal but I can't get it exact. I got the center in the right place and the chair is pretty much at ground level. Does it matter if the object is off in the small decimal points? (small meaning past .00). If so, I will have to redo then, the chair is a bit complex.

Re: Chair problem

PostPosted: Mon Jun 02, 2008 9:44 pm
by Jojon
If you are off, the avatar will simply snap to the right position, measured from the object centre and nothing else, so I doubt that is a problem...

(Btw: It's hard to tell from the view one gets, but it looks to me like 1.9 may be a better fit - 2 full units seems to leave your legs slightly sunken into the sitting surface, which is ok for a soft cushion, I suppose :) Other opinions?)

Since you suggest you get the clicking hotspot, I do suppose it has bounds and is an actor...(?)
I believe the green arrow should be pointing in the direction your back will be, once seated, but any error there should simply result in things looking strange... :7
No ideas... :7

Re: Chair problem

PostPosted: Tue Jun 03, 2008 1:00 am
by Nadnerb
Well, we know your chair has bounds, as you can click on it, but you also need to be sure it is an actor, or else the sittingmod will fail.

Re: Chair problem

PostPosted: Tue Jun 03, 2008 10:33 am
by Valdez
Yes, there are bounds, and the chair IS an actor. That is why I can click on it. If it weren't an actor I couldn't click it. And also my click region is also an actor if you needed to know. (It has bounds too)

Re: Chair problem

PostPosted: Tue Jun 03, 2008 11:03 am
by Grogyan
Valdez wrote:I tried to make a chair and it isn't working. I set the AlcScript up correctly and made sure the y-axis is in the right direction. I can click it with a hotspot but when I click nothing happens. Am I supposed to do something more than just the click region and the AlcScript? And if you need to see it here is my AlcScript for my Chair:

Code: Select all
good_chair:
    logic:
        modifiers:
          - cursor: poised
            flags:
              - localelement
            activators:
              - type: objectinvolume
                remote: rgn_chair_good
                triggers:
                  - any
            conditions:
              - type: activator
                activators:
                  - type: picking
              - type: objectinbox
                satisfied: true
            actions:
              - type: sittingmod
                ref: sittingmod:good_chair
        actions:
          - type: sittingmod
            sittingmod:
                miscflags: 1


Anything wrong there or any suggestions you might have? Don't forget to tell me some common problems with this certain feature.

Thanks,
Valdez :geek:


This line appears to be an error
ref: sittingmod:good_chair

you have a second colon on the line and no space between them

Re: Chair problem

PostPosted: Tue Jun 03, 2008 11:04 am
by Nadnerb
This line appears to be an error
ref: sittingmod:good_chair

you have a second colon on the line and no space between them

That is not an error. He copied the code correctly. That is how a ref is formatted.

Re: Chair problem

PostPosted: Tue Jun 03, 2008 2:49 pm
by boblishman
errr... you ARE using the 1.4.0 version of the plugin? (this mod does not work with v.1.3.x)

Re: Chair problem

PostPosted: Tue Jun 03, 2008 4:38 pm
by Valdez
I was but then I realized that chairs don't work with 1.3.1 so i updated it to 1.4.0, but then as soon as the next export is done and I link in, I get a stupid call stack and I crash out of URU. :x What the heck happened? It could be the setup. All I did was delete all the files of the last one and then put in the new ones. Am I supposed to do something extra?