Register for your free account! | Forgot your password?

You last visited: Today at 22:58

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

Advertisement



[Release]Advanced Data Converter

Discussion on [Release]Advanced Data Converter within the EO PServer Guides & Releases forum part of the EO PServer Hosting category.

Reply
 
Old   #1
 
funhacker's Avatar
 
elite*gold: 20
Join Date: Sep 2007
Posts: 1,767
Received Thanks: 1,741
[Release]Advanced Data Converter

IMPORTANT
Please be sure to download most up to date patch along with application.rar, as the latest patch (2012-05-06) contains a much faster conversion system)


This is an updated and much more flexible data converter than my previous one.
Note though, due to its complete flexibility to the point you could use this for almost anything, it runs much slower than the previous one.

However the previous one is not capable of converting the cq_goods to shop.dat.

Please don't forget to change the config file before using it to match your MySQL settings.

Structure Files
  • ItemAddition
  • Itemtype
  • LevelExp(Not Encrypted)
  • MergeInfo
  • Shop


How To:

Convert cq_itemtype to Itemtype.dat
  • Follow instructions on cq_itemtype table design. Located below.
  • Download Application.rar
  • Download ItemtypeStructure.rar
  • Extract files from rar files.
  • Click and drag the "ItemtypeConfig.ini" into the "ConvertData.exe"
  • Wait until the program shuts down, you should see it display how many bytes have been written to the file as it proceeds.

Convert cq_goods to Shop.dat
  • Follow instructions on cq_goods table design. Located below.
  • Download Application.rar
  • Download ShopStructure.rar
  • Extract files from rar files.
  • Click and drag the "ShopConfig.ini" into the "ConvertData.exe"
  • Wait until the program shuts down, you should see it display how many bytes have been written to the file as it proceeds.

Table Designs:

cq_itemtype:

cq_goods


Defining Structures:

MainConfig File

Used to define main settings of conversion, such as MySQL login, expected output file size and the source/structure file locations.

Must Contain the Following:
  • Heading "[Main]"
  • Field and Value for "MySQLLogin"
  • Field and Value for "MySQLPassword"
  • Field and Value for "MySQLHost"
  • Field and Value for "MySQLDatabase"
  • Field and Value for "SourceFileName"
  • Field and Value for "StructureText"
  • Field and Value for "ExpectedFileSize" (can just be set to 0 if not sure)

Example File ("ShopConfig.ini"):

Source File

Used to define source fields and their values.

Must Contain the Following (For each field):
  • Heading "[FieldName]"
  • Field and Value for "Type" - Method used for getting data
  • Field and Value for "String" - the 'aquisition' string used for aquiring data

Special characters:
'|' = Separates blocks of string, can be used to input source fields into MySQL strings, or to separate a field name and value. Its use depends on the type of data retrieval being used.

Example File ("ShopSource.ini"):

Structure Text

Used to define the structure of the output file.

Must contain at least 1 line of text, at least 1 group and at least 1 field.

Special Characters used:
'@' = Used after a "DataType" definition
'#' = Used after an "ArraySize" definition
'[' & ']' = used to enclose the name of a 'SourceFieldValue'
'/c' = used to get the currently selected value in the source field
'/n' = used to select and get the next value in the source field
'|' = used before defining the 'WriteCount' which is how many times the field/group is written to the file before moving on
',' = used to separate fields within a group
'-' = used to separate groups within a group
'(' & ')' = used to enclose a 'ConditionalStatement' for a conditional group
'^' = used to separate multiple conditional statements/groups
'{' & '}' = used to enclose the fields/group to use when the conditional statement is true
'!=','==' ,'<=','>=' = used to evaluate within a conditional statement

Example File (ShopStructure.txt):


Patches:

Applying Patches:
Download all patches,
Extract in order of date (Patch[YYYY-MM-DD])
Override existing files. - Note if you made any custom changes to structure files, backing up is suggested.

2012-04-20
Files: ConvertData.exe, ShopConfig.ini, ShopSource.ini

ConvertData.exe
Changed how the ConvertData.exe loads the config file. Primarily the "ExpectedFileSize" value now allows for more advanced math than before.
The "ExpectedFileSize" still only calculates left to right without any order of precedence but it now allows for bracketed math. An example is how the Shop.dat size is calculated: 4|+|(ShopCount/c * 28)|+|(NonMallItemCount/c * 4)|+|(MallItemCount/c * 452)
This could not be achieved in the previous version.
Fixed a minor error in the /n method of source fields. (May cause future problems)
Changed the display of the command prompt, updating is also done every second now instead of 200times/second, this gives a very slight performance increase.

Screenshot of new status screen:

ShopConfig.ini
Updated the "ExpectedFileSize" value which will calculate the file size correctly, even if you have duplicate entries.
An example is if you have:
id-itemtype-ownerid
1-190000-1207
2-190000-1207

ShopSource.ini
Included some new fields that were needed for the "ExpectedFileSize" field of the newly updated ShopConfig.ini.
Updated some existing fields, to prevent duplicate entries.

NewFields:

UpdatedFields:


2012-05-06
Files: ConvertData.exe, DataConverterLibrary.DLL, ShopSource.ini, ItemtypeSource.ini

ConvertData.exe
Made it so the application doesn't close immediately after conversion was completed. You must push a button to exit once done, this was implemented since now conversion is over a thousand times faster.

Screenshot of new status screen (Creating a 45MB shop.dat from cq_goods with 101,364 entries in just 9seconds!)

DataConverterLibrary
Added new "Enum" - UpdateFrequency
This determines how often the "AquisitionString" should be called, if "None" it will be called once then all the required data will remain in memory, such types like this will be "ShopCount" or "ShopID".
If "Continuous" it will be called each and every time the field is accessed, this will have a heavy load on the cpu if repeated too much.
If "EachRetrieval" it will be called each time the /n key is used on a field, this will have a moderate load on the cpu if repeated too much.

ShopSource.ini
Added a new field, and updated all existing fields, this should be as optimised as possible for speed.

NewFields:

Updated Fields:

2012-05-11
Files: ConvertData.exe, DataConverterLibrary.DLL, ItemtypeConfig.ini, ItemtypeSource.ini, ItemtypeStructure.txt, ShopConfig.ini, ShopSource.ini, ShopStructure.txt, ItemAdditionConfig.ini, ItemAdditionSource.ini, ItemAdditionStructure.txt
Folders: Output, StructureFiles, SourceFiles

ConvertData.exe
Capable of converting multiple files at once now. Just highlight a group of Config files, click and drag onto the exe. Then wait until all are finished, hit any key.
More threading enabled, making multiple conversions even faster now.
Capable of saving files to preferred file names, as per the config "OutputFileName" value.

Screenshot of new status screen (Creating 3 new files, using ItemAdditionConfig/ItemtypeConfig/ShopConfig)

DataConverterLibrary
Changed the MySQL handling to allow for multiple connections, needed to handle multiple simulataneous file conversions.

ItemAddition Structure Files
Added a conversion structure for cq_itemaddition -> ItemAddition.ini, should work with current table design.

New Folders
Added for file management, updated config files accordingly.
Attached Files
File Type: rar Application.rar (175.9 KB, 439 views)
File Type: rar Patch[2012-04-21].rar (3.5 KB, 187 views)
File Type: rar Patch[2012-05-06].rar (11.3 KB, 158 views)
File Type: rar Patch[2012-05-11].rar (14.9 KB, 207 views)
File Type: rar StructureFiles.rar (4.3 KB, 224 views)
funhacker is offline  
Thanks
18 Users
Old 04/18/2012, 19:40   #2
 
elite*gold: 0
Join Date: Mar 2012
Posts: 492
Received Thanks: 125
Nice Release GJ bro!
Sir*DeviL is offline  
Old 04/18/2012, 19:52   #3
 
elite*gold: 0
Join Date: Apr 2012
Posts: 134
Received Thanks: 30
good one , keep going would be nice to release one for conquer too
DyjgK64J451Jhv0 is offline  
Old 04/20/2012, 16:13   #4
 
funhacker's Avatar
 
elite*gold: 20
Join Date: Sep 2007
Posts: 1,767
Received Thanks: 1,741
Quote:
Originally Posted by DyjgK64J451Jhv0 View Post
good one , keep going would be nice to release one for conquer too
It will work for conquer, just need to make the structure files.

New Patch Available!

2012-04-20
Files: ConvertData.exe, ShopConfig.ini, ShopSource.ini

ConvertData.exe
Changed how the ConvertData.exe loads the config file. Primarily the "ExpectedFileSize" value now allows for more advanced math than before.
The "ExpectedFileSize" still only calculates left to right without any order of precedence but it now allows for bracketed math. An example is how the Shop.dat size is calculated: 4|+|(ShopCount/c * 28)|+|(NonMallItemCount/c * 4)|+|(MallItemCount/c * 452)
This could not be achieved in the previous version.
Fixed a minor error in the /n method of source fields. (May cause future problems)
Changed the display of the command prompt, updating is also done every second now instead of 200times/second, this gives a very slight performance increase.

Screenshot of new status screen:

ShopConfig.ini
Updated the "ExpectedFileSize" value which will calculate the file size correctly, even if you have duplicate entries.
An example is if you have:
id-itemtype-ownerid
1-190000-1207
2-190000-1207

ShopSource.ini
Included some new fields that were needed for the "ExpectedFileSize" field of the newly updated ShopConfig.ini.
Updated some existing fields, to prevent duplicate entries.

NewFields:

UpdatedFields:
funhacker is offline  
Thanks
2 Users
Old 04/24/2012, 03:39   #5
 
DEADP00L's Avatar
 
elite*gold: 20
Join Date: Sep 2008
Posts: 1,197
Received Thanks: 1,210
Nice release Fun, Glad to see there are still one or two people with an IQ releasing things that they create from scratch rather than "zomg a pet from another client lets release it:
DEADP00L is offline  
Thanks
1 User
Old 04/26/2012, 09:39   #6
 
elite*gold: 0
Join Date: Feb 2010
Posts: 4
Received Thanks: 0


i cant use that application...im using netframwork 3.5 n 4.0
nazeila84 is offline  
Old 05/10/2012, 18:41   #7
 
funhacker's Avatar
 
elite*gold: 20
Join Date: Sep 2007
Posts: 1,767
Received Thanks: 1,741
New Patch! 2012-05-11, allows for multi-threading and multiple file conversions all at once!


Quote:
Originally Posted by nazeila84 View Post


i cant use that application...im using netframwork 3.5 n 4.0
Did you drag the "Config" file into the exe or are you trying to open the exe?


--------------------------------------------------------------------------------------

2012-05-06


2012-05-11
Files: ConvertData.exe, DataConverterLibrary.DLL, ItemtypeConfig.ini, ItemtypeSource.ini, ItemtypeStructure.txt, ShopConfig.ini, ShopSource.ini, ShopStructure.txt, ItemAdditionConfig.ini, ItemAdditionSource.ini, ItemAdditionStructure.txt
Folders: Output, StructureFiles, SourceFiles

ConvertData.exe
Capable of converting multiple files at once now. Just highlight a group of Config files, click and drag onto the exe. Then wait until all are finished, hit any key.
More threading enabled, making multiple conversions even faster now.
Capable of saving files to preferred file names, as per the config "OutputFileName" value.

Screenshot of new status screen (Creating 3 new files, using ItemAdditionConfig/ItemtypeConfig/ShopConfig)

DataConverterLibrary
Changed the MySQL handling to allow for multiple connections, needed to handle multiple simulataneous file conversions.

ItemAddition Structure Files
Added a conversion structure for cq_itemaddition -> ItemAddition.ini, should work with current table design.

New Folders
Added for file management, updated config files accordingly.
funhacker is offline  
Thanks
1 User
Old 06/26/2012, 11:14   #8
 
funhacker's Avatar
 
elite*gold: 20
Join Date: Sep 2007
Posts: 1,767
Received Thanks: 1,741
Update:
New conversion files available. You can now convert your cq_grade table to output a MergeInfo.ini
Download the from this post or the first!
funhacker is offline  
Thanks
2 Users
Old 06/27/2012, 16:42   #9
 
funhacker's Avatar
 
elite*gold: 20
Join Date: Sep 2007
Posts: 1,767
Received Thanks: 1,741
Update:
New conversion files available. You can now convert your cq_levexp to output an unencrypted Levelexp.dat
Download the from this post or the first!
funhacker is offline  
Thanks
3 Users
Old 03/09/2013, 23:58   #10
 
D4RK_4NG3L's Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 127
Received Thanks: 38
Quote:
Originally Posted by nazeila84 View Post


i cant use that application...im using netframwork 3.5 n 4.0
i have the same problem but is the reason that i don't have chinese language installed !!
i still have some items not translated ..
and yes i dragged the "Config" file into the ConvertData.exe
D4RK_4NG3L is offline  
Old 04/24/2015, 01:35   #11
 
elite*gold: 0
Join Date: Feb 2012
Posts: 45
Received Thanks: 3
i follow the tut, but no function,no output.....
plz,,help me...how to fix it...
pengsaizhen is offline  
Reply


Similar Threads Similar Threads
[Release]DBC Converter
04/16/2021 - CO2 Weapon, Armor, Effects & Interface edits - 50 Replies
Just as with my MagicType dumper/creator, this is using CptSky's useful .dll. This includes the source (nothing special, it just "works"). You do not need to re-build it, the one from the debug folder should work. In case it was not clear, this does dbc <-> txt and its usage is: Open -> select .dbc -> hit convert -> do edits -> open -> select .txt -> hit convert. It can be slow, do not panic, it is apparently caused by the way CptSky coded his .dll
[Release].php SQL zu XML Converter
06/14/2012 - Metin2 PServer Guides & Strategies - 8 Replies
Hey ho, ich hab mir mal die Mühe gemacht *hust* und habe einen .php Script erstellt, mit welchem man Items & Monster ( item_proto & mob_proto ) aus der Datenbank in das XML Format umwandelt. Wozu man das braucht? Wenn ihr "locale_name" habt:
[Release]DDS-Converter
01/20/2011 - Metin2 PServer Guides & Strategies - 22 Replies
Hey ich habe heute mal mein Desktop aufgeräumt :P und da fand ich plötzlich eine komische Datei. Aufeinmal stellte sich raus das es ein DDS-Converter war. Er wandelt DDS Dateien in jpg und png dateien um. Da das für manche Client´s nützlich ist dachte ich ich stell es mal hier rein. Virustotal Screen http://img3.fotos-hochladen.net/uploads/virrustot al0t16k9zq.png Screen vom Programm http://img3.fotos-hochladen.net/uploads/programmn gw8demb.png MfG Fun-Zocker
Advanced CP Converter
08/22/2010 - CO2 Exploits, Hacks & Tools - 5 Replies
Hey guys, This is my first Conquer related program, and hopefully not the last. It's designed to convert gold into CPs and vise-versa, by using the current cost of a DB in gold, in relation to a fixed variable in the game. It's use is to show you the exchange rate on your server, it doesn't convert your CP into gold in the game. V1.1 Release: - Added autosave feature Image:



All times are GMT +2. The time now is 22:58.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.