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:

      Add LG support for Runelite


      Fix NPCChat issues


      Fix a bug where the camera angle setter would just hold down a key for 5 seconds (the timeout)


      Slightly adjust the rotation via keys to be more accurate


      Add the ability for asynchronous camera movement via keys


      Make Camera rotation via mouse more fluid, with more antiban, and work much better in resizable mode


      Add a "Camera#setCamera" method, allowing the rotation and angle to be set in parallel


      Increase the likelihood of using the mouse for camera movements


      Add support for adjusting the camera to positionable entities (Positionable#adjustCameraTo)



      Upcoming updates:

      Improved CLI support


      Much more



      Note: If you are using LG, please restart both the RS client and TRiBot
        • Like
      • 42 replies
    • This update will:

      Allow for clicking through the chat box when possible (Thanks @Todd)


      Fix Combat#selectIndex (Thanks @Encoded)


      Ensure worlds stay sorted and added a check to avoid misclicks in the in-game world hopper (Thanks @erickho123)


      Fix out-dated Options API interface indices (Thanks @Todd)



      Upcoming updates:

      Break handler bug fix


      Improved CLI support


      Much more



      Note: If you are using LG, please restart both the RS client and TRiBot
      • 12 replies
    • This release will:

      Fix login bot after today's game update (Thanks @JoeDezzy1)


      Fix latest in-game world hopping issues (Thanks @erickho123)


      Compact Settings UI and set location relative to TRiBot (Thanks @JoeDezzy1)


      Fix an older implementation of GrandExchange#getWindowState (Thanks @JoeDezzy1)


      Improve the preformance of NPCChat by only searching in certain interface parents (Thanks @JoeDezzy1)



      Upcoming updates:

      Break handler bug fix


      Improved CLI support


      LG support for RuneLite


      Much more



      Note: If you are using LG, please restart both the RS client and TRiBot
      • 16 replies
    • This release will:

      Fix bytecode manipulation in order to prevent the modification of parameters within the Filter and Condition classes themselves (thanks @wastedbro)


      Fix NPE caused by non-null value in GE API (thanks @erickho123)


      Add and fix equals methods for api2007.types (thanks @JoeDezzy1)


      Modify Mouse#leaveGame to make the mouse leave the game from top, left, right, or bottom (thanks @erickho123)


      Add Entrana area to Ships API (thanks @erickho123)


      Fix raid prayers index/settings in Prayer API (thanks @erickho123)



      Upcoming updates:

      Break handler bug fix


      Improved CLI support


      Much more



      Note: If you are using LG, please restart both the RS client and TRiBot
      • 29 replies
    • This update will:

      Implement better canvas locking/synchronization mechanism


      Fix small Login API bug


      Remove the requirement for xbooting Java classes


      Use ExecutorService to perform canvas work in parallel


      Add "Account Management" game tab to GameTab API (thanks @Encoded)


      Fix NPCChat#getMessage (thanks @Encoded )


      Fix NPCChat#selectOption (thanks @Encoded )


      Fix Banking API after today's update (thanks @Encoded )


      Fix in-game world hopper after today's update (thanks @Encoded )



      Upcoming updates:

      Break handler bug fix


      Improved CLI support


      Much more



      Note: If you are using LG, please restart both the RS client and TRiBot
        • Like
      • 38 replies
  • Recently Browsing   0 members

    No registered users viewing this page.

×