Jump to content

Bot crashes after mysql db interaction


dokato

Recommended Posts

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
Link to comment
Share on other sites

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. 

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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.  

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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 

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.
Note: Your post will require moderator approval before it will be visible.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...