Okay, I was just messing around, looking at the Myst V python, and Uru's python, D'Lanor told me it's a good way to learn Python and Plasma, just cruising through.
I thought about how I'd tried this a few months ago to no avail, but then I also admitted that I may have done something wrong. Since everyone was convinced you can't do this with Uru, I gave up.
But I decided to try again tonight, as my luck has been on a roll today with many things Age Creation related.
Okay, here is what I did:
In the Myst V xLinkingBookDefs.py python file you have this:
- Code: Select all
from Plasma import *
BookStart1 = '<font size=10>'
LinkStart = '<img src="'
TransLinkStart = '<img opacity=0.7 src="'
kFirstLinkPanelID = 100
LinkEnd = ('*1#0.hsm" align=center link=%d blend=alpha>' % kFirstLinkPanelID)
LinkEndPage = '*1#0.hsm" align=center link=%d blend=alpha>'
LinkEndNoLink = '*1#0.hsm" align=center blend=alpha>'
PageStart = '<pb>'
MovieLinkStart = '<movie src="avi\\'
MovieLinkEnd = ('.bik" align=center link=%d resize=yes>' % kFirstLinkPanelID)
xAgeLinkingBooks = {'Siralehn': (1.0,
1.0,
((((BookStart1 + PageStart) + LinkStart) + 'xLinkPanelNexusDefault') + LinkEnd),),
'DireboThgr': (1.0,
1.0,
(((((BookStart1 + PageStart) + MovieLinkStart) + 'direboWithAlpha') + MovieLinkEnd) + '<img src="xLinkingBookIslandSchematic01*1#0.hsm" pos=128,256 blend=alpha resize="no">'),),
'DireboTdlm': (1.0,
1.0,
(((((BookStart1 + PageStart) + MovieLinkStart) + 'direboWithAlpha') + MovieLinkEnd) + '<img src="xLinkingBookIslandSchematic02*1#0.hsm" pos=128,256 blend=alpha resize="no">'),),
The key here is that MovieLinkStart and MovieLinkEnd are defined up top in the python script. I snatched those 2 lines:
- Code: Select all
MovieLinkStart = '<movie src="avi\\'
MovieLinkEnd = ('.bik" align=center link=%d resize=yes>' % kFirstLinkPanelID)
Now I just copied this to my PageDefs file for my Nexus (Andy's Nexus Age), and went down and modified the Page Def for Direbo. Linked in, nothing happend. I mean I could not even click on the book. Puzzled about that, I went and looked at the log, and saw where the error was:
"kFirstLinkPanelID" was not defined. So I removed that, and now the two lines read like this:
- Code: Select all
MovieLinkStart = '<movie src="avi\\'
MovieLinkEnd = '.bik" align=center link=%d resize=yes>'
And that did it! I linked in and clicked on Direbo's linking book. It popped up, WITH AN ANIMATED LINKING PANEL!!!
Okay, there were a few more things, let me explain:
Not only do you need to add those 2 lines to your PageDefs.py file, but you need to go down and edit your BookPages part too. Here is what I put:
- Code: Select all
'Direbopg': ((((PageStart + MovieLinkStart) + 'direboWithAlpha') + MovieLinkEnd) + AlignCenter),
Now, the "direboWithAlpha" is actually a bik movie from the Myst V game folder. The first two lines that you add to define MovieLinkStart, it's telling you to put it in the avi folder. Uru has an avi folder. So I copied that bik file there (I have a bik player and when you double click on it, the movie is stretched just like the linking panel images are when making the ready for the Linking book).
Anyways, that did it! It worked!
Please someone else try this and verify this. There's other bik movies from Myst V that I think they are using for the linking panels on the books, but while they are laying there. It's late so I'm off to bed.
Wow!
