Register for your free account! | Forgot your password?

Go Back   elitepvpers › MMORPGs › Perfect World › PW Hacks, Bots, Cheats, Exploits
You last visited: Today at 04:57

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

Advertisement



Getting all icons by ID

Discussion on Getting all icons by ID within the PW Hacks, Bots, Cheats, Exploits forum part of the Perfect World category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2009
Posts: 7
Received Thanks: 2
Getting all icons by ID

Oke so i have been trying to figure this out, I want to get all the icons and save them as separate image by ID. This because elements.data links items with icon ids. i know the icons are saved in surfaces/iconset folder and getting the images is not the problem. reading the txt file isnt the problem either. my problem is how can i link the Chinese name (or whatever those strings are XD) in the txt file with a item id so i can connect the dots.

where would i have to look to find out out this 2 dots.

btw this is for ESO and i know nobody gives a **** about eso here but this should work the same as in PW


and wewt... finally my first post xD
ItsMeMario1 is offline  
Thanks
1 User
Old   #2
 
elite*gold: 10
Join Date: Sep 2010
Posts: 400
Received Thanks: 234
I have some tools somewhere in my archives that might be able to help. Not sure which hard drive they're on or where they are but I'll try to find them later this evening (got a lot to do today :P).
I'm not familiar with ESO though... Is it similar to PW whereby there is a large .dds file and a text file with a massive list of chinese stuff?

I've got a tool which extracts all the images and a separate tool which is sort of a C# implementation of sELedit that extracts elements.data to a local .sdf database. This database then contains all the item info such as ID, surface file name etc.
However, it relies on the config file used for sELedit being up to date... I haven't checked in a while so I'm not sure if the author of sELedit is still maintaining that.
I'll take a better look at everything later :P


Edit:
About 10 minutes after my previous post, I realised the obvious flaw in my suggestion about the elements.data extractor... That's only ever going to work for the PWI elements.data file, not ESO.

I know that in PWI, in an item struct there is value which gives the positional offset of the icon in the big .dds icon list (or is that only in inventory slots? I can't remember right now). It would possibly make sense that there is perhaps a massive list of all in-game items in memory, however, I don't know where that is in PW, let alone ESO. That might be a path worth investigating though.
dumbfck is offline  
Old   #3
 
elite*gold: 0
Join Date: Oct 2009
Posts: 7
Received Thanks: 2
Quote:
Originally Posted by dumbfck View Post
I have some tools somewhere in my archives that might be able to help. Not sure which hard drive they're on or where they are but I'll try to find them later this evening (got a lot to do today :P).
I'm not familiar with ESO though... Is it similar to PW whereby there is a large .dds file and a text file with a massive list of chinese stuff?

I've got a tool which extracts all the images and a separate tool which is sort of a C# implementation of sELedit that extracts elements.data to a local .sdf database. This database then contains all the item info such as ID, surface file name etc.
However, it relies on the config file used for sELedit being up to date... I haven't checked in a while so I'm not sure if the author of sELedit is still maintaining that.
I'll take a better look at everything later :P


Edit:
About 10 minutes after my previous post, I realised the obvious flaw in my suggestion about the elements.data extractor... That's only ever going to work for the PWI elements.data file, not ESO.

I know that in PWI, in an item struct there is value which gives the positional offset of the icon in the big .dds icon list (or is that only in inventory slots? I can't remember right now). It would possibly make sense that there is perhaps a massive list of all in-game items in memory, however, I don't know where that is in PW, let alone ESO. That might be a path worth investigating though.
i still hafta go look into the suggestions but yes the similar to pw, if not the same except the iconset file ending ends the same ("iconlist_" still there) + text file ofc. I have got the Items + image id from elements.data saved on a mysql database.

The item struct u mean in memory when the game is loaded or a file, and is it based on item id or the name in the txt file? and isnt the dds file just from left to right with the names from txt file? Writing the script to convert the big file in smaller files isnt going to be the problem. I just can't seem to figure out how to connect the surface file to the id.


and just to be clear, afaik the file structure ect is all the same as on PW yes
ItsMeMario1 is offline  
Old   #4
 
elite*gold: 10
Join Date: Sep 2010
Posts: 400
Received Thanks: 234
Yes, the dds file is just a left to right, top down scan which reflects the (psuedo) surface file names that the client uses. However, I expect for simplicity, the client stores the positional index of each icon when it's loaded into memory so it doesn't have to go into elements.data again to get the surface name or whatever / however it works... sort of like a cache index I suppose. I remember discussing this with Interest07 a while ago and I think we both agreed that this offset is definitely what I suspected it was.

And yes, I mean the item struct in memory when the game is loaded.
However, I just looked in PWI and it doesn't seem that there's a magical huge array of item structs just sitting there unfortunately.
So, this leaves two options that I can think of...

First option would be pretty tough - Figure out the elements.data file structure. I have no idea how the hell Ronny figured that out in sELedit for PWI - all I can think is that it must have taken a **** long time!

Second option... At some point, the client obviously accesses the elements.data file when it loads a new instance of an item. I would guess there's probably a nice function in the client that extracts all the info for a given item, possibly by it's ID or something. It therefore would feasibly be possible to try to track this down, figure out how it works, then write a function injector to recurse the function call with every possible item ID.
Maybe :P

Or... Maybe Interest or Swoosh have a nice little trick up their sleeve :P

I'll have a quick look in PWI to see if I can find such a function as this has peaked my curiosity now and I think it would be a pretty handy little function lol.
dumbfck is offline  
Old   #5
 
elite*gold: 0
Join Date: Oct 2009
Posts: 7
Received Thanks: 2
oke so... it seems i might have fcked up the first time i wrote a script to test this file.... cause i was like screw it ima try again and right now "think" i managed to get most the icons (~30 missing each file but they might not be ingame since there are some icons i have never seen in there) but in the data folder there is a file called path.data. containing info. (ID, string lenght, string) reading the iconset txt file line by line and checking if the path.data contains the string it return true for more then 99% of the icons

I still have to check if this is correct but this is what i just got as result
ItsMeMario1 is offline  
Old   #6
 
elite*gold: 0
Join Date: May 2010
Posts: 220
Received Thanks: 204
dont know if this helps, i wrote a quick tool to got all images from pwdatabase and save them on my harddrive.
later you have a database.db file and all item images, u can get then name by id from database.db and item image name is item id.

heres the autoit code for the image leecher:
amineurin is offline  
Old   #7
 
elite*gold: 0
Join Date: Oct 2009
Posts: 7
Received Thanks: 2
@amineurin this would work if only ether saga had a updated database XD but since there are only 2 database websites out there one very nice one but outdated so it doesnt have all the newer items. other one has most of the important items but is missing a lot of info


The path.data was the answer and idk what i messed up the first time i tested this file, but i guess i made a typo somewhere in the script back then. Thnxs for the help anyway
ItsMeMario1 is offline  
Reply


Similar Threads Similar Threads
[QUESTION]how to change shopping mall icon and vip icon?
08/25/2012 - EO PServer Hosting - 5 Replies
how to change this?http://www.elitepvpers.com/forum/attachment.ph p?attachmentid=59083&stc=1&d=1282324832
brauche hilfe beim packen der icon.eix & icon.epk
04/26/2012 - Metin2 Private Server - 7 Replies
brauche hilfe beim packen der icon.eix & icon.epk Hey Leute, wie oben im Titel schon steht brauch ich eure Hilfe, da mein endpacker es aus einen mir unbekannten grund nicht schafft die icon.eix_icon.epk zu packen =( Beim entpacken läuft alles super und klappt ohne irgendwelche probleme. (Benutze den endpacker von xdarki) Komisch ist nur das bei item.eix und item epk oder pc eix und epk läuft es auch super er entpackt und packt die datein ausser ebend bei dem ICON nicht. habe mal...
icon.epk/icon.eix lassen sich nicht packen
03/24/2012 - Metin2 Private Server - 5 Replies
Hey, Ich hab alles wie in diesem Tutorial gemacht: http://www.elitepvpers.com/forum/metin2-pserver-gu ides-strategies/455903-vtut-how-epk-dateien-entpac ken-wieder-zu-epk-machen.html Alles funktioniert ausser das packen -.- Also ich habs schon auf 2 methoden probiert. 1. icon.xml auf die m2.exe ziehen FAIL 2. mit cmd: cd C:\ExtractionHelper m2.exe icon.xml FAIL HABE WINDOWS7 64-bit.
brauche hilfe beim packen der icon.eix & icon.epk
02/04/2012 - Metin2 PServer Guides & Strategies - 4 Replies
Hey Leute, wie oben im Titel schon steht brauch ich eure Hilfe, da mein endpacker es aus einen mir unbekannten grund nicht schafft die icon.eix_icon.epk zu packen =( Beim entpacken läuft alles super und klappt ohne irgendwelche probleme. (Benutze den endpacker von xdarki) Komisch ist nur das bei item.eix und item epk oder pc eix und epk läuft es auch super er entpackt und packt die datein ausser ebend bei dem ICON nicht. habe mal 2 screens hochgeladen damit ihr vlt den fehler erkennt ich...
[S]Administrator Icon & User Icon
04/30/2011 - elite*gold Trading - 9 Replies
Hallo Leute, Ich suche ein Icon für Administrator und User! Für mein Forum! Hier so ungefähr sollte es aussehen! http://booktastic.org/forums/images/icon/crystal_ red/moderator.png



All times are GMT +2. The time now is 04:57.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

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