Quote:
Originally Posted by Kingly_Krab
There is a lot more to this than just changing a singular line. You'd need to restructure packets, modify structs, and change any methods or functionality that uses experience as a uint32. I'll look in to it when I get a chance. Sounds like Live EQ already uses uint64_t for experience to avoid this issue.
|
I like to read and learn, even if I don't understand a damn thing about source code. I'm always scared, that if I do start understanding it, it will get boring :P
Code:
2^2 = 4
2^4 = 16
2^8 = 256
2^16 = 65536
2^32 = 4294967296
2^64 = 18446744073709551616
// testValue
unsigned long long testValue = 0xFFFFFFFFFFFFFFFF; // 18446744073709551615
// 1 byte -> [0-255] or [0x00-0xFF]
uint8_t number8 = testValue; // 255
unsigned char numberChar = testValue; // 255
// 2 bytes -> [0-65535] or [0x0000-0xFFFF]
uint16_t number16 = testValue; // 65535
unsigned short numberShort = testValue; // 65535
// 4 bytes -> [0-4294967295] or [0x00000000-0xFFFFFFFF]
uint32_t number32 = testValue; // 4294967295
unsigned int numberInt = testValue; // 4294967295
// 8 bytes -> [0-18446744073709551615] or [0x0000000000000000-0xFFFFFFFFFFFFFFFF]
uint64_t number64 = testValue; // 18446744073709551615
unsigned long long numberLongLong = testValue; // 18446744073709551615