Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Romans_I_XVI
Roku Guru

Utility - Change Variables In Active Channel

Hi all,
I developed this utility for my own uses but I thought you might enjoy it too. I found myself constantly making little adjustments in my games to see how something looked, this meant constantly installing a new package to the Roku. Now with this simple little utility I can use a web interface to change variables on the fly 8-)

The utility can be found here.
https://github.com/Romans-I-XVI/Roku-Al ... le-Utility

And here's a video of it in action.
https://youtu.be/067FSZBmMSI

Hope you enjoy!
0 Kudos
5 REPLIES 5
Komag
Roku Guru

Re: Utility - Change Variables In Active Channel

Wait, how is that working?
What I've done is pause the game with CTRL+C in the console, enter some brightscript code, and then hit C to continue. But how are you doing something while the channel is running? I'm keen to try this out!
0 Kudos
Romans_I_XVI
Roku Guru

Re: Utility - Change Variables In Active Channel

I didn't even know you could pause it and do that... I thought ctrl+c just breaks it, didn't know you could resume.

Anyway, I'm using this http://sdkdocs.roku.com/plugins/servlet ... olServices . Your variables need to be using the special "m" pointer (either a global or in a "this" type of associative array). Which essentially all my games are design in this manner. You could of course modify it for other purposes though.

I hope you can figure it out, I developed it for my own use so I'm not saying it's pretty. But I did include instructions so hopefully others can find it useful.
0 Kudos
Romans_I_XVI
Roku Guru

Re: Utility - Change Variables In Active Channel

So I completely reconfigured this. I don't know what I was thinking at first. I should have been using Eval() ! Now that I'm using that you just put in your Roku ip address and then enter the code you would like to execute. Simple as that. So much easier, and plus Eval() ignores errors so syntax errors wont break your channel! 😛
0 Kudos
Komag
Roku Guru

Re: Utility - Change Variables In Active Channel

I forgot all about Eval, oops! I'll have to look at that 🙂
0 Kudos
sjb64
Roku Guru

Re: Utility - Change Variables In Active Channel

That's really cool and would have never thought of it, putting it in my background threading handler.
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.