Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Serverside Modding => Topic started by: LordAres on January 06, 2013, 05:01:04 am

Title: [REQUEST] Faction and Race name change
Post by: LordAres on January 06, 2013, 05:01:04 am
Okay so im using 3.3.5a TRINITY and I see everyone is changing their factions and race names in their client and servers. My server im making is based on 2 factions, Lawful and Evil. I want to know if someone can make a tutorial on how to change the Race names and Faction names in the client and server with trinity. Also please include pictures!

Side question, Is it possible to create another faction that a player can become via quest? Say Demon or Angel? Yet still have their main faction. LIke for instance Lawful - Angel or Lawful - Demon.
Title: Re: [REQUEST] Faction and Race name change
Post by: XxXGenesisXxX on January 06, 2013, 07:31:20 am
First, if you don't already, you need to learn to make a custom patch or how to load from directories. There are guides floating around on here for those.

Moving on: on the basic level it's very simple DBC editing to achieve both. Just open up "ChrRaces.dbc"  MyDBCEditor and change the name of a race. Then add it to your client by doing the neccessary steps to make WoW load it. If you are using Taliis, make a new string with the name you want, then use the string ID to replace the name. If that confuses you, try an irrelevant DBC editing guide on here first that uses Taliis (many do).

Factions, again on a basic level is almost the same. Do the same but in the "Faction.dbc".

As for your side question, you can just use sub-faction branches. Like Alliance can be Lawful, Horde can be Unlawful, then Stormwind can be Angels, Ironforge can be, Paladin Brotherhood or some crap. Then Orgrimmar can be Demons, and Thunderbluff can be Monsters. Idk, I'm not a very creative type, but you should be able to grasp the structure I am on about.

Edit: For the most part, there is already guides very similar to what you ask, but mroe extensive.
Title: Re: [REQUEST] Faction and Race name change
Post by: LordAres on January 07, 2013, 09:21:44 pm
changing Alliance and Horde in faction.dbc will change it in the login screen right? Where it says alliance at the top of the client in character creation?
Title: Re: [REQUEST] Faction and Race name change
Post by: schlumpf on January 07, 2013, 10:30:45 pm
Try and see yourself. Trying takes a minute, waiting for an answer already took ten.
Title: Re: [REQUEST] Faction and Race name change
Post by: LordAres on January 07, 2013, 10:49:12 pm
Well I did mess around with the faction dbc and I saw how to change it around. When I go into the character creation screen everything I tried didn't work so idk if its a graphical change I would have to do. Also it doesn't hurt to ask questions. Because it shows people who come after me reference posts on what to do or encourage the community by making tutorials.

Also I'm not skilled with editing yet and there is a lot of places I don't know where to start on certain things so I'd rather ask and get wisdom from more skilled editors and it'll make me more skilled the more skilled I become ill stop asking questions less and less and ill make tutorials. I don't new my hand held. Just what files would be used in changing the factions and races in the character creation menu.

Also to kill 2 birds in one stone which files would be used to change the world of Warcraft icons in the login screen, character creation, character selection screen.
Title: Re: [REQUEST] Faction and Race name change
Post by: XxXGenesisXxX on January 07, 2013, 11:03:18 pm
The Alliance/Horde are both blp images. In fact they are pretty much the only text on the creation screen that isn't editable text but an image instead.
Title: Re: [REQUEST] Faction and Race name change
Post by: LordAres on January 08, 2013, 12:02:39 am
That's what I figured. So if I change the race names and class names it will change in character selection screen and all other  screens? Says I change paladin to paragon or Templar or whatever it'll change in the character selection screen and character info? When I get time ill mess around with the files but right now I'm at work and my mind is all over the place thinking about what to do.
Title: Re: [REQUEST] Faction and Race name change
Post by: XxXGenesisXxX on January 08, 2013, 08:16:42 am
Foir he most part changing the name in CharClasses.dbc will change the name. However character info on the creation screen is done via GlueStrings.lua in the InterfaceGlueXML folder.
Title: Re: [REQUEST] Faction and Race name change
Post by: LordAres on January 08, 2013, 06:48:06 pm
At first after the changes I got this error

(http://i1259.photobucket.com/albums/ii552/purpleflee/charactercreatelua_zps0954dc70.png)

So I got into Patch-enUS-3.MPQ Interface/GlueXML and there is no CharacterCreate.lua so i went down to Patch-enUS-2.MPQ and look in the Interface/GlueXML folder and there it is. So i export it and edit it in the only spot I can find that makes sense

from
Code: [Select]
CLASS_ICON_TCOORDS = {
["WARRIOR"] = {0, 0.25, 0, 0.25},
["MAGE"] = {0.25, 0.49609375, 0, 0.25},
["ROGUE"] = {0.49609375, 0.7421875, 0, 0.25},
["DRUID"] = {0.7421875, 0.98828125, 0, 0.25},
["HUNTER"] = {0, 0.25, 0.25, 0.5},
["SHAMAN"] = {0.25, 0.49609375, 0.25, 0.5},
["PRIEST"] = {0.49609375, 0.7421875, 0.25, 0.5},
["WARLOCK"] = {0.7421875, 0.98828125, 0.25, 0.5},
["PALADIN"] = {0, 0.25, 0.5, 0.75},
["DEATHKNIGHT"] = {0.25, 0.49609375, 0.5, 0.75},
};

to

Code: [Select]
CLASS_ICON_TCOORDS = {
["PARAGON"] = {0, 0.25, 0, 0.25},
["WIZARD"] = {0.25, 0.49609375, 0, 0.25},
["ASSASSIN"] = {0.49609375, 0.7421875, 0, 0.25},
["WARDEN"] = {0.7421875, 0.98828125, 0, 0.25},
["BEASTLORD"] = {0, 0.25, 0.25, 0.5},
["MYSTIC"] = {0.25, 0.49609375, 0.25, 0.5},
["INQUISITOR"] = {0.49609375, 0.7421875, 0.25, 0.5},
["WARLOCK"] = {0.7421875, 0.98828125, 0.25, 0.5},
["CRUSADER"] = {0, 0.25, 0.5, 0.75},
["SHADOWKNIGHT"] = {0.25, 0.49609375, 0.5, 0.75},
};

and then I saved it and added it to my patch-a.MPQ like so

(http://i1259.photobucket.com/albums/ii552/purpleflee/patch-AMPQ_zps322c74ba.png)

and then I added my patch to my wowfolder/Data like you normally would and i get this error 8'(

(http://i1259.photobucket.com/albums/ii552/purpleflee/ohnoes_zps30a2639c.png)

I was on a roll this time! lol
Title: Re: [REQUEST] Faction and Race name change
Post by: Ascathos on January 08, 2013, 07:30:59 pm
Quote from: "LordAres"
[...][/img]

I was on a roll this time! lol
1. You need the changed exe file. "Remove GlueXML Check from WoW.exe" <- Search function.
2. You need to have these definitions within your ChrClass dbc, else the interface can not make sense of these icons to an according class.
3. There are more files you require to edit; look further. GlueStrings if I remember correctly is an example.
Title: Re: [REQUEST] Faction and Race name change
Post by: LordAres on January 08, 2013, 07:51:07 pm
Thanks Ascathos

That worked! I can now se the class icons and in the class section it says the name. Now i just need to figure out how to make the info work. Im getting the InterfaceGlueXMLcharactercreate.Lua line 321 attempt to concatenate a nil value

Line 321 in my charactercreate.lua says

Code: [Select]
CharacterCreateClassText:SetText(GetFlavorText("CLASS_"..strupper(classFileName), GetSelectedSex()).."|n|n");
Im gonna edit the gluestrings.lua and ill tell ya if it goes oaky

--------------------------- EDIT ----------------------------------------------

edited GlueStrings.Lua and everything works now.Thanks so much guys

Just got some problems with the deathknight model not showing up and something with GlueParent.lua line 384 sound. Gonna try to fix ill let you know

-------------------- edit -------------------------------

Alright I have no idea what to do with this error. Its rattling my brain guys!!

(http://i1259.photobucket.com/albums/ii552/purpleflee/NOIDEA_zps707144b7.png)

Basically its not displaying the model for the Deathknight aka Shadowknight in my game. What files would I need to edit to make this display the model?
Title: Re: [REQUEST] Faction and Race name change
Post by: Ascathos on January 08, 2013, 08:56:17 pm
There is no UI defined. You have to do that.
Title: Re: [REQUEST] Faction and Race name change
Post by: LordAres on January 08, 2013, 09:00:28 pm
would it be one of the files i edited? which one?
Title: Re: [REQUEST] Faction and Race name change
Post by: Ascathos on January 08, 2013, 09:12:41 pm
Quote from: "LordAres"
would it be one of the files i edited? which one?
Actually, I am looking at that myself right now.

EDIT:
Code: [Select]
-- Function to set the background model for character select and create screens
function SetBackgroundModel(model, name)
    local nameupper = strupper(name);
    local path = "Interface\Glues\Models\UI_"..name.."\UI_"..name..".m2";
if ( model == CharacterCreate ) then
SetCharCustomizeBackground(path);
else
SetCharSelectBackground(path);
end
PlayGlueAmbience(GlueAmbienceTracks[nameupper], 4.0);
SetLighting(model, nameupper)
end


This is the function within GlueParent.lua. You have to set a racial (Deathknight seems to be a special case I haven't figured out yet) .m2. Within the same Lua, you also set informations concerning the played ambience track (music). These do not have their own function, as you can read within this function, but are defined in the upper variable defining.
Title: Re: [REQUEST] Faction and Race name change
Post by: LordAres on January 08, 2013, 09:16:19 pm
Well i fixed the sound problem thats at the beginning of GlueParent.lua but what your saying is i need to rename the deathknight.m2 models?
Title: Re: [REQUEST] Faction and Race name change
Post by: Ascathos on January 08, 2013, 09:17:24 pm
Quote from: "LordAres"
Well i fixed the sound problem thats at the beginning of GlueParent.lua but what your saying is i need to rename the deathknight.m2 models?
Yes.
Title: Re: [REQUEST] Faction and Race name change
Post by: LordAres on January 08, 2013, 10:05:36 pm
Where would i find these m2s? In my patch-3.MPQ under character theres no deathknight
Title: Re: [REQUEST] Faction and Race name change
Post by: Ascathos on January 08, 2013, 10:21:19 pm
Quote from: "LordAres"
Where would i find these m2s? In my patch-3.MPQ under character theres no deathknight
I'll be damned if I do everything for you. No one said it's easy, but show some proactivity.
Title: Re: [REQUEST] Faction and Race name change
Post by: LordAres on January 08, 2013, 10:23:36 pm
Haha Your not doing everything for me. Ill look more deep in all my mpqs but could you give me hints of where it could possibly be. Like which mpqs i should look at for the m2s. idc if you list off 5 mpqs and only 1 has the right files. Atleast ill know if they are m2s or lua by hints
Title: Re: [REQUEST] Faction and Race name change
Post by: Ascathos on January 08, 2013, 10:31:05 pm
Quote from: "LordAres"
Haha Your not doing everything for me. Ill look more deep in all my mpqs but could you give me hints of where it could possibly be. Like which mpqs i should look at for the m2s. idc if you list off 5 mpqs and only 1 has the right files. Atleast ill know if they are m2s or lua by hints
Out of 6 MPQs within Data and 9 MPQs within Localization (with two containing sole speech sound files), you can do one clear dividing. Namely, Localization is focusing around interface and overall data files (corresponding to the server) and the Data files revolving around sounds, visualation for Ingame Engine, etc. After all, there is not one Interface, DBFilesClient or Fonts folder within Data.

You've been editing the interface files all the time. Make sense, doesn't it ? Reducing the possible MPQ list to 7. You also know that it has to do with interface files and is a model. Reducing the possible folders to look into to Interface, as Sounds only contain sound files, DBFIlesCLient only contain resources and files instead of overall visual content for the client. Meaning, it has to be within Interface somewhere. You search for a .m2 (As you can see within the function, models are called for the background). You can also see that there is nothing bluntly called "models" or something, so there has to be a different approach.

It may take some research, true, but it's not hard and far from being complicated.

Hint: You can open Listfile with an editor and read the content out.
Info: I make the difference Client - In game Engine here.


EDIT: Okay, I think I was mean in this post.
Interface/Glues/

Within these folders you can find the UI files.
Title: Re: [REQUEST] Faction and Race name change
Post by: LordAres on January 08, 2013, 10:42:28 pm
Haha just a little mean but okay Interface/Glues it is. That leaves in my files just the 3 enUS mpqs that have interface glues
Title: Re: [REQUEST] Faction and Race name change
Post by: schlumpf on January 08, 2013, 10:49:38 pm
mpqs are loaded in defined order. patches are last. highest number is last.
Title: Re: [REQUEST] Faction and Race name change
Post by: LordAres on January 10, 2013, 10:23:10 pm
Yeah but i cant figure out where the string is for the deathknight model to load. When i go to my "shadowknight" its just a black screen at character selection and in the left bottom corner is a white and blue checkered tile box
Title: Re: [REQUEST] Faction and Race name change
Post by: XxXGenesisXxX on January 12, 2013, 05:45:35 am
Quote from: "XxXGenesisXxX"
The Alliance/Horde are both blp images. In fact they are pretty much the only text on the creation screen that isn't editable text but an image instead.

Turns out I was wrong, there are blp files for it in the MPQ's but they must of changed it in BC or WotLK. If you look in CharacterCreate.XML you'll find this:

Code: [Select]
<FontString name="CharacterCreateAllianceLabel" inherits="FactionName_Shadow_Huge" text="ALLIANCE">
<Anchors>
<Anchor point="TOP" relativePoint="TOP" x="-50" y="-20"/>
</Anchors>
</FontString>
<FontString name="CharacterCreateHordeLabel" inherits="FactionName_Shadow_Huge" text="HORDE">
<Anchors>
<Anchor point="TOP" relativePoint="TOP" x="50" y="-20"/>
</Anchors>
</FontString>

Change the text="ALLIANCE" and text="HORDE" to whatever you want.
Title: Re: [REQUEST] Faction and Race name change
Post by: LordAres on January 13, 2013, 03:20:50 am
Thanks dude that worked! But my problem is i changed the name of the deathknight to shadowknight and now the model and the background isnt showing up. How would i fix this?

(http://i1259.photobucket.com/albums/ii552/purpleflee/Untitled_zpsf61030fa.png)

See you can see the model is a white and blue checkered box in the bottom left corner and the background is all black. There is no error that pops up. U can see the name is changed to shadowknight and the discription is changed too. How would i fix this?
Title: Re: [REQUEST] Faction and Race name change
Post by: XxXGenesisXxX on January 13, 2013, 03:30:51 am
I have come across this issue myself at one point, but sorry to say I never investigated as it was one of the last things I was focusing on. My custom class that used the Death Knights ID wasn't going to be playable for a long time, so I never tried figuring it out. I would suggest just going to ID 7 instead though.
Title: Re: [REQUEST] Faction and Race name change
Post by: LordAres on January 13, 2013, 04:48:13 am
I fixed it... Just took it back to deathknight hahahaha
Title: Re: [REQUEST] Faction and Race name change
Post by: Ascathos on January 13, 2013, 10:55:37 am
Quote from: "LordAres"
I fixed it... Just took it back to deathknight hahahaha
After changing things within GlueStrings.Lua, GlueParent.Lua, added a new shadowknight ui and changed ChrClasses by merely changing names...

... oh.
(http://666kb.com/i/canjzfil17heo0ekp.jpg)

Considering how often other people have problems with stuff like this, I seem to do it wrong.
Title: Re: [REQUEST] Faction and Race name change
Post by: LordAres on January 16, 2013, 06:09:30 pm
i Never said you were doing anything wrong. I was stating multiple times i couldnt figure it out. So being someone who is more expierenced in this you should help the community out but either 1. making a tutorial 2. Showing people how to do it in their problem thread. Clearly I wasnt figuring it out.
Title: Re: [REQUEST] Faction and Race name change
Post by: Ascathos on January 16, 2013, 06:18:26 pm
Quote from: "LordAres"
i Never said you were doing anything wrong. I was stating multiple times i couldnt figure it out. So being someone who is more expierenced in this you should help the community out but either 1. making a tutorial 2. Showing people how to do it in their problem thread. Clearly I wasnt figuring it out.
Quote from: "Ascathos"
changing things within GlueStrings.Lua, GlueParent.Lua, added a new shadowknight ui and changed ChrClasses by merely changing names...

Obviously, that last statement was sarcasm. Also, I stated where I changed things. I didn't change anything else. And it worked right off the bat. So it has nothing to do with experience, but seemingly with what you did.

Then again, all you say is "it doesn't work". You don't post code, you don't post content, you only post a screenshot and expect an answer. I think the meaning of what I want to say is pretty clear.

That being said, I am actually writing a tutorial about creating a new class. It can be tweaked to suit your own needs (seeing as most of the stuff is already working in core.)
Title: Re: [REQUEST] Faction and Race name change
Post by: LordAres on January 16, 2013, 07:12:01 pm
Sorry didnt mean to be upset, but Ill try this again later. I just started mapping and the map is crashing everytime I load the map. U can see it in level design. Even a video attached... Its so frustrating. Not one thing will go my way :(
Title: Re: [REQUEST] Faction and Race name change
Post by: Ascathos on January 16, 2013, 07:15:30 pm
Quote from: "LordAres"
Sorry didnt mean to be upset, but Ill try this again later. I just started mapping and the map is crashing everytime I load the map. U can see it in level design. Even a video attached... Its so frustrating. Not one thing will go my way :(
Modding was never said to be easy. Ambitions are what even led us to this point, not to mention the frustration schlumpf and crew had.