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.

kattoor

Registered
  • Content count

    69
  • Joined

  • Last visited

  • Feedback

    0%

Community Reputation

11 Good

About kattoor

  • Rank
    Botter
  • Birthday 01/07/1995

Personal

  • Sex
    Male
  • Location
    Belgium - Antwerp

Recent Profile Visitors

778 profile views
  1. For the time being, this would work: https://tribot.org/forums/topic/57564-reload-script-without-stopping-bot/
  2. So, here is some work in progress.. nothing much yet
  3. Thanks! Any tips for a beginner in game development? SnowBrawl, I love it! I was also thinking about the Norse translation for the word 'Snowballfight': Snøballkrig. I like this idea, thanks!
  4. In the next +-10 weeks my friend and I have to learn to work with Unity 3D and develop a game using it. We are thinking about an online first person shooter with a Christmas atmosphere (see assets). Snowballs would be used as weapons. One player would have to host the server on his / her computer, which the other players would be able to connect to. Right now we are looking for a name for our project. Any of you can think of something? Our first thoughts were just 'SnowBalls' or 'SnowGuns' but we're not really sure about it. I'll keep this topic up to date as we make progress.
  5. Try running the jar from your command prompt to see if some error occurs. Command: java -jar jarname.jar Don't forget to set your java class path for the command to work, otherwise you have to replace 'java' with the path manually.
  6. Try renaming your Scripts package to scripts (lower case!). I think this might fix your problem.
  7. Just tell me how you would 'hack' a web host? I'm really curious since you act like you posses some kind of almighty hack button. Anyone on this forum with knowledge on this matter will tell you what I'm telling you.
  8. Alright, if you really believe it's that easy to hack a web host, hack the one I am using.
  9. You make hacking a web host look so easy lol
  10. Since it's running under TRiBot, it's subordinate to TRiBot's rules I think. So I'm pretty sure script writers can't do anything this way they aren't able to do in official repo scripts.
  11. This topic is for the scripters interested in making their scripts update itself without the user needing to re-run it. The script to be updated For the sake of this tutorial I made a very simple script which prints 'Hello World' to the Bot Debug console. You can find the script here. The script implements the Runnable interface so we can easily run it through the provided run method. Jar your script and upload it somewhere. I uploaded mine to a free webhost. It's located at http://kattoor.comuf.com/Main.jar The script users download in the repository Now, for the script you actually upload to the repository, we'll be using a URLClassLoader. As the Javadoc states, the newInstance method allows us to create a new instance of the URLClassLoader for any specified URL. Since I've uploaded my jar at http://kattoor.comuf.com/Main.jar, I initialize the URLClassLoader like this: URLClassLoader classLoader = URLClassLoader.newInstance(new URL[] {new URL("http://kattoor.comuf.com/Main.jar")});Which in this instance is just the same as initializing it with it's constructor: URLClassLoader classLoader = new URLClassLoader(new URL[] {new URL("http://kattoor.comuf.com/Main.jar")});Now we can load a class from the jar file using the URLCLassLoader's loadClass method. Since I gave my script-class the name 'Main', my call looks like this: Class cls = classLoader.loadClass("Main");Take note that the object cls is an instance of the type Class and not your Main class. Since cls is an object of Class we can use it's method newInstance to retrieve an instance of the class it represents. This part may be confusing, if you really want to understand what this means, I'm sure there will be some great explanation on StackOverflow Since our Main class implemented the Runnable interface, we can downcast the object we retrieved from the newInstance method to a Runnable type and call it's run method: ((Runnable) cls.newInstance()).run();Which is just the same as: Object obj = cls.newInstance();((Runnable) obj).run();Et voila, now you have called the run method from the jarred Main class you have uploaded! What can I actually do with this? You could use the URLClassLoader in the script you upload on the TRiBot repository to load the actual script which is located somewhere on the web. Instead of just instantiating the class once, you could do this every ten minutes in your main loop. This way the user's script will update automatically whenever you update the jar you uploaded to the web. By implementing this, you (and other users) won't have to re-start your script after adding bugfixes and/or updates. I hope this is useful to anyone! If you have any questions, feel free to ask. I'll try my best answering all of them
  12. Not sure about this being a loophole worth mentioning, but since normally you can only run local scripts as a VIP user I'm posting it. By loading a class dynamically, instantiating it and then running it (by implementing the Runnable interface for example), I've made a tiny local-script loader. Code on Github Link to repo Using the script from the repository, you can run a script locally, even if you're no VIP user.
  13. Oh god I feel like a complete moron right now. Thank you kind sir!
  14. Alright, I can now run my local scripts. Didn't put them in a 'scripts' folder previously. Still having the problem that I can't upload anything to the repo though..
  15. Any ideas? Bought VIP under one hour ago, could this be the problem? Also, when I try to upload a script, it gets DENIED without any explanation.