Resource Basic Tree Visualiser

Discussion in 'Tutorials & Resources' started by Party, Dec 26, 2016.

  1. Party

    Party Client Developer

    Joined:
    Oct 12, 2015
    Messages:
    3,551
    Likes Received:
    1,548
    Made a quick JavaFX application to aid those newer to the TreeBot framework. Basically uses the JavaFX TreeView to make it easier to visualise trees and edit them on-the-fly.

    Source can be found at:
    GitHub - RMParty/tree-visualiser: Basic Java FX application to aid developers new to the TreeBot framework.

    Jar:
    Available as attachment to thread.

    Not obfuscated, so feel free to decompile first if u no trust party man

    Changelog:

    1.1.1
    -Removed ability for spaces to be used in tree item names.
    -Fixed a bug where removing an item wouldn't let you add another child to that node.

    1.1.0
    -Added the ability to export the tree as .java files, for a simple bot skeleton!
    -Added ability to save trees for future use.
    -Added some more validation and fixed some spelling mistakes.
     

    Attached Files:

    #1 Party, Dec 26, 2016
    Last edited: Jan 5, 2017
  2. Geashaw

    Joined:
    Jan 8, 2015
    Messages:
    1,431
    Likes Received:
    252
    This sounds fun. Can we see screenies?
     
  3. Party

    Party Client Developer

    Joined:
    Oct 12, 2015
    Messages:
    3,551
    Likes Received:
    1,548
    Like I say, very basic. But it will be useful when seeing what your tree needs to look like, without having to refer to any "flow-chart makers" etc.

    It also has constraints so you can't put tasks under a leaf node, and you can't add more than 2 tasks under a branch etc.

    upload_2016-12-26_21-55-8.png
     
    Swatarinaess likes this.
  4. Geashaw

    Joined:
    Jan 8, 2015
    Messages:
    1,431
    Likes Received:
    252
    So programming using the #lazymanmode algoritm ^^
     
  5. Aidden

    Aidden The better executive

    Joined:
    Dec 3, 2013
    Messages:
    4,146
    Likes Received:
    852
    Sweet. Might use this ;)
     
  6. SlashnHax

    Joined:
    Dec 10, 2014
    Messages:
    2,974
    Likes Received:
    941
    Or just do it all in your head :kappa:
     
  7. Aidden

    Aidden The better executive

    Joined:
    Dec 3, 2013
    Messages:
    4,146
    Likes Received:
    852
    That works for you because your bots are pretty simple.
     
    jayZero and RobinPC like this.
  8. Arbiter

    Arbiter Mod Automation

    Joined:
    Jul 26, 2013
    Messages:
    2,789
    Likes Received:
    1,201
    This is perfect. We either talked about this or you read my mind. Wouldn't be surprised either way. Can it generate a bot skeleton with all the Tree classes?
     
  9. SlashnHax

    Joined:
    Dec 10, 2014
    Messages:
    2,974
    Likes Received:
    941
    Because my bots aren't a clusterfuck* ;)
     
    Serene likes this.
  10. Party

    Party Client Developer

    Joined:
    Oct 12, 2015
    Messages:
    3,551
    Likes Received:
    1,548
    I could certainly add that if there is demand for it.
    --- Double Post Merged, Dec 28, 2016, Original Post Date: Dec 27, 2016 ---
    Added ability to create bot skeleton.

    upload_2016-12-28_19-30-47.png
     
    Snufalufugus likes this.
  11. Aidden

    Aidden The better executive

    Joined:
    Dec 3, 2013
    Messages:
    4,146
    Likes Received:
    852
    When you remove a task it doesn't recognise that it's been removed and therefore doesn't allow you to add one to replace it.
     
    Serene likes this.
  12. Party

    Party Client Developer

    Joined:
    Oct 12, 2015
    Messages:
    3,551
    Likes Received:
    1,548
    I'll fix when I'm home. Something I overlooked when adding the skeleton writing.
     
  13. EthanOpia

    Joined:
    Aug 25, 2017
    Messages:
    243
    Likes Received:
    34
    Love this resource and use it for all my bots.

    Going to make a few tweaks though, like providing custom constructors for each branch and leaf that pass a "bot" variable down through the tree for reference to the main. I usually use the main for variables that need to be accessed by multiple leaves or branches and making custom constructors for them and changing the default declaration for each leaf or branch is pretty annoying. Probably an easier way to change them, but I'm not super knowledgeable with Intellij.
     
  14. Party

    Party Client Developer

    Joined:
    Oct 12, 2015
    Messages:
    3,551
    Likes Received:
    1,548
    If you have changes you'd like to make public please feel free to open a pull request on GitHub and let me know..!
     
  15. Juggy3

    Joined:
    Apr 25, 2019
    Messages:
    4
    Likes Received:
    0
    Awesome tool thank you!
     
    #15 Juggy3, Apr 26, 2019
    Last edited: Apr 27, 2019
  16. newyen

    Joined:
    May 19, 2019
    Messages:
    5
    Likes Received:
    0
    How do I open the .jar file?
     
  17. EthanOpia

    Joined:
    Aug 25, 2017
    Messages:
    243
    Likes Received:
    34
    Install java
     

Share This Page

Loading...