Silverfeelin

Outdated SilverIO - Keybinds begone!

Average User Rating:
5/5,
Tags:
  • SilverIO>_

    Full overview can be viewed on the official page here.

    Built for .NET Framework 4.5.
    Demo: http://i.los.so/e/SilverIODemo.mp4

    This tool allows you to bind buttons on an external application to custom tech functions, which means you no longer have to bind LMB+Shift+Up+F to toggle hueshift!

    [​IMG]

    Available out of the box>_
    • Binding buttons to actions, which translate into running these functions in-game.
    • Spawning items from JSON files (StarCheat exports).
    • Running code directly from a text field.
    • 'Neat' interface that snaps to the side of your monitor, which you can fold to get it out of the way.
    • Running actions without losing focus of the game. No alt-tabbing back in!
    Quick set-up>_
    Never forget: In the Starbound.config (in giraffe_storage, not the mod folder), set "safeScripts" to false. This allows certain functions that this mod needs to function.
    1. Open SilverIO.lua in /tech/blink.
    2. Set the filePath and tempPath to the full path to the actions.txt and temp.txt file respectively. Note that that path should contains forward slashes, and not backslashes.
    3. Save the file and close it.
    The filePath should refer to the 'actions.txt' file in the root of the mod folder. The tempPath should refer to the 'temp.txt' file in the root of the mod folder.
    1. Open the controller in /Controller.
    2. Open the configuration window by selecting the three dots.
    3. Select the config file and write file. It is recommended to select the option that loads the data from the file, to make two test functions available.
    The config is located in the Controller folder, and the write file is the same 'actions.txt' file in the root of the mod folder.
    1. Start the game.
    2. Select a character with the blink tech active.
    3. Select one of the test functions in the controller, and see if they work!
    4. Write angry comments on this thread because something isn't working correctly.
    The basics to adding content>_
    Of course, the included functionality probably isn't going to be a reason to set up the controller. That is, unless you're really into spawning custom items directly into the game.
    The mod shouldn't take long to set up, depending on how experienced you are in understanding the structure of Lua.

    Combining this mod with your own script

    1. In your own blink file, put silverIO.init(), silverIO.uninit(), silverIO.input(args) and silverIO.update(args) in the function they belong in. It is highly recommended to insert the calls at the beginning of each function.
    2. At the top of your blink file (before any existing code), put require "/tech/blink/silverIO.lua".
    3. Remove the blink.lua file included with this mod.
    Making your own functions compatible
    You can either move your functions over, or reference to them. In this example, we'll add a reference to prevent damaging the structure of the existing code.

    In the silverIO.lua file, create a new function for your action. For example:
    Code:
    function silverIO.toggleHueshift()
    end
    The code in this function will be executed when running your action through the controller. You could set your self.hueshifting = not self.hueshifting (or whatever variable you use) here, to toggle the status of your hueshift.

    Since your own update code isn't modified, everything should still work as intended.
    The next step is binding the action in your controller. Detailed information on this can be found in the included readme file, but without diving into parameters all that matters is setting the action value to the name of the function (inside the silverIO table); toggleHueshift.
    [​IMG]

    Of course, if you're having a hard time setting up the mod or combining it with your own, don't hesitate to ask me in the discussion thread! Suggestions are welcome, but don't expect more Lua functions included (the included ones are mostly there to test if the mod works properly).
foghorn, EddieJackson, Monro and 3 others like this.

Recent User Reviews

  1. Endere
    5/5,
    "Wonderfully useful app!"
    Pros - Spawn StarCheat exports, create custom functions, and run code, all ingame! Allows you to create items in StarCheat, export them, and spawn them without having to exit the client!
    Cons - A bit tricky to figure out. And Mediafire makes me cringe.
    I was getting a headache trying to figure out what the issue was.
    Then I realized I had WEdit on simultaneously.

    slow facepalm
    Silverfeelin likes this.