• Welcome to Valhalla Legends Archive.
 

BNLS & Java

Started by quasi-modo, September 08, 2003, 06:52 PM

Previous topic - Next topic

quasi-modo

Just wondering (I am fluent in vb by the way) if I wanted to design bot with java is it possible to work with bnls? It said to use csb you can use other technologies besides vb but you seem to only want users to use vb.
WAR EAGLE!
Quote(00:04:08) zdv17: yeah i quit doing that stuff cause it jacked up the power bill too much
(00:04:19) nick is a turtle: Right now im not paying the power bill though
(00:04:33) nick is a turtle: if i had to pay the electric bill
(00:04:47) nick is a turtle: id hibernate when i go to class
(00:04:57) nick is a turtle: or at least when i go to sleep
(00:08:50) zdv17: hibernating in class is cool.. esp. when you leave a drool puddle

Soul Taker

BNLS is just a server...
CSB is not really related to BNLS.

Yoni

Quote from: peofeoknight on September 08, 2003, 06:52 PM
It said to use csb you can use other technologies besides vb but you seem to only want users to use vb.
Quite the contrary. Everybody seems to want to use VB, which sux. A Java client would be a welcome and refreshing change. :)

quasi-modo

Well I know vb but I just would not be able to connect a bot to battle net with bnls then to a remote data base (on my server) if I made my own type of webbot that could keep track of clan member stats. I guess its possible in vb, I just think it would be easier to do in java since i am not going for a increadable interface since I would probably be the only one using it.
WAR EAGLE!
Quote(00:04:08) zdv17: yeah i quit doing that stuff cause it jacked up the power bill too much
(00:04:19) nick is a turtle: Right now im not paying the power bill though
(00:04:33) nick is a turtle: if i had to pay the electric bill
(00:04:47) nick is a turtle: id hibernate when i go to class
(00:04:57) nick is a turtle: or at least when i go to sleep
(00:08:50) zdv17: hibernating in class is cool.. esp. when you leave a drool puddle

Camel

Quote from: Soul Taker on September 08, 2003, 07:27 PMBNLS is just a server...
BNLS is much more than just a server, it is a way of life and a passion.

quasi-modo

The one thing I dont get is what is the text box at the bottom called? I mean how can... well never mind Ill have to dysect someone elses code to figure out all of that stuff.
WAR EAGLE!
Quote(00:04:08) zdv17: yeah i quit doing that stuff cause it jacked up the power bill too much
(00:04:19) nick is a turtle: Right now im not paying the power bill though
(00:04:33) nick is a turtle: if i had to pay the electric bill
(00:04:47) nick is a turtle: id hibernate when i go to class
(00:04:57) nick is a turtle: or at least when i go to sleep
(00:08:50) zdv17: hibernating in class is cool.. esp. when you leave a drool puddle

MyndFyre

I don't see why you couldn't use Java to connect to BNLS provided you could set up the socket connections correctly.
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Banana fanna fo fanna

import java.nio.ByteBuffer;

Nova1313

yeah it can be done from java. And you can have a great interface in java. I got an almost duplicate of my bots interface when i ported it to java. I even got icons in a multi column list box too (that was the hard part). so it can be done. and most likly easier in vb. It dpdpends which you are more fluent in.

quasi-modo

Well I am still a novice in java but I am learning, Maybe I can make two parts and use a vb bot to update a local data base then have the java doing my server stuff. See if I do this I am going to integrate it with my site so I can log when members join to track activity, I would also be tracking records and rank (I would have them put rank in the location box or something). It would make things more organized and conveiniant.
WAR EAGLE!
Quote(00:04:08) zdv17: yeah i quit doing that stuff cause it jacked up the power bill too much
(00:04:19) nick is a turtle: Right now im not paying the power bill though
(00:04:33) nick is a turtle: if i had to pay the electric bill
(00:04:47) nick is a turtle: id hibernate when i go to class
(00:04:57) nick is a turtle: or at least when i go to sleep
(00:08:50) zdv17: hibernating in class is cool.. esp. when you leave a drool puddle

Camel

Quote from: peofeoknight on September 13, 2003, 09:30 AMWell I am still a novice in java but I am learning, Maybe I can make two parts and use a vb bot to update a local data base then have the java doing my server stuff. See if I do this I am going to integrate it with my site so I can log when members join to track activity, I would also be tracking records and rank (I would have them put rank in the location box or something). It would make things more organized and conveiniant.
Or in other words, you want to rip off this and this, right?
Well, if you want to do that, the way I did it anyways, you will need to:
  • Have a working copy of MS Access.
  • Know some SQL.
  • Have a www server either running on the same computer as the bot or having access to the database file (although the former is more effective and easier to manage).
Next, you will need to figgure out how to use ODBC; this will allow PHP to read and modify data from tables/queries.
Hint:


You will also need to be able to connect to your database from  your bot. If you are using VB, you can simply use a DataEnvironment:
Private Sub DataEnvironment_Initialize()
   Database.ConnectionString = _
       "Provider=Microsoft.Jet.OLEDB.4.0;" & _
       "Data Source=" & App.Path & "\bnubot.mdb;" & _
       "Persist Security Info=False"
   Database.Open
End Sub

Otherwise, you may have to figgure out how to connect via ODBC in your own language (search google).


Once you have all your tables created and the bot is modifying them on an as-need basis, you will need to write the PHP scripts so that people can see the information. If you are stuck, you can look here.

HTH, Camel.

quasi-modo

#11
You are hosting that page off of your computer. That isnt what I am going for. I want this to update an sql server data base on my server not my regular computer. By the way this is my hosts server not mine so I cannot run the bot off of the server. Well anyways I can connect to sql server remotly no prob, I have a password a port all that good stuff. I just need to write an app to update the stuff which is why I said java because java is wonderful for internet applications. I dont use php by the way. I use ASP.NET
WAR EAGLE!
Quote(00:04:08) zdv17: yeah i quit doing that stuff cause it jacked up the power bill too much
(00:04:19) nick is a turtle: Right now im not paying the power bill though
(00:04:33) nick is a turtle: if i had to pay the electric bill
(00:04:47) nick is a turtle: id hibernate when i go to class
(00:04:57) nick is a turtle: or at least when i go to sleep
(00:08:50) zdv17: hibernating in class is cool.. esp. when you leave a drool puddle

quasi-modo

#12
Also the way you have it setup is not the way I want it. I want Something that when a user joins will get the members id from the data base then it will update the current record and rank, this will be inserted into the data base then it will log the time this took place. It will not add new members to the data base (thought if I setup a trigger to do that it might be nice but I doubt i would) this is only updating the things I mentioned above. Because I am so picky as to what I want I will need to just do it myself because I no nothing out there is going to be exactly what I want. Right now I am just toying with this idea too.
WAR EAGLE!
Quote(00:04:08) zdv17: yeah i quit doing that stuff cause it jacked up the power bill too much
(00:04:19) nick is a turtle: Right now im not paying the power bill though
(00:04:33) nick is a turtle: if i had to pay the electric bill
(00:04:47) nick is a turtle: id hibernate when i go to class
(00:04:57) nick is a turtle: or at least when i go to sleep
(00:08:50) zdv17: hibernating in class is cool.. esp. when you leave a drool puddle