1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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,708
    Likes Received:
    1,606
    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,429
    Likes Received:
    252
    This sounds fun. Can we see screenies?
     
  3. Party

    Party Client Developer

    Joined:
    Oct 12, 2015
    Messages:
    3,708
    Likes Received:
    1,606
    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,429
    Likes Received:
    252
    So programming using the #lazymanmode algoritm ^^
     
  5. Aidden

    Aidden Author of MaxiBots

    Joined:
    Dec 3, 2013
    Messages:
    6,482
    Likes Received:
    990
    Sweet. Might use this ;)
     
  6. SlashnHax

    Joined:
    Dec 10, 2014
    Messages:
    3,198
    Likes Received:
    1,041
    Or just do it all in your head :kappa:
     
    generalsensei likes this.
  7. Aidden

    Aidden Author of MaxiBots

    Joined:
    Dec 3, 2013
    Messages:
    6,482
    Likes Received:
    990
    That works for you because your bots are pretty simple.
     
    jayZero and Jhinn like this.
  8. Arbiter

    Arbiter Mod Automation

    Joined:
    Jul 26, 2013
    Messages:
    2,937
    Likes Received:
    1,266
    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:
    3,198
    Likes Received:
    1,041
    Because my bots aren't a clusterfuck* ;)
     
    Serene likes this.
  10. Party

    Party Client Developer

    Joined:
    Oct 12, 2015
    Messages:
    3,708
    Likes Received:
    1,606
    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 Author of MaxiBots

    Joined:
    Dec 3, 2013
    Messages:
    6,482
    Likes Received:
    990
    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,708
    Likes Received:
    1,606
    I'll fix when I'm home. Something I overlooked when adding the skeleton writing.
     
  13. EthanOpia

    Joined:
    Aug 25, 2017
    Messages:
    272
    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,708
    Likes Received:
    1,606
    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:
    4
    Likes Received:
    0
    How do I open the .jar file?
     
  17. EthanOpia

    Joined:
    Aug 25, 2017
    Messages:
    272
    Likes Received:
    34
    Install java
     
  18. d3ll

    Joined:
    Nov 9, 2018
    Messages:
    3
    Likes Received:
    0
    Updated Java Environment, right click JAR file and run with, still can't get it to open, suggestions?
    @Party @Aidden
     
  19. iTzRaDiaNTTV

    iTzRaDiaNTTV Community Member

    Joined:
    Jul 2, 2019
    Messages:
    20
    Likes Received:
    9
    I can't wait to check this out! just download it in library :)
     
  20. TheNoobRagnar

    Joined:
    May 15, 2019
    Messages:
    22
    Likes Received:
    2
    Run it using the Windows terminal:
    Go to the folder where your Jar file is: cd C:/folder
    Run it using : java -jar filename.jar
     

Share This Page

Loading...