[HELP]Question

01/16/2010 00:38 Hanibal#1
Is there any way of setting the 5165 source to a MySQL database and if so how?
01/16/2010 00:44 .Ryu#2
Quote:
Originally Posted by Hanibal View Post
Is there any way of setting the 5165 source to a MySQL database and if so how?
#Reported wrong section
#Request Move

And you gotta take the connections out of a LOTF source working on MySql and put it in the 5165
01/16/2010 01:21 spare2#3
You would need to download [Only registered and activated users can see links. Click Here To Register...]. Which basically is the MySql dll.
Here's a TUT on how to use connect to MYSQL using C#.
[Only registered and activated users can see links. Click Here To Register...]
Before you start coding, you should install MYSQL. ([Only registered and activated users can see links. Click Here To Register...])
Then you can either create tables manually or code something that would create tables for you. After creating tables, you can insert in values from your old database in the new MYSQL database. After your MYSQL DB is ready, redirect your server to read from that DB instead of reading flatfiles.

Sorry for not being specific, but it is a long process.
01/16/2010 01:39 Korvacs#4
Quote:
Originally Posted by .Ryu View Post
#Reported wrong section
#Request Move

And you gotta take the connections out of a LOTF source working on MySql and put it in the 5165
Moved.
01/16/2010 01:40 .Ryu#5
Quote:
Originally Posted by spare2 View Post
You would need to download [Only registered and activated users can see links. Click Here To Register...]. Which basically is the MySql dll.
Here's a TUT on how to use connect to MYSQL using C#.
[Only registered and activated users can see links. Click Here To Register...]
Before you start coding, you should install MYSQL. ([Only registered and activated users can see links. Click Here To Register...])
Then you can either create tables manually or code something that would create tables for you. After creating tables, you can insert in values from your old database in the new MYSQL database. After your MYSQL DB is ready, redirect your server to read from that DB instead of reading flatfiles.

Sorry for not being specific, but it is a long process.
He still needs the MySql connections..

Quote:
Originally Posted by Korvacs View Post
Moved.

Thanks Korvacs
01/16/2010 01:41 PeTe Ninja#6
Quote:
Originally Posted by .Ryu View Post
#Reported wrong section
#Request Move

And you gotta take the connections out of a LOTF source working on MySql and put it in the 5165
no you don't..
01/16/2010 01:44 .Ryu#7
Quote:
Originally Posted by PeTe Ninja View Post
no you don't..
But dont you need the MySql connection in order for it to work?
01/16/2010 01:46 spare2#8
Quote:
Originally Posted by .Ryu View Post
He still needs the MySql connections..
It's inside the TUT?
01/16/2010 01:48 .Ryu#9
Quote:
Originally Posted by spare2 View Post
It's inside the TUT?
Idk you put it there lol you should know...?
01/16/2010 01:50 spare2#10
Quote:
Originally Posted by .Ryu View Post
Idk you put it there lol you should know...?
That was a rhetorical question.
01/16/2010 01:59 PeTe Ninja#11
Quote:
Originally Posted by .Ryu View Post
But dont you need the MySql connection in order for it to work?
yes but you dont need to copy...

I mean you would need the Mysql.data DLL or you could actually find one on google. but other than that..
01/16/2010 02:19 .Ryu#12
Quote:
Originally Posted by PeTe Ninja View Post
yes but you dont need to copy...

I mean you would need the Mysql.data DLL or you could actually find one on google. but other than that..
This is very interesting pete thank you :)
01/16/2010 02:23 spare2#13
MYSQL .Net Connector(link in the first page) is the driver which contains the DLL.
01/16/2010 02:36 .Ryu#14
Quote:
Originally Posted by spare2 View Post
MYSQL .Net Connector(link in the first page) is the driver which contains the DLL.
Mhm i see thanks
01/16/2010 13:23 Hanibal#15
I thank you all for your very helpful responses, it looks like the guy who wrote this source already started to make it run this way but for whatever reason went another way.

I'm not that pro to actually figure out how or where to start from where he left off so if I can figure out a way to implement so the server picks up and logs a persons i.p. so they can at least be banned that way I'm all set, really this isn't a bad source to build from being a lot of the things players want are already in there, it's just that right now it's too easy to dupe silver, cps and items so I was looking at another way to control this when there is probably an easier solution by just tracking/logging i.p. numbers.

I don't know if any of you know where I could find a code or where I'd even put this in the 5165 source so ya this may fix some of the issues i was having.

I really want to go another way with this source and client and make a hybrid game that is totally different in respect to classes, skills and items and like I said I'm not near pro enough to code a source from scratch and this one has everything I need to start from anyway and pretty much seems 100% customizable.

So ya if any of you know how to add a i.p. tracking system let me know.

Thanks.