This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [TOOL]PlayerBytes calculator 0.1a  (Read 1674 times)

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
[TOOL]PlayerBytes calculator 0.1a
« 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.



DOWNLOAD:
https://www.dropbox.com/s/cfe7ybs9ha8rb ... r.exe?dl=0
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
Re: [TOOL]PlayerBytes calculator 0.1a
« Reply #1 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: [TOOL]PlayerBytes calculator 0.1a
« Reply #2 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).
« Last Edit: June 25, 2016, 09:44:24 am by Admin »
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz

monsune

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 55
    • View Profile
Re: [TOOL]PlayerBytes calculator 0.1a
« Reply #3 on: June 25, 2016, 03:23:14 am »
This is a very useful and needed tool. Many thanks for releasing it :)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »