Jump to content

Bot crashes after mysql db interaction


Recommended Posts

Posted (edited)

Ok so i've made this class that interacts with my mysql db and it worx excellent in java. But when i try it out with the osbot script, the client gives me a nullpointerexception which shouldnt be there (cause it worked fine with another non bot script program) and it instanlty crashes. Now that's if i put it in the onLoop(), if I place it in the onStart() the script just stops, it says excited ...

 

This is what I get: http://i.imgur.com/4szNNoY.png

emote32342.png

Am I doing something wrong?

Plz help? 

Edited by dokato
Posted

why do you want to establish a connection to your sql databse in a runescape script?

 

So that another account could see when that acc is rdy to trade its farm.

It will update some values in the db and based on that the other account can see which acc it should trade when.

I dont see any other way of making that possible without using a remote database. 

Posted

So that another account could see when that acc is rdy to trade its farm.

It will update some values in the db and based on that the other account can see which acc it should trade when.

I dont see any other way of making that possible without using a remote database. 

write values to a .txt , booleans or whatever you like, and make the other script check the .txt

 

also if you want to use a databse, don't you need something running 24/7? or pay for hosting?

  • Like 1
Posted

write values to a .txt , booleans or whatever you like, and make the other script check the .txt

 

also if you want to use a databse, don't you need something running 24/7? or pay for hosting?

 

Ye i get your point, but what if you've got multiple remote servers where bots run on?

And it's a free mysql hosting 24/7 thingy, so it's free, i dont need to pay anyhting, accept for the servers ofcourse.  

Posted

Ye i get your point, but what if you've got multiple remote servers where bots run on?

And it's a free mysql hosting 24/7 thingy, so it's free, i dont need to pay anyhting, accept for the servers ofcourse.  

i dont know the scenario, but if you have multiple accounts, set the name of the .txt document to the bot's name, so they can use their individual file

  • Like 1
Posted

i dont know the scenario, but if you have multiple accounts, set the name of the .txt document to the bot's name, so they can use their individual file

 

I think osbot doesnt support the mysql driver thing and that's why i get the erorr.

I'll just let the program run seperately so that it can write the database values into a txt file and then the osbot script will read from that txt file.

That should work i think 

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.
×
×
  • Create New...