Forum Discussion

Romans_I_XVI's avatar
Romans_I_XVI
Roku Guru
10 years ago

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!

5 Replies

  • 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!
  • 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.
  • 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! 😛
  • I forgot all about Eval, oops! I'll have to look at that 🙂
  • That's really cool and would have never thought of it, putting it in my background threading handler.