[DiscordArchive] hey guys. for glueparent.lua and other files for custom races what name of the race do i need to use
[DiscordArchive] hey guys. for glueparent.lua and other files for custom races what name of the race do i need to use
Archived author: exanimis • Posted: 2024-01-22T18:05:33.233000+00:00
Original source
hey guys. for glueparent.lua and other files for custom races what name of the race do i need to use? from shareddefines.h file or something else (like from charraces.dbc)? i thought that i need to use that file but there is one part in tutorial (webarchive) that checks for race goblin and returns orc (think it is for the background) and it goes something like this
`if (name == "Goblin" or name == "GOBLIN") then
name = "Orc";
end
` this is consufing coz if u have like netural race like worgen_a and worgen_ h (shareddefines.h) what do i need to use?
Archived author: Supora • Posted: 2024-01-22T18:26:33.123000+00:00
Original source
shareddefines is nothing to do with your lua interface files (code u provided seems to be the one for selecting the background file on char select/create screen). Yet the code you provided seems to be a bit outdated, cause something like that was in CharacterCreate.lua in vanilla and maybe even in BC, but in wrath they use a client function GetCreateBackgroundModel() which will basically return the filestring value from ChrRaces.dbc unless your race id is 7 or 8 (gnome or troll)
Archived author: exanimis • Posted: 2024-01-22T18:39:56.480000+00:00
Original source
the part of the code is from https://web.archive.org/web/201612041626...stom-Races! not sure what version of wow is used but the post is from 2013 (well i guess it is not from vanilla since there r belfs and draenei active).
Archived author: exanimis • Posted: 2024-01-22T18:42:14.602000+00:00
Original source
in tutorial the person said to change this one
`function SetBackgroundModel(model, name)
local nameupper = strupper(name);
local path = "Interface\\Glues\\Models\\UI_"..name.."\\UI_"..name..".m2";
if ( model == CharacterCreate ) then
SetCharCustomizeBackground(path);
else
SetCharSelectBackground(path);
end
PlayGlueAmbience(GlueAmbienceTracks[nameupper], 4.0);
SetLighting(model, nameupper)
end`
Archived author: Supora • Posted: 2024-01-22T18:44:55.665000+00:00
Original source
well if you have no background model for the new races u adding, then change it
Archived author: Supora • Posted: 2024-01-22T18:48:51.566000+00:00
Original source
yet I haven't changed a bit of it while adding new races just set the filestring value in ChrRace.dbc
and then make sure u have a background model with that filestring in its path/name like "Interface\\Glues\\Models\\UI_"..name.."\\UI_"..name..".m2";
Archived author: Supora • Posted: 2024-01-22T18:49:01.885000+00:00
Original source
where "..name.." is a filestring value fro,m dbc
Archived author: exanimis • Posted: 2024-01-22T18:59:25.552000+00:00
Original source
sure. ty