Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

WZ MapleStory Font Algorithm?

Custom Title Activated
Loyal Member
Joined
Jan 18, 2010
Messages
3,109
Reaction score
1,139
Does anyone know MapleStory's font "algorithm" (if any) to convert a simple Hex Color Code into how the client reads an unsigned color integer? Their fonts other than hardcoded into the client include the WZ Property 'clr' for things like Chat Balloon's and such.

We have all kinds of them hard-coded like:
pFont9999 = -6710887;
pFontOffline = -3421237;
pFontExpMasterRed = -2817994;
pFontPartyBossYellow = -869862;
and etc.

It follows the exact same way for things like the text of your username at the login, or even things like the color of "Ver. 83" text.

Now I remember back in KDEV there used to be a way to change the color of a chat bubble from a color code into this unique integer. I was wondering if anyone here had any websites or the program or even calculation on how to convert it.
 
Skilled Illusionist
Joined
Jul 17, 2010
Messages
333
Reaction score
165
......How the client reads an unsigned color integer from ARGB color code? ...by bitwise operation? I don't know.
Code:
/*ARGB Color code for [I]NewTopMsg[/I] or something*/
0:0xFFFFFFFF(-1);//white
1:0xFF000000(-16777216);//black
2:0xFF674B36;
3:0xFF404040;
4:0xFFFFFF20;
5:0xFF2000FF;
6:0xFF64B4F0;
7:0xFFFF2020;
8:0xFF28C99B;
9:0xFFFF99CC;
10:0xFFFF9900;
11:0xFFFF3399;
12:0xFF006699;
13:0xFFCC0066;
14:0xFF336600;
15:0xFFE9C4FF;
16:0xFFA4F0FF;
17:0xFFBBBBBB;
18:0xFF333333;
19:0xFF555555;
20:0xFF00FF00;
21:0xFFAAAAAA;
22:0xFF51378C;
 
Custom Title Activated
Loyal Member
Joined
Jan 18, 2010
Messages
3,109
Reaction score
1,139
......How the client reads an unsigned color integer from ARGB color code? ...by bitwise operation? I don't know.
Code:
/*ARGB Color code for [I]NewTopMsg[/I] or something*/
0:0xFFFFFFFF(-1);//white
1:0xFF000000(-16777216);//black
2:0xFF674B36;
3:0xFF404040;
4:0xFFFFFF20;
5:0xFF2000FF;
6:0xFF64B4F0;
7:0xFFFF2020;
8:0xFF28C99B;
9:0xFFFF99CC;
10:0xFFFF9900;
11:0xFFFF3399;
12:0xFF006699;
13:0xFFCC0066;
14:0xFF336600;
15:0xFFE9C4FF;
16:0xFFA4F0FF;
17:0xFFBBBBBB;
18:0xFF333333;
19:0xFF555555;
20:0xFF00FF00;
21:0xFFAAAAAA;
22:0xFF51378C;

That, yes. For example you have

Code:
1:0xFF000000(-16777216);//black

In hex, #000000 is black. How do I go from #000000 -> -16777216? I want to be able to get any color code and instantly convert it just like that.
 
Skilled Illusionist
Joined
Jul 17, 2010
Messages
333
Reaction score
165
Hmm… use calculator? Put the alpha(FF)/red(00)/green(00)/blue(00) channels in hex then convert to dec? (0xFF000000=-16777216)
…or, make a program (using << and |)?
 
Initiate Mage
Joined
Dec 3, 2019
Messages
2
Reaction score
0
I know it's 5 years old, but where did you find those properties? I found somewhere that MapleStory uses Arial font, but they don't quite fit everywhere. (Like the different texts in Stats window) I'm currently trying to create a more complete MS simulator site, and having everything be HTML while being as faithful as possible would be better than jumbling up hundreds of thousands of images.

Even if we consider custom text, like the character's name. Arial's E isn't short in the middle like that.
 
Last edited:
Back
Top