PWI - Guide for finding chat message offsets - C# code included

04/25/2011 20:15 dumbfck#76
I found the problem.....
The problem is that I'm actually slightly retarded lol.
I'm still in the process of reinstalling everything after starting with some fresh HDDs - Well, what I hadn't got around to was installing my soundcard :facepalm:
So erm... yeah... That's why it wouldn't load =P

Playing with it now. This is pretty awesome, thanks again, omarranimado =]
04/25/2011 21:26 omarranimado#77
Quote:
Originally Posted by dumbfck View Post
I found the problem.....
The problem is that I'm actually slightly retarded lol.
I'm still in the process of reinstalling everything after starting with some fresh HDDs - Well, what I hadn't got around to was installing my soundcard :facepalm:
So erm... yeah... That's why it wouldn't load =P

Playing with it now. This is pretty awesome, thanks again, omarranimado =]
yeah, glad to hear that it work now fine :)
must really smile wen i read what was the "error".

i search the board for infos about catshop inventory, now i try something.
4x times my pw crashed :D

i think i stop it now, was hard day working and im empty.
better watch a movie then wrote some spagetti code :o
04/25/2011 22:10 dumbfck#78
Sounds like you might have injected some code into the wrong address somewhere? That's the most common cause of a client crash.
Maybe using sendPackets stuff and got the wrong address for that?
If you're on PWI, the sendPackets function address is 0x64FB50
For other versions, I have no idea, sorry.
04/25/2011 22:18 omarranimado#79
Quote:
Originally Posted by dumbfck View Post
Sounds like you might have injected some code into the wrong address somewhere? That's the most common cause of a client crash.
Maybe using sendPackets stuff and got the wrong address for that?
If you're on PWI, the sendPackets function address is 0x64FB50
For other versions, I have no idea, sorry.
thanks :)
i try it the days, today is not my coding day :o
so i take a look on the item id problem some users here have.

do u take a look in the file element\data\gshop.data ?
theres item id and more inside :)

maybe i code quick a tool to read the file clear out, but not today.
04/25/2011 23:21 dumbfck#80
Yeah gshop.data seems to be the items from the cash shop - Not sure how useful that file is because I think all of those items also appear in elements.data
Although I could be wrong.... I was once =P
04/26/2011 00:11 Smurfin#81
Quote:
Originally Posted by omarranimado View Post
yep, autoit can make colored listview colums.
heres a sample for that:

nice, any column/row can have its own color
thanks for the listview columns coloring sample script :handsdown:
04/26/2011 12:01 dumbfck#82
Regarding the AH stuff, just found some potentially interesting files in surfaces.pck\ingame

auctionid.txt - Wondering if it might be some sort of ID mapping. Although as far as I've noticed, the IDs already seem to tie up?

auctiontree.txt - The exact tree listing of the auction filters. Might be useful if anyone is planning to make some sort of advanced AH bot =P

I won't get to play with these until later - maybe even tomorrow, but thought I'd put them out there for the people already working on AH stuff ^_^
04/26/2011 13:56 omarranimado#83
Quote:
Originally Posted by dumbfck View Post
Regarding the AH stuff, just found some potentially interesting files in surfaces.pck\ingame

auctionid.txt - Wondering if it might be some sort of ID mapping. Although as far as I've noticed, the IDs already seem to tie up?

auctiontree.txt - The exact tree listing of the auction filters. Might be useful if anyone is planning to make some sort of advanced AH bot =P

I won't get to play with these until later - maybe even tomorrow, but thought I'd put them out there for the people already working on AH stuff ^_^
thats nice, but i would say better use the gshop.data
since its a small file, containing all the needed infos like id ++
i checked ur item id file:

18314 18314 Chain Boots


now look at this screen from gshop.data values:

and that say pwidatabase:
[Only registered and activated users can see links. Click Here To Register...]

all matched, but gshop.data smaller and can be used after every game update + no need to extract pck files :)
04/26/2011 14:59 dumbfck#84
Oh that does look pretty cool. I have that program too, but never took much notice of it =P
Only downside though is that not all in game items are available from the cash shop - I think that data file only contains cash shop items. Very handy, nonetheless.


I just played a bit more with the AH text files in surfaces.pck
Seems that auctiontree.txt is a straight representation of the filter lists you can see in the AH.
auctionid.txt shows the possible items that can be seen in a given filter which allows for showing different variations of those items, e.g., 1*, 2*, 3* versions
[Only registered and activated users can see links. Click Here To Register...]


Now the cool part... We can add filters! This is potentially useful for filtering stuff that they haven't added to the AH filters yet, such as fashion - They normally take ages to add fashion to the AH on PWI lol.

Ok, might as well give a quick guide: (Sorry btw, this might only work for PWI and CN versions D: - The sPCK part should work, but sELedit probably wont. You can, however, get the item IDs using other methods mentioned in various places around this forum ;) )

If you don't already have a working copy of sPCK, download [Only registered and activated users can see links. Click Here To Register...].
Unzip it to a folder somewhere and run the pwtools-binaries.bat file. This will download all the other programs too - They're interesting to play with and I can't be arsed to edit the bat to just download sPCK and sELedit lol.

Once it's all downloaded, take a look in the stools-src\bin\sPCK folder.
In your Perfect World\elements folder, make a backup of surfaces.pck and then copy this file to stools-src\bin\sPCK
Then run sPCK.exe (I have [Only registered and activated users can see links. Click Here To Register...], which has a nice 'send to command prompt' addon ^^)
Then the command you want is:
Code:
sPCK.exe -x surfaces.pck
This will unpack everything into surfaces.pck.files

Now open that new folder and go to surfaces.pck.files\surfaces\ingame
Look for the two files:
auctionid.txt
auctiontree.txt

Load them both up in wordpad.
Now, think of some items you want to add. On PWI, the new Kitty stuff isn't yet in the filter system in the AH, so lets go to sELedit (which you just downloaded in the pwTools package hehe)
File -> Load -> Choose your PW version if it's in the list (sorry if it isn't :()
Then navigate to your Perfect World\elements\data\elements.data file
This should load up the data file.
Now from the dropdown list in sELedit, scroll down and find the fashion list. Then in the search box at the bottom, type 'Kitty' and hit the Find button.
Hopefully it will find the new Kitty fashion items.

Now look at the screenshot - I think this should explain it all ^_^
(Note that I put all the new items in the same area, just for illustrative purposes)
[Only registered and activated users can see links. Click Here To Register...]

Once you've edited the .txt files, save them both then go back to your sPCK folder.

Run sPCK again, but this time with the command:
Code:
sPCK.exe -c surfaces.pck.files
This will re-pack the files into surfaces.pck (you might want to remove the original one you placed in this folder, just to be sure it worked)

Now just copy the new surfaces.pck file into your perfect world\elements folder and start the game ^_^

Now go to the AH and..... Hey presto ^_^
[Only registered and activated users can see links. Click Here To Register...]

And there you have it. You now have a simple way to look for new fashion items in the AH that most people won't notice or be able to find ^_^ (although, they have fixed the search function now.... so others can still find it if they're sharp enough to figure that out =P)
04/26/2011 19:58 omarranimado#85
*lol* thats very cool :D
send this tutorial to pwi stuff, that such updates not take so long.

i take a closer look at the gshop.data, its the cashshop item list only :(
04/27/2011 07:27 Interest07#86
When I still played PW MS I had edited those files to be able to search at all, since PW MS hadn't translated those from chinese :p

But ya they could be handy
04/28/2011 22:43 omarranimado#87
i dont liked to take hours to find out were exactly the item ids and names are stored.
so i quickly type some sort of code with my furry hands, extracting all the id and names from the online database.
so i can use the created database for my catshopper :cool:

[Only registered and activated users can see links. Click Here To Register...]

Have Fun with the Autoit Source:
04/29/2011 18:19 dumbfck#88
Hehe that's quite neat ^^
I did something similar ages ago in PHP - I'd completely forgotten I'd done it lol. I have a bad feeling that was on my HDD that puked though :P

As for the whole 'cat in the bag' thing - I'm staying out of that lol.
04/29/2011 20:57 Sᴡoosh#89
I dumped it some time ago - before genesis expansion. here my data , if anyone needs it.

6[§§]☆Steel Falchion

ID --- [Delimiter] --- Name

Cheers
04/30/2011 09:42 omarranimado#90
Quote:
Originally Posted by dumbfck View Post
Hehe that's quite neat ^^
I did something similar ages ago in PHP - I'd completely forgotten I'd done it lol. I have a bad feeling that was on my HDD that puked though :P
i udate the reader, so u can download the images too.
u dont need to scan for more then 35.000 idīs, found something about 15.000 items for pwi.
as i see, there are a lot not translated items or unnamed flying devices...hope they insert them sometime too.

u can revocer ur old hd, i use for that: [Only registered and activated users can see links. Click Here To Register...]
works for memory cards too, if ur girlfriend format them accidentally *lol*

Quote:
Originally Posted by dumbfck View Post
As for the whole 'cat in the bag' thing - I'm staying out of that lol.
yeah me too.
i like cats, name sounds cool for my catshopper...catSHOP and items to ur BAG :D

im shure the fault is the language difference...if all were in german, he understand me right ;)