Chair problem

If you feel like you're up to the challenge of building your own Ages in Blender or 3ds Max, this is the place for you!

Chair problem

Postby Valdez » Mon Jun 02, 2008 1:48 pm

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:
Fighting, Horrible disposition to others based on beliefs... What's the point anymore? Was there ever a point? Dead is what it is and always will be until peace is achieved through everyone.
User avatar
Valdez
 
Posts: 106
Joined: Fri Jan 04, 2008 4:44 pm

Re: Chair problem

Postby boblishman » Mon Jun 02, 2008 2:16 pm

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) ... ?
when it comes to Age creation ... "DOH" seems to be my middle name...
User avatar
boblishman
 
Posts: 882
Joined: Fri Oct 05, 2007 4:47 pm
Location: Spain

Re: Chair problem

Postby Valdez » Mon Jun 02, 2008 3:00 pm

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.
Fighting, Horrible disposition to others based on beliefs... What's the point anymore? Was there ever a point? Dead is what it is and always will be until peace is achieved through everyone.
User avatar
Valdez
 
Posts: 106
Joined: Fri Jan 04, 2008 4:44 pm

Re: Chair problem

Postby Jojon » Mon Jun 02, 2008 9:44 pm

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
Jojon
 
Posts: 1116
Joined: Sun Sep 30, 2007 5:49 am

Re: Chair problem

Postby Nadnerb » Tue Jun 03, 2008 1:00 am

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.
Image
Live KI: 34914 MOULa KI: 23247 Gehn KI: 11588 Available Ages: TunnelDemo3, BoxAge, Odema
Nadnerb
 
Posts: 1057
Joined: Fri Sep 28, 2007 8:01 pm
Location: US (Eastern Time)

Re: Chair problem

Postby Valdez » Tue Jun 03, 2008 10:33 am

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)
Fighting, Horrible disposition to others based on beliefs... What's the point anymore? Was there ever a point? Dead is what it is and always will be until peace is achieved through everyone.
User avatar
Valdez
 
Posts: 106
Joined: Fri Jan 04, 2008 4:44 pm

Re: Chair problem

Postby Grogyan » Tue Jun 03, 2008 11:03 am

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
Better to have loved and lost than never to have loved at all
User avatar
Grogyan
 
Posts: 1203
Joined: Thu Oct 11, 2007 1:27 am

Re: Chair problem

Postby Nadnerb » Tue Jun 03, 2008 11:04 am

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.
Image
Live KI: 34914 MOULa KI: 23247 Gehn KI: 11588 Available Ages: TunnelDemo3, BoxAge, Odema
Nadnerb
 
Posts: 1057
Joined: Fri Sep 28, 2007 8:01 pm
Location: US (Eastern Time)

Re: Chair problem

Postby boblishman » Tue Jun 03, 2008 2:49 pm

errr... you ARE using the 1.4.0 version of the plugin? (this mod does not work with v.1.3.x)
when it comes to Age creation ... "DOH" seems to be my middle name...
User avatar
boblishman
 
Posts: 882
Joined: Fri Oct 05, 2007 4:47 pm
Location: Spain

Re: Chair problem

Postby Valdez » Tue Jun 03, 2008 4:38 pm

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?
Fighting, Horrible disposition to others based on beliefs... What's the point anymore? Was there ever a point? Dead is what it is and always will be until peace is achieved through everyone.
User avatar
Valdez
 
Posts: 106
Joined: Fri Jan 04, 2008 4:44 pm

Next

Return to Building

Who is online

Users browsing this forum: No registered users and 1 guest

cron