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 will:

      Fix Settings UI placement bug


      Fix game object location bug


      Fix small layout bug making the client shift up and down


      Fix client crashing bug where loading the client with a small display area will cause the client to crash


      Fix annoying Linux bug relating to painting events and peers


      Fix settings saving bug where settings are saved to disk more often than they should


      Fix RSInterface#isBeingDrawn bug affecting a limited amount of people


      Drop Java 1.7 bytecode version for 1.8


      Important: Since the downloadable RS client uses Java 7, it will no longer be compatible with Looking Glass. To make up for this, we will add support for using other clients such as RuneLite (at a later date).


      This change was necessary to allow us to use Java 8 syntax. It also paves the way for Java 9/10/11 support.
        • Like
      • 29 replies
    • This update will:

      Fix the RSMenuNode bug which also fixes the bug with bank opening


      Fix the incorrect object positions bug


      Fix and re-enable the LG Objects API Accelerator


      Fix the RSObject#getAllTiles bug
        • Like
      • 22 replies
    • Try our development release by checking "Development Release" on the TRiBot Loader. Note that these new features are currently in beta.

      This release features:

      Re-sizable mode support for both LG and the regular client


      Slightly improved login bot


      Removed final access modifiers from API classes


      Added RSServer hook wrapper to get the client's cached list of server/world info


      [NEW] Bug fix for intelligent banking


      [NEW] Improvement to the stability of LG over time


      [NEW] Vastly improved the reliability and speed of Screen#getColorAt on both LG and the regular client


      [NEW] Fix LG login problems


      [NEW] Fixed re-sizable mode container bug


      [NEW] Fixed re-sizable mode mouse bug


      [NEW] Use of public constants in the Banking API


      [NEW] Use of other various constants such as Projection#NULL_PT and Screen#EMPTY_COLOR



      More features to come very soon!

      Please test it and let us know here if there are any new bugs introduced in this release.
        • Thanks
        • Like
      • 12 replies
    • Try our development release by checking "Development Release" on the TRiBot Loader. Note that these new features are currently in beta.

      This release features:

      Re-sizable mode support for both LG and the regular client


      Slightly improved login bot


      Removed final access modifiers from API classes


      Added RSServer hook wrapper to get the client's cached list of server/world info


      Bug fix for intelligent banking


      Improvement to the stability of LG over time



      More features to come very soon!

      Please test it and let us know here if there are any new bugs introduced in this release.
        • Thanks
        • Like
      • 10 replies
    • - Updated the banking API to use the game item cache instead of interfaces. This will result in less delay, greater efficiency, and greater reliability. LG will especially benefit from this update.
      - Fixed a bug with the Grand Exchange API relating to searching for items.
        • Like
      • 5 replies
  • Recently Browsing   0 members

    No registered users viewing this page.

×