Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleans up the item SQL parsing (#5478)
Fixes a couple issues with the column checking. Adds verification to table columns to make sure table format is correct. Cleans up the node processing. Adds a loading progress status. Adjusts the SQL import files to not destroy previously imported data. Updated README.md to reflect the changes for SQL importing. Fixes #5485 Fixes #5477 Thanks to @Lemongrass3110! Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
- Loading branch information
1 parent
de621fe
commit ad3f48f
Showing
12 changed files
with
463 additions
and
882 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
# | ||
# Table structure for table `item_db` | ||
# | ||
|
||
DROP TABLE IF EXISTS `item_db`; | ||
CREATE TABLE `item_db` ( | ||
`id` int(10) unsigned NOT NULL DEFAULT '0', | ||
`name_aegis` varchar(50) NOT NULL DEFAULT '', | ||
`name_english` varchar(50) 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, | ||
`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, | ||
PRIMARY KEY (`id`), | ||
UNIQUE INDEX `UniqueAegisName` (`name_aegis`) | ||
) ENGINE=MyISAM; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
ad3f48f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for the update. Everything working fine except for item_db_re_compat.sql & item_db2_re_compat.sql.
He won't create those 2 tables for me. Gonna try again tomorrow, might be on my end.
Navicat says this:
but the table is not being created.
ah nvm its create "view"
ad3f48f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rye305 those are not tables. These are views and you can find them in Navicat under „views“. ;-)
ad3f48f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah my bad, just edited the post XD
ad3f48f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, Getting this warning. After the update. Line 2237 itemdb.cpp. What to do?