Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Miscellaneous => Topic started by: Renan on January 26, 2015, 03:32:36 am

Title: [Question] Changing a race's Faction? (Horde->Alliance)
Post by: Renan on January 26, 2015, 03:32:36 am
I'm sorry, this is my first time posting. Is there any way I can go about doing this? I'm using Trinitycore at patch 3.3.5a. My main goal is to have Blood Elves changed over to Alliance Side, but the only tutorials here seem to be for making an entire new race.
Title: Re: [Question] Changing a race's Faction? (Horde->Alliance)
Post by: Amaroth on January 26, 2015, 11:23:22 am
I suppose you want to remake them and turn them into high elves... That doesn't matter anyway, check:
ChrRaces.dbc
Faction.dbc
FactionTemplate.dbc

Maybe I forgot some? Find rows related in these DBCs, compare them with alliance related rows and try to edit them to fit alliance "standarts".
Title: Re: [Question] Changing a race's Faction? (Horde->Alliance)
Post by: Renan on January 26, 2015, 08:16:11 pm
Quote from: "Amaroth"
I suppose you want to remake them and turn them into high elves... That doesn't matter anyway, check:
ChrRaces.dbc
Faction.dbc
FactionTemplate.dbc

Maybe I forgot some? Find rows related in these DBCs, compare them with alliance related rows and try to edit them to fit alliance "standarts".


When I modified the FactionTemplate.dbc, and put it (and a test patch) in the DBCs, it didn't really do anything at all. I wasn't sure if the patch was even necessary but it did crash my client (so I deleted it). The ChrRaces.dbc didn't seem to have anything pertaining to faction in it, and any information online on the matter was not clear in the least. The Faction.dbc itself helped me see that all of the player factions have the same setup in the faction.dbc, and that the FactionTemplate.dbc was the only one that seemed to even hint at a faction change for them.
Title: Re: [Question] Changing a race's Faction? (Horde->Alliance)
Post by: Temptation_Town on January 27, 2015, 05:00:14 am
Quote from: "Amaroth"
I suppose you want to remake them and turn them into high elves... That doesn't matter anyway, check:
ChrRaces.dbc
Faction.dbc
FactionTemplate.dbc

Maybe I forgot some? Find rows related in these DBCs, compare them with alliance related rows and try to edit them to fit alliance "standarts".

You are confusing this guy, all he need is ChrRaces.dbc .

Quote from: "Renan"
The ChrRaces.dbc didn't seem to have anything pertaining to faction in it, and any information online on the matter was not clear in the least.

False.

Look here. I've highlighted the values in ChrRaces you need to change.

First one ("1610") must be changed to "1" and the second highlighted "1" to "7".

That's all.

Don't forget to put this dbc both client and server side.
Title: Re: [Question] Changing a race's Faction? (Horde->Alliance)
Post by: Amaroth on January 27, 2015, 11:33:12 am
You are confusing me bro... All you are doing is rewriting their faction. What I wanted to do as well, but in clearer way :D. I really preffer to know what I am actually doing, not just rewriting random numbers and in the end yeeeey, it worked!
Title: Re: [Question] Changing a race's Faction? (Horde->Alliance)
Post by: Temptation_Town on January 27, 2015, 03:18:56 pm
Quote from: "Amaroth"
I really preffer to know what I am actually doing, not just rewriting random numbers and in the end yeeeey, it worked!

I gave him (and you) the best working method to do this. Horde->Alliance, FactionTemplate+TeamID swap in 2 clicks.

If you don't understand this stuff (even with pictured guide with highlighted rows), it's not my problem.  

If you both too lazy to learn ChrRaces.dbc structure it's not my problem too.
Title: Re: [Question] Changing a race's Faction? (Horde->Alliance)
Post by: Renan on January 27, 2015, 03:51:51 pm
Quote from: "Temptation_Town"
Quote from: "Amaroth"
I suppose you want to remake them and turn them into high elves... That doesn't matter anyway, check:
ChrRaces.dbc
Faction.dbc
FactionTemplate.dbc

Maybe I forgot some? Find rows related in these DBCs, compare them with alliance related rows and try to edit them to fit alliance "standarts".

You are confusing this guy, all he need is ChrRaces.dbc .

Quote from: "Renan"
The ChrRaces.dbc didn't seem to have anything pertaining to faction in it, and any information online on the matter was not clear in the least.

False.

Look here. I've highlighted the values in ChrRaces you need to change.

First one ("1610") must be changed to "1" and the second highlighted "1" to "7".

That's all.

Don't forget to put this dbc both client and server side.


Thank you for your help. I'll have to try it when I get home.
Title: Re: [Question] Changing a race's Faction? (Horde->Alliance)
Post by: Amaroth on January 27, 2015, 05:04:16 pm
Are you ****ing kidding me...?

Read again what I wrote. Read it again after that. I DO know what you did. And I DO know what I wanted to make him to do and surprisingly, I know very well why.

I was just pointing at fact that it really would be great if anyone who wants to change race's faction connections should actually know how this system works before he starts editing it. Yes, giving BE human's faction will "work".

But sometimes you need to know how and why, not that it just "works" and when something goes wrong, it suddenly "doesn't work". For him that will be time to write topic "it doesn't work cause no reasons, help me!". I want to make him actually find out what the hell is that column in ChrRaces for, where is it pointing, into which DBC, how that DBC work and to which other DBCs it is linked to. Because when he will find out these things, he will know what the hell is he doing when he is 'writing 1 here". Modding should never be just about lazy leechlike "hey, write 1 here, it will somehow work, you don't have to care why, thats all!".
Title: Re: [Question] Changing a race's Faction? (Horde->Alliance)
Post by: Renan on January 27, 2015, 05:18:01 pm
Woah woah woah. What's with all of the hostility? Is that really necessary?
Title: Re: [Question] Changing a race's Faction? (Horde->Alliance)
Post by: Amaroth on January 27, 2015, 05:48:15 pm
Not at all. I am quite tired after my exams on university, even while they were succesful.

That column my collegue edited in ChrRaces.dbc points into FactionTemplate.dbc. FactionTemplate.dbc is connected with Faction.dbc. Look into structure of all these 3 on WoWDev, compare rows for alliance races and rows for Horde races. You will see that mot of the columns are completely same, only some different. Find out what they are for and then copy from alliance (f.i. human) faction data which are needed to change into BE related rows.

I want you to actually know what and why are you doing. No "write 1 here and it will somehow work". Giving BE human's faction ID will do, yep, but its rather unclean way and if you will ever want to edit anything related to human's factions, you will edit also BE data.
Title: Re: [Question] Changing a race's Faction? (Horde->Alliance)
Post by: Renan on January 27, 2015, 06:28:56 pm
Quote from: "Amaroth"
Not at all. I am quite tired after my exams on university, even while they were succesful.

That column my collegue edited in ChrRaces.dbc points into FactionTemplate.dbc. FactionTemplate.dbc is connected with Faction.dbc. Look into structure of all these 3 on WoWDev, compare rows for alliance races and rows for Horde races. You will see that mot of the columns are completely same, only some different. Find out what they are for and then copy from alliance (f.i. human) faction data which are needed to change into BE related rows.

I want you to actually know what and why are you doing. No "write 1 here and it will somehow work". Giving BE human's faction ID will do, yep, but its rather unclean way and if you will ever want to edit anything related to human's factions, you will edit also BE data.



I knew the template tied into the faction.dbc, but I didn't know the ChrRaces.dbc tied into the FactionTemplate. So if I were to set it so that belves were linked to humans instead of belves, they'd essentially act the same as them? Another question, ingame would they be allowed to gain reputation and everything normally like alliance races?
Title: Re: [Question] Changing a race's Faction? (Horde->Alliance)
Post by: Amaroth on January 27, 2015, 06:31:58 pm
Probably. You can try it. You have two possibilities.

Simple and unclean - give BEs human's faction, so 2 races will be using the same faction and all faction related things will work the same way for both of them. Most likely.

Clean and more advanced - remake BE faction to be alliance faction, instead of horde.
Title: Re: [Question] Changing a race's Faction? (Horde->Alliance)
Post by: Renan on January 27, 2015, 06:39:42 pm
Quote from: "Amaroth"
Probably. You can try it. You have two possibilities.

Simple and unclean - give BEs human's faction, so 2 races will be using the same faction and all faction related things will work the same way for both of them. Most likely.

Clean and more advanced - remake BE faction to be alliance faction, instead of horde.

I went into the FactionTemplate.dbc (since the faction for player blood elf has the same values as everything else) and I think I saw the faction values for it that would make it alliance. I think I modified too much because it crashed when I used it. I'll just run 2 separate tests and post back with what I found, or if I just stumbled into issues.
Title: Re: [Question] Changing a race's Faction? (Horde->Alliance)
Post by: Temptation_Town on January 27, 2015, 07:03:31 pm
Quote from: Renan
Quote from: Amaroth
I think I modified too much because it crashed when I used it.


Yeah doing unnecessary editing of 3 dbc files  and crashing your client in result IS MUCH BUTTER then following my pictured manual and learning ChrRaces.dbc structure.

GL guys.
Title: Re: [Question] Changing a race's Faction? (Horde->Alliance)
Post by: Renan on January 27, 2015, 07:38:33 pm
Quote from: "Temptation_Town"
Quote from: "Renan"
Quote from: "Amaroth"
I think I modified too much because it crashed when I used it.

Yeah doing unnecessary editing of 3 dbc files with no fucking idea what you are doing and crashing your client in result IS MUCH BUTTER then following my pictured manual and learning ChrRaces.dbc structure.

GL guys.


I suppose I should've mentioned that this occurred a week ago, and that I still have to test everything out today when I get home.


Essentially, with the information provided to me today, I have yet to do anything with it.
Title: Re: [Question] Changing a race's Faction? (Horde->Alliance)
Post by: Renan on January 27, 2015, 11:43:31 pm
Quote from: "Temptation_Town"
Quote from: "Renan"
Quote from: "Amaroth"
I think I modified too much because it crashed when I used it.

Yeah doing unnecessary editing of 3 dbc files with no fucking idea what you are doing and crashing your client in result IS MUCH BUTTER then following my pictured manual and learning ChrRaces.dbc structure.

GL guys.


The edit of the ChrRaces.dbc was put into a patch and into the server DBC files. It didn't change or fix anything.


EXCEPT, of course, it did remove the blood elves from the creation screen.
Title: Re: [Question] Changing a race's Faction? (Horde->Alliance)
Post by: Temptation_Town on January 28, 2015, 12:51:19 am
Quote from: "Renan"


The edit of the ChrRaces.dbc was put into a patch and into the server DBC files. It didn't change or fix anything.

/Triplefacepalm


Quote from: "Renan"
EXCEPT, of course, it did remove the blood elves from the creation screen.

Perhaps they were removed from the Horde-side in Character Create Menu because... No way... Dude.. It can't be... THEY ARE  ALLIANCE NOW  :o
Title: Re: [Question] Changing a race's Faction? (Horde->Alliance)
Post by: Amaroth on January 28, 2015, 01:23:19 am
Temptation_Town, you have a serious problem. Thats OK. What is not OK is that you are annoying us with it on purpouse. Just chill out and leave us alone.
Title: Re: [Question] Changing a race's Faction? (Horde->Alliance)
Post by: Renan on January 28, 2015, 02:47:27 am
Quote from: "Temptation_Town"
Quote from: "Renan"


The edit of the ChrRaces.dbc was put into a patch and into the server DBC files. It didn't change or fix anything.

/Triplefacepalm


Quote from: "Renan"
EXCEPT, of course, it did remove the blood elves from the creation screen.

Perhaps they were removed from the Horde-side in Character Create Menu because... No way... Dude.. It can't be... THEY ARE  ALLIANCE NOW  :o


WOW NO WAY
Except they're nowhere now. Thanks for nothing. You're honestly just proving to be an asshole with nothing better to do than sass people online. Go make better use of your time.
And, no, they aren't alliance. Hostile to alliance, friendly with horde. Not alliance.

Also, I did exactly what you told me to do and it didn't work. You have no right or reason to facepalm.


Edit: I changed the faction.dbc and the factiontemplate.dbc, as well as the chrraces.dbc and put them into the server and into a patch. The elf characters had an alliance flag but were friendly to horde, hostile to alliance, but the teleporter registered the elf as alliance and offered to port to alliance cities.

Not sure how to fix it so that the elf players are friendly to alliance and hostile to horde.

Another thing, every time I clear my cache and try to restart my client, SUDDENLY it just crashes. This happens every time, despite not even adjusting the patches I used in the slightest way.
Title: Re: [Question] Changing a race's Faction? (Horde->Alliance)
Post by: Temptation_Town on January 28, 2015, 04:29:00 am
Quote from: "Amaroth"
Temptation_Town, you have a serious problem. Thats OK. What is not OK is that you are annoying us with it on purpouse. Just chill out and leave us alone.

You should fuck off and dont talk to me in that tone. That would be OK.

When I came to this thread the only answer was your "Om, idk dude, maybe check this pack of DBCs..."

I found time for this and gave him the best method I know to solve his problem.

Unlocking the BE buttom in CharacterCreate files after Team swap is another story, but we are so lucky to have some smart guy like you, so I will let myself not to help you anymore and watch from the distance how you little genius gonna make this.

So where did you stop your progress? Checking FactionTemplate data? Okay, I will not disturb you anymore.
Title: Re: [Question] Changing a race's Faction? (Horde->Alliance)
Post by: Temptation_Town on January 28, 2015, 04:32:05 am
Quote from: "Renan"
The elf characters had an alliance flag but were friendly to horde, hostile to alliance, but the teleporter registered the elf as alliance and offered to port to alliance cities.

Not sure how to fix it so that the elf players are friendly to alliance and hostile to horde.


You will not fix this. Go make better use of your time.
Title: Re: [Question] Changing a race's Faction? (Horde->Alliance)
Post by: Renan on January 28, 2015, 06:20:03 am
Quote from: "Temptation_Town"
Quote from: "Renan"
The elf characters had an alliance flag but were friendly to horde, hostile to alliance, but the teleporter registered the elf as alliance and offered to port to alliance cities.

Not sure how to fix it so that the elf players are friendly to alliance and hostile to horde.


You will not fix this. Go make better use of your time.



I can't believe what a self-righteous pile of garbage you are. You're far too angry, and over what? Nothing. You have almost no reason at all to be angry about anything and here you are choosing to be pissy about it. You may have originally had good intentions, but you have an awful execution.
Title: Re: [Question] Changing a race's Faction? (Horde->Alliance)
Post by: Amaroth on January 28, 2015, 08:52:15 am
I am nearly sure that some of the edits were not needed, but even this complete rush remake works for me. Absolutely no hostility problems. And also no problem with character creation screen, but I have edited LUA files (its quite some time since I saw them last time opened, and as well as in these DBCs I am not entirely sure what I did there with which reasons, I will have to find that out again). I have copied my BE related data on rows ID 2, ID 1 is human in all of DBCs. Just to compare them more easily.
(http://s14.postimg.org/6y91ygz3z/factions.jpg)

You may only encounter some language problems, but you should be able to solve them via playercreate tables and wolrdserver config file, maybe you will also have to edit SkillRaceClassInfo.dbc. I just hope you won't have to visit that damned DBC, its quite a messy one.

Quote from: "Temptation_Town"
I found time for this and gave him the best method I know to solve his problem
And after that when I told you that your solution is unclean and not smart at all (and as Renan found out not even working) the best opposition you were able to give was to start saying that I don't know that DBC's structure, not even mentioning that I "can't understand a picture" and that thats not your problem. Nope, thats not your problem.

Your problem is that I know 90% of all WoW DBCs to the last damned column very well and that you are completely unable to deal with fact that you were not right for one time. While I told you for at least 2 times why my solution is right and gave you about 3 reasons for that, you just kept saying, lets make it short, that I am just some random idiot who doesn't know what he's doing. Deal with fact that I do know what I'm doing and why. Deal with fact that I wrote you reasons why I am doing what I was doing, while your best argument is that I should fuck off if I don't like easy retard-like solutions, which are violiting all base programming and database editing principles. You probably don't even know what I'm talking about. Most likely. Thats even more sad. Speaking aboout tone which I'm using when speaking to you... check YOUR tone first and read again what YOU wrote while using which tone.

You are arrogant prick. Gtfo, and learn to behave. Smash mirror on your head, then the second one, then the third one. After that you may facepalm, even for 3 times if you want to. GL.
Title: Re: [Question] Changing a race's Faction? (Horde->Alliance)
Post by: Renan on January 29, 2015, 04:14:09 am
Quote from: "Amaroth"
I am nearly sure that some of the edits were not needed, but even this complete rush remake works for me. Absolutely no hostility problems. And also no problem with character creation screen, but I have edited LUA files (its quite some time since I saw them last time opened, and as well as in these DBCs I am not entirely sure what I did there with which reasons, I will have to find that out again). I have copied my BE related data on rows ID 2, ID 1 is human in all of DBCs. Just to compare them more easily.
(http://s14.postimg.org/6y91ygz3z/factions.jpg)

You may only encounter some language problems, but you should be able to solve them via playercreate tables and wolrdserver config file, maybe you will also have to edit SkillRaceClassInfo.dbc. I just hope you won't have to visit that damned DBC, its quite a messy one.


Looking into your ChrRaces.dbc, it appears that on column 11, instead of 1096 there's 0x448. Not sure if that even matters.

Same in factiontemplate.dbc.

It seems as though everything else in our information is the same. Red names for alliance races when on helf char, friendly to horde.
Title: Re: [Question] Changing a race's Faction? (Horde->Alliance)
Post by: Amaroth on January 29, 2015, 08:54:23 pm
1096 = 0x448. Its the same value. 1096 is decimal, 0x448 hexadecimal version. That should not matter. What isn't working for you now? My client is very, very far from blizzlike and server config and DB too, so some things which work for me won't work for you.
Title: Re: [Question] Changing a race's Faction? (Horde->Alliance)
Post by: Renan on January 29, 2015, 10:07:00 pm
Quote from: "Amaroth"
1096 = 0x448. Its the same value. 1096 is decimal, 0x448 hexadecimal version. That should not matter. What isn't working for you now? My client is very, very far from blizzlike and server config and DB too, so some things which work for me won't work for you.



Friendly with horde, hostile to alliance (but they will not attack and I cannot attack them). So theyre technically alliance but still friendly with the horde for some reason.
Title: Re: [Question] Changing a race's Faction? (Horde->Alliance)
Post by: Amaroth on January 29, 2015, 10:15:23 pm
Thats just strange. Are you sure that current verions of DBCs in:
1. your client patch
2. server DBCs
3. patch of client of player which is testing with you?

If you are, then I have just no idea. Check if all 3 places have the newest DBCs and that they are not overwritten by some other patches or such things.
Title: Re: [Question] Changing a race's Faction? (Horde->Alliance)
Post by: Renan on January 29, 2015, 10:33:17 pm
Quote from: "Amaroth"
Thats just strange. Are you sure that current verions of DBCs in:
1. your client patch
2. server DBCs
3. patch of client of player which is testing with you?

If you are, then I have just no idea. Check if all 3 places have the newest DBCs and that they are not overwritten by some other patches or such things.

I guess I'll run another test tonight. I could swear I had the patches in. But the horde NPCs would attack me regardless of my patch, I thought.
Title: Re: [Question] Changing a race's Faction? (Horde->Alliance)
Post by: Renan on January 30, 2015, 01:10:54 am
I guess I managed to somewhat get it to work, but now I guess I need to manually adjust the reputations of every Blood Elf so that they're of the alliance. When adjusted to exalted with alliance, I could interract with NPCs and everything, but I couldn't actually see their reputations in the rep window and I was friendly with horde (likely due to default reputation).
Title: Re: [Question] Changing a race's Faction? (Horde->Alliance)
Post by: Temptation_Town on January 30, 2015, 09:53:52 am
Quote from: "Renan"
I guess I managed to somewhat get it to work, but now I guess I need to manually adjust the reputations of every Blood Elf so that they're of the alliance. When adjusted to exalted with alliance, I could interract with NPCs and everything, but I couldn't actually see their reputations in the rep window and I was friendly with horde (likely due to default reputation).

Reputations and NPC interaction are the most simple things here.

Did you check player interaction?  Can you invitetrade with human, dwarf and others with your BE char?
Title: Re: [Question] Changing a race's Faction? (Horde->Alliance)
Post by: Amaroth on January 30, 2015, 02:57:05 pm
Quote from: "Temptation_Town"
Did you check player interaction?  Can you invitetrade with human, dwarf and others with your BE char?
Check this. And also, what about new characters, created after your DBC changes?
Title: Re: [Question] Changing a race's Faction? (Horde->Alliance)
Post by: Renan on January 30, 2015, 06:43:40 pm
Quote from: "Amaroth"
Quote from: "Temptation_Town"
Did you check player interaction?  Can you invitetrade with human, dwarf and others with your BE char?
Check this. And also, what about new characters, created after your DBC changes?

My tests were run on characters made before the changes and characters made after the changes. I discovered that they aren't friendly all the time, and in fact will revert to attackable yet friendly on zone change or relog. I've been solo testing this as I have nobody to test this with, but I figured since it classifies me as alliance client-side and server-side that it'd be fine to trade.
Title: Re: [Question] Changing a race's Faction? (Horde->Alliance)
Post by: Temptation_Town on January 31, 2015, 05:41:22 am
Quote from: "Renan"

My tests were run on characters made before the changes and characters made after the changes. I discovered that they aren't friendly all the time, and in fact will revert to attackable yet friendly on zone change or relog. I've been solo testing this as I have nobody to test this with, but I figured since it classifies me as alliance client-side and server-side that it'd be fine to trade.

Make 2 windows of wow, tp them in the same place and try to invite BE char in human's group. Make a screenshot. Make sure that interfaction interaction (party/trade) is disabled in worldserver.conf. That would nullify all tests.

If it's all ok, and they can be in the same group, then check again character create screen. Are BE there?

Same questions to Amaroth.
Title: Re: [Question] Changing a race's Faction? (Horde->Alliance)
Post by: Amaroth on January 31, 2015, 10:02:38 am
Hmpf? If you still don't get it I don't have any problem with this :D. I have transferred BE via this method to Alliance more than year ago and it just worked as it was supposed to, and keeps working until now. Later I have also transferred all other originaly Horde races to disable interfaction PvP on my RP server, but situation "original Horde races kept in Horde, BEs transferred to Alliance" was tested and worked. I have also never had any problems with character creation screen, but like I said, my LUA files are edited (to be more accurate, I use one of the Mordred's systems).

I just don't know wtf is going wrong here. Everything worked for me on 3 different TC2 versions for nearly a year and a half. I had a few glitches, but all were caused by my stupidity when I have uploaded wrong outdated DBCs to core. All my BEs were created with Alliance side, but a lot of my other Horde chars were created before I migrated them all to Alliance too (but they were moved all together). I still can't find out if Renan is in situation in which my characters never were or if we just missed something somewhere.
Title: Re: [Question] Changing a race's Faction? (Horde->Alliance)
Post by: Temptation_Town on January 31, 2015, 07:42:40 pm
Quote from: "Amaroth"
Hmpf? If you still don't get it I don't have any problem with this :D. I have transferred BE via this method to Alliance more than year ago and it just worked as it was supposed to, and keeps working until now. Later I have also transferred all other originaly Horde races to disable interfaction PvP on my RP server, but situation "original Horde races kept in Horde, BEs transferred to Alliance" was tested and worked. I have also never had any problems with character creation screen, but like I said, my LUA files are edited (to be more accurate, I use one of the Mordred's systems).

I just don't know wtf is going wrong here. Everything worked for me on 3 different TC2 versions for nearly a year and a half. I had a few glitches, but all were caused by my stupidity when I have uploaded wrong outdated DBCs to core. All my BEs were created with Alliance side, but a lot of my other Horde chars were created before I migrated them all to Alliance too (but they were moved all together). I still can't find out if Renan is in situation in which my characters never were or if we just missed something somewhere.

I have it worked in the way I described in my first post here.

Too many words, just add here your CharacterCreate.lua, CharacterCreate.xml