I too was having problems with the cameras on the login screen.
Due to me accidentally forgetting to comment something out, I learned that if you set a model that has the camera you want first, (front facing camera) you can then set the model 2 frames after and it will still use the non existent camera.
With the help of Mordred this is the code we came up with the fight the missing cameras annoyance without hex editing.
First we changed the ModelFFX Frame inside AccountLogin.xml to a frame. Just replace ModelFFX with Frame.
Run the login screen, you'll see a few things pop up as errors. Go to those and comment them out.
Next, this is the code at the bottom of my AccountLogin.lua (minus some of my stuff that wasn't needed like the background.)
DivX_AccountLogin_OnLoad = AccountLogin_OnLoad
local timed_update
function AccountLogin_OnUpdate()
if timed_update == true then
DivXSpiritHealer:SetModel("Creature\Spirithealer\spirithealer.mdx")
DivXSpiritHealer:SetModelScale(0.25)
DivXSpiritHealer:SetPosition(0, .025, 0)
DivXSpiritHealer:SetAlpha(0.75)
DivXSpiritHealer:Show()
timed_update = false
elseif timed_update == nil then
timed_update = true
end
end
function AccountLogin_OnLoad(self)
DivX_AccountLogin_OnLoad(self)
CreateFrame("Model", "DivXSpiritHealer", self)
DivXSpiritHealer:Hide()
DivXSpiritHealer:SetAllPoints(self)
DivXSpiritHealer:SetFrameLevel(1)
DivXSpiritHealer:SetModel("Character\Human\Male\HumanMale.mdx")
DivXSpiritHealer:SetCamera(1)
AccountLogin:SetScript("OnUpdate", AccountLogin_OnUpdate)
end
This overrides AccountLogin_OnLoad (but still keeping it intact by setting something else to it.)
It creates a model with our now-a-Frame AccountLogin
It sets the model to HumanMale, which has the camera 1 that you are looking for.
Then it sets a OnUpdate function for AccountLogin, due to some weird bug that you have to wait a bit before you set a model because sometimes it wouldn't work.
Lastly, two frames later with the help of timed_update from Mordred, we set the model back to a Spirit Healer which does not have the camera 1.
Voilà your model is using a camera that no longer exists.
Obviously, edit the variables to your needing, I made this for a server I play on.
[attachment=0:1qubfbhe]Login Screen.png[/attachment:1qubfbhe]