Results 1 to 11 of 11

Thread: In-Game Scripting Tools

  1. #1
    Join Date
    May 2016
    Posts
    1,072

    In-Game Scripting Tools

    I thought it might be a nice idea if we started to share among ourselves some tools we have created to make scripting easier. I can't be the only one who sometimes does this.

    To get us started, I present the Table Position Finder. It is a little token you place on the table that outputs its X/Y/Z to notes, formatted for easy copy/paste. So when you have to place objects on a table without any easy reference points, this helps remove a lot of annoying guess work. http://steamcommunity.com/sharedfile.../?id=813161266

  2. #2
    Uhm, well I made an Easy Object Editor that's sort of like yours.
    In the Object Inspector you can get the position/rotation/scale of any object on the board by entering it's GUID into a notecard. This is rounded to 2 decimal places by default, but this can be changed to be more accurate in the script.
    In the Object Editor you can edit the scales of objects on different axes and add values to it's initial height etc. (For example, "Position: #, #+2" would raise it by 2 inches whenever you hit Commit Changes.)

    I also have a Radial Object Placer that lets you put a bunch of objects in a flat circle equal-distance apart, while also having added rotations or whatever. It's useful for a lot of things surprisingly.

  3. #3
    Join Date
    May 2016
    Posts
    1,072
    Nice all around, just what I was hoping to see =)

  4. #4
    Here are two tools I use while building modules:



    The color wheel helps to preview and then easily grab the formatted values of the current object TINT.

    The Trashcan counts all of the objects in your module and then rotate through each object one at a time like this:
    - Click & Hold the Can to bring object 1 to the center of your table for inspection.
    - Drop the Can and object 1 is returned to its original position.
    - Click & Hold the Can again to bring object 2 to the center of your table for inspection...
    - Once you have targeted the 'rogue' object you are seeking, click the Get button to send that item to the trash.

    I also use a position tool similar to MrStump with a trigger to find the distance from point A to B.

  5. #5
    It might be nice if we compile a more thorough list of tools used to support a mod development, or have a named method of tagging them on workshop. I'm kicking myself for not seeing earlier some of these tools and others I've now seen on the workshop as there could have been much time saving.

    Here's my contribution:
    http://steamcommunity.com/sharedfile.../?id=843379264

    In one of the things I've scripted, I've used Names/Descriptions to store tagging information for scripts to dynamically find objects that meet criteria without having to store guids.
    The biggest obstacle of this method is sometimes the time cost of actually naming/setting the description of all these components -- in mods with massive amounts of components.

    So I made these little tools that apply a description and/or name to whatever you feed through it -- one is for loose objects, the other is for cards in a deck. It would not be hard to tweak these things to apply script variables -- either script properties or even full scripts themselves to many objects (prime example is a deck of cards each needing an 'onLoad()' process.)

  6. #6
    My few tools http://steamcommunity.com/sharedfile.../?id=846029623
    Sorry for the Russian language. I made it for myself.
    But you can use it "as is" if you like (or you may use google translate).
    And this article in some way is a training tool rather than a game tool.

  7. #7
    Join Date
    May 2016
    Posts
    1,072
    Nice!

    I should add that Sancho and I put together some useful functions in a guide. Common, useful little bits of code, basically. http://steamcommunity.com/sharedfile.../?id=752690530

    And, coming soon is my Widget tool. I'm working on it now. It will allow for faster, easier, more accurate placement of.. well... anything with a GUID. Sneak preview: https://www.screencast.com/t/0Bl1d826a

  8. #8
    Join Date
    May 2016
    Posts
    1,072
    The "Widget Tool" is now "Gizmo Buddy" and its done!

    http://steamcommunity.com/sharedfile.../?id=850553255

  9. #9
    I made this tool that lets you mess with tables.

    http://steamcommunity.com/sharedfile.../?id=854332383

  10. #10
    Join Date
    May 2016
    Posts
    1,072
    I was going to go back and re-do my table manipulator, but I couldn't have done it one iota better. Nice work!

  11. #11
    Join Date
    May 2016
    Posts
    1,072
    I made an Info Cube for getting Position/Rotation/Scale/Tint/Tag/Custom Model Info for an object. http://steamcommunity.com/sharedfile.../?id=861140037

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •