Смердокрыл

4.3.4
Remove all class icons

Hey!

The task is simple: remove all class icons from the character creation screen (technically, it will be one default class that everyone will have). But the problem is that Cataclysm client xml files look nothing like the WotLK's, at least judging by the tutorials on editing those.

Could anyone help?

Share this post


Link to post
Share on other sites

As long as you don't want to use other classes you can at least delete race-class combinations from DBC (CharBaseInfo.dbc in WotLK). This won't actually hide unused classes from UI, but it will at least disable their creation, so they will be gray. Temporary solution which I would call good enough, but if you really want to delete those icons entirely or don't want to disable another race-class combinations, then you'll need to edit that XML and thats probably not something I can help you with.

Share this post


Link to post
Share on other sites

If you need to remove class buttons from CharacterCreate, you are gonna need to remove the classes in ChrClasses.dbc aswell. CharacterCreate needs a button for every class, so it can automatically add stuff like names and descriptions.

Share this post


Link to post
Share on other sites
1 hour ago, noc said:

And just hide the buttons?

You could, but depending on what classes he want to remove, there are gonna be gaps between some classes.

Share this post


Link to post
Share on other sites
14 hours ago, Ghaster said:

If you need to remove class buttons from CharacterCreate, you are gonna need to remove the classes in ChrClasses.dbc aswell. CharacterCreate needs a button for every class, so it can automatically add stuff like names and descriptions.

If I'm not allowed to actually delete the icons, I'll just move them outside of the visible screen

2 hours ago, Ghaster said:

You could, but depending on what classes he want to remove, there are gonna be gaps between some classes.

I can adjust their position, can't I?

 

But I thought there's a certain problem with loading worgen, since all the races above are shown properly. Am I wrong?

Share this post


Link to post
Share on other sites

I moved the class icons instead of deleting them, but it didn't work.

The error is in line 3 of the following code (_G["CharacterCreateRaceButton"..index.."NormalTexture"].........)

for i=1, select("#", ...), 3 do
	coords = RACE_ICON_TCOORDS[strupper(select(i+1, ...).."_"..gender)];
	_G["CharacterCreateRaceButton"..index.."NormalTexture"]:SetTexCoord(coords[1], coords[2], coords[3], coords[4]);
	_G["CharacterCreateRaceButton"..index.."PushedTexture"]:SetTexCoord(coords[1], coords[2], coords[3], coords[4]);
	button = _G["CharacterCreateRaceButton"..index];
	button:Show();
	if ( select(i+2, ...) == 1 ) then
		button:Enable();
		SetButtonDesaturated(button);
		button.name = select(i, ...)
		button.tooltip = select(i, ...);
	else
		button:Disable();
		SetButtonDesaturated(button, 1);
		button.name = select(i, ...)
		button.tooltip = select(i, ...).."|n".._G[strupper(select(i+1, ...).."_".."DISABLED")];
	end
	index = index + 1;
end

 

Share this post


Link to post
Share on other sites

Hum ok, you have only 18  RACE_ICON_TCOORDS but  you have MAX_RACES = 12 so you must have 24 in at least RACE_ICON_TCOORDS

 

 

  • Like 1

Share this post


Link to post
Share on other sites
22 hours ago, noc said:

Hum ok, you have only 18  RACE_ICON_TCOORDS but  you have MAX_RACES = 12 so you must have 24 in at least RACE_ICON_TCOORDS

Thanks! Now everything is fixed and I've achieved the desired result.

  • Like 2

Share this post


Link to post
Share on other sites

Hello everyone, I have the same needs, how does the WLK version hide the career selection button?

Share this post


Link to post
Share on other sites
On 11/19/2021 at 9:15 AM, yuan said:

Hello everyone, I have the same needs, how does the WLK version hide the career selection button?

the career selection button?

U mean races or classes? If u mean classes and u are using wotlk, u can do as amorath said in the second post.

Delete the combinations u dislike in charbaseinfo.dbc and this should disable the creation of those race / class combinations.

Share this post


Link to post
Share on other sites
3 minutes ago, Furioz said:

the career selection button?

U mean races or classes? If u mean classes and u are using wotlk, u can do as amorath said in the second post.

Delete the combinations u dislike in charbaseinfo.dbc and this should disable the creation of those race / class combinations.

 

I just want to hide the classes when creating a character

CharacterCreate.xml

CharacterCreate.lua

This is the interface file I use, can you help me see it?

Share this post


Link to post
Share on other sites
3 minutes ago, yuan said:

 

I just want to hide the classes when creating a character

CharacterCreate.xml

CharacterCreate.lua

This is the interface file I use, can you help me see it?

all the classes 😛 ?

I dont think this would be an option, a class is needed in wotlk

Share this post


Link to post
Share on other sites
Just now, Furioz said:

all the classes 😛 ?

I dont think this would be an option, a class is needed in wotlk

Yes, there is a default class for all races, I just wanted to hide it in the interface so it doesn't look like I need to select a class  

Share this post


Link to post
Share on other sites
3 minutes ago, yuan said:

Yes, there is a default class for all races, I just wanted to hide it in the interface so it doesn't look like I need to select a class  

What is the class id of this class in ChrClasses.dbc?

If i know that one i'll make an adjusted CharBaseInfo.dbc for u. That should do the trick

Share this post


Link to post
Share on other sites
1 minute ago, Furioz said:

What is the class id of this class in ChrClasses.dbc?

If i know that one i'll make an adjusted CharBaseInfo.dbc for u. That should do the trick

The only profession of all races is Druid, ID=11

I am currently only allowed to use occupations of all races: Druid

 

 

Share this post


Link to post
Share on other sites

This should do the trick.

ONLY REPLACE THESE FILES IN UR CLIENT PATCH, DO NOT MOVE THEM IN UR SERVER DBC FOLDER!


I deleted the entries that dindt match what u want in charbaseinfo so all races with class id 11. This disables all other class combiantions for all races.

I also deleted the classes from chrclasses.dbc, this disabled the class options and buttons in the client.

AGAIN only leave these dbc files in ur patch, do not place them in ur server. Chrclasses will probably crash ur startup because it's missing the needed classes for wotlk to work with. The client just misses the info so it cant display it, server can still handle the disabled options if needed.
 

 

CharBaseInfo.dbc

ChrClasses.dbc

Share this post


Link to post
Share on other sites
4 minutes ago, Furioz said:

This should do the trick.

ONLY REPLACE THESE FILES IN UR CLIENT PATCH, DO NOT MOVE THEM IN UR SERVER DBC FOLDER!


I deleted the entries that dindt match what u want in charbaseinfo so all races with class id 11. This disables all other class combiantions for all races.

I also deleted the classes from chrclasses.dbc, this disabled the class options and buttons in the client.
 

 

CharBaseInfo.dbc

ChrClasses.dbc

image.thumb.png.30a4480d177fcdcb9c770f371fa1e7a6.png 

This solution is not optimal,

You can hide some CheckButtons in CharacterCreate.xml and use CharCreateClassButton1 of the class to achieve the effect

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now