Welcome to TRiBot Forums

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.


Script packer - Packs all your scripts with ease

6 posts in this topic

Script packer





What does it do?

  • Loads all your scripts from the .tribot/bin folder.
  • Uses bytecode analysis to get the dependencies of your script, 
  • Packs them neatly into a zip file
    • Will load the script name + version from the manifest
    • If there is no manifest, it will use the class name
    • If there already exists a file with the same name, it will add (x) behind it (1, 2, 3, ect)




  • Make sure that the script packer is in your project folder
  • You have to build your project before packing your script
  • Now you have 2 options:
    • Open the jar file as an application and select your script from the GUI
    • Add the jar file as a library and execute the packer dynamically
  • It ony packs the dependencies that have scripts as the root package (scripts.utilities.AreaCreator for exaple)

Note: You have to run it with JDK8


Example code

    public static void main(String[] args) {        


  • Unused method removal
  • Option to set a custom src & bin folder
  • Option to compile all classes dynamically 
  • Automatically pack your scripts after building your project using Ant or Maven


Download link



Will upload the source to github / bitbucket tommorow

Edited by AlphaDog
4 people like this

Share this post

Link to post
Share on other sites

how neat. nice thinking. thumbs up. will need one of these soon enough better download

Edited by Dastardly

Share this post

Link to post
Share on other sites

Works well, incredibility simple and easy to use. It'll save me a little time when I'm about to upload my scripts, :P

1 person likes this

Share this post

Link to post
Share on other sites

Just put up a download link for the new version, there was a little bug with the old one.

It also sorts the scripts on alphabetical order now, thanks to ericko for suggesting it ;)

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.