Смердокрыл Posted April 25, 2016 Share Posted April 25, 2016 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? or not Link to comment Share on other sites More sharing options...
Amaroth Posted April 26, 2016 Share Posted April 26, 2016 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. English YT tutorial channel. Check it out if you preffer videos over walls of text.:https://www.youtube.com/AmarothEng I am now completely retired from modding. I am still reading PMs and reacting to them, however, I am not keeping up to date with what is going on in the community and my ability to help you is becoming very limited - I no longer remember some things, I don't have tools installed anymore, and I don't know what is up to date nowadays. Link to comment Share on other sites More sharing options...
Смердокрыл Posted May 14, 2016 Author Share Posted May 14, 2016 Please help CharacterCreate.lua CharacterCreate.xml or not Link to comment Share on other sites More sharing options...
Смердокрыл Posted May 20, 2016 Author Share Posted May 20, 2016 Anyone? or not Link to comment Share on other sites More sharing options...
Смердокрыл Posted May 21, 2016 Author Share Posted May 21, 2016 Ok, I fixed this problem, but now I have the UPDATE MAX_RACES thing. I tried removing the xml check - doesn't help. CharacterCreate.lua CharacterCreate.xml or not Link to comment Share on other sites More sharing options...
Смердокрыл Posted May 21, 2016 Author Share Posted May 21, 2016 Ok, I performed some dark rituals (leaving MAX_RACES = 12, and just forcing the value later in the code) and achieved this: I absolutely cannot move any further. I've tried many different things and none worked. CharacterCreate.lua CharacterCreate.xml or not Link to comment Share on other sites More sharing options...
Ghaster Posted May 21, 2016 Share Posted May 21, 2016 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. Link to comment Share on other sites More sharing options...
noc Posted May 22, 2016 Share Posted May 22, 2016 And just hide the buttons? Link to comment Share on other sites More sharing options...
Ghaster Posted May 22, 2016 Share Posted May 22, 2016 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. Link to comment Share on other sites More sharing options...
Смердокрыл Posted May 22, 2016 Author Share Posted May 22, 2016 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? or not Link to comment Share on other sites More sharing options...
Смердокрыл Posted May 22, 2016 Author Share Posted May 22, 2016 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 or not Link to comment Share on other sites More sharing options...
Смердокрыл Posted May 22, 2016 Author Share Posted May 22, 2016 I now have a very... weird problem. I removed the edited xml and lua from the patch, so the original would be loaded, but the error is still there. What the fuck? or not Link to comment Share on other sites More sharing options...
Смердокрыл Posted May 23, 2016 Author Share Posted May 23, 2016 Ok, I fixed that (apparently the previous patch also contained those files, so I had to recompile it), but the actual lua error problem still stands. Any suggestions? or not Link to comment Share on other sites More sharing options...
Смердокрыл Posted May 24, 2016 Author Share Posted May 24, 2016 or not Link to comment Share on other sites More sharing options...
noc Posted May 24, 2016 Share Posted May 24, 2016 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 Link to comment Share on other sites More sharing options...
Смердокрыл Posted May 25, 2016 Author Share Posted May 25, 2016 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. or not Link to comment Share on other sites More sharing options...
yuan Posted November 19, 2021 Share Posted November 19, 2021 Hello everyone, I have the same needs, how does the WLK version hide the career selection button? Link to comment Share on other sites More sharing options...
Furioz Posted November 20, 2021 Share Posted November 20, 2021 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. Link to comment Share on other sites More sharing options...
yuan Posted November 20, 2021 Share Posted November 20, 2021 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? Link to comment Share on other sites More sharing options...
Furioz Posted November 20, 2021 Share Posted November 20, 2021 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 Link to comment Share on other sites More sharing options...
yuan Posted November 20, 2021 Share Posted November 20, 2021 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 Link to comment Share on other sites More sharing options...
Furioz Posted November 20, 2021 Share Posted November 20, 2021 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 Link to comment Share on other sites More sharing options...
yuan Posted November 20, 2021 Share Posted November 20, 2021 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 Link to comment Share on other sites More sharing options...
Furioz Posted November 20, 2021 Share Posted November 20, 2021 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 Link to comment Share on other sites More sharing options...
yuan Posted November 20, 2021 Share Posted November 20, 2021 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 This solution is not optimal, You can hide some CheckButtons in CharacterCreate.xml and use CharCreateClassButton1 of the class to achieve the effect Link to comment Share on other sites More sharing options...
Remove all class icons
By Смердокрылin Interface
Recommended Posts