Page 5 of 7

Re: Chamassa

PostPosted: Fri Mar 12, 2010 12:00 pm
by I.Brattin
Have yet to add footstep regions

Re: Chamassa

PostPosted: Fri Mar 12, 2010 12:32 pm
by boblishman
a shot in the dark ... you are not using page numbers are you ?
(did you append this cickable ?)

Re: Chamassa

PostPosted: Fri Mar 12, 2010 1:33 pm
by I.Brattin
Nope no page numbers

Re: Chamassa

PostPosted: Fri Mar 12, 2010 2:53 pm
by I.Brattin
Got the book to finally go hot. When I click on it though nothing happens. This is what Python.0.elf is saying (thanks to Andy over at GoMa for getting me an Elf Viewer).

Code: Select all
(03/12 15:47:43) xKI:GZ: Refreshing MarkerDisplay  0:0
(03/12 15:48:02) __init__ChamassaBookGUI v.3.0
(03/12 15:48:18) xKI.OnServerInitComplete(): age =  Chamassa
(03/12 15:48:52) ChamassaBookGUI: OnNotify called
(03/12 15:48:52) Someone clicked on object AquhBook
(03/12 15:48:52) It was you
(03/12 15:48:52) Trying book AquhBook with page(s) ['AquhPage']
(03/12 15:48:52) Match found! Start opening book...
(03/12 15:48:52) ChamassaBookGUI: IOpenBook: Page(s) requested ['AquhPage']
(03/12 15:48:52) Traceback (most recent call last):
(03/12 15:48:52)   File "D:\DOCUME~1\Admin\LOCALS~1\Temp\tmp2B.tmp\ChamassaBookGUI.py", line 35, in OnNotify
(03/12 15:48:52)   File "D:\DOCUME~1\Admin\LOCALS~1\Temp\tmp2B.tmp\ChamassaBookGUI.py", line 90, in IOpenBook
(03/12 15:48:52) ValueError: unpack tuple of wrong size
(03/12 15:48:52) ChamassaBookGUI: OnNotify called

Re: Chamassa

PostPosted: Fri Mar 12, 2010 3:20 pm
by D'Lanor
Congrats. As for this error, it is probably a matter of RTFM. ;)
Always keep the nesting structure [[double square brackets]] intact!


So that would be...
Code: Select all
bookPages = [['AquhPage']]

Re: Chamassa

PostPosted: Fri Mar 12, 2010 3:23 pm
by I.Brattin
As you can see I never removed the double square brackets.

Code: Select all
modPageDefs = __import__('ChamassaPageDefs')
ageBooks = ['AquhBook']
bookPages = [['AquhPage']]

Re: Chamassa

PostPosted: Fri Mar 12, 2010 3:34 pm
by D'Lanor
Then check your page definitions. Do they have the right amount of parameters? And btw, you are using an old version of my book template. Edit: hmm, it looks like the version there isn't the latest either, which should be 4.1. Better wait until I have updated that post...

Re: Chamassa

PostPosted: Fri Mar 12, 2010 3:39 pm
by I.Brattin
Code: Select all
AgeBooks = {'AquhBook': ('<cover src="leather"><margin right=32 left=32>', 0, 0, 'BkBook', 0.8, 1.0)}

BookPages = {'AquhPage': (PageStart + ImgStart + 'leather' + ImgEnd + AlignCenter)}

LinkDestinations = {'AquhPage': ('Aquh', 'LinkInPointDefault', None, PtLinkingRules.kOriginalBook)}


Look fine to me, but I really am not sure.

Re: Chamassa

PostPosted: Fri Mar 12, 2010 3:45 pm
by boblishman
I.Brattin wrote:Got the book to finally go hot....

would you mind telling us what was the problem ? (as we all spent quite some time trying to help ... )

Re: Chamassa

PostPosted: Fri Mar 12, 2010 3:50 pm
by I.Brattin
boblishman wrote:
I.Brattin wrote:Got the book to finally go hot....

would you mind telling us what was the problem ? (as we all spent quite some time trying to help ... )


Region wasn't large enough. Andy over at GoMa suggested having it large enough to go below the floor level, not even with. So I enlarged it so the bottom of the region sat below the floor level.