Rudra Posted August 26, 2022 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 21 Reputation: 2 Joined: 04/18/12 Last Seen: April 11, 2023 Share Posted August 26, 2022 Hello is it possible to convert item_db.sql mob_db.sql to item_db.yml mob_db.yml? I made a lot of changes in my .sql database, but I'm wanting to return to using the db folder Quote Link to comment Share on other sites More sharing options...
0 Chaos92 Posted August 26, 2022 Group: Members Topic Count: 49 Topics Per Day: 0.01 Content Count: 1826 Reputation: 288 Joined: 08/03/12 Last Seen: 12 hours ago Share Posted August 26, 2022 3 hours ago, Rudra said: Hello is it possible to convert item_db.sql mob_db.sql to item_db.yml mob_db.yml? I made a lot of changes in my .sql database, but I'm wanting to return to using the db folder Recompile and you should see the converter, csv2yaml Example : Quote Link to comment Share on other sites More sharing options...
0 Rudra Posted August 26, 2022 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 21 Reputation: 2 Joined: 04/18/12 Last Seen: April 11, 2023 Author Share Posted August 26, 2022 1 hour ago, Chaos92 said: Recompile and you should see the converter, csv2yaml This video teaches for item_db.txt and mob_db.txt files. What I'm wanting is to convert item_db.sql and mob_db.sql files to .yml Quote Link to comment Share on other sites More sharing options...
0 Chaos92 Posted August 27, 2022 Group: Members Topic Count: 49 Topics Per Day: 0.01 Content Count: 1826 Reputation: 288 Joined: 08/03/12 Last Seen: 12 hours ago Share Posted August 27, 2022 7 hours ago, Rudra said: This video teaches for item_db.txt and mob_db.txt files. What I'm wanting is to convert item_db.sql and mob_db.sql files to .yml rathena are still using .sql for those files in sql-files as monster database and item database and didnt use yml for that. this files usually being used in fluxcp as information for itemdb and monster db. this changes that you meant ? Quote Link to comment Share on other sites More sharing options...
0 Rudra Posted August 27, 2022 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 21 Reputation: 2 Joined: 04/18/12 Last Seen: April 11, 2023 Author Share Posted August 27, 2022 8 hours ago, Chaos92 said: rathena are still using .sql for those files in sql-files as monster database and item database and didnt use yml for that. this files usually being used in fluxcp as information for itemdb and monster db. this changes that you meant ? No, rAthena still uses item_db.sql item_db_equip.sql item_db_etc.sql, but it is optional. You can make modification here: rAthena/conf/inter_athena.conf // Use SQL item_db, mob_db and mob_skill_db for the map server? (yes/no) use_sql_db: yes I currently use SQL mode but I want to revert back to using via rAthena/db folder. But I don't know if there is any tool for such a conversion. Does anyone know if there is? Quote Link to comment Share on other sites More sharing options...
0 Tokei Posted August 27, 2022 Group: Members Topic Count: 16 Topics Per Day: 0.00 Content Count: 696 Reputation: 721 Joined: 11/12/12 Last Seen: 8 hours ago Share Posted August 27, 2022 (edited) Heya, Well, the first step would be converting your SQL database to CSV/text format. You can do that by querying the following: // for db/re/item_db.txt select `id`, `name_english`, `name_japanese`, `type`, `price_buy`, `price_sell`, `weight`, `atk:matk`, `defence`, `range`, `slots`, `equip_jobs`, `equip_upper`, `equip_genders`, `equip_locations`, `weapon_level`, `equip_level`, `refineable`, `view`, CONCAT('{', IFNULL(`script`, ''), '}'), CONCAT('{', IFNULL(`equip_script`, ''), '}'), CONCAT('{', IFNULL(`unequip_script`, ''), '}') from `item_db_re` I'm using HeidiSQL, but from there... right-click a row > Export grid rows > - Output format: Delimited text - Row selection: Complete - Options: - Uncheck "Include column names" - Field separator: "," - NULL value: "" (leave empty) Then you should have a normal item_db.txt output. Paste the output to your item_db.txt file in the db folder, do the same for the import folder using the other SQL table. From there, you can run the csv2yaml tool (just make sure there is no item_db.yml files, otherwise it won't actually attempt to do the conversion). Edited August 27, 2022 by Tokei 1 Quote Link to comment Share on other sites More sharing options...
0 Rudra Posted August 27, 2022 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 21 Reputation: 2 Joined: 04/18/12 Last Seen: April 11, 2023 Author Share Posted August 27, 2022 9 minutes ago, Tokei said: Heya, Well, the first step would be converting your SQL database to CSV/text format. You can do that by querying the following: // for db/re/item_db.txt select `id`, `name_english`, `name_japanese`, `type`, `price_buy`, `price_sell`, `weight`, `atk:matk`, `defence`, `range`, `slots`, `equip_jobs`, `equip_upper`, `equip_genders`, `equip_locations`, `weapon_level`, `equip_level`, `refineable`, `view`, CONCAT('{', IFNULL(`script`, ''), '}'), CONCAT('{', IFNULL(`equip_script`, ''), '}'), CONCAT('{', IFNULL(`unequip_script`, ''), '}') from `item_db_re` I'm using HeidiSQL, but from there... right-click a row > Export grid rows > - Output format: Delimited text - Row selection: Complete - Options: - Uncheck "Include column names" - Field separator: "," - NULL value: "" (leave empty) Then you should have a normal item_db.txt output. Paste the output to your item_db.txt file in the db folder, do the same for the import folder using the other SQL table. From there, you can run the csv2yaml tool (just make sure there is no item_db.yml files, otherwise it won't actually attempt to do the conversion). Well, I see that the structure you sent is different from the current one in rathena: `id` int(10) unsigned NOT NULL DEFAULT '0', `name_aegis` varchar(50) NOT NULL DEFAULT '', `name_english` varchar(100) NOT NULL DEFAULT '', `type` varchar(20) DEFAULT NULL, `subtype` varchar(20) DEFAULT NULL, `price_buy` mediumint(8) unsigned DEFAULT NULL, `price_sell` mediumint(8) unsigned DEFAULT NULL, `weight` smallint(5) unsigned DEFAULT NULL, `attack` smallint(5) unsigned DEFAULT NULL, `defense` smallint(5) unsigned DEFAULT NULL, `range` tinyint(2) unsigned DEFAULT NULL, `slots` tinyint(2) unsigned DEFAULT NULL, `job_all` tinyint(1) unsigned DEFAULT NULL, `job_acolyte` tinyint(1) unsigned DEFAULT NULL, `job_alchemist` tinyint(1) unsigned DEFAULT NULL, `job_archer` tinyint(1) unsigned DEFAULT NULL, `job_assassin` tinyint(1) unsigned DEFAULT NULL, `job_barddancer` tinyint(1) unsigned DEFAULT NULL, `job_blacksmith` tinyint(1) unsigned DEFAULT NULL, `job_crusader` tinyint(1) unsigned DEFAULT NULL, `job_gunslinger` tinyint(1) unsigned DEFAULT NULL, `job_hunter` tinyint(1) unsigned DEFAULT NULL, `job_knight` tinyint(1) unsigned DEFAULT NULL, `job_mage` tinyint(1) unsigned DEFAULT NULL, `job_merchant` tinyint(1) unsigned DEFAULT NULL, `job_monk` tinyint(1) unsigned DEFAULT NULL, `job_ninja` tinyint(1) unsigned DEFAULT NULL, `job_novice` tinyint(1) unsigned DEFAULT NULL, `job_priest` tinyint(1) unsigned DEFAULT NULL, `job_rogue` tinyint(1) unsigned DEFAULT NULL, `job_sage` tinyint(1) unsigned DEFAULT NULL, `job_soullinker` tinyint(1) unsigned DEFAULT NULL, `job_stargladiator` tinyint(1) unsigned DEFAULT NULL, `job_supernovice` tinyint(1) unsigned DEFAULT NULL, `job_swordman` tinyint(1) unsigned DEFAULT NULL, `job_taekwon` tinyint(1) unsigned DEFAULT NULL, `job_thief` tinyint(1) unsigned DEFAULT NULL, `job_wizard` tinyint(1) unsigned DEFAULT NULL, `class_all` tinyint(1) unsigned DEFAULT NULL, `class_normal` tinyint(1) unsigned DEFAULT NULL, `class_upper` tinyint(1) unsigned DEFAULT NULL, `class_baby` tinyint(1) unsigned DEFAULT NULL, `gender` varchar(10) DEFAULT NULL, `location_head_top` tinyint(1) unsigned DEFAULT NULL, `location_head_mid` tinyint(1) unsigned DEFAULT NULL, `location_head_low` tinyint(1) unsigned DEFAULT NULL, `location_armor` tinyint(1) unsigned DEFAULT NULL, `location_right_hand` tinyint(1) unsigned DEFAULT NULL, `location_left_hand` tinyint(1) unsigned DEFAULT NULL, `location_garment` tinyint(1) unsigned DEFAULT NULL, `location_shoes` tinyint(1) unsigned DEFAULT NULL, `location_right_accessory` tinyint(1) unsigned DEFAULT NULL, `location_left_accessory` tinyint(1) unsigned DEFAULT NULL, `location_costume_head_top` tinyint(1) unsigned DEFAULT NULL, `location_costume_head_mid` tinyint(1) unsigned DEFAULT NULL, `location_costume_head_low` tinyint(1) unsigned DEFAULT NULL, `location_costume_garment` tinyint(1) unsigned DEFAULT NULL, `location_ammo` tinyint(1) unsigned DEFAULT NULL, `location_shadow_armor` tinyint(1) unsigned DEFAULT NULL, `location_shadow_weapon` tinyint(1) unsigned DEFAULT NULL, `location_shadow_shield` tinyint(1) unsigned DEFAULT NULL, `location_shadow_shoes` tinyint(1) unsigned DEFAULT NULL, `location_shadow_right_accessory` tinyint(1) unsigned DEFAULT NULL, `location_shadow_left_accessory` tinyint(1) unsigned DEFAULT NULL, `weapon_level` tinyint(1) unsigned DEFAULT NULL, `armor_level` tinyint(1) unsigned DEFAULT NULL, `equip_level_min` tinyint(3) unsigned DEFAULT NULL, `equip_level_max` tinyint(3) unsigned DEFAULT NULL, `refineable` tinyint(1) unsigned DEFAULT NULL, `view` smallint(5) unsigned DEFAULT NULL, `alias_name` varchar(50) DEFAULT NULL, `flag_buyingstore` tinyint(1) unsigned DEFAULT NULL, `flag_deadbranch` tinyint(1) unsigned DEFAULT NULL, `flag_container` tinyint(1) unsigned DEFAULT NULL, `flag_uniqueid` tinyint(1) unsigned DEFAULT NULL, `flag_bindonequip` tinyint(1) unsigned DEFAULT NULL, `flag_dropannounce` tinyint(1) unsigned DEFAULT NULL, `flag_noconsume` tinyint(1) unsigned DEFAULT NULL, `flag_dropeffect` varchar(20) DEFAULT NULL, `delay_duration` bigint(20) unsigned DEFAULT NULL, `delay_status` varchar(30) DEFAULT NULL, `stack_amount` smallint(5) unsigned DEFAULT NULL, `stack_inventory` tinyint(1) unsigned DEFAULT NULL, `stack_cart` tinyint(1) unsigned DEFAULT NULL, `stack_storage` tinyint(1) unsigned DEFAULT NULL, `stack_guildstorage` tinyint(1) unsigned DEFAULT NULL, `nouse_override` smallint(5) unsigned DEFAULT NULL, `nouse_sitting` tinyint(1) unsigned DEFAULT NULL, `trade_override` smallint(5) unsigned DEFAULT NULL, `trade_nodrop` tinyint(1) unsigned DEFAULT NULL, `trade_notrade` tinyint(1) unsigned DEFAULT NULL, `trade_tradepartner` tinyint(1) unsigned DEFAULT NULL, `trade_nosell` tinyint(1) unsigned DEFAULT NULL, `trade_nocart` tinyint(1) unsigned DEFAULT NULL, `trade_nostorage` tinyint(1) unsigned DEFAULT NULL, `trade_noguildstorage` tinyint(1) unsigned DEFAULT NULL, `trade_nomail` tinyint(1) unsigned DEFAULT NULL, `trade_noauction` tinyint(1) unsigned DEFAULT NULL, `script` text, `equip_script` text, `unequip_script` text, But if I convert to CSV and check the options would it work? Quote Link to comment Share on other sites More sharing options...
Question
Rudra
Hello is it possible to convert item_db.sql mob_db.sql to item_db.yml mob_db.yml?
I made a lot of changes in my .sql database, but I'm wanting to return to using the db folder
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.