WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   Can you get db for every single items exist in WoW (in-game)? (https://www.wowinterface.com/forums/showthread.php?t=55219)

Layback_ 03-07-17 04:33 PM

Can you get db for every single items exist in WoW (in-game)?
 
Hi all,

Just being curious with this, but could also be stupid question to ask.

As long as I know, :GetItemInfo() method will return an item info of passed item ID, item name or item link.

If that particular item exists in Cache/your WoW locale/Item-sparse.dba, it will get an info from there, otherwise will request a server to pass one (and save it into Item-sparse.dba).

My question is would there be any possible solution to get item info of all items exist in WoW, so that you can keep a db within a game?

+ Would Wowhead allow you to export items db into JSON format?

Thank you!

Lombra 03-07-17 06:30 PM

You can simply loop over item IDs from 1 to some plausible number. I have no idea what item IDs exists these days. Maybe 200 000 or something? You probably can't do it all at once, though, or you might get disconnected. I don't know what the throttling rate is.

Layback_ 03-07-17 08:47 PM

Quote:

Originally Posted by Lombra (Post 322523)
You can simply loop over item IDs from 1 to some plausible number. I have no idea what item IDs exists these days. Maybe 200 000 or something? You probably can't do it all at once, though, or you might get disconnected. I don't know what the throttling rate is.

Hi Lombra,

So, there is no solid answer for this but going through the for loop over 200,000 times?

That's bit sad :(

What about using a data that is obtained from other database in JSON format?
EDIT: Nevermind... I am actually being contradictory to myself... haha :p

Ketho 03-08-17 12:14 AM

Quote:

Originally Posted by Layback_ (Post 322522)
My question is would there be any possible solution to get item info of all items exist in WoW


There are tools like CascView, CASCExplorer and DBCViewer to extract/open the DB2 files. I personally use LuaCASC

For example the first 2 fields of ItemSearchName.db2 (the item ID goes up to around 144,438 for the current build)
https://gist.githubusercontent.com/a...SearchName.db2

Layback_ 03-08-17 01:11 AM

Quote:

Originally Posted by Ketho (Post 322527)
There are tools like CascView, CASCExplorer and DBCViewer to extract/open the DB2 files. I personally use LuaCASC

For example the first 2 fields of ItemSearchName.db2 (the item ID goes up to around 144,438 for the current build)
https://gist.githubusercontent.com/a...SearchName.db2

Hi Ketho,

mmmmmmmmmmmmm....

Seems it's getting complex than I thought :confused:

I can't seem to find DB2 or CASC files within WoW folder.

The only file formats that I see in Cache folder are ADB and WDB.

Kanegasi 03-08-17 08:18 AM

Quote:

Originally Posted by Layback_ (Post 322528)
Hi Ketho,

mmmmmmmmmmmmm....

Seems it's getting complex than I thought :confused:

I can't seem to find DB2 or CASC files within WoW folder.

The only file formats that I see in Cache folder are ADB and WDB.

The Cache folder only holds what you have loaded in the game, not everything. When using a CASC program, you need to load the files found in the Data folder. There's also another Cache folder in the Data folder, ignore that one as well.

Layback_ 03-08-17 06:16 PM

Quote:

Originally Posted by Kanegasi (Post 322530)
The Cache folder only holds what you have loaded in the game, not everything. When using a CASC program, you need to load the files found in the Data folder. There's also another Cache folder in the Data folder, ignore that one as well.

Hi Kanegasi,

You mean those folders with 2 digits or letters within Data folder, right?

I'll have a go when I get back home and let you know!

Thank you!

EDIT: Okay, just had a look at data folder, but unfortunately I failed to find items db within it.

Using a listfile I could've seen a bunch of folders with proper names, but most of them were textures (.BLP) and I could've not found dbs from them :confused:

Maybe I should just stop my research here :p

jonvuo 03-02-23 08:17 PM

Is there a updated list to https://gist.githubusercontent.com/a...SearchName.db2


All times are GMT -6. The time now is 11:19 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI