Dynamic Book Template (version 2.1)

Help bring our custom Ages to life! Share tips and tricks, as well as code samples with other developers.

Re: Dynamic Book Template (version 2)

Postby andylegate » Sun Feb 10, 2008 8:54 pm

Okay, from what I can see, those two Python files look okay (all though I'm still using the old book template. In that one ageBooks and bookPages use parens instead of brackets:

Old template:
Code: Select all
ageBooks = ('welcomebk', 'assignbook', 'answers', 'credits', 'linkbook1')
bookPages = (['cbjournal1'], ['cbjournal2'], ['cbjournal3'], ['cbcredits'], ['cblink1'])


And the new one:

Code: Select all
ageBooks = ['GeneratorJournal','Dummy']
bookPages = [['genJournal01', 'genJournal02'],['Dummy']]


But I don't think that is it.

What seems to be happening (sounds like it anyway) is that, for some reason, Uru is not seeing you Python file at all, so it's not even giving you a chance to click in the first place.
We've checked the normal things. And that's about all I can think of......except for one other thing:

Open up your tsahvkotsah.py file in PlasmaShop.

Take a look at this line here:

Code: Select all
class Campbravo(ptResponder,):
    __module__ = __name__

    def __init__(self):
        ptResponder.__init__(self)
        self.id = 51020001


Make sure that after the word class, you have your Age name just as you're exporting it. But the most important thing, look at the self.id = 51020001 line. 51010001 is unique to my Age. My Age presequence number is 5101. The 0001 is just a ID number. So look at your book in the Text editor in Blender, and use your presequence number you gave your Age. If it was like 185, then put 1850001 there.

The reason I mentioned this is this:
I've taken my Age and made it into Daytime. It now has a presequence number of 5102. I have not made a python file for it, and even though the books in it are the same, and point to the same Python file, that number is different......so Uru doesn't even give me a hot cursor when I put it over the books.

That's the last thing I can think of. If this isn't it, one of the Python experts is going to have to help you.
"I'm still trying to find the plKey for Crud!"
Image
Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
User avatar
andylegate
 
Posts: 2348
Joined: Mon Oct 01, 2007 7:47 am

Re: Dynamic Book Template (version 2)

Postby dah'kree » Sun Feb 10, 2008 10:11 pm

I found out why it wasnt recognizing my world python file, I went into blender and changed the default book line:
Code: Select all
agesdlhook: true

to:
Code: Select all
agesdlhook: True


and now my Python.0.elf reads:
Code: Select all
(02/10 22:57:30) __init__tsahvkotsahBookGUI v.2
(02/10 22:57:31) tsahvkotsah on first update
(02/10 22:57:31) tsahvkotsah on serverinitcomplete


Journal still doesn't work however.
.Tahgehmah b'zoo ah rehlehm
.Tahgehmah b'zoo ah rehkor
.Tahgehmah b'zoo ah rehmahgah b'sel d'sehv
ImageImage
User avatar
dah'kree
 
Posts: 40
Joined: Tue Jan 29, 2008 9:47 pm
Location: Texas

Re: Dynamic Book Template (version 2)

Postby D'Lanor » Mon Feb 11, 2008 3:27 am

The problem must be in the alcscript. Perhaps you made the region clickable instead of the book itself?
"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: Dynamic Book Template (version 2)

Postby andylegate » Mon Feb 11, 2008 4:46 am

Duh, I didn't even think of asking you if your SDLhook was enabled, as that's set default to on now..... :roll:
"I'm still trying to find the plKey for Crud!"
Image
Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
User avatar
andylegate
 
Posts: 2348
Joined: Mon Oct 01, 2007 7:47 am

Re: Dynamic Book Template (version 2)

Postby dah'kree » Mon Feb 11, 2008 6:44 am

D'Lanor wrote:The problem must be in the alcscript. Perhaps you made the region clickable instead of the book itself?

Nope, the journal is the clickable and the region is generic.
andylegate wrote:Duh, I didn't even think of asking you if your SDLhook was enabled, as that's set default to on now..... :roll:

Well...my default setting was wrong, it wasn't recognizing it as enabled unless you went in and capitalized 'true'.
.Tahgehmah b'zoo ah rehlehm
.Tahgehmah b'zoo ah rehkor
.Tahgehmah b'zoo ah rehmahgah b'sel d'sehv
ImageImage
User avatar
dah'kree
 
Posts: 40
Joined: Tue Jan 29, 2008 9:47 pm
Location: Texas

Re: Dynamic Book Template (version 2)

Postby dah'kree » Mon Feb 11, 2008 6:50 am

Code: Select all
GeneratorJournal:
    quickscript:
        simpleclick:
            pythonfile: tsahvkotsahBookGUI
            region: genJournalRegion

properties: clickfileX = tsahvkotsahBookGUI

Region properties: type = region
.Tahgehmah b'zoo ah rehlehm
.Tahgehmah b'zoo ah rehkor
.Tahgehmah b'zoo ah rehmahgah b'sel d'sehv
ImageImage
User avatar
dah'kree
 
Posts: 40
Joined: Tue Jan 29, 2008 9:47 pm
Location: Texas

Re: Dynamic Book Template (version 2)

Postby andylegate » Mon Feb 11, 2008 6:53 am

Okay, so let me refresh my memory:

Your problem is that when you link in to your Age and go to your Journals, the cursor won't go hot so you can click on them, right?

Oh, and another question, is your Journal completely inside your click region?
"I'm still trying to find the plKey for Crud!"
Image
Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
User avatar
andylegate
 
Posts: 2348
Joined: Mon Oct 01, 2007 7:47 am

Re: Dynamic Book Template (version 2)

Postby dah'kree » Mon Feb 11, 2008 6:56 am

It is, AND the click region is big enough to contain the entire avatar.
Blender wines when it isnt in there....
.Tahgehmah b'zoo ah rehlehm
.Tahgehmah b'zoo ah rehkor
.Tahgehmah b'zoo ah rehmahgah b'sel d'sehv
ImageImage
User avatar
dah'kree
 
Posts: 40
Joined: Tue Jan 29, 2008 9:47 pm
Location: Texas

Re: Dynamic Book Template (version 2)

Postby andylegate » Mon Feb 11, 2008 7:02 am

sigh....

Well, we're getting to the point now that we might have to look at your blend file itself. I don't suppose you could upload it somewhere so that we can download it and have a look see at it? We don't need your textures. Just the blend file. Oh, and your python pak file would be good too.
"I'm still trying to find the plKey for Crud!"
Image
Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
User avatar
andylegate
 
Posts: 2348
Joined: Mon Oct 01, 2007 7:47 am

Re: Dynamic Book Template (version 2)

Postby dah'kree » Mon Feb 11, 2008 7:13 am

oi, here it 'tis...

http://www.megaupload.com/?d=IC6VO98A

The journal is in the room under the island...
.Tahgehmah b'zoo ah rehlehm
.Tahgehmah b'zoo ah rehkor
.Tahgehmah b'zoo ah rehmahgah b'sel d'sehv
ImageImage
User avatar
dah'kree
 
Posts: 40
Joined: Tue Jan 29, 2008 9:47 pm
Location: Texas

PreviousNext

Return to Scripting

Who is online

Users browsing this forum: No registered users and 1 guest