I tried, I really tried hard to make a clickable journal, but I don't know a thing about Python and after spending hours browsing the Wiki and fidling with Py files and plasmashop I'm stuck with this (from the python0.log):
(10/19 02:59:38) Traceback (most recent call last):
(10/19 02:59:38) File "D:\Temp\tmp80.tmp\0.py", line 69, in glue_getInst
(10/19 02:59:38) File "D:\Temp\tmp80.tmp\0.py", line 53, in glue_getClass
(10/19 02:59:38) TypeError: issubclass() arg 1 must be a class
(10/19 02:59:38) Python file 0.py, instance not found.
(10/19 02:59:38) Traceback (most recent call last):
(10/19 02:59:38) File "D:\Temp\tmp80.tmp\0.py", line 69, in glue_getInst
(10/19 02:59:38) File "D:\Temp\tmp80.tmp\0.py", line 53, in glue_getClass
(10/19 02:59:38) TypeError: issubclass() arg 1 must be a class
(10/19 02:59:38) Python file 0.py, instance not found.
The error returned is from the glue part but I haven't touched that part (imported it from Dustin tut.py from this 6th tutorial). The full python file is here
0.py.
The Age name is "0" and so is the PAK file and the py file inside.
The python file without the glue part:
- Code: Select all
from Plasma import *
from PlasmaTypes import *
from UruAgeManager import *
from xPsnlVaultSDL import *
actClickableObject = ptAttribActivator(1, 'Act: Clickable Object')
# Note: Change all "ptResponder" to "ptModifier" for a Modifier class
class BookTest1(ptResponder):
__module__ = __name__
def __init__(self):
ptResponder.__init__(self)
self.id = 160001
self.version = 1
def OnFirstUpdate(self):
print 'BookTest1 on first update'
def OnServerInitComplete(self):
print 'BookTest1 on serverinitcomplete'
def OnNotify(self, state, id, events):
print 'BookTest1 on OnNotify',
print id
if (ObjectMsg.value == 'BookObject'):
uam.output('BookTest1: showing journal')
uam.showBook('PBML Journal', self.key)
def OnSDLNotify(self, VARname, SDLname, playerID, tag):
print 'BookTest1 SDL notify.'
def OnTimer(self, id):
print 'BookTest1 Timer update',
print id
Why is Uru looking at D:\Temp\tmp80.tmp?? I guess that's where plasmashop stock his temp files.