• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Exp amount come in negative amount

Doggynub

LUA / C++
Joined
Sep 28, 2008
Messages
2,541
Reaction score
186
Well , When the experience is too large it show above player in a negative amount while in the console message it appears correctly , is there any fix to this?!

0.4 latest
 
the white exp gain text? not sure if it's client or server int size limitation :p

alright, could be a serverside limitation
Code:
struct MessageDetails
{
	int32_t value;
	Color_t color;
	MessageDetails* sub;

	MessageDetails([B][COLOR="#FF0000"]int32_t[/COLOR][/B] value = 0, Color_t color = COLOR_WHITE):
		value(value), color(color), sub(NULL) {}
};
 
Last edited:
what did you mean with debugs? the client debugs? there's nothing you can do about it in that case, if it expects an U32
 
atleast try to change the int32_t to uint32_t in MessageDetails class? :p it should allow for 4,294,967,295 instead of 2,147,483,647
 
Back
Top