Alcscript / ladders

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!

Alcscript / ladders

Postby Jonnee » Wed Jul 23, 2008 3:52 am

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?
Last edited by Jonnee on Wed Jul 23, 2008 12:19 pm, edited 1 time in total.
User avatar
Jonnee
 
Posts: 266
Joined: Fri Nov 16, 2007 9:45 pm

Re: Alcscript makes Jonnee dizzy in the head

Postby Lontahv » Wed Jul 23, 2008 4:20 am

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. :)
Currently getting some ink on my hands over at the Guild Of Ink-Makers (PyPRP2).
User avatar
Lontahv
Councilor of Artistic Direction
 
Posts: 1331
Joined: Wed Oct 03, 2007 2:09 pm

Re: Alcscript makes Jonnee dizzy in the head

Postby Jonnee » Wed Jul 23, 2008 4:28 am

I need coffee. I definitly need more coffee. :lol: *banging my head on the desktop* :D
Thanks, Lontahv.
User avatar
Jonnee
 
Posts: 266
Joined: Fri Nov 16, 2007 9:45 pm

Re: Alcscript makes Jonnee dizzy in the head

Postby Jonnee » Wed Jul 23, 2008 7:06 am

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?
User avatar
Jonnee
 
Posts: 266
Joined: Fri Nov 16, 2007 9:45 pm

Re: Alcscript makes Jonnee dizzy in the head

Postby Jonnee » Wed Jul 23, 2008 12:14 pm

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.
User avatar
Jonnee
 
Posts: 266
Joined: Fri Nov 16, 2007 9:45 pm

Re: Alcscript / ladders

Postby Trylon » Wed Jul 23, 2008 12:34 pm

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.
One day I ran through the cleft for the fiftieth time, and found that uru held no peace for me anymore.
User avatar
Trylon
 
Posts: 1446
Joined: Fri Sep 28, 2007 11:08 pm
Location: Gone from Uru

Re: Alcscript / ladders

Postby Marcello » Wed Jul 23, 2008 12:42 pm

On a side note... looks like a very promising age. Can't wait to visit it!!
User avatar
Marcello
 
Posts: 374
Joined: Sun Nov 04, 2007 8:59 am
Location: Haarlem, The Netherlands

Re: Alcscript / ladders

Postby Jonnee » Wed Jul 23, 2008 2:10 pm

@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.)
User avatar
Jonnee
 
Posts: 266
Joined: Fri Nov 16, 2007 9:45 pm

Re: Alcscript / ladders

Postby Jojon » Wed Jul 23, 2008 3:06 pm

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

Re: Alcscript / ladders

Postby Kato » Wed Jul 23, 2008 3:18 pm

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
Image
(explorer card designed and created by me)
User avatar
Kato
 
Posts: 315
Joined: Fri Sep 28, 2007 8:02 pm
Location: South USA

Next

Return to Building

Who is online

Users browsing this forum: No registered users and 1 guest