Jump to content
juunhoad

Derek Banas Java tutorial help

Recommended Posts

Hey,

I'm willing to learn scripting, but first I wanna watch and do the java tutorial from Derek Banas. What I would like to know is: until which part should I watch the tutorial to have a decent understanding for scripting? Like which parts are essential and which are like kinda useless to watch for understanding scripting for tribot or any other bot site. 

Greetings.

 

EDIT: I guess this needed to be posted in scripting help section!

Edited by juunhoad

Share this post


Link to post
Share on other sites

I would recommend starting with my tutorials here. They will help you grasp the concepts that Derek will be going over in his tutorials more easily.

As for when you will understand scripting, that depends. I would highly recommend staying away from scripting until you believe you have a firm understanding of Java. That said, most people on this website do not do that, and jump into scripting at a point that I believe to be far too early. That choice, however, is entirely up to you. Scripting is much easier than most Java programming, so you will be able to script with limited knowledge of Java (but again, I wouldn't recommend it).

  • Like 2

Share this post


Link to post
Share on other sites
39 minutes ago, TacoManStan said:

I would recommend starting with my tutorials here. They will help you grasp the concepts that Derek will be going over in his tutorials more easily.

As for when you will understand scripting, that depends. I would highly recommend staying away from scripting until you believe you have a firm understanding of Java. That said, most people on this website do not do that, and jump into scripting at a point that I believe to be far too early. That choice, however, is entirely up to you. Scripting is much easier than most Java programming, so you will be able to script with limited knowledge of Java (but again, I wouldn't recommend it).

Why wouldn't you recommend to jump in scripting a bit to early? Don't you learn alot by trial and error. Like making very basic scripts and looking at other open-source scrips and just trying things out.

Share this post


Link to post
Share on other sites
2 minutes ago, juunhoad said:

Why wouldn't you recommend to jump in scripting a bit to early? Don't you learn alot by trial and error. Like making very basic scripts and looking at other open-source scrips and just trying things out.

Scripting teaches you poor Java practices. If you don't care about that, then there really isn't a downside to it other than making sub-par scripts.

Share this post


Link to post
Share on other sites
15 minutes ago, TacoManStan said:

Scripting teaches you poor Java practices. If you don't care about that, then there really isn't a downside to it other than making sub-par scripts.

Well the poor java practices will prob go away, if me or some other basic scriptwriter would teach it the real way right. Like with a java programming course or education for a year or 2.

Edited by juunhoad

Share this post


Link to post
Share on other sites
13 minutes ago, juunhoad said:

Well the poor java practices will prob go away, if me or some other basic scriptwriter would teach it the real way right. Like with a java programming course or education for a year or 2.

I started the same way of scripting by using very basic java, you need to actively attempt to erase poor practices, which is what I've had to spend a lot of my time fulfilling.

It's easier to learn something properly the first time, rather than attempting to execute something improperly and trying to repair broken knowledge; invest the additional time into programming, it's not even about the end goal of scripts, it's a mindset to be applied to a lot of outside subjects.

Who knows, you may enjoy it, it's not always about the end product you are thinking about.

  • Like 1

Share this post


Link to post
Share on other sites
3 minutes ago, Liam. said:

I started the same way of scripting by using very basic java, you need to actively attempt to erase poor practices, which is what I've had to spend a lot of my time fulfilling.

It's easier to learn something properly the first time, rather than attempting to execute something improperly and trying to repair broken knowledge; invest the additional time into programming, it's not even about the end goal of scripts, it's a mindset to be applied to a lot of outside subjects.

Who knows, you may enjoy it, it's not always about the end product you are thinking about.

Ya I get what you are saying, that's why I first wanted to watch a tutorial before I get into scripting at all and hopefully get a decent grasp at it. But I will prob dive into it way to early :P

Share this post


Link to post
Share on other sites
3 minutes ago, juunhoad said:

Ya I get what you are saying, that's why I first wanted to watch a tutorial before I get into scripting at all and hopefully get a decent grasp at it. But I will prob dive into it way to early :P

Everyone does, it's about building yourself up and problem solving in your own manner; rather than following a tutorial and copy and pasting code and learning how to make it work. You don't want to know how to tweak something to make it kind of work as a programmer, you want to build something that will work to the best standard. Problem solving is your creativeness and the code is your art, take pride ;p.

  • Like 1

Share this post


Link to post
Share on other sites

Before viewing the Derek Banas java tutorials I read the book "Beginning Programming with Java For Dummies 3rd Edition 2012". This book offers a very simplistic view of basic development concepts and techniques with Java which carries onto Derek Banas's tutorial quite well as a perfect extension. Before viewing his tutorials I had a rudimentary understanding to everything he talked about. One thing I would advise you to do is not power drill through Java, before going onto new concepts its important that you fully understand the prior one. 

Share this post


Link to post
Share on other sites

Learning by scripting doesn't just promote bad practices but it also limits your scope of learning. If you start with scripting and learn java along the way you'll develop bad coding practices stated previously but it's not JUST that. You'll also limit you capabilities of knowledge and what you can actually do. Because of this it will limit not only your programming skills but the potential your scripts can reach in the future. From reading through the comments it seems you are the very beginner just starting since you don't know the difference between Javascript and Java. In the coding world design means a LOT so these coding practices aren't something to be taken lightly. 

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

  • Our picks

    • This release includes:

      Fix updater bug which was causing a bunch of issues


      TRiBot will no longer require manual hook fixes every time the RS client updates - the updater has been fully patched for objects


      Hooked login fields


      Improved the login bot


      Ability to recognize the banned/locked messages again


      Ability to read the current input for username and password fields


      If the username or password is already entered correctly, it won't be erased


      If only part of the username or password is already entered correctly, it won't be erased. The login bot will fill in what's missing.


      If there are a few invalid characters after a valid substring of your username/password, only (approximately) those invalid characters will be erased. The login bot will then proceed to fill in the missing characters.





      Coming soon:

      Skull icon fix


      Improve screen rate and responsiveness of the RS client (both regular client and LG)


      Much more
        • Thanks
        • Like
      • 25 replies
    • This release includes:

      Fix shift clicking option selecting


      Fix high paint delay settings saving


      Update prayer IDs for the quick select menu


      Remove RS3 support


      Fix hooks



      RS3 Support Removed

      The RS3 client hasn't been updated since our Old-School version of TRiBot was released, as many of you may have noticed. Keeping all of the RS3 code in the client made the client as a whole harder to maintain, larger, slower, and messier. As hardly anyone still uses the RS3 client, and since the RS3 API was hardly functioning, we made the decision to completely remove it from TRiBot.

      For the average user, this means that the client will be smaller, cleaner, and faster. Future updates will also take less work meaning there will be more frequent updates.

      If you were one of the few users still using the RS3 client, we apologize for the inconvenience. No future support for RS3 is planned. There are many other botting clients which has support for RS3, so we recommend finding an alternative if you wish to continue botting on RS3.
        • Thanks
        • Like
      • 25 replies
    • Please welcome our new developers, @JoeDezzy1, @erickho123, @Encoded, and @wastedbro.

      These members will be responsible for working on, maintaining, and improving TRiBot.

      This means that bug fixes and improvements will now come at a much faster pace! We're committed to providing users with the best botting experience possible!
        • Thanks
        • Like
      • 30 replies
    • This release includes:

      More 3rd party libraries for script writers to use


      Apache Commons Codec


      Apache Commons Collections


      Apache Commons Configuration


      Apache Commons IO


      Apache Commons Lang


      Apache Commons Math


      GSON


      Guava


      JFoenix




      Hint arrow API


      Game#getHintArrowX


      Game#getHintArrowY




      Fix player hooks including Player#getSkullIcon and Prayer#getPrayerIcon
        • Thanks
        • Like
      • 49 replies
    • This update includes:

      Fix broken hooks


      Fix login bot for the message "No reply from login server. Please wait 1 minute and try again."


      Fix bug relating to which bot tab is sent human input


      General#randomLong bug fix involving negative numbers


      Fix GE API



      Please note: There are still some issues with the login bot due to a change in the game mechanisms handling the login screen. We're working on a fix and will upload it when ready.
        • Thanks
        • Like
      • 37 replies
  • Recently Browsing   0 members

    No registered users viewing this page.

×