Jump to content

[TUT] Settings up eclipse & compiling scripts


Alex
 Share

Recommended Posts

First of all make sure you have both JRE and JDK, if you don't go to here   http://www.oracle.com/technetwork/java/javase/downloads/index.html

Download eclipse: http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/marsr

 

Step 1 - Creating new project
File -> Java project

kH4fLHl.png

 

Step 2 - Configure the project

ehuG20n.png

 

Step 3 - Adding xobot to your eclipse project

Right click the project -> properties

Wy83KXP.png

ce7drEf.png

Lr5AKcJ.png

 

xW2jVW2.png

 

Step 4 - Adding and compiling a script
Right click on the project on the left then new -> Class

8YupwPS.png

Go to the script page you want to add (I'm using neotheiver as an example ) -> https://pastebin.com/rWzwTFPM

PwLG89U.png

 

Get the class name from the page

IEx0rlk.png

4ppT697.png

 

Step 5 - Adding the compiled script to xobot

Find the folder of the project (under my documents -> workshop -> xobot scripts)

1jcVygV.png

Now open the bin folder and should look like this

7K0lJS9.png

 

Copy neoThiever.class to xobot scripts folder (my documents -> xobot -> scripts)

 

Link to comment
Share on other sites

  • Quintana pinned this topic
  • 1 month later...
On 9/1/2017 at 10:46 PM, Alex said:

First of all make sure you have both JRE and JDK, if you don't go to here   http://www.oracle.com/technetwork/java/javase/downloads/index.html

Download eclipse: http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/marsr

 

Step 1 - Creating new project
File -> Java project

kH4fLHl.png

 

Step 2 - Configure the project

ehuG20n.png

 

Step 3 - Adding xobot to your eclipse project

Right click the project -> properties

Wy83KXP.png

ce7drEf.png

Lr5AKcJ.png

 

xW2jVW2.png

 

Step 4 - Adding and compiling a script
Right click on the project on the left then new -> Class

8YupwPS.png

Go to the script page you want to add (I'm using neotheiver as an example ) -> https://pastebin.com/rWzwTFPM

PwLG89U.png

 

Get the class name from the page

IEx0rlk.png

4ppT697.png

 

Step 5 - Adding the compiled script to xobot

Find the folder of the project (under my documents -> workshop -> xobot scripts)

1jcVygV.png

Now open the bin folder and should look like this

7K0lJS9.png

 

Copy neoThiever.class to xobot scripts folder (my documents -> xobot -> scripts)

 

Nice guide but why don't you make the output to "(my documents -> xobot -> scripts)"
Instead of manually doing it

Edited by Cyanic
Link to comment
Share on other sites

  • 4 months later...
  • 1 month later...

Thanks for the guide! One small suggestion, and you could even just make a small note in the original thread, but when you select the .jar file for the Java build path, I kept getting caught up as to why none of the sources I had would compile. Turns out, that's definitely an API file. Coming from someone who knows very, very little about this, I'd say it's almost impossible to figure that out. Anyways, the API .jar file is located here: C:\Users\<Username>\Documents\XoBot\APIs.

Link to comment
Share on other sites

1 hour ago, Lets Bot said:

Thanks for the guide! One small suggestion, and you could even just make a small note in the original thread, but when you select the .jar file for the Java build path, I kept getting caught up as to why none of the sources I had would compile. Turns out, that's definitely an API file. Coming from someone who knows very, very little about this, I'd say it's almost impossible to figure that out. Anyways, the API .jar file is located here: C:\Users\<Username>\Documents\XoBot\APIs.

This guide was posted long before xobot 2.6, back when all you needed was the xobot jar. But yeah, now you need the xobot jar and api jar for the server you plan on scripting for :)

Link to comment
Share on other sites

  • 1 month later...
4 hours ago, Lord said:

You should use IntelliJ

if you are gonna post off topic spam, can you at least give him a few reasons of why one might prefer intellij over eclipse?

thanks

Link to comment
Share on other sites

On 03/05/2018 at 12:09 AM, Kumalo said:

if you are gonna post off topic spam, can you at least give him a few reasons of why one might prefer intellij over eclipse?

thanks

1. Its a much better interface.
2. way cleaner.
3. Scrubs use eclipse 

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 months later...
On 3/26/2018 at 12:45 AM, Kumalo said:

This guide was posted long before xobot 2.6, back when all you needed was the xobot jar. But yeah, now you need the xobot jar and api jar for the server you plan on scripting for :)

For the love of GOD! If I would have read this first it would have save a lot of time.

Link to comment
Share on other sites

Hey guys, how do you add a script that you've made? Im adding the class file to the "Alora" folder but it says "Cannot find any script"... or if i reload the client its stuck on "Loading..."

Also, no errors in script + class name is correct!

Just for debugging/testing use? @Neo @Boris

Edited by Hercules
Link to comment
Share on other sites

 Share

×
×
  • Create New...