Halp!

Status
Not open for further replies.

Armageddon

Teapot
Not sure where to put this one as it's not a problem with the games base code but has more to do about the quick chat.

I'm working on a huge port of the T1 Ultra_Monkey voice pack (5150-Hvpack-Hacker-X's Xpack3001) and i have run into an annoying problem.
I'm guessing the only way to fix this is to resize the QC but im not sure how :(

wtf.png
 

Immanent

Member
I'm quite sure that the 51.9 megabytes is caused as a result of combining the default voice pack and UberMonkey's, so I would suggest that you delete the default voice pack (and sounds) which are already in UberMonkey's voice pack if you haven't already, because nobody will be able to hear it except from the people that download it.
I've had some experience with long chat messages, but have never came up with that problem I just saw in that screeny :(
Good luck!
 

Armageddon

Teapot
I'm quite sure that the 51.9 megabytes is caused as a result of combining the default voice pack and UberMonkey's, so I would suggest that you delete the default voice pack (and sounds) which are already in UberMonkey's voice pack if you haven't already, because nobody will be able to hear it except from the people that download it.
I've had some experience with long chat messages, but have never came up with that problem I just saw in that screeny :(
Good luck!

The issue isn't in it's size MB wise, it's the length of the text being displayed in the groups, also the new sounds alone are 51.7. I'm not sure of the final size yet because i can't display the text correctly.

Example of how tribes handles QuickChat.
Here we have a name for the sound/text that will be played/displayed
Code:
    addPlayChat("9Rocky (long)", "Oh der they go, der they go! Every time I start talkin' bout boxing, a white man gots to pull Rocky Marciano out they ass...", emrocky);
As compared to Legions the text displayed in the chat box is also the text displayed for the saying in the players QC menu, thats my problem.
Code:
installQuickChat("UberMonkey", "UMRocky", "Oh der they go, der they go! Every time I start talkin' bout boxing, a white man gots to pull Rocky Marciano out they ass...", "wemrocky", false);
 

Arch

Legions Developer
I know that in HudElemets.cs there's is a chunk that moves it around and what-not.
Code:
   // quick chat message text
   %index = %this.addHudElement();
   %this.setHudElementPosition(%index, 200, 275);
   %this.setHudElementBaseTextureSize(%index, 820, 116);
   %this.setHudElementScreenAnchor(%index, "VCenter");
   %this.setHudElementPositionAnchor(%index, "Left", "VCenter");
   %this.setHudElementParent(%index, $HudElement::BaseContainer);
   %this.setHudElementRenderWhenDead(%index, true);
   %this.setHudElementText(%index, "");
   $HudElement::QuickChatText = %index;

Maybe change the BaseTextureSize?
 

Armageddon

Teapot
I finally figured it out, it was stupid and i was stupid for asking without looking at quickchat.cs for myself.

What im doing now is this.
Instead of the text being used as a name for the list item im using the commandId which looks like this. It's now more setup like tribes, a smaller title used for the chat option.

installQuickChat("UberMonkey", "UMBaboon", "Now lets see if you can defend yourself you sweat from a baboon's balls...", "wembaboon", false);

function addChatItem(%key, %commandId)
{
%voiceId = $Pref::player::QuickChatVoice;

%chatField = $Client::QuickChat::Table[%voiceId, %commandId];
if (%chatField $= "")
{
error("addChatItem: unable to add chat item, must not be installed!");
return;
}

%name = %commandId;
%parent = $Client::QuickChat::Curr;
%itemName = %parent.getName() @ "_" @ stripChars(%name, " ,.;':`~!@#$%^&*+-=<>");

// create a new chat item and add to the current target
%child = new SimObject(%itemName) {
parent = %parent;
isMenu = false;
title = %name;
key = %key;
};

%parent.actionMap.bindCmd(keyboard, %key, "QuickChatManager.issueQuickChat(" @ %child @ "," @ %commandId @ ");", "");
%parent.add(%child);
}

Sorry to waste everyones time who looked into it.
 
Status
Not open for further replies.
Top