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
<?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"
. . .
"destruk" wrote:
While OverhangPanelSetScene is supposed to be a basic built-in predefined component for scenegraph, see here:
https://sdkdocs.roku.com/display/sdkdoc ... elSetScene
The zip you linked to works fine on my roku's here - it's possible you don't have the minimum firmware revision required to extend that node.
You might try changing the extends for this specific case to simply be - extends="Scene" and see if that works. Otherwise it would be helpful to post the full debug log and any compile errors that show up. Also keep in mind that when learning a new OS or SDK or programming language they usually don't begin chapter one of the course with "everything and the kitchen sink" as well as post-graduate sample code all rolled into one. They start with "Hello World" - a simple short program that prints something to the screen and then each topic is split into a subsequent chapter. While your demo there shows practically every conceivable thing the roku can possibly do in scenegraph it most likely isn't any way to actually learn how things work. As you didn't write the code, you won't know where things are, where they fit together, what methods are available, etc without probably printing out every included file and going over it with a highlighter.
Roku does have over 30 sample apps explaining in detail every little piece available, maybe starting with one of those and grabbing what you require from others will bump you along development of your app.
"destruk" wrote:
What if you try working with this sample zip?
https://sdkdocs.roku.com/download/attac ... 429&api=v2
I had this same error and it drove me crazy trying to find the issue.
It ended up being the components folder was spelled incorrectly with a capital C.
Arghh
I was following the tutorial that said to create the folders. I should have copied and pasted!!!
past that issue, now the rest.... debug is a huge help. Use putty to open telnet to port 8085 you need to pick other in the format. not ssh..
Live and learn.