Page 1 of 2

Alcscript / ladders

PostPosted: Wed Jul 23, 2008 3:52 am
by Jonnee
Okay. So far so good...
I should start this permanent existing topic just for me an my troubles with the Alcscript. [/sarcastic] :D

The todays problem:
I have some ladders in my age, build in the quick way. But one ladder doesn't react to the avatar when I touch this ladder first time. So the avatar falls down into the hole. After successful climbing up this ladder it works fine finally. I can safely go down again and again. (huh??)

So I decided to create the regions for this ladder in the long way with using Alcscript.
But as you can image already I can't export of an error in the script, even if I took the script from the tutorial. (Tabs are deleted, spaces are added for sure)

Code: Select all
bottomregionname: rgn_ladder01bottom
    type: region
    region:
        type: ladder
        ladder:
            direction: up
            style: twofeet
            loops: 16

topregionname: rgn_ladder01top
    type: region
    region:
        type: ladder
        ladder:
            direction: down
            style: twofeet
            loops: 16


Blender says: error in line 322... mapping values are not allowed here
type : region

What does this mean please?

Re: Alcscript makes Jonnee dizzy in the head

PostPosted: Wed Jul 23, 2008 4:20 am
by Lontahv
Ok, this is a pretty easy one to spot.

bottomregionname: rgn_ladder01bottom

You forgot to take away the example stuff. Your script should look like this.

Code: Select all
rgn_ladder01bottom:
    type: region
    region:
        type: ladder
        ladder:
            direction: up
            style: twofeet
            loops: 16

rgn_ladder01top:
    type: region
    region:
        type: ladder
        ladder:
            direction: down
            style: twofeet
            loops: 16


I hope that works. :)

Re: Alcscript makes Jonnee dizzy in the head

PostPosted: Wed Jul 23, 2008 4:28 am
by Jonnee
I need coffee. I definitly need more coffee. :lol: *banging my head on the desktop* :D
Thanks, Lontahv.

Re: Alcscript makes Jonnee dizzy in the head

PostPosted: Wed Jul 23, 2008 7:06 am
by Jonnee
Ok, I become desperate.
The new script works.
But I wanted to find out, why the short way in creating ladders doesn't work with this one special ladder:
Image

For four hours I tried different possibilities. I resized the climb region, then I deleted other surrounding sound regions (thought they could influence the climb region). Later I deleted the ladder and the climb region and created them new.
It doesn't matter! All my ladders in the age work fine, but not this one. *arrrrrrgh!!* :cry:
The avatar always fells down into the hole when it steps infront of this ladder first time, whatever I do in blender. Finally after falling down and climbing up again the ladder works as it should do. Then I can go down as often as I want to do.
I have no more ideas left to solve this problem.

Anyone may help please?

Re: Alcscript makes Jonnee dizzy in the head

PostPosted: Wed Jul 23, 2008 12:14 pm
by Jonnee
five hours later...

Creating the long way for ladders doesn't work at this special spot too. I still don't know why.
I have deleted all objects of the age, rotated the ladder and the regions, or I copied working ladders and placed them there and the .sav file was deleted too. Always the same problem...
I'm annoyed. :evil:

If I walk to another ladder in my age I can move down with ease.

Re: Alcscript / ladders

PostPosted: Wed Jul 23, 2008 12:34 pm
by Trylon
I think that the top region is slightly misaligned.

Make sure that the object's center (origin) is level with the floor, or if that is not possible, only a fraction above the walking surface.

Re: Alcscript / ladders

PostPosted: Wed Jul 23, 2008 12:42 pm
by Marcello
On a side note... looks like a very promising age. Can't wait to visit it!!

Re: Alcscript / ladders

PostPosted: Wed Jul 23, 2008 2:10 pm
by Jonnee
@Trylon: The regions and their centers are definitly correct placed. :? The ladder works fine when I go there a second time. But it's very very important for the age concept that it works perfect right from the beginning.

@Marcello: Thanks for the compliment! :) Even if the screenshot doesn't show alot. (It's taken with intent in this position. Don't want to show you too much before the release of the age.)

Re: Alcscript / ladders

PostPosted: Wed Jul 23, 2008 3:06 pm
by Jojon
Other that the alignment issue, one thing I've noticed (..it doesn't really sound like it is what's at play here, but just in case..), is that it looks like the simple ladders have to have an even number of rungs, or you will stop climbing one rung short of the end. (...or can one set some flag to get rid of this behaviour?)

Age looks nice++. :)

Re: Alcscript / ladders

PostPosted: Wed Jul 23, 2008 3:18 pm
by Kato
Would a ladder-creating script help you in any way? I built one a long time ago that could work with minimal updating. For some reason I never merged it to the SVN. It doesn't work now, but, it shouldn't be hard to make it work.

-Kato