Well that's D'Lanor's scripting, I didn't touch that. Not sure what it's for.
But, I think I know what my problem is:
Basically, I'm trying to create a link to the beginning of Gahreesen. I WANTED to link in at the rooftop, outside where you touch the last journey cloth, but then realized that many people may not have done that yet, so I have to settle for just linking into the beginning.
Now, that's okay, and normally, it's the LinkInPointDefault for Ages. I have that defined in my PageDefs as:
Code: Select all
LinkDestinations = {'cbwelcomebk': (None, None, None, None),
'cbassign': (None, None, None, None),
'cbanswers': (None, None, None, None),
'cbcredits': (None, None, None, None),
'CBlink1': ('Cleft', 'LinkInPointDefault', Default, PtLinkingRules.kOriginalBook),
'GahreesenLink': ('Garrison', 'LinkInPointDefault', Default, PtLinkingRules.kOriginalBook)}
But of course I also needed to set the page up so I used this:
Code: Select all
BookPages = {'cbwelcomebk': (PageStart + Defwelcomebk),
'cbassign': (PageStart + Defassign),
'cbanswers': (PageStart + Defanswers),
'cbcredits': (PageStart + Defcredits),
'CBlink1': (PageStart + ImgStart + 'xLinkPanelCleftDesert*1#0.hsm' + ImgEnd + AlignCenter),
'GahreesenLink': (PageStart + ImgStart + 'xlinkpanelnexusdefault*0#3.hsm' + ImgEnd + AlignCenter)}
I'm thinking that the problem is, it's not finding the xlinkpanelnexusdefault*0#3.hsm to use as the linking panel.
As that's the case, it's failing to create the link to Gahreesen. I'm getting ready to try using a different Image, and see if it shows up, and if I then link to Gahreesen.
EDIT: Later....
Okay, dummy me realized that yes, I was using the wrong linking panel, that one up there is for the Nexus. So I put in the right one, xlinkpanelgarrisondefault*0#2.hsm
Also on a side note, setting the spawn Title to Default kills my linking books working, I set them back to None since they are the default linking books.
Okay, still no joy. Book pops up, no linking panel shown, just a blank page. Cleft book works just fine.
Looking back over the PageDefs file, I read D'Lanor's comments:
###############################################################################
# AgeBooks Dictionary Section: #
# 1 = same names as the clickable book objects! #
# 2 = book cover and margin #
# 3 = main font #
# 4 = start book open or closed. 0 closed book, 1 open book #
# 5 = force owned setting. 0 off, 1 on #
# #
# Notes: - The cover can have the same texture as the book object itself. #
# - You can set the book cover to an empty string if startOpen is 1. #
# - The main font can be changed later in the BookPages definition. #
# If you don't need a main font (because you are changing it later), #
# you can set an empty string. #
# - force owned: If set to 1 the code checks if the original book has #
# been found. A player who does not own the age will not see the #
# linking panel. If you need this restriction set force owned to 1. #
###############################################################################
Okay, my Avie HAS completed the whole game, and yes, he owns the book to Gahreesen.
And again, here is my line of code for this:
Code: Select all
AgeBooks = {'welcomebk': ('<cover src="welcomebookfront"><margin right=32 left=32>', '<font size=12 face=Arial color=000000>', 0, 0),
'assignbook': ('<cover src="assignment"><margin right=32 left=32>', '<font size=12 face=Arial color=000000', 0, 0), 'answers': ('<cover src="answerscover"><margin right=32 left=32>', '<font size=12 face=Airal color=000000>', 0, 0), 'credits': ('<cover src="welcomebookfront"><margin right=32 left=32>', '<font size=12 face=Arial color=000000>', 0, 0), 'linkbook1': ('<cover src="welcomebookfront">', '', 0, 0), 'glink1': ('<cover src="glink1cover">', '', 0, 0)}
As you can see, I have the Forced Own set to 0 for glink1, which is the linking book I'm having problems with. So even if I didn't own the book, the linking panel should still show up.
The log is still not showing an error, it says the linking page is being created........this one sure has me stumped. I'm thinking of going in and chaning to the linking panel to the same one as the cleft, just to see if it will at least show that and allow me to link. I know that you can show the wrong panel and link to somewhere it doesn't show as I used that in Night Time as a bug. I showed the top of the Kadish Pyramid, and you link to the Cleft instead.
Now, see this is a good point. This linking book is the first time I'm trying to use a linking pannel other than the ones D'Lanor had in his original template.