Modcraft - The community dedicated to quality WoW modding!

Content creation => Modelling and Animation => Tutorials => Topic started by: Mordred on April 03, 2012, 10:05:09 pm

Title: [TUTORIAL]How to create a Loginscreen with Lua & XML editing
Post by: Mordred on April 03, 2012, 10:05:09 pm
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!DON'T USE THIS ANYMORE!! THERE IS A NEW VERSION OF THE LOGINSCREEN!!!
Here is the link: Easy Loginscreen (http://modcraft.io/viewtopic.php?f=7&t=8694)

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


Hey guys!

today I wanna show you how to make a Login screen by only editing the Glue Lua and XML files.

all you need for this tutorial you can find in this link:
filebeam (http://fbe.am/ab1)
file-upload (http://www.file-upload.net/download-7305716/LoginTUT.rar.html)


Code: [Select]
1. Setting up your WoW
2. Customize your Loginscreen
2.1 Background
2.2 Music
2.3.1 Buttons
2.3.2 Positions
3. Add M2 models
4. Example


---------------------------------------------------------------------------------------------------




1. Setting up your WoW

At first extract the .rar file in your WoW-directory.
Congrats! First step done!






2. Customize your Loginscreen

2.1 Background

To set the background you just have to create a 1024x1024 .png file
which will have to be at least 75% of the 1024 pixels (768px height) to fill the entire screen.

Once you have finished editing your file save it in your directory:
WoWInterfaceLoginScreen

and name it:
Background.png

Now all you have to do is drag and drop the .png file onto your BLP Converter
and remove the .png file out of the directory.



2.2 Music

To set your background music all you have to do is find your music you like
and put it into the directory under:
WoWInterfaceLoginMusic

and name it:
LoginScreen.wav

After doing that open your music file with any musicplayer
and write down the length of the song (IN SECOUNDS!!!)
eg.: 2:25 -> 145

Now open the vx_vars_init.lua
(WoWInterfaceGlueXML)
press CTRL + F and search for:
VX_MUSICTIMER = GetTime() + <SECOUNDS>;

and remove the <SECOUNDS> with your song lenght.




2.3.1 Buttons

For the Buttons you have to create 5 files:

Code: [Select]
Glues-BigButton-Up   -> the normal button
Glues-BigButton-Down   -> the button pressed
Glues-BigButton-Highlight   -> the button while your mouse is over it
Glues-BigButton-Glow   -> the glow around the button
Glues-BigButton-Rays   -> the pulsing rays when your mouse is over it

You have to save these files as .png files in your directory:
WoWInterfaceGLUESCOMMON

with the names above and then just drag and drop then onto your BLP Converter.
Now remove the .png files out of your directory and your done.




2.3.2 Positions

Now to set up the positions of your buttons you have to open the AccountLogin.XML
in your directory:
WoWInterfaceGlueXML

Press CTRL + F to search for:

Code: [Select]
name="AccountLoginAccountEdit"          -> editbox for entering your accountname
name="AccountLoginPasswordEdit"         -> editbox for entering your password
name="AccountLoginLoginButton"          -> Login button
name="AccountLoginExitButton"           -> Quit button
name="OptionsButton"                    -> Options button
name="AccountLoginManageAccountButton"  -> Manage Account button
name="AccountLoginCommunityButton"      -> Official Site button
name="AccountLoginSaveAccountNameText"  -> Save Account name checkbox text + checkbox

Now to move these you have to look out for these eg.:

Code: [Select]
<Anchor point="BOTTOM">
       <Offset>
       <AbsDimension x="..." y="..."/>
       </Offset>
</Anchor>


with the Anchor point you can set the anchor to a specific destination
eg.: "TOP"  ;  "BOTTOMLEFT"  ;  "RIGHT";  "CENTER"  ;  ...

and with the AbsDimension x and y you can set the x & y - coords from this destination.






3. Add M2 models

At first open your vx_vars_init.lua...

The lines 4 - 9 lines are the definitions of the model.
The model gets added to the Modelframe at the last 3 lines.

In these lines you can change the lines 5 - 9 with the description behind
(SetHeight and SetWidth only if you want to stretch your model, or cut of a piece of the model)

If you want more than one model on your loginscreen, you have to copy the lines 4 - 9 and change every Mod1 in your copied block to Mod2 (if more than two then Mod3, ...)
also you have to add a new "table.insert" behind (with a space and ; between) or under the first "table.insert"
in there you have to write: table.insert(M , Mod<YOUR MODEL NUMBER!>);
eg.: table.insert(M, Mod2);
if you don't add the model to the table "M", the model will reset it's position on logout and returning to the AccountLogin screen.

Now to set the model you have to start your WoWModelViewer and find a model with only 1 skin (else they are white)
then enter your full path of the model into the 2nd last line with double \ and .m2 at the end


PS.: try to set the position of the model in Z+1, most of the time it helps to see the model.

PPS.: keep in mind that every model has different usage of the SetPosition command
     eg.: some use the x and y axes to move in a 2D field and some use the y and z axes to move in a 2D field






4. Example

Here is an example of how you can make your Loginscreen:
[youtube:3i9ibrmo]http://www.youtube.com/watch?v=PzxRd59HdOQ[/youtube:3i9ibrmo]

PS.: I used "World\Kalimdor\silithus\passivedoodads\ahnqirajglow\quirajglow.m2" to do the light effects.

[youtube:3i9ibrmo]http://www.youtube.com/watch?v=F-YwXsLiRmI[/youtube:3i9ibrmo]

[youtube:3i9ibrmo]http://www.youtube.com/watch?v=10m7XDuaMxI[/youtube:3i9ibrmo]


also you should check out alborq's amazing tool for placing models:

Quote
Hello,First of all I thank yours has to be Mordred fantastic job.From my side I studied a little code, then I develop a small application to simplify the placement of 3D model that can happen complicate

So I develop a small application that is used to position the models

Insights api: LINK (http://img834.imageshack.us/img834/183/wowscrnshot030413194612.jpg)

Little tutorial:
1) Set the path to your model in the EditBox
2) Click on Add
3) If you do not see your model then increase the size as needed, so you will be close to or one is your model (off-screen)
4) Change the position with XYZ button
5) change the scale with two button above to be more precise
6) meet the position indicate on a notepad
/!  They are not kept for the next time!
7) Completer position in the configuration file:
Mod1: SetPosition (pos_x, pos_y, pos_z);
Mod1: SetModelScale (scale);
Mod1: SetFacing (facing);

8) Enjoy

Download link: http://depositfiles.com/files/x085iqjpw (http://depositfiles.com/files/x085iqjpw" onclick="window.open(this.href);return false;)

Special thanks to:
vxsw -> GlueXML AShell (http://modcraft.io/viewtopic.php?f=12&t=218&start=0&hilit=Shell)
(dunno if it's not his, so don't blame me.)
alborq -> for his tool to place 3D models more easily.


~Mordred
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML editing
Post by: Steff on April 05, 2012, 07:39:37 pm
Very nice tutorial. Thansk :)
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML editing
Post by: Mordred on April 05, 2012, 08:37:30 pm
UPDATE:

added my Login screen for demonstration purposes:
LINK (http://fbe.am/4GM)

~Mordred
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML editing
Post by: Steff on April 05, 2012, 11:21:18 pm
Thanks again and hey don´t drink so much ... you are still blue ;)
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML editing
Post by: Shadowjesper1 on April 06, 2012, 10:57:29 pm
Do you know how to edit the CC-logo?  or in your case, the wotlk logo atop in the left corner. I have tried doing everything, same size, I am trying to edit it with a nefarian head with the writings <Heartwing>.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML editing
Post by: Eluo on April 07, 2012, 12:32:28 am
wow awsome thanks!

Quote
Thanks again and hey don´t drink so much ... you are still blue ;)
Lol steff :D
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML editing
Post by: Steff on April 07, 2012, 04:44:53 am
Just have a look at the code. The logos are just graifc layers. The easyest way is just to swap the original logo. But thn this one is cahnged everywhere. Just creat a new BLP file and search the logo in the .xml file. There you can change tha path.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML editing
Post by: phucko1 on April 07, 2012, 04:45:51 am
Hmm I can't figure out how to add the models :S
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML editing
Post by: Mordred on April 07, 2012, 07:59:24 am
It has a lot to do with testing and trying.

Some models don't work and some has no texture.

All I can say about it is:
try to get something on  your loginscreen,
if it's white, it has no texture,
if it's a blue-white checkered box, it has a wrong pathname.

try to set the z axis to +1 for testing, most of the time it will show a part of the model.

A little bit of Lua knowledge is needed for the model adding section :/

~Mordred
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML editing
Post by: phucko1 on April 07, 2012, 02:07:56 pm
What would X Y Z be for in the middle of the screen?
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML editing
Post by: phucko1 on April 07, 2012, 02:30:41 pm
Also its not possible to make an MPQ instead of placing them in my WoW-directory/interface folder?
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML editing
Post by: Mordred on April 07, 2012, 03:39:17 pm
X Y Z is like

Y -> left and right
Z -> up and down
X -> forward and back (only a little bit or else the model disappears)


And yes, it's possible to make it as a patch
just put all the files into a MPQ with
Interface/...
and it should work.

~Mordred
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML editing
Post by: Shadowjesper1 on April 07, 2012, 03:42:29 pm
Quote from: "Mordred"
It has a lot to do with testing and trying.

Some models don't work and some has no texture.

All I can say about it is:
try to get something on  your loginscreen,
if it's white, it has no texture,
if it's a blue-white checkered box, it has a wrong pathname.

try to set the z axis to +1 for testing, most of the time it will show a part of the model.

A little bit of Lua knowledge is needed for the model adding section :/

~Mordred

Mine is green. Even though it is the same dimensions with the logo atop of the corner.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML editing
Post by: phucko1 on April 07, 2012, 03:49:52 pm
Tried with MPQ and it bugged the crap out of the loginscreen xD
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML editing
Post by: phucko1 on April 07, 2012, 08:39:50 pm
Can I add other animated m2s then creatures? Like flames, portals, etc.
Also can't I just take X.m2 + XSkin00.skin and rename to Y.m2 and YSkin00.skin and it will be the same creature but only 1 skin?
Can I also make them use different animations? Like attack etc.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML editing
Post by: Steff on April 07, 2012, 09:25:58 pm
How is it possible to rotate the model?
I have one fine in now but I look on it from the bottom :)
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML editing
Post by: phucko1 on April 07, 2012, 09:54:19 pm
I can't get them on the damn screen xD
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML editing
Post by: Steff on April 07, 2012, 10:33:22 pm
I have tested around also 20 minutst till i got one on my screen. :)
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML editing
Post by: Mordred on April 07, 2012, 10:36:35 pm
@Shadow
If it's green, it probably can't be used or with the file is something wrong


@phucko
it should work with a MPQ, maybe your path is wrong. Make sure it is Interface/GLUES and so on. Then it should work.
And yes, you can add other types of m2s portals, spells, creatures, whatever you like, but keep in mind that not every model works just fine.
And if you can't get them on the screen, try with the Z-axis, set it to +1 then +2 then +3 aso. if it won't show up try with Y-axis +1 aso. then X-axis and if nothing shows up... your fucked xD


@Steff
Use the Mod1:SetFacing(Mod1:GetFacing()+0); row.
You can multiply or add to the facing.
If it still shows the model still from the wrong direction, then you have to edit the camera :<


~Mordred
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML editing
Post by: Filipsons on April 08, 2012, 01:51:26 pm
Greetings. Please, if I want to create a new character. It throws me this error.
Thanks Filipsons.

(http://desmond.imageshack.us/Himg688/scaled.php?server=688&filename=errorev.png&res=landing)

PS: Sorry for my English
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML editing
Post by: Eremis on April 09, 2012, 03:23:49 pm
Is it normal ?

http://img15.hostingpics.net/pics/69032 ... 150925.jpg (http://img15.hostingpics.net/pics/690321WoWScrnShot040912150925.jpg" onclick="window.open(this.href);return false;)


Can you fix the link of your loginscreen (3rd message) please ? I need to see something in your vx_vars_init
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: stoneharry on April 25, 2012, 06:02:23 pm
Model:SetPoint("CENTER",0,0)
^
This appears to be the only method that has some effect as to the position of the model. As soon as I set it to TOP/BOTTOM etc, it does not show.

If I try to manipulate the position in any shape or form, it does not show.

If I try to set the scale, or change the way it faces, there is no change.

I'm a bit confused as to how you managed this. Even when copying the code you used and testing both spirit healer models, your code does not work. =/

edit:

This was solved by having the model rendered after a delay. Rendering it at declaration executes too fast for it to show, apparently.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Shadowjesper1 on May 19, 2012, 09:08:47 pm
Mordred, can you if possible add a video/normal tut on how to with WoWModelViewer make a .m2 that can be used for this.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: schlumpf on May 20, 2012, 10:17:00 pm
Quote from: "Shadowjesper1"
Mordred, can you if possible add a video/normal tut on how to with WoWModelViewer make a .m2 that can be used for this.
You can't create models with modelVIEWER.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Steff on May 20, 2012, 10:34:36 pm
I think he meens this:

viewtopic.php?f=61&t=272 (http://modcraft.io/viewtopic.php?f=61&t=272" onclick="window.open(this.href);return false;)
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Elinora on May 22, 2012, 07:07:11 am
Was looking for this.. Thanks <3
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: mystical on May 31, 2012, 09:34:10 pm
I love your loginscreen :D

Are you willing to share it ? Would be awesome :D

thxin advance :-)
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Mordred on June 01, 2012, 12:05:50 am
I put in a download link in some comments below.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: mystical on June 01, 2012, 01:37:34 am
AAAh,sry coudn t see the link :-p
Now i got it :D
thx again,you re doing really awesome work :-)
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Landira on June 22, 2012, 06:10:52 pm
Hey mordred, is it possible to add WMO in the Start screen?
I have an Idea to you the Throneroom from Lordaeron. At this moment I use a Screenshot but in HD it looks like really crap and unsharp :( With an Model there is no problem (when it works)
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: schlumpf on June 24, 2012, 05:07:14 pm
Quote from: "Landira"
Hey mordred, is it possible to add WMO in the Start screen?
I have an Idea to you the Throneroom from Lordaeron. At this moment I use a Screenshot but in HD it looks like really crap and unsharp :( With an Model there is no problem (when it works)
No, use a M2.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Landira on June 24, 2012, 07:11:46 pm
yeah but this Throneroom doesn´t exist as M2 :(
 when it´s not possible i must use the crap looking screenshot hehe
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Steff on June 25, 2012, 07:47:56 pm
Use the screenshot and add some lamps or torches as m2s
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: schlumpf on June 27, 2012, 11:38:12 am
Quote from: "Landira"
yeah but this Throneroom doesn´t exist as M2 :(
 when it´s not possible i must use the crap looking screenshot hehe
Convert it to whatever format you can convert to M2. Convert it to M2.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Soldan on July 14, 2012, 05:07:18 pm
Hey, just wondering if anyone knew how to take away the fading every time you click on a character, or go to create one :P

And the character list, to keep it long, as in, even if there aren't any characters, for the list to be there..

Thanks ^^

Quick screenie:  1 hours work:

(http://is.gd/ZKADZZ)
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: mike1084 on July 26, 2012, 12:59:10 pm
Hm... the link on the first page (LINK (http://filebeam.com/4603a1722a6760417a8995a2e6d6b5e2%20)) of the first paragraph seems to be broken for me... I hope that you (or someone, for that matter) could give a link to the file(s) necessary. I'm not even sure if the files are actually necessary or not, and to what extent I could actually follow this tutorial without them, but I still ask for help. ^^
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Mordred on July 27, 2012, 12:43:52 am
Update:
- fixed a bug which caused the models to reset their positions after loging out
(you have to add the model to the table now or else it will reset after loging out)

main post updated because of new download-link and tutorial.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Norimar on July 27, 2012, 03:09:03 am
Is it possible to use an picture which have holes, to place an background (sky) behind it?

Is it also possible to chance the Character-Creating screen? Din't spend much time into it :]
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Mordred on July 27, 2012, 03:44:22 pm
Yes, and yes.

for "holes" just make these parts transparent, but you need a second Background behind the first and "sky", because else it will get into a huge mess with the void space behind the background.

for the charactercreation screen, you just have to edit your
CharacterCreate.lua & .xml
and GlueParent.lua
as far as I know (not sure though)

maybe I already got something for that with Loginscreen 3.0 ;)
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Mordred on July 27, 2012, 10:38:39 pm
Update:
-new Loginscreen video about the fixed version
-download updated (failed with a variable :| )
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Norimar on July 28, 2012, 08:20:49 am
Nice thanks! I din't tested it right now, but is your "addon" options field also so buggy after opening it? (buttons are on the wrong positions)
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Mordred on July 28, 2012, 04:36:37 pm
yea they are really messed up, but it's not the button which are mispositioned, it's the background that's not set to the center I think.

should look at this :p
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: mike1084 on August 02, 2012, 03:59:32 pm
I've changed my revision number (the 12340) into 13370 and changed my patch number (3.3.5a) into 0.0.1, but using this log-in screen fix, I don't see the patch data anywhere.

Would you know how to actually show that patch data somewhere? It'd be quite useful. ^^
Sorry if it's a really easy fix, I haven't looked into all the LUA files that much... (A)
Thanks!
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: detonatorss on August 06, 2012, 02:00:09 pm
sorry i have my edited wowl.exe and works prefectly, the hexadecimal part doesn't import, only import the m2 files and the login interface nothing more
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: lordshark on August 07, 2012, 11:49:44 pm
Nice tutorial, but i have some problems.
First - i have changed my sound to my own music, but i seems doesnt work, because i hear another login-music.
Then - i have a problem with my model. i see my model from the top.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Mordred on August 08, 2012, 11:28:51 pm
@ detonatorss: wat.

@ lordshark:
first - it could be the ambience music. which is set in the vx_vars_init.lua file in the ShowScene function
then - add a camera

UPDATE:
Loginscreen 3.0 video
the loginscreen not included -> it maybe will get released as a shell for loginscreens after the expansion for chaotic united hit release.
- main post updated
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: mike1084 on August 08, 2012, 11:45:03 pm
Quote from: "Mordred"
UPDATE:
Loginscreen 3.0 video
the loginscreen not included -> it maybe will get released as a shell for loginscreens after the expansion for chaotic united hit release.
- main post updated
...I want this. ^^
Also, perhaps you didn't notice my question so I'll try to ask it again, as I actually see you've added this in 3.0...

How did you enable the patch / revision number in the bottom left? ^^

Other than that, I can't wait on 3.0 to get released! Is there any ETA on when this expansion will come out (and thus with that, the question is simply; when will you most likely release the new log-in screen? ^^).

Great work, I really love the improvement between 2.0! You should be proud! ;)
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Landira on September 17, 2012, 02:56:23 am
hey i have a little Question again.

How i can insert the Alert Box again in this tutorial file at the Loginscreen?
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Mrblitz on September 23, 2012, 10:15:41 pm
This is just what I was looking for. no more no less :D

Thanks a lot Mordred. I really enjoyed it and thanks again for updating your own login screen. I learned a lot of things through seeing that.

:-*
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Jumper on October 05, 2012, 12:01:40 pm
i have one question: how change overview of bottom-up or top-down, because some models visible from above, others are seen from below and i dnt know how to change it
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Diemen on October 05, 2012, 10:59:22 pm
Great Tut Mordred !
i've been looking for this for a while now.
Having some issues with the .M2 that won't show but its a start.
GJ !
Title: [QUESTION] Custom Login Screen VX Error
Post by: Diemen on October 07, 2012, 02:27:57 pm
Hey , i've been using [TUTORIAL]How to create a Loginscreen with Lua & XML editing
for making a Custom Login ...
but after solving the Lua 51 error "<' i got  a new one and i realy don't have a Clue how to fix it...

The new error :
(http://imageshack.us/a/img688/6756/wowscrnshot100712142511.jpg) (http://imageshack.us/photo/my-images/688/wowscrnshot100712142511.jpg/)


Pastbin:
http://pastebin.com/1N70X90c (http://pastebin.com/1N70X90c" onclick="window.open(this.href);return false;)
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Jumper on October 12, 2012, 02:05:40 pm
Here's what I got:

http://www.youtube.com/watch?v=N6pbTjPeF48&feature=plcp
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Milly on December 05, 2012, 02:35:19 pm
For some reason whenever I click "Enter World" the loading screen disappears and I get this:

         "World of Warcraft
         Your game interface files are corrupted. Please remove your InterfaceFrameXML folder."

(this is using the .exe that Mordred provided, and I don't even have a FrameXML folder)

In an attempt to solve this issue, I tried using the Heroes WoW client. It works, but I get this:

         "Blizzard_TimeManager has been blocked from an action only available to the Blizzard UI. You can disable this addon
         and reload the UI."

Does anyone have a solution to either of these problems?
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Ascathos on December 05, 2012, 06:19:07 pm
First one means you broke the XML structure to the point that initiation fails (most likely).
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Milly on December 05, 2012, 06:32:29 pm
Quote from: "Ascathos"
First one means you broke the XML structure to the point that initiation fails (most likely).

Even when downloading Mordred's sample Login Screen (The Scarlet One), I still get the same exact error. And I've been getting this error ever since I started the project. Both in early development, and up until now.

Er, nevermind. I just found a solution as I was typing this. Something was wrong with my WoW folder, so I tried using another one I had laying around. That one works fine so I must have screwed something up.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: stoneharry on December 05, 2012, 07:00:22 pm
Quote from: "Xapzi"
Quote from: "Ascathos"
First one means you broke the XML structure to the point that initiation fails (most likely).

Even when downloading Mordred's sample Login Screen (The Scarlet One), I still get the same exact error. And I've been getting this error ever since I started the project. Both in early development, and up until now.

Er, nevermind. I just found a solution as I was typing this. Something was wrong with my WoW folder, so I tried using another one I had laying around. That one works fine so I must have screwed something up.

You most likely deleted your interface folder, and thus the Blizzard AddOn data.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Milly on December 06, 2012, 07:25:03 am
Quote from: "stoneharry"
You most likely deleted your interface folder, and thus the Blizzard AddOn data.

Yup you were right. Thanks for pointing that out though =) Also, here's the result of several hours of tinkering:

[youtube:46nwbinl]http://www.youtube.com/watch?v=4yttyYjo9-M[/youtube:46nwbinl]
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: schlumpf on December 06, 2012, 08:23:48 am
Quote from: "Xapzi"
Also, here's the result of several hours of tinkering:[
Needs moar roaring dragons.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Steff on December 06, 2012, 09:00:44 am
Looks good. Have a nice mood.
But perhaps add some light effects.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Milly on December 06, 2012, 09:43:48 am
Quote from: "Steff"
Looks good. Have a nice mood.
But perhaps add some light effects.
Oh I did but you won't be able to notice them if you're not watching in fullscreen HD. I used the same light model that Mordred used for his Scarlet Crusade Login which pretty much pulses in/out. It's a bit difficult to see it moving, but it's the reason why it's so bright. And I also used a "wailingwinds" creature to emulate "God Rays".
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Steff on December 08, 2012, 12:57:07 am
Ok will have a second look :) But its cool if the effects are only smale. Dont make it so cheesy;)
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: 40thzombie on February 18, 2013, 10:39:28 am
Its Being Annoying To Me, There is a blue and white box on the bottom left hand corner of my screen

[attachment=0:3lt2480c]WoWScrnShot_021713_195612.jpg[/attachment:3lt2480c]
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: schlumpf on February 18, 2013, 11:07:00 am
Quote from: "40thzombie"
Its Being Annoying To Me, There is a blue and white box on the bottom left hand corner of my screen

[attachment=0:34iktwqv]WoWScrnShot_021713_195612.jpg[/attachment:34iktwqv]
You have a missing model there.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: 40thzombie on February 18, 2013, 12:16:46 pm
Wonderful i have a Missing Model and idk What it is

Anything You Need to help me?
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Mordred on February 18, 2013, 12:19:28 pm
Quote from: "40thzombie"
Its Being Annoying To Me, There is a blue and white box on the bottom left hand corner of my screen

please read the thread before adding a question, I already answered that:


if it's white, it has no texture,
if it's a blue-white checkered box, it has a wrong pathname.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: 40thzombie on February 18, 2013, 12:28:53 pm
i did Read before Posting, and i have added No models to the login screen, i used your one from the logintut and the changed the Background, thats all i have done
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Mordred on February 18, 2013, 01:03:29 pm
well then there is one model,
it's the template for more models in which you can add your own path

so just look at the vx_vars_init.lua and put everything in the ModelOptions() function into a comment:
--[[
]]

and in your PlayBackgroundModels() funtion the Mod1:SetModel("path\filename.m2"); into a comment:
--

then there is no wrong path model on your loginscreen.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: 40thzombie on February 19, 2013, 05:43:37 am
Sorry im not the best at editing, if you could show me an example that would be great
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Steff on February 19, 2013, 11:51:32 am
OK try to explain text ;)


Quote
so just look at the vx_vars_init.lua and put everything in the ModelOptions() function into a comment:
--[[
]]
and in your PlayBackgroundModels() funtion the Mod1:SetModel("path\filename.m2"); into a comment:
--------------------

>> Open the file x_vars_init.lua
>> Search ModelOptions() function
>> put all content inside the function in quote Start with --[[ end with ]]
>> Search PlayBackgroundModels() funtion
>> Search Mod1:SetModel("path\filename.m2");  and also quote into
--[[ Mod1:SetModel("path\filename.m2");  ]]

If you don´t understand now you MUST read some lua basics. The main syntax should be known.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: hyakkimaru on February 19, 2013, 12:45:27 pm
Is it possible a model doesn't appear because it is reskinned and came from Mop ^^' ? (a converted model obviously)
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Mordred on February 19, 2013, 01:47:50 pm
it should at least appear, but if it has any textures...

like I said before, you pretty much have to test all sorts of position variations to get it even on screen
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: hyakkimaru on February 19, 2013, 02:45:07 pm
Quote
Now to set the model you have to start your WoWModelViewer and find a model with only 1 skin (else they are white)
then enter your full path of the model into the 2nd last line with double \ and .m2 at the end

If the model has more than 1 skin, there's no solution :( ?
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Ascathos on February 19, 2013, 03:53:38 pm
Quote from: "hyakkimaru"
Quote
Now to set the model you have to start your WoWModelViewer and find a model with only 1 skin (else they are white)
then enter your full path of the model into the 2nd last line with double \ and .m2 at the end

If the model has more than 1 skin, there's no solution :( ?
Hardcode the texture into the model - duplicate the model and repeat.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: hyakkimaru on February 19, 2013, 03:55:36 pm
Duplication is not a problem, the real problem is my memory... x)

I don't remember how to hardcode a texture ^^'
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Ascathos on February 19, 2013, 04:06:09 pm
Quote from: "hyakkimaru"
Duplication is not a problem, the real problem is my memory... x)

I don't remember how to hardcode a texture ^^'
... Most likely within the .m2 ?
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: hyakkimaru on February 19, 2013, 04:14:10 pm
... I'm so stupid >< !

Edit : so so so... It doesn't work :(
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Steff on February 20, 2013, 12:39:23 am
1, copy and rename the m2 and the fitting texture blps.
2. change m2 name and blp name with hex inside the m2.
3. convert edit and reconvert the textures.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Grianar on February 20, 2013, 07:18:24 am
Very nice.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: hyakkimaru on February 20, 2013, 01:08:48 pm
After a lot of tears my problem is solved, sorry for the flood, I'll post a render later :)
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: hyakkimaru on February 21, 2013, 08:16:00 pm
It's me again...

My question is : Can I create a theme changer ?

For example: I hate human, but, the loginscreen is based on humans kingdoms, is it possible to create a menu which allow to change the loginscreen ?

I hate human, one click and... I've a loginscreen for dwarves :D !

I don't know if it's possible, I haven't skills for that but I ask :D
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Mordred on February 22, 2013, 01:08:46 am
Quote from: "hyakkimaru"
It's me again...

My question is : Can I create a theme changer ?

For example: I hate human, but, the loginscreen is based on humans kingdoms, is it possible to create a menu which allow to change the loginscreen ?

I hate human, one click and... I've a loginscreen for dwarves :D !

I don't know if it's possible, I haven't skills for that but I ask :D


yes you can, you also can make a random loginscreen so everytime you open WoW it has a different loginscreen.
it's just a bit of Lua code in AccountLogin.lua and a few things in AccountLogin.xml and it should work

I'm actually trying to rebuild the GlueXML folder, so it looks more like a game
also full keyboard control for people who like to do things fast.

my AccountLogin files have half the lines than the original ones, without the unnecessary crap
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Allifeur on February 22, 2013, 05:19:26 pm
(What music did you use in the third loginscreen?  :o  )
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Mordred on February 23, 2013, 01:45:22 am
it wasn't the real music, but I added it to have at least some music
also the song title was: Kevin McLeod - The Cannery
http://www.youtube.com/watch?v=gzLPZml9VRI (http://www.youtube.com/watch?v=gzLPZml9VRI" onclick="window.open(this.href);return false;)
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: alborq on March 04, 2013, 07:55:23 pm
Hello,First of all I thank yours has to be Mordred fantastic job.From my side I studied a little code, then I develop a small application to simplify the placement of 3D model that can happen complicate

So I develop a small application that is used to position the models

Insights api: http://imageshack.us/photo/my-images/83 ... 94612.jpg/ (http://imageshack.us/photo/my-images/834/wowscrnshot030413194612.jpg/" onclick="window.open(this.href);return false;)
(http://img834.imageshack.us/img834/183/wowscrnshot030413194612.jpg)

Little tutorial:
1) Set the path to your model in the EditBox
2) Click on Add
3) If you do not see your model then increase the size as needed, so you will be close to or one is your model (off-screen)
4) Change the position with XYZ button
5) change the scale with two button above to be more precise
6) meet the position indicate on a notepad
/!  They are not kept for the next time!
7) Completer position in the configuration file:
    Mod1: SetPosition (pos_x, pos_y, pos_z);
    Mod1: SetModelScale (scale);
    Mod1: SetFacing (facing);

8) Enjoy

Download link: http://depositfiles.com/files/x085iqjpw (http://depositfiles.com/files/x085iqjpw" onclick="window.open(this.href);return false;)


Bonjour,
tout d'abord je tien a remercier Mordred pour sont travail fantastique.
De mon coté j'ai étudié un petit peu son code, par la suite  j'ai développez une petite application pour simplifier le placement des model 3D qui peut s'averez compliquez

J'ai donc développez une petit application qui sert a position le models

Aperçus de l'api : http://imageshack.us/photo/my-images/83 ... 94612.jpg/ (http://imageshack.us/photo/my-images/834/wowscrnshot030413194612.jpg/" onclick="window.open(this.href);return false;)
(http://img834.imageshack.us/img834/183/wowscrnshot030413194612.jpg)

Petit tuto :
1) Mettre le chemin de votre model dans l'EditBox
2) Cliquez sur Add
3) Si vous ne voyez pas votre model alors augmentez la taille autant que nécessaire, vous serez donc un peut près ou est votre model (hors de l'écran)
4) Modifier la position avec les bouton  XYZ
5) modifier l'echelle avec les deux plus haut bouton pour etre plus précis
6) relever les position indiquez sur un bloc note
/!!! elle ne sont pas conservé pour la prochaine fois !

7) Completer les position dans le fichier de configuration :
   Mod1:SetPosition(pos_x, pos_y, pos_z);
   Mod1:SetModelScale(scale);
   Mod1:SetFacing(facing);

8) Enjoy

Lien de téléchargement : http://depositfiles.com/files/x085iqjpw (http://depositfiles.com/files/x085iqjpw" onclick="window.open(this.href);return false;)
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: osler on March 04, 2013, 08:03:02 pm
Alborq, thats impressive!
I´ll try right now
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Mordred on March 04, 2013, 09:02:03 pm
Awesome work alborq, if you want I can add the english part to the first post

also these are the first works on the new GlueDialog files (still WIP with a lot of bugs):
LINK (http://i.imagebanana.com/img/fp8viqxx/wow2013030420563641.png)
LINK (http://i.imagebanana.com/img/62onvcrv/wow2013030420574247.png)

the parts around the box in the middle are spinning and fly in when they get called.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: alborq on March 05, 2013, 12:12:55 am
I'm OK !  

and i thinks we must explain how create a background picture in HD 16:9 but actualy, a render is soo flat..
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Mordred on March 05, 2013, 05:17:20 am
it's added :)

also for HD background just make an image that's 2^X size in both dimensions
for example:
1024x1024 = 2^10 x 2^10

if you want to make a background with higher resolution just make one with:
2^11 x 2^11 which will be: 2048x2048

keep in mind that this will take 4 times the file size of the lower resolution background,
so it's good to compress the blp file.
if your converter can't do that, use THIS (http://www.hiveworkshop.com/forums/tools-560/blp-lab-v0-5-0-a-137599/), save as BLP2 and use the DXTC compression.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: alborq on March 05, 2013, 11:59:36 am
Hi, i come back for ask a little question, actually we can move Model only with Facing, we have a control on only one axis, i need move 2 other axis of model , but i dont know how, all doc dont say anything about that, i thinks we must move a CameraPosition but :

Model:SetCameraDistance() - This function is not yet documented
Model:SetCameraFacing() - This function is not yet documented
Model:SetCameraPosition() - This function is not yet documented
Model:SetCameraTarget() - This function is not yet documented
Model:SetCustomCamera() - This function is not yet documented

i have try this Mod2:SetCameraPosition(mt_pos_x, mt_pos_y, mt_pos_z);
but i have an error :attempt to call method "SetCameraPosition" (a nil value)
i must understand this fonction has been removed ?

we cant move other axe ?

(http://www.f-lohmueller.de/pov_tut/trans/rotatete.gif)

Facing = Y rotate
???? =  X rotate
???? =  Z rotate
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Mordred on March 05, 2013, 12:31:51 pm
Either this function does not exist, or you first have to set a custom camera with Model:SetCustomCamera()

also it could be that these functions just don't work outside ingame, because I tried several times to make something with the animation widget, but there's never been any respond or error.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: alborq on March 05, 2013, 12:37:28 pm
I have the same problem with the function Model: SetCustomCamera () if the parameter is not good, he would not give this mistake .. here I am .. block
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: alborq on March 05, 2013, 12:47:12 pm
LUA is really crazy after the test for my last post (I generated the error) I remove the code related to it and my PAF model turned in another axis, my code is the same that 'before the test, I do not understand, all is not lost!

actually, i cant reset my models view ... Just epic

(WTF, Cache Log) deleted ..
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: alborq on March 05, 2013, 11:47:23 pm
Hi,I then discovered a terrible thing when you use my system, this camera model from the first base load model view, is that I want to say is that for the other modified axis of rotation must find a model that has a camera suitable for the task, and then change the model and so positioned as a new angle, what does that mean? my tools are useless if you do not put the path in the code before running it, and we do not use it for placement, editbox is without interest, Attention is not everything was true, no camera models are not conserner by this problem .. Unfortunately you can not create it's own camera lua Blizzard I hate you ...Take care when using my tools, if the placement is different with display once encoded in the file, you know that the problem of vien for the brave I think it just reload the camera after loading new models, nothing too difficult, I searched my model continues to be the right camera for another place, I know yours if I have conclusive results and patcherais software case and this case only
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: alborq on March 06, 2013, 04:30:30 pm
Mordred, I am looking for a place where I can call a function after displaying loginscrenn but before the user can see, you have an idea of when I just make this call? because I really need is the model for the camera view is generated and I can put my final model so I'd do it as soon as possible ..

Do you have any suggestion?
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Mordred on March 06, 2013, 05:33:33 pm
Maybe just let a function get called after the models are set
or OnUpdate on first call
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: alborq on March 06, 2013, 10:42:36 pm
OnUpdate <3
Ty Morded all work nice, i try to give a new version of your code for fix this probleme

All Work nice =D

Me and Hyakkimaru LOVE you
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Revis on March 07, 2013, 05:15:26 pm
I've got a problem, I'm trying to put Mounted Baron Rivendare (from four horsemen "Creature/MOUNTEDDEATHKNGHt/MountedDeathKnight.m2"), but whole texture is white, and other one is correct, i know it only from wowmodelviewer, and here goes my question, how can i know what's path to it because it's not in same folder as model.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: hyakkimaru on March 07, 2013, 07:30:25 pm
If creature appears in white, it's just because  it a more than 1 skin, so the loginscreen don't load textures
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Revis on March 07, 2013, 08:03:14 pm
By saying texture is white i meant really white texture, on wowmodelviewer "MountedDeathKnightBlack_01" is correct, "MountedDeathKnightBlack" is whole white, and that's why i ask how to get path to those because there are none in same folder as .m2 is, I tried to pull whole folder with changed name and it appears to be connected to "Creature/MOUNTEDDEATHKNIGHT" folder (both white and correct one) so i need to know from where wowmodelviewer knows that path so i can separate them. I'm newbie in it so that's probably easy question for you. I'd be really happy if someone would help me since I'm working on that loginscreen for really long and after it'll be properly textured, it will be used for real server and everybody is very excited about that so far.

PS: If someone would mind explaining how to/is it possible to make that model saved with some weapon that would be even more awesome.

Edit: Now i saw from where it has textures, but it had 3x"MountedDeathKnightBlack" (which was correct one) with different captial letters. I really don't know what's going on here. I searched every mpq in game and there's only one "MountedDeathKnightBlack.blp" but at least 2 seems to be different, in paths to blps i saw also that "white textured" one, there's no named blp with that path in game, is it possible to be "hidden" file in mpq ?
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Soldan on March 08, 2013, 09:15:11 pm
The reason it isn't taking the textures, is the same reason when you have some models in wmv that bug, because they have a few textures...

The mounted deathknight model, has various textures that are defined via DBC (CreatureDisplayInfo), and since you are using the model, and not a display, it doesn't read the textures.

To fix this problem, you'll have to edit the m2, either with pymodel / 010 editor and set the textures to hardcoded. Tip; Pymodeleditor is more user-friendly.

Once the textures are hardcoded, it will work no problem.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: alborq on March 09, 2013, 03:41:06 am
Mordred next bug :
Launch Wow
Connect
Go in game
Disconnect
Press Return or escape
See (model is bad set)

Detected :
:SetCamera(0);   is a probleme, it is use in bad time
but when ..
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Mordred on March 09, 2013, 01:46:58 pm
actually I fixed that with an update before:
LINK (http://www.youtube.com/watch?v=F-YwXsLiRmI)

changes in:
vx_vars_init.lua
CharacterSelect.lua
and AccountLogin.lua

new DL link because filebeam is down I guess:
LINK (http://www.file-upload.net/download-7305716/LoginTUT.rar.html)
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Ascathos on March 13, 2013, 01:33:40 pm
For an older version:
There is a problem with the TOSScrollFrame. For those that can not use the scroll for TOS, do this:

Go into AccountLogin.xml
Go to line 1299
Remove 1299 - 1301 consisting off:
Code: [Select]
if ( not TOSScrollFrame.loaded ) then
TOSAccept:Disable();
TOSScrollFrame.loaded = true;


I assume this fix is quite hacky. Never the less, I haven't tested the newer version and if it works.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: mariobox on April 13, 2013, 05:51:23 pm
I changed my login screen and I came out with this i imgur com/QzCPPqH png

How to fix?
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Milly on April 13, 2013, 06:23:23 pm
Quote from: "mariobox"
I changed my login screen and I came out with this i imgur com/QzCPPqH png

How to fix?

Green would typically imply that a texture is missing. in this case, it looks like the client can't find your background image. Make sure you have the correct patch and file name set up, and also make sure that the image is in your patch.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: hyakkimaru on April 13, 2013, 06:51:50 pm
Bad size for your background or it isn't found in your patch
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: mariobox on April 13, 2013, 07:55:02 pm
Does anyone have any good converter blp <> PNG
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Shruik on May 20, 2013, 01:06:12 pm
Try this: viewtopic.php?f=59&t=801 (http://modcraft.io/viewtopic.php?f=59&t=801" onclick="window.open(this.href);return false;)
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Eremis on May 26, 2013, 10:28:54 pm
Someone know why all my models i try to import are facing the top ? Can't move them to get them in a normal position, i just see their top :/
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Steff on May 26, 2013, 11:09:24 pm
Yes becaus they dont have a cam inside
You can only use models with cam So only creatures. Or you add a cam to models. Thats why i gave up using this method.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Eremis on May 28, 2013, 05:11:54 pm
Okay, thanks for your answer.

Is it hard to add a cam to a model ?
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Steff on May 28, 2013, 05:36:11 pm
I never tried it.  Vel did it once.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Eremis on May 29, 2013, 08:18:46 pm
Hm i got all the creatures with this problem too, i dont know why i got this because i tested it before with arthas and it worked well :

http://www.youtube.com/watch?v=zzgPVDxbgIc (http://www.youtube.com/watch?v=zzgPVDxbgIc" onclick="window.open(this.href);return false;)

Now i only see him from top :/
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: hyakkimaru on June 27, 2013, 03:05:33 pm
After downloading your files Mordred, I've again a problem, I can't find the hack which says : troll = orc and gnome = dwarf for the UI, have you put it in another file ?
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: caduceus on August 13, 2013, 09:24:39 pm
How do you re-position the buttons on the Addon Page "Select & Deselect All"
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: PainSavior on October 17, 2013, 09:03:47 pm
Question.... Couldn't you just find the location of where the login screen is staged, like the ADT / Map file for it. Then edit it with something like Noggit to make it look differently?...

Or that's not how it's made?
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: phucko1 on October 17, 2013, 09:11:34 pm
Not at all, PainSavior. The Login Screen used by Blizzard is an .m2 Model that cannot be edited with Blender due to the use of multiple skeletons.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: PainSavior on October 17, 2013, 09:16:56 pm
Oh wow. Okay. Thanks for the quick reply. I was under the assumption it was just a map, some where in the game. What about the Character selection screens? Same jist?
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: phucko1 on October 18, 2013, 08:27:21 am
Yepp, same thing.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Gurluas on April 29, 2014, 09:52:07 pm
I'm not sure if this was posted but...Is there a way to rotate models vertically in the login screen?
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Soldan on April 29, 2014, 10:27:47 pm
Add a camera to it. I had to do it for 2 of the models I use.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Gurluas on April 29, 2014, 11:26:06 pm
Any documentation on how to do that?

I'm not very good with Lua.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: schlumpf on April 29, 2014, 11:27:13 pm
http://pxr.dk/wowdev/wiki/index.php?tit ... LK#Cameras (http://pxr.dk/wowdev/wiki/index.php?title=M2/WotLK#Cameras" onclick="window.open(this.href);return false;)
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Soldan on April 29, 2014, 11:43:39 pm
Just copy the camera block from a model that works on the login screen (I recommend a creature), to the end of the cameraless-m2. Then readjust the offsets. In total, you'll be looking at about 30 offsets (just make sure you don't mess up while doing it or it will break the model).

Basically, if you add the camera to it.. the view will be face on, and that way you will achieve said "verticle rotation". It will also solve another probem that occurs, and that is that the models move if you change resolution (try setting a square resolution and take a look at what happens). If you have a camera on the model - you will have to readjust the coords (you will need Z aswell). I recommend using the DevModel addon.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: klyxmaster on July 29, 2014, 09:16:51 pm
I am getting a green background. Music worked
Confused on a step:
It states the following:

Quote
Once you have finished editing your file save it in your directory:
WoWInterfaceLoginScreen

and name it:
Background.png

Now all you have to do is drag and drop the .png file onto your BLP Converter
and remove the .png file out of the directory.

image saved as a png format 1024x768
I saved it to the LoginScreen as "Background.png"
the next part is blurry...
do i put the converter in the LoginScreen folder then drag/drop the png on it then remove the png leaving the blp file? (did that, screen is still green)
do i copy the png image to where the blp converter is at (currently it is in the interface folder as per extracted file put it), drag it on the blp converter, then move the blp file to the login screen?

if your confused  - now you know I am LOL

Ok, but seriously, I get a green screen no matter what i do, with a blue/white checker square lower left
I read somewhere that either the path is wrong or the file is bad. I did it with 2 files and still come up with the same probl

Thanks if you can help me make this work!
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Alastor on July 29, 2014, 09:32:05 pm
you are not confused you are noob
one of firsts Rules of WoW editing is that every Image in WoW need to haev mirrored Resolition

2x2
4x4
8x8
16x16
32x32
64x64
128x128
256x256
512x512
1024x1024
2048x2048
etc
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: klyxmaster on July 29, 2014, 09:42:35 pm
Quote from: "dahaga"
you are not confused you are noob
one of firsts Rules of WoW editing is that every Image in WoW need to haev mirrored Resolition

2x2
4x4
8x8
16x16
32x32
64x64
128x128
256x256
512x512
1024x1024
2048x2048
etc

I am only as smart as my teacher -
Please Explain.
The instructions (teacher) says the image needs to be saved in a png format - pretty basic, where does the above come in?
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: klyxmaster on July 29, 2014, 09:57:27 pm
GOT IT!
I misread. 1024x1024 (not 1024x768)

*goes off and re-learns reading*

 :lol:
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Miraco on August 26, 2014, 02:13:04 pm
Is this also working on 2.4.3 (TBC) Clients? Cause i always get error when starting WoW after adding new patch file.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Alastor on August 26, 2014, 06:23:00 pm
Because u didnt removen MD5 Protection
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Miraco on August 26, 2014, 11:51:27 pm
I did.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: schlumpf on August 27, 2014, 12:32:17 am
Quote from: "Miraco"
Is this also working on 2.4.3 (TBC) Clients? Cause i always get error when starting WoW after adding new patch file.
Nobody knows what you did, or what the error is. Tell us what the error is.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: stan84 on August 27, 2014, 06:59:17 am
Doesn't  modded TBC requires wowme.exe started before wow.exe ?
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Domminust on November 05, 2014, 03:09:47 pm
I'm trying to make a simple solid picture login sreen. Just putting a blp in interface/loginscreen isn't working.. Should it be?
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Alastor on November 05, 2014, 03:15:39 pm
(http://i.imgur.com/k9Hb2Ak.png)
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Domminust on November 05, 2014, 03:20:49 pm
Lol sorry, I am new to it :)
But if someone could answer my question of how to do a simple login screen edit to a still image. That would be awesome :)

Udate: I've figured out how to change the Logo, I guess I have to change every little Square for the background and can't just put one big BLP? :)
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Psojed on December 16, 2014, 11:46:35 pm
Hello,

I was also trying to do the same as Domminust, except that I'm trying it with 1.12.1 version, so the files provided in this topic cannot be used. I started to slowly discover stuff myself, step by step.

I successfully swapped the background image behind the Dark Portal, but now I got stuck with editing the .xml files. I extracted the 1.12.1 files from patch-2.mpq of 1.12.1 and for starters I tried to move the Blizzard logo from the bottom to the top of the screen (inside AccountLogin.xml).
Sadly, everytime I make ANY change to the .xml file and pack it into a patch-i.MPQ file, the game gives an error (Interface files are corrupt, plz reinstall the game). I thought maybe those are not the correct interface files, so I extracted the default files from patch-2.MPQ again and packed them into a new patch-i.MPQ file without any changes inside + I swapped login screen music. The game works with different music, so my patch file also works.

Can you tell me why it won't allow me to do any changes in the XML file?

Thx in advance.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: stan84 on December 17, 2014, 08:49:56 am
It's because you haven't disabled frame xml checking in your wow.exe. Unfortunatley i only know how to disable lua checking in 1.12.
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: Psojed on December 17, 2014, 09:15:16 pm
Thank you very much!
Your bit of info was all I needed. Google gave me a topic on this forum with your own post viewtopic.php?p=21288#p21288 (http://modcraft.io/viewtopic.php?p=21288#p21288" onclick="window.open(this.href);return false;) that actually sent me the right way, I made my own executable and now I have succesfully moved the blizzard logo to the top of the screen. Yay!

PS: A quick one out of one of the default classic loadscreens:
[attachment=0:2vhhrtvc]LoginScreen1.jpg[/attachment:2vhhrtvc]

PS2: Later I discovered that my executable works for xml edits, but when I actually log onto a server and try to log out from the game world, the game will crash on me, so a non-crashing modified file would still be appreciated :D
Title: Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
Post by: edwardszj93 on December 27, 2016, 06:32:48 am
Does it still work for Legion 7.1?