How to make a Voice Pack MANUALLY

3lionz

Legions Developer
This is an absolute noob guide (Work In Progress!) focused on how to make custom voice packs manually without the help of my Voice Pack Creator.

*UPDATE*
Voice Pack creator 1.1 is OUT! (30/06)
http://forums.legionsoverdrive.com/threads/legions-overdrive-voice-pack-creator.2571/

This may be due to a number of reasons:
0.5) Its still in development.
1) You think I am well and truly evil, and will stop at nothing to destroy everything you love. Including your PC.
2) You want to see if you want to be able to do it yourself, and earn the title of l33t Pr0gram3r.
3) Pffft, who needs GUI anyway? We all know how to read binary.
4) 01010000011011110111001101110100001000000100001001100001011000110110111101101110

The Basics
Silliness aside. Lets have a look.
We will mainly be looking at the quickchat folder, which is found in
..\Legions Overdrive\live\legions\data\sound\quickchat

Lets have a look at the cyborg voice pack.
The cyborg voice pack is made up of three things:
cyborgChat.cs
cyborgChat.cs.dso
and all of the cyborg.sound.mp2 files

cyborgChat.cs.dso is the compiled voice pack. Ignore them.

The .mp2 files are the sounds played when you use quickchat, we will look at that later on.

The main files we want to focus on is cyborgChat.cs, this is the file that the game compiles when you play the game. You CAN open it in notepad, (Ugh.) but i personally use Notepad++.

This is what you should see when you open it. (Click for full size)
cyborgchat1.png

.
.
.
.
.

DUE TO CHARACTER LIMIT
GO HERE FOR CODE
.
.
.
.
.


Section 1
Lets Pick This apart.
Code:
function setupCyborgChat()
{

This is the setup of the quick chat, the curly brackets { and } shows where the setup begins and ends.

Code:
  openChatGroup("G", "Global");

      addChatItem("Y", "ChatGlobalYes");
      addChatItem("N", "ChatGlobalNo");
      addChatItem("H", "ChatGlobalHello");
      addChatItem("B", "ChatGlobalBye");
      addChatItem("C", "ChatGlobalWarcry");
      addChatItem("L", "ChatGlobalGoodLuck");
      addChatItem("Q", "ChatGlobalQuiet");
      addChatItem("X", "ChatGlobalSorry");
      addChatItem("E", "ChatGlobalWhatever");
      addChatItem("S", "ChatGlobalShazbot");
      addChatItem("Z", "ChatGlobalCurse");
      addChatItem("O", "ChatGlobalOops");
      addChatItem("U", "ChatGlobalHowAreYou");
      addChatItem("G", "ChatGlobalGood");
      addChatItem("F", "ChatGlobalBad");
      addChatItem("W", "ChatGlobalWoohoo");
      addChatItem("T", "ChatGlobalThankYou");
      addChatItem("R", "ChatGlobalYoureWelcome");

  closeChatGroup();

Code:
openChatGroup("G", "Global");

We get to our first group. Groups are sets of chats, like taunts, compliments or team.
Withing the brackets, there are two values.

The first value "G" is the key code. This is the key used to open that group. (E.g. You use C to open quickchat, and G to open the global chat.)

The second value is the group name. This is label you see when you open quickchat.

(Pro tip: When making your own, keep the same formatting, the speech marks, commas brackets are there for a reason.)

Code:
addChatItem("Y", "ChatGlobalYes");

We get to our first chat.

The first value "Y" is the key code. This is the key use that chat.

The second value "ChatGlobalYes" is the Identifier. This is used later on in the code.

(Pro Tip: Don't include spaces in identifiers, try to use underscores instead)

Code:
closeChatGroup();

After adding all of the chats you want to your group, don't forget to close it using this command.

You can then proceed to add as many groups and chats as you want.

(Pro Tip: Don't use the same Key Code for groups or chats.)

Code:
  closeChatGroup();
}

After adding your last group, finish with a closed curly bracket.

Section 2
Now that you have finished the setup, its time to move onto installation
This is the code to install "yes"
Code:
installQuickChat("Cyborg", "ChatGlobalYes", "Yes.", "yes", false);
There are five values that we need to change in this.
The first is the name of the voice pack to install too. In this case the name of the voice pack is "cyborg".

The second value is the identifier or the chat item you want to install (Mentioned above)

The third value is the text that is said in the chat box. In this case, when you use this chat, you will say "Yes."

The forth value is more complicated.

This is the name of sound that you want to play when you use this chat.
To add a sound, place a .wav or .mp2 file in the quickchat folder, beginning with the name of your quickchat, a dot, followed by the forth value.
For example, if I had my voice pack "test_pack" and I wanted the sound to say "hello", the code would be:
Code:
installQuickChat("test_pack", "ChatGlobalHello", "Hello!", "hello", false);
and the sound would be called "test_pack.hello.wav"

The fifth value is the "team only" value.
If it is true, only your team will hear/see your chat.
If false, everybody will
(Pro Tip: This is case sensitive, lower case only)

Go through each of your chats, installing them with the same formatting

That's it for the basics!

F.A.Q.
Can others see/hear my quickchat without my files?
They can see the text in the chatbox, but they will not be able to hear the sounds unless they install it to their quickchat folder.

How do i have groups in groups?
Just use openChatGroup while in another group (Don't forget to close it though)

I don't get it!/tl;dr;
Use this.

I still don't get it!
PM me on the forums!

Dont understand it?
TELL ME, and we can make it better.
 

Immanent

Member
I think this deserves another: "Hacks" Title :D

I vow to make an Immanent voice pack soon now or later manually!

If we don't want sound for a command, lets say for example:

installQuickChat("Cyborg", "ChatTeamYoureWelcome", "No problem.", "your_welcome", true);

for the 4th value, would we just leave that blank, or do we delete it?

Answer: installQuickChat("Cyborg", "ChatTeamYoureWelcome", "No problem.", "null", true);
 

the-champ

Member
The legions voice pack creator didn't work fine for me,the window did come up but it could not finalize.

Yeah,if we don't need sound for a quick chat,the fourth value has to be left blank like (" ") or deleted?
 

A2

Member
Nice stuff bro! I'm sure this'll help many. 1110010101010111101010001010101 to you too! <3
 

WildFire

Warrior of Linux
i just have it on my computer. as long as my computer isn't messed up by viruses idc. but whats so bad about norton anyways?

Commonly used and the service isn't good. If it believes this .exe is a virus, that speaks volumes.
 
Top