Jump to content

Welcome to DreamBot

VIP Enhancement

Want to upgrade your DreamBot experience? Consider signing up for VIP!
VIP allows you to run as many accounts as you want, view the forums ad-free, receive 10% off all script purchases, and so much more!
Visit the store to learn about all of these great features!

Upgrade to VIP Now
Frequently Asked Questions
  • Are you not able to open the client? Make sure you have Java 8 installed
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS gold? You can purchase vouchers from other users
  • Try asking for help in the chatbox
Download the DreamBot client today!
Sign in to follow this  
Invidious

Running dreambot through .bat

Recommended Posts

My client keeps freezing so I wanted to add more memory than the launcher allows. My .bat is as follows:

java -jar client.jar -Xmx3048M

When I launch the client through the bat none of my On-paint strings,  player coordinates & etc appear. Is there a line that i'm missing above to make these things appear?

Share this post


Link to post
Share on other sites
6 hours ago, yeeter01 said:

java -jar %homepath%\DreamBot/BotData/client.jar -username yourOwnUsername

 

 

I have these settings but my onpaint method still doesn't show up on screen when using a batch file to start the client.

Example code:

   public void onPaint(Graphics g)
    {
        scriptRT = System.currentTimeMillis() - this.scriptBT;
        g.drawString("Some timer: " + conVer(scriptRT), 1, 20);
        g.drawString("Current Task: " + currentTask,1,75);
        g.drawString("Current State: " + currentState,1,100);
        g.drawString("Idle Counter: " + idleCount,250,100);
    }

 

Share this post


Link to post
Share on other sites
2 hours ago, Invidious said:

I have these settings but my onpaint method still doesn't show up on screen when using a batch file to start the client.

Example code:


   public void onPaint(Graphics g)
    {
        scriptRT = System.currentTimeMillis() - this.scriptBT;
        g.drawString("Some timer: " + conVer(scriptRT), 1, 20);
        g.drawString("Current Task: " + currentTask,1,75);
        g.drawString("Current State: " + currentState,1,100);
        g.drawString("Idle Counter: " + idleCount,250,100);
    }

 

You need the -Xbootclasspath argument as well
Like:
java -jar %homepath%\DreamBot/BotData/client.jar -Xbootclasspath/p:C:\Users\you\Dreambot\BotData\client.jar -username yourOwnUsername

Edited by Neffarion

Share this post


Link to post
Share on other sites
14 hours ago, Neffarion said:

You need the -Xbootclasspath argument as well
Like:
java -jar %homepath%\DreamBot/BotData/client.jar -Xbootclasspath/p:C:\Users\you\Dreambot\BotData\client.jar -username yourOwnUsername

Thanks for taking the time to help but it is still not working. The only difference now between your batch and mine is the java path. For some reason no matter how many times i change the path in windows settings java isnt recognized. So i have to use the direct path.

"C:\Program Files\Java\jdk1.8.0_241\bin\java.exe" -jar %homepath%\DreamBot/BotData/client.jar -Xbootclasspath/p:C:\Users\Admin\Dreambot\BotData\client.jar -Xmx3048M -username username -password password

 

Share this post


Link to post
Share on other sites

Ive managed to fix my java path so now its just what it should be. I wonder if its these warnings before the client fully launches

java -jar %homepath%\DreamBot/BotData/client.jar -Xbootclasspath/p:C:\Users\Admin\Dreambot\BotData\client.jar -Xmx3048M -username username -password password

SgclpAj.jpg

Share this post


Link to post
Share on other sites
12 hours ago, Invidious said:

Ive managed to fix my java path so now its just what it should be. I wonder if its these warnings before the client fully launches


java -jar %homepath%\DreamBot/BotData/client.jar -Xbootclasspath/p:C:\Users\Admin\Dreambot\BotData\client.jar -Xmx3048M -username username -password password

 

Those warnings don't mean much.

Honestly I don't even know what they refer to.

Did you get your issues resolved?

Share this post


Link to post
Share on other sites
25 minutes ago, Nuclear Nezz said:

Those warnings don't mean much.

Honestly I don't even know what they refer to.

Did you get your issues resolved?

The the attached picture is what i'm referring too. If i use a batch file to launch these do not show up. If i launch through the launcher they do

Capture.PNG

Share this post


Link to post
Share on other sites

I may be wrong but it seems that you initialize your objects in onStart(), but when you use quickstart it calls onStart(String...strings)
A quick solution, to that would be to call onStart() in onStart(String...strings)

Share this post


Link to post
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.

Sign in to follow this  

×
×
  • Create New...