Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Serverside Modding => Topic started by: Krang Stonehoof on August 22, 2014, 01:50:02 am

Title: [QUESTION] - Character Creation - No Random Customization.
Post by: Krang Stonehoof on August 22, 2014, 01:50:02 am
Greetings,

I'm trying to figure out how I'm supposed to edit the CharacterCreate.Lua file so that everytime I press on the "Create Character" button in-game, it will always only show a combination. I mean, I want to remove the left menu where you can choose your race / class and so it will always choose the night elf race and warrior class. Can anyone help me?

Here's the pastebin of the charactercreate.lua.

http://pastebin.com/g830t5if (http://pastebin.com/g830t5if" onclick="window.open(this.href);return false;)

Would be great if anyone would be able to help.

Thanks.
Title: Re: [QUESTION] - Character Creation - No Random Customizatio
Post by: Ascathos on August 22, 2014, 01:55:55 am
.xml file -> Remove the race tab.
charplayerinfosomething.dbc -> remove all the combinations you don't want.

Choosing a class will always then result in the combination you want.
Change server settings to avoid complications and abusal.
Title: Re: [QUESTION] - Character Creation - No Random Customizatio
Post by: phantomx on August 22, 2014, 01:57:04 am
You would need to edit CharacterCreate.LUA, CharacterCreate.XML, ChrRaces.dbc and ChrClasses.dbc.

If you want to customize it.

 Then you will be able to pick night elf only and warrior class only.
Title: Re: [QUESTION] - Character Creation - No Random Customizatio
Post by: Krang Stonehoof on August 22, 2014, 06:55:46 am
I know I have to edit the CharacterCreate.Lua / XML. But I can't figure out what.

That's why I asked / posted here.

And about the .DBC, no, it's not working, it's possible to do it only from .Lua, if I'm not wrong.
Title: Re: [QUESTION] - Character Creation - No Random Customizatio
Post by: phantomx on August 22, 2014, 09:15:25 am
Quote from: "Krang Stonehoof"
I know I have to edit the CharacterCreate.Lua / XML. But I can't figure out what.

That's why I asked / posted here.

And about the .DBC, no, it's not working, it's possible to do it only from .Lua, if I'm not wrong.

You can deactivate the classes and races in the dbc if you don't want to mess with the scripts.
Title: Re: [QUESTION] - Character Creation - No Random Customizatio
Post by: Krang Stonehoof on August 22, 2014, 10:27:54 am
I really think via code is much easier but I can't figure out how. I remember Stoneharry helped me once but I can't find out the pastebin he sent me.
Title: Re: [QUESTION] - Character Creation - No Random Customizatio
Post by: schlumpf on August 22, 2014, 10:41:38 am
Forcing the combinations is easier via dbc. Mkdifyibg the interface is only removal of pretty much everything containing "race".
Title: Re: [QUESTION] - Character Creation - No Random Customizatio
Post by: stoneharry on August 22, 2014, 11:10:14 am
Character creation is hardcode in so many places and quite unstable. It would be best to do this via the dbc's and then to hide the elements you don't want lua side. For example, if you just don't call the random character fix up I believe the client crashes.

I have done it with just lua/xml modifications but it was quite hacky to get it working without crashing.
Title: Re: [QUESTION] - Character Creation - No Random Customizatio
Post by: Krang Stonehoof on August 22, 2014, 02:42:19 pm
And how I'm supposed to do it via DBC? Remove the races from the CharRaces.DBC or...?
Title: Re: [QUESTION] - Character Creation - No Random Customizatio
Post by: stoneharry on August 22, 2014, 03:20:24 pm
Quote from: "Krang Stonehoof"
And how I'm supposed to do it via DBC? Remove the races from the CharRaces.DBC or...?

Yes, remove all references to them OR take away the playable flag (races like ogre and naga don't have it, check wiki). Then delete the unneeded xml buttons.
Title: Re: [QUESTION] - Character Creation - No Random Customizatio
Post by: Krang Stonehoof on August 22, 2014, 03:39:43 pm
Oh yes, thanks a lot for the help.

I have another question, why if I modify some XML / Lua files, everything's fine when I open the WoW.Exe, but when I log onto a character I get the error that interface files are corrupted?
Title: Re: [QUESTION] - Character Creation - No Random Customizatio
Post by: stoneharry on August 22, 2014, 03:41:48 pm
Quote from: "Krang Stonehoof"
Oh yes, thanks a lot for the help.

I have another question, why if I modify some XML / Lua files, everything's fine when I open the WoW.Exe, but when I log onto a character I get the error that interface files are corrupted?

FrameXML issue? Might need to be packaged in mpq to be loaded. Make sure you didn't delete the interface folder nor the add ons folder and blizzard stuff in there. Hard to tell without knowing your client.