books not clickable

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!

books not clickable

Postby Justintime9 » Sun Dec 13, 2009 9:44 am

I just added a journal and linkingbook to my age (finished all the files and everything). I made sure they were clickable and exported it, but no matter what I try, they aren't clickable!

I checked, and they're Actors, they have bounds, scale and rotation is applied, their regions have bounds and are actors. I put them on the shared page (I have 3 pages, 2 of which swap), and I even put them all on layer 2. The journal object is actually just a linkingpannel; the book and pedistal are swapped with the pages. Now, I'm pretty sure that even if I got the python files wrong, the objects would still be clickable, but I don't even get a hotspot :P.
Here's my scripts:

Code: Select all
ZJournal:
    physical:
        pinned: true
    quickscript:
        simpleclick:
            pythonfile: ZeforaBookGUI
            region: ZJournalReg
   
LinkingImage:
    physical:
        pinned: true
    quickscript:
        simpleclick:
            pythonfile: ZeforaBookGUI
            region: SMbookReg
User avatar
Justintime9
 
Posts: 1188
Joined: Sat Sep 29, 2007 5:37 am

Re: books not clickable

Postby Justintime9 » Mon Dec 21, 2009 1:54 pm

Well I'm pretty much stumped, but maybe you guys might be able to find what's causing it. Here's the Blendfile: (I've selected the two clickable object to make it easier.)

http://www.mediafire.com/?byiow1rqnzo
User avatar
Justintime9
 
Posts: 1188
Joined: Sat Sep 29, 2007 5:37 am

Re: books not clickable

Postby dendwaler » Mon Dec 21, 2009 3:46 pm

I had a quick look but had problems with the export.

Something wrong around the texturing of dark_cherry. jpg and DlinkingbookL.tga
look at export log

Maybe you have to clean your ZeforaT12_TexCache and do a full export.
Then you might notice it, and give you a clue where to look for.

I hope you will succeed.
Attachments
justin.jpg
justin.jpg (125.05 KiB) Viewed 2691 times
Those wonderfull Worlds are called " Ages" , because that is what it takes to build one.



Watch my latest Video Or even better..... watch the Cathedral's Complete Walkthrough made by Suleika!
User avatar
dendwaler
 
Posts: 936
Joined: Mon Jun 22, 2009 10:49 am
Location: Nederland

Re: books not clickable

Postby D'Lanor » Mon Dec 21, 2009 6:36 pm

Justin, I don't know what you did but the centers of these two clickable objects are way off. And since the object centers are outside their click regions the objects themselves are not clickable.
"It is in self-limitation that a master first shows himself." - Goethe
User avatar
D'Lanor
 
Posts: 1980
Joined: Sat Sep 29, 2007 4:24 am

Re: books not clickable

Postby Justintime9 » Mon Dec 21, 2009 9:25 pm

Hmmm... I checked and the object centers seem to be fine (they're at least in the regions), so perhaps you saw the wrong object? The two clickable objects that don't work are "LinkingImage" and "ZJournal". @ dendwaler, I think that error just came up because you don't have the textures. It exports fine for me, the books just don't work :P
User avatar
Justintime9
 
Posts: 1188
Joined: Sat Sep 29, 2007 5:37 am

Re: books not clickable

Postby GPNMilano » Mon Dec 21, 2009 10:14 pm

Justin. Both of your regions have are supposed to go to the "Shared" page. However you have listed in your the logic script "Page_num" for both of them, whereas it's supposed to be "page_num" all lower case. What's happening is that PyPRP is designed to create null scene objects when the scripting can't find what it's supposed to. So you're not actually exporting the ones you want, you're exporting ones that are being created on the fly by PyPRP. change "Page_num" to "page_num" for both and you should be good to go.

EDIT:

Also wanted to note that you might want to give your Spawn Points actual names. As you'll need to name them in any linking book defs, this will help keep them all separated. Just a helpful suggestion.
You can't stop the truth. IC Blog
User avatar
GPNMilano
 
Posts: 1155
Joined: Mon Apr 21, 2008 5:50 am

Re: books not clickable

Postby Justintime9 » Tue Dec 22, 2009 8:51 am

Awesome, the page_num thing was it. Everything works fine now. Is there a way to make the journal or linkingbook only appear in the daytime? Would visregions work with that?
User avatar
Justintime9
 
Posts: 1188
Joined: Sat Sep 29, 2007 5:37 am


Return to Building

Who is online

Users browsing this forum: No registered users and 0 guests

cron