Forum > Tutorials
[DBC] Creating New Factions
<< < (2/2)
kojak488:
--- Quote from: "Valkryst" ---10110010001 = 145 All Alliance races --- End quote ---
That's not correct. All alliances races would be 10001001101. As I said in my initial post the race mask is read from right to left. You're putting in from left to right. And it translates to a decimal value of 1101.
I don't even know how you got 145 based off that. 145 decimal to binary is 10010001. Your number of 10110010001 in binary is 1425 in decimal.
--- Quote from: "Valkryst" ---01001101110 = 110 All Horde races --- End quote ---
See the above.
--- Quote from: "Valkryst" ---Column 3 = 145 Column 4 = 110 Column 11 = 6000 Column 12 = -42000 --- End quote ---
column 3 with value of 145 to binary is 10010001. That translates to humans, undead, and trolls (right to left - remember this). This means that those three should have 6,000 rep with whatever faction this is.
column 4 with value of 110 to binary is 01101110. That translates to Orc, Dwarf, Night Elf, Tauren, and Gnome. This means those five should be hated with the reputation.
--- Quote from: "Valkryst" ---All except for Dreanei are hostile. Orcs/Tauren hostile, Undead/Trolls friendly, Belfs neutral. --- End quote ---
I personally doubt those are how the factions turned out. That or I'm not getting the correct numbers. It'd be far easier to see if you uploaded the dbc itself. In any case you got the race masks backwards and that throws off your expected results.
Valkryst:
D'oh. Well, at least I got all of the stupid out of me earlier today. Thanks for checking over and correcting my mistakes. I'll redo the tests a little bit later and stop using a junky online tool to do the base conversion for me, good thing I learned how to do it earlier this year. =P
kojak488:
I use online tools for the binary/dec conversions. The one you linked is horrible though because it's limited to 8 bits. It truncated the value to 8 bits and that appears to be how you wound up with weird numbers for the conversions.
Just don't forget your race masks were wrong too. :ugeek:
Navigation
[0] Message Index
[*] Previous page
|