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.

Mat

How to Download and Set-up Eclipse by Mat

70 posts in this topic

Hey Everyone, I decide to spent sometime for a tutorial.

1) First of you'll need a few things

JDK 1.7 32 Bit is need for TRiBot to Run

They are both Direct links so they should start to download straight off.

If not Google search them and you'll find it with ease.

2)Once you have them both downloaded, I have placed them both on my desktop.

Posted Image

Don't Dis the BackGround StarTrek >

You want to extract the Zipped eclipse folder:

i: Posted Image

ii: Posted Image

if on Windows 8 it'll look similar to this:

Posted Image

Wait until this has finished extracting, then we can move on.

Great, its done..

Posted Image

Next before we open eclipse if you haven't ran TRiBot before you'll have to so it can set all the files.

Posted Image

Pretty self explainitory, fill the User and Pass with your TRiBot forum account.

Note set Ram to 512mb as it should help getting in to OpenGL at lot easier

Like so:

Posted Image

When you hit login it'll look similar to this:

Posted Image

if this screen doesn't load:

Posted Image

We are going to have to set your JAVA_HOME.

i: To do this, we'll have to go on Computer Properties:

Posted Image



ii: Once in propertise you'll see a list of places on the left, you'll need to go to Advanced system settings:

http://i.imgur.com/nKW8x.png

iii: Once loaded you'll see this:

http://i.imgur.com/7g5pE.png

You'll need to click on Environment Variables...

iiii: Once in Environment Variables, in the lower box you'll see Two Colums Variable and Value, Scroll through Trying to find JAVA_HOME if you do, click the Edit button and place the location of the "C:\Program Files\Java\jdk1.7.0\jre\bin" on 64bit Machine it'll look similar but it'll be Program Files (x86)

Take that and Paste it in the Variable Value:

http://i.imgur.com/h49Wn.png

If JAVA_HOME is there no need to worry, Click on New, and the Same window as Edit should appear and do the Same Process.

http://i.imgur.com/Lmu3s.png

Once thats done Click Ok and get out of that, reboot your PC and re try TRiBot if that doesn't work then Post in the help section, and someone will aid you.

Okay once Ran you can now close it because we are going to work with eclipse.

3) Opening and the start set-up of eclipse.

i: Click the folder you extracted the eclipse files to:

http://i.imgur.com/0Sw0A.png

ii: In that folder you'll find another folder called eclipse open:

http://i.imgur.com/K1SCo.png

and you'll get a load of files, click on the eclipse application file:

http://i.imgur.com/nGmjL.png

iii: When loading you'll see something this I just leave it default and click Ok.

http://i.imgur.com/zPUbk.png

iv: First time loading eclipse gives you a nice Welcome message, close it via the cross of the welcome tab.

http://i.imgur.com/LKG1i.png

v: Ahh Lovely eclipse:

http://i.imgur.com/ogqGZ.png


But there nothing in it? We need to add them.

vi: First of Right click anywhere in side the Package Explorer Tab

http://i.imgur.com/x1mcl.png

Hover over New, which brings a sub menu and click Java Project.

You'll see something like this

http://i.imgur.com/XCArA.png

vii: Now here we are going to have to set up eclipse to work with tribot.

Uncheck defult location as we are going to set the .tribot folder in the appdata as the location.

http://i.imgur.com/BpWTV.png

viii: Click browse and you'll see a box like this

http://i.imgur.com/Aj3Ez.png

Try and find the Appdata folder, in the list I can't so I am going to have to get the location address another way.

http://i.imgur.com/Pogeb.png

If Can't find it follow this

Go to a exlporer the folder veiwer

http://i.imgur.com/tj8Zs.png

Open it up and in the address bar

http://i.imgur.com/2MVBM.png

Type %appdata%

which will bring up the appdata folder like so

http://i.imgur.com/CDdJD.png

Click on the .tribot folder, and copy the address from the address bar

http://i.imgur.com/HW2kK.png

Now go back to eclipse and past it in the folder bar in the browser window and click Ok

http://i.imgur.com/5iTuY.png

Once Found it We now need to set up eclipse.


4) Change the Product Name to what ever you want I call it TRiBot for ease.

Right now Click on Next

http://i.imgur.com/pZskB.png

i: The first Tab we see if soruce, we need to set a soruce folder.

ii: Click on the icon to the right which is highlighted blue in the picture below

http://i.imgur.com/sjuAm.png

iii: Once you have you'll see a window that should look like

http://i.imgur.com/cU8OB.png

If it does type the name as src and click finish.

iv: Now go to Order and Exports Tab see image below

http://i.imgur.com/Rgl8o.png

and Check all the unchecked boxes.

v: Once done that click finish.

5)Were Nearly on the home strech just a few more things we have to do first.

i: Right come back over to the Package Explorer and right click on the src folder

http://i.imgur.com/Upf4P.png

hover over new and click Package

http://i.imgur.com/9aj1C.png

ii: Right you should see a window similar to this

http://i.imgur.com/F2ez0.png

in the name type "scripts"

http://i.imgur.com/EeNAY.png

then click finish, and that's it eclipse is set-up and ready to code with TRiBot.

To Test I like to make a simple script that prints a message to do so, you right click on the scripts package folder, hover over New and the click class.

http://i.imgur.com/V10dO.png

You should see this

http://i.imgur.com/kVbst.png


You can name it what ever you want just no space and odd charrectors I'm called it test for the purpose of this tutorial.

Stright away the moment I type "extends Script" and I hover my mouse over Script and see this:

http://i.imgur.com/3iTaW.png

I know eclipse is working with the API which is what we want :)

Right here is my test script:

package scripts;import org.tribot.script.Script;import org.tribot.script.ScriptManifest;@ScriptManifest(authors = { "Test" }, category = "Test", name = "Tutoiral Test")public class test extends Script {	@Override	public void run() {		println("Hey World.");			}}
Paste this in to a class file called test save it load TRiBot and it should show this:

http://i.imgur.com/fa1PC.png

If it doesn't please post below and I'll help solve your issues.

Thanks for reading, Sorry for poor grammar + English I do suck at it :D Please Post any comments/criticism I can handle it ;) If Fallen wants to edit poor grammar etc be my guess :)

Mat

2 people like this

Share this post


Link to post
Share on other sites

eww Win8?

Yep, I only use it on my laptop as my Graphic Driver are not supported on my tower.

:D

Share this post


Link to post
Share on other sites

Just a note here, if you are on a mac the folder that it downloads to is [your user name]/Library/Application Support/tribot not AppData/roaming

Share this post


Link to post
Share on other sites

Thank you for the tutorial, I'm setup now. I'm coming from wBot, is there a developer mode to run the java app? Or just start it as a regular user?

Share this post


Link to post
Share on other sites

Thank you for the tutorial, I'm setup now. I'm coming from wBot, is there a developer mode to run the java app? Or just start it as a regular user?

Just run the TRiBot Loader as a regular user to boot TRiBot. TRiBot will be able to load all of your scripts made in Eclipse if Eclipse has been setup correctly.

Welcome to TRiBot Forums btw. :)

Share this post


Link to post
Share on other sites

On OS X the .tribot folder is found at: ~/Library/Application Support/tribot/

Thanks, ill add this when I'm back home.

Matt

Share this post


Link to post
Share on other sites

If I do this will this mess up me being able to program normal java programs on the same computer?

I am in a java class atm is why I am worried about this.

Share this post


Link to post
Share on other sites

Follow your steps i load eoc version.

cant load old-school

When trying to launch tribot in debug mode, I get the EOC version. I want the 07 one :-/.

Share this post


Link to post
Share on other sites

Follow your steps i load eoc version.

cant load old-school

Follow your steps i load eoc version.

cant load old-school

When trying to launch tribot in debug mode, I get the EOC version. I want the 07 one :-/.

You have to set the program arguments as "OLDSCHOOL" without the quotes. You could also just use the TRiBot Loader to boot TRiBot. Eclipse auto-compiles classes and TRiBot is able to re-load the new classes.

Share this post


Link to post
Share on other sites

Follow your steps i load eoc version.

cant load old-school

Follow your steps i load eoc version.

cant load old-school

When trying to launch tribot in debug mode, I get the EOC version. I want the 07 one :-/.

You have to set the program arguments as "OLDSCHOOL" without the quotes. You could also just use the TRiBot Loader to boot TRiBot. Eclipse auto-compiles classes and TRiBot is able to re-load the new classes.

Thank you for your help!

Share this post


Link to post
Share on other sites

Hey I click run and it loads oldschool, How do I run the script? edit- found it, right click on tribot and click run as and change argument to OLDSCHOOL. just need to know how to compile a .class now

Share this post


Link to post
Share on other sites

what is Eclipse im a rsc vet i loved the first rs so im coming back. is Eclipse for rs07 or what?

No eclipse is a platform for writing scripts.

The bot can be downloaded by clicking "download" at the top bar.

Share this post


Link to post
Share on other sites

when i download tribot I just get a folder with a bunch of .class? no exc files?


nvm did some browsing had to remove rar and take of .jar


nvm got it had to delete winrar .jar

Share this post


Link to post
Share on other sites

Thank's for the guide i got stuck with my eclipse setup because of the folder in appdata and old install's this helped me fix the problem so now this amateur can play with a script or 2

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.