
Originally Posted by
iCreamPie
I've used this tutorial for my new grades.
http://forum.ragezone.com/f245/july-...-grade-688781/
I've followed Linear's way of using the colors.
So I used this color in hex reversed - #0FF83A and normal - #3AF80F. I went ingame to test it out I got this color.
Can someone help? It always seem to happened after the 1st Grade(it was the only one that was correct)
No, the hex isn't reversed. You just have to pay attention to what line it is on. Numerically, "R" will always be initialized to the lowest number.
Example:
Code:
MOV BYTE PTR SS:[EBP+8] // 8 is the lowest, it'll be R
MOV BYTE PTR SS:[EBP+9] // 9 is second, so it's G
MOV BYTE PTR SS:[EBP+A] // A is third, so it's B
MOV BYTE PTR SS:[EBP+B] // B is last so it'll be A (Always FF)
So, when you're looking at the code, you see the lowest number being added/sub'd to EBP/LOCAL, that's the R, so and so forth GBA follows. I hope this was explanatory enough.