YoJae
9 years agoVisitor
No such node error on SceneGraphTutorial
I just started converting my channels to SceneGraph and downloaded sample channel from here: SceneGraphTutorial.zip.
But when I try to run it i get a runtime error: BRIGHTSCRIPT: ERROR: roSGScreen.CreateScene: No such node SceneGraphTutorialScene: pkg:/source/main.brs(11)
The screen is stuck with "Loading..." on it.
There is a components/tutorialpanelsetscene.xml which has
Am I doing something wrong? Any help appreciated
Best, YoJae
But when I try to run it i get a runtime error: BRIGHTSCRIPT: ERROR: roSGScreen.CreateScene: No such node SceneGraphTutorialScene: pkg:/source/main.brs(11)
The screen is stuck with "Loading..." on it.
sub Main()
showChannelSGScreen()
end sub
sub showChannelSGScreen()
screen = CreateObject("roSGScreen")
m.port = CreateObject("roMessagePort")
screen.setMessagePort(m.port)
scene = screen.CreateScene("SceneGraphTutorialScene") ' <- LINE 11
screen.show()
while(true)
msg = wait(0, m.port)
msgType = type(msg)
if msgType = "roSGScreenEvent"
if msg.isScreenClosed() then return
end if
end while
end sub
There is a components/tutorialpanelsetscene.xml which has
<?xml version = "1.0" encoding = "utf-8" ?>
<!--********** Copyright 2016 Roku Corp. All Rights Reserved. **********-->
<component name = "SceneGraphTutorialScene" extends = "OverhangPanelSetScene" >
<script type = "text/brightscript" >
<![CDATA[
sub init()
m.top.backgroundURI = "pkg:/images/rsgde_bg_hd.jpg"
. . .
Am I doing something wrong? Any help appreciated
Best, YoJae