Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Resources and Tools => Topic started by: Amaroth on June 05, 2016, 11:38:31 am

Title: [TOOL]PlayerBytes calculator 0.1a
Post by: Amaroth on June 05, 2016, 11:38:31 am
Just a simple tool for calculating PlayerBytes and PlayerBytes2 in characters.characters table for WotLK TC2 database (may work with newer or different databases as well, but that needs to be tested). It may be usefull especially for projects where NPCs based on player looks or players based on NPC looks are being used. It is able to get:

*Skin color
*Face
*Hair style
*Hair color
*Facial feature

From PlayerBytes and PlayerBytes2, or it is also capable of doing exactly opposite - getting bytes from character display IDs.

The problem is that alghoritm which core uses for generating PlayerBytes seems to come up with sometimes different values (although they give the same IDs as my alghoritm when being converted back). That may possibly cause some bugs or issues, hopefully not, but I would like to point that out anyway. So, use this tool carefully and feel free to let me know about anything you find out or if it just works fine for you. Getting IDs from bytes should definitely work without any problems, getting bytes from IDs - use that carefully. Thats all.

(http://www.model-changing.net/uploads/monthly_2016_06/tmp.jpg.230926febfe52ae93a56b8e59593f219.jpg)

DOWNLOAD:
https://www.dropbox.com/s/cfe7ybs9ha8rb ... r.exe?dl=0 (https://www.dropbox.com/s/cfe7ybs9ha8rbnc/PlayerBytesCalculator.exe?dl=0" onclick="window.open(this.href);return false;)
Title: Re: [TOOL]PlayerBytes calculator 0.1a
Post by: Ascathos on June 05, 2016, 12:15:41 pm
Newer TC has those bytes split up in db.

Well, for chars.

Else, it's a simple algorithm that shifts the bytes accordingly to the proper position.
Thanks for the release though.


EDITed this post.
Title: Re: [TOOL]PlayerBytes calculator 0.1a
Post by: Amaroth on June 05, 2016, 09:14:32 pm
Thing I didn't even know, you are able to give player characters NPC-only skins without enabling them in UI on client side. However, you are still forced to enable them on server side apparently, because TC2 forces customize for such characters. Or you can disable that customize-forcing method (not very save or clean solution).
Title: Re: [TOOL]PlayerBytes calculator 0.1a
Post by: monsune on June 25, 2016, 03:23:14 am
This is a very useful and needed tool. Many thanks for releasing it :)