Raised This Month: $ Target: $400
 0% 

How to increase the number of letters allowed on a DHUD message?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-13-2021 , 07:25   Re: How to increase the number of letters allowed on a DHUD message?
Reply With Quote #1

If there' no variable associated with the message you're sending, then you cannot change the size limit. This limit is built in the game's engine itself.

DHUD messages have a much shorter size limit. I think it's 128 as compared to 512 for HUD, but don't quote me on that.

About the mod name, check the size of the g_modname variable, but I'm pretty sure this also had a hardcoded limit - 16 or 32. Not sure on the exact number but you can easily check it.
__________________

Last edited by OciXCrom; 12-13-2021 at 07:26.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
GlobalPlague
Senior Member
Join Date: Feb 2016
Location: Pluto
Old 12-14-2021 , 16:31   Re: How to increase the number of letters allowed on a DHUD message?
Reply With Quote #2

Quote:
Originally Posted by OciXCrom View Post
If there' no variable associated with the message you're sending, then you cannot change the size limit. This limit is built in the game's engine itself.

DHUD messages have a much shorter size limit. I think it's 128 as compared to 512 for HUD, but don't quote me on that.

About the mod name, check the size of the g_modname variable, but I'm pretty sure this also had a hardcoded limit - 16 or 32. Not sure on the exact number but you can easily check it.
Thanks for explaining this to me. Thanks for reminding me about the existence of this g_modname variable.

I changed the value of g_modname from 32 to 64, and it worked.

I solved the problem with the DHUD messages by reducing the number of symbols, so now all symbols are displayed.

Thanks.
GlobalPlague is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:37.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode