Page 1 of 1

books not clickable

PostPosted: Sun Dec 13, 2009 9:44 am
by Justintime9
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

Re: books not clickable

PostPosted: Mon Dec 21, 2009 1:54 pm
by Justintime9
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

Re: books not clickable

PostPosted: Mon Dec 21, 2009 3:46 pm
by dendwaler
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.

Re: books not clickable

PostPosted: Mon Dec 21, 2009 6:36 pm
by D'Lanor
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.

Re: books not clickable

PostPosted: Mon Dec 21, 2009 9:25 pm
by Justintime9
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

Re: books not clickable

PostPosted: Mon Dec 21, 2009 10:14 pm
by GPNMilano
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.

Re: books not clickable

PostPosted: Tue Dec 22, 2009 8:51 am
by Justintime9
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?