Yes, that is an in-game shot.

(02/16 18:48:27) Someone clicked on object credits
(02/16 18:48:27) It was you
(02/16 18:48:27) Try book welcomebk with page(s) ['cbwelcomebk']
(02/16 18:48:27) Try book assignbook with page(s) ['cbassign']
(02/16 18:48:27) Try book answers with page(s) ['cbanswers']
(02/16 18:48:27) Try book credits with page(s) ['cbcredits']
(02/16 18:48:27) Match found! start opening...
(02/16 18:48:27) CampbravoDTBookGUI: IOpenBook: Page request for ['cbcredits']
(02/16 18:48:27) Traceback (most recent call last):
(02/16 18:48:27) File ".\python\CampbravoDTBookGUI.py", line 60, in OnNotify
(02/16 18:48:27) self.IOpenBook(a, b)
(02/16 18:48:27) File ".\python\CampbravoDTBookGUI.py", line 106, in IOpenBook
(02/16 18:48:27) (bkCover, bkFont, startOpen, forceOwned,) = bkParams
(02/16 18:48:27) ValueError: unpack tuple of wrong size
(bkCover, bkFont, startOpen, forceOwned,) = bkParams
('<cover src="*YourTexture*"><margin right=32 left=32>', '<font size=12 face=Arial color=000000>', 0, 0)
(1, 2, 3, 4)
(02/17 10:39:04) CampbravoDTBookGUI: OnNotify called
(02/17 10:39:04) Someone clicked on object glink1
(02/17 10:39:04) It was you
(02/17 10:39:04) Try book welcomebk with page(s) ['cbwelcomebk']
(02/17 10:39:04) Try book assignbook with page(s) ['cbassign']
(02/17 10:39:04) Try book answers with page(s) ['cbanswers']
(02/17 10:39:04) Try book credits with page(s) ['cbcredits']
(02/17 10:39:04) Try book linkbook1 with page(s) ['CBlink1']
(02/17 10:39:04) Try book glink1 with page(s) ['GahreesenLink']
(02/17 10:39:04) Match found! start opening...
(02/17 10:39:04) CampbravoDTBookGUI: IOpenBook: Page request for ['GahreesenLink']
(02/17 10:39:04) Showing page for Garrison
(02/17 10:39:04) Linking pages created: 1
(02/17 10:39:04) CampbravoDTBookGUI: OnNotify called
(02/17 10:39:04) BookNotify event=1, id=0
(02/17 10:39:04) Show Book
(02/17 10:39:04) Traceback (most recent call last):
(02/17 10:39:04) File ".\python\CampbravoDTBookGUI.py", line 80, in OnNotify
(02/17 10:39:04) PtSendKIMessage(kDisableKIandBB, 0)
(02/17 10:39:04) NameError: global name 'kDisableKIandBB' is not defined
(02/17 10:39:04) CampbravoDTBookGUI: OnNotify called
(02/17 10:39:08) CampbravoDTBookGUI: OnNotify called
(02/17 10:39:08) BookNotify event=6, id=0
(02/17 10:39:08) Close Book
(02/17 10:39:09) CampbravoDTBookGUI: OnNotify called
(02/17 10:39:09) BookNotify event=2, id=0
(02/17 10:39:04) Traceback (most recent call last):
(02/17 10:39:04) File ".\python\CampbravoDTBookGUI.py", line 80, in OnNotify
(02/17 10:39:04) PtSendKIMessage(kDisableKIandBB, 0)
(02/17 10:39:04) NameError: global name 'kDisableKIandBB' is not defined
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)}
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)}
###############################################################################
# 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. #
###############################################################################
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)}
Trylon wrote:
- Code: Select all
(02/17 10:39:04) Traceback (most recent call last):
(02/17 10:39:04) File ".\python\CampbravoDTBookGUI.py", line 80, in OnNotify
(02/17 10:39:04) PtSendKIMessage(kDisableKIandBB, 0)
(02/17 10:39:04) NameError: global name 'kDisableKIandBB' is not defined
tells me that on line 80 in CampbravoDTBookGUI.py, there is a command "PTSendKIMessage(kDisbleKIandBB,0)", which cannot be executed because the constant "kDIsableKIandBB" isn't set to a value anywhere in the code.
else:
for event in events:
if (event[0] == PtEventType.kBook) and (PtWasLocallyNotified(self.key)):
print('BookNotify event=%d, id=%d' % (event[1], event[2]))
if (event[1] == PtBookEventTypes.kNotifyImageLink):
if (event[2] >= xLinkingBookDefs.kFirstLinkPanelID):
print('BookNotify: hit linking panel %s' % event[2])
ourBook.hide()
for i in range(0, len(bkLinks)):
if (event[2] == bkLinks[i][0]):
try:
self.IlinkToAge(bkLinks[i][1], bkLinks[i][2], bkLinks[i][3], bkLinks[i][4])
except Exception, detail:
print('ERROR: Unable to initialize link - %s' % (detail))
break
elif (event[1] == PtBookEventTypes.kNotifyShow):
print('Show Book')
PtSendKIMessage(kDisableKIandBB, 0)
elif (event[1] == PtBookEventTypes.kNotifyHide):
print('Hide Book')
PtSendKIMessage(kEnableKIandBB, 0)
elif (event[1] == PtBookEventTypes.kNotifyNextPage):
print('To Next Page %d' % (ourBook.getCurrentPage()))
elif (event[1] == PtBookEventTypes.kNotifyPreviousPage):
print('To Previous Page %d' % (ourBook.getCurrentPage()))
elif (event[1] == PtBookEventTypes.kNotifyCheckUnchecked):
print('Relto Page Toggled')
elif (event[1] == PtBookEventTypes.kNotifyClose):
print('Close Book')
from PlasmaKITypes import *
Users browsing this forum: No registered users and 2 guests