This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [QUESTION] - Character Creation - No Random Customization.  (Read 1572 times)

Krang Stonehoof

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 164
    • View Profile
[QUESTION] - Character Creation - No Random Customization.
« 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

Would be great if anyone would be able to help.

Thanks.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
Re: [QUESTION] - Character Creation - No Random Customizatio
« Reply #1 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

phantomx

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 615
    • View Profile
Re: [QUESTION] - Character Creation - No Random Customizatio
« Reply #2 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
[wimg]http://i.imgur.com/6fxUQL1.gif[/wimg]

Krang Stonehoof

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 164
    • View Profile
Re: [QUESTION] - Character Creation - No Random Customizatio
« Reply #3 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

phantomx

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 615
    • View Profile
Re: [QUESTION] - Character Creation - No Random Customizatio
« Reply #4 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
[wimg]http://i.imgur.com/6fxUQL1.gif[/wimg]

Krang Stonehoof

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 164
    • View Profile
Re: [QUESTION] - Character Creation - No Random Customizatio
« Reply #5 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] - Character Creation - No Random Customizatio
« Reply #6 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".
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

stoneharry

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 617
    • View Profile
Re: [QUESTION] - Character Creation - No Random Customizatio
« Reply #7 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Krang Stonehoof

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 164
    • View Profile
Re: [QUESTION] - Character Creation - No Random Customizatio
« Reply #8 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...?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

stoneharry

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 617
    • View Profile
Re: [QUESTION] - Character Creation - No Random Customizatio
« Reply #9 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Krang Stonehoof

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 164
    • View Profile
Re: [QUESTION] - Character Creation - No Random Customizatio
« Reply #10 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?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

stoneharry

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 617
    • View Profile
Re: [QUESTION] - Character Creation - No Random Customizatio
« Reply #11 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »