Register for your free account! | Forgot your password?

You last visited: Today at 16:45

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



MySQL Conversion

Discussion on MySQL Conversion within the Dekaron Private Server forum part of the Dekaron category.

Reply
 
Old   #1
 
-8gX's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 614
Received Thanks: 151
MySQL Conversion

Hey all its -8gX gettin back into the pserver development. My first undertaking is converting the old MSSQL servers into MySQL. My reasons for doing this should be blatant enough and if you dont know google why MySQL is better than MSSQL. Anyways; I want to do this but I need some advice.

How does the client read database information? Im assuming it doesnt and everything is read through the server but I'm just double checking.

Would I need to reprogram the ASM in dekaronserver.exe to connect via MySQL connections? Im assuming yes; otherwise how would it know a MySQL server even exists. Any one want to point me in the right direction on this? What lines am I looking for in Olly; how to debug it; etc.

Im not some random noob trying all this by the way guys. I know my **** inside and out of dekaron development. Im just normally a PHP guy that sits in the background lol.


Thanks again for your anticipated help.
-8gX is offline  
Old 10/06/2010, 09:56   #2
 
pieter's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 568
Received Thanks: 176
and how are you going to put the Stored Procedures in MySQL ?
the game will be useless without it since 80% of it depends on the stored procedures in MSSQL

getting the game to talk to MySQL is relatively easy (ODBC links) however. converting the gamedata (and by that i don't mean the table's/data but the procedures/functions and datatypes) will be nearly impossible

the server itself doesn't really read into the database.

it just constantly executes and call's stored procedures

example. if ingame you make a new character
it executes character..SP_CHAR_EDIT_CREATE with the info you've enterred "class,charname"
SP_CHAR_EDIT_CREATE then checks if the name exists, if its allowed, then makes an entry in user_character and reports back to the game with an integer -20 - 20
depending on those integers the game either reports an error or a success
pieter is offline  
Old 10/06/2010, 12:01   #3
 
-8gX's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 614
Received Thanks: 151
Well after you connect to the MySQL database and the ODBC triggers SP_CHAR_EDIT_CREATE you would need to create a UDF within MySQL for SP_CHAR_EDIT_CREATE(class,charname);

Code:
DROP PROCEDURE IF EXISTS SP_CHAR_EDIT_CREATE;  

DELIMITER ';;'  
CREATE PROCEDURE SP_CHAR_EDIT_CREATE(  
  OUT cl STRING(8,2),
  OUT ch STRING(8,2),
)
BEGIN

IF EXISTS (SELECT %cl FROM dbo.character WHERE class = '%cl' AND charname = '%ch') then  
DIE('Char Exists')
END IF;

ELSE
ALTER TABLE dbo.character ADD %cl AND %ch WHERE class AND charname = NULL
END ELSE

END;;
Yes I know; that code is totally wrong but what it does prove is that stored procedures are possible. They arent too different from the MSSQL ones so conversion is possible.





Just a couple references to look at
-8gX is offline  
Old 10/06/2010, 15:30   #4
 
pieter's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 568
Received Thanks: 176
yes that why i said nearly

however, you will be quite busy since u need to rewrite each single SP and function into UDF's

Personally i'd rather stick time into researching MSSQL2008 compatability or maybe even MSSQL Azure (put dekaron in the cloud xD)
pieter is offline  
Old 10/06/2010, 17:04   #5
 
҉ THT ҉'s Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 912
Received Thanks: 250
Dekaronserver.exe is only the thing that loads your share folder.. (nothing with SQL)
BUT,
You shud need, Loginserver, Castserver, ...etc to edit..
AND that will be very hard, cuz the .exe using mssql connection not a mysql connection
҉ THT ҉ is offline  
Old 10/07/2010, 00:48   #6
 
-8gX's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 614
Received Thanks: 151
well like pieter was saying.... you could just change the odbc connection so it reads the mysql database as a mssql one.

At least i think thats what he was saying
-8gX is offline  
Old 10/07/2010, 10:10   #7
 
pieter's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 568
Received Thanks: 176
i said u can try to

most oldschool applications use ODBC so a big chance dekaron does too
pieter is offline  
Old 10/08/2010, 00:07   #8
 
-8gX's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 614
Received Thanks: 151
And as for finding the information you provided on that SP... WHere would I go about getting all of that from? Like every SP in MSSQL?
-8gX is offline  
Old 10/08/2010, 12:12   #9
 
pieter's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 568
Received Thanks: 176
the most important Stored Procedures and Functions are inside the character / account / cash database.

just open them with SQL server management studio 2005
pieter is offline  
Reply


Similar Threads Similar Threads
conversion C++ to Delphi
02/04/2010 - C/C++ - 4 Replies
Hi guys, Who can help with conversion C++ code to Delphi? private: CArray<byte> m_Packed; CArray<byte> m_Unpacked; class CUnpack { public:
[AutoIT]Variable Conversion
10/30/2009 - AutoIt - 2 Replies
Is there any way to convert a variable into a certain other type? For example: Variable $A should be a float set to 5.01382 however when I bring it into AutoIT, it converts it to an Unsigned Long giving me a different value of something like 1099238427 So basically I just want to know if there is a command, or any way to code a function that can convert Variables set to Unsigned Long into Float/Double/Unsigned Short
Yet Another CPS to Gold Conversion
01/21/2007 - CO2 Exploits, Hacks & Tools - 9 Replies
i think there are couple of conversion out there but this is very simple written in VB How to use: 1. Enter the avg price of the (inflated) DB. default is 20kk 2. If you want to find out what the item worth in CPS then leave Priceofitem(CPS) as Zero (0). Enter the price in GOLD in the other box. 3. If you want to find out what the item worth in Gold then leave Priceofitem(Gold) as Zero. Enter the price in CPS in the other box 4. Hit calculate. if you find any bug please let me know...
Tauren To Goblin Conversion
08/05/2006 - WoW Exploits, Hacks, Tools & Macros - 13 Replies
Tauren To Goblin Conversion v1 Hi all, this is my first time ever playing around with model's/texturing... for this game. So I decided to change out the bulky Taurens to a Race I felt should have been in the game for horde... The Goblins~... I redid over 160 textures for male and female taurens so they still have individuality, but please keep in mind, I am still fine tuning it. I also have changed the Druid Bear form, and Cat forms, as well as the Kodo mount to...



All times are GMT +1. The time now is 16:49.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.