Jump to content

[Tutorial] Compiling Local Scripts (For The Non-Scripter)


Pseudo

Recommended Posts

Simple tutorial for you today, I'll be showing you how to compile a script without needing an IDE (ideal for non-scripters/programmers who would like to use a local script or two).

 

1. If you haven't already, copy and paste the code for the script you want into your favourite text editor. (Notepad works fine).

 

2. Save the script manually and ensure you set the name exactly as shown below, adding .java on to the end. (Also ensure you're saving as 'All files' not as a '.txt' document).

 

TIP: The name of the script you're compiling can be found like so:

 

14RSp7Q.png

 

The name of the script is the portion highlighted in yellow above (Note: it's case sensitive!). This part of the script will be near the top of the java file for future reference when trawling for the script name.

 

Now save the script like so:

 

L0OPmUa.png

Ensure you have the .java file extension written in, and it isn't saved as a standard text document.

 

3. Load this website.

 

4. Select the newly saved script file(s) as your 'Source file' , and use the 'epicbot-api-1.x.jar' as your 'Jar file'. It can be found at "C:\Users\YOUR_NAME\EpicBot\dependencies".

 

Your page should now look something like so:

 

DVePfHz.png

 

If so, you can now hit compile. (The compilation may take a few seconds).

 

5. Download the newly compiled class file(s) (if it's more than one you can download the .zip supplied and extract it) and move them to: "C:\Users\YOUR_NAME\EpicBot\Scripts".

 

6. If you followed the steps correctly, your script(s) should now be present in the Script Selector within EpicBot. Happy botting!

 

NXC6SQ1.png

 

If you hit any issues or have any queries, post below.

Edited by Pseudo
  • Like 2
Link to comment
Share on other sites

  • 3 months later...
  • 4 weeks later...
  • 4 months later...
  • 4 months later...
  • 2 years later...

There is no option to download .class file??? How do you use this compiler. the instructions reference a link to download but none is generated. as for as im aware this no longer works or im just an idiot. how do you download .class files from this compiler.

Edited by jam920
Link to comment
Share on other sites

On 1/7/2021 at 9:06 AM, Pseudo said:

5. Download the newly compiled class file(s) (if it's more than one you can download the .zip supplied and extract it) and move them to: "C:\Users\YOUR_NAME\EpicBot\Scripts".

How do you download .class files? Saving the text generated as a text file and adding .class to the end of the name does not work.

" clicking on Compile you will get a page containing the standard output from the compiler (if any) and a link to the output-file(s) (if created); each output-file is deleted after being accessed. The link AllClasses.tar.gz will return a gzip'd tar file containing all the output-files; similarly, AllClasses.zip will return a zip file containing all class-files." from the instructions. Where is the link, how do i access it, how do i download .class files that are generated.

 

Edited by jam920
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...