This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [TUTORIAL]How to create a Loginscreen with Lua & XML editing  (Read 59352 times)

Mordred

  • Contributors
  • Polygonshifter
  • *****
  • Posts: 57
    • View Profile
Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
« Reply #90 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Burn in fire of righteousness!
Easy Loginscreen

alborq

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 17
    • View Profile
Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
« Reply #91 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
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

alborq

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 17
    • View Profile
Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
« Reply #92 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 ..
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

alborq

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 17
    • View Profile
Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
« Reply #93 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
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

alborq

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 17
    • View Profile
Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
« Reply #94 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?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Mordred

  • Contributors
  • Polygonshifter
  • *****
  • Posts: 57
    • View Profile
Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
« Reply #95 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
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Burn in fire of righteousness!
Easy Loginscreen

alborq

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 17
    • View Profile
Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
« Reply #96 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
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Revis

  • Registred Member
  • MWCS Enthusiast
  • *****
  • Posts: 2
    • View Profile
Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
« Reply #97 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

hyakkimaru

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 128
    • View Profile
    • http://mc-revolution.fr
Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
« Reply #98 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
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Revis

  • Registred Member
  • MWCS Enthusiast
  • *****
  • Posts: 2
    • View Profile
Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
« Reply #99 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 ?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Soldan

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 159
    • View Profile
Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
« Reply #100 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

alborq

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 17
    • View Profile
Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
« Reply #101 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 ..
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Mordred

  • Contributors
  • Polygonshifter
  • *****
  • Posts: 57
    • View Profile
Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
« Reply #102 on: March 09, 2013, 01:46:58 pm »
actually I fixed that with an update before:


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

new DL link because filebeam is down I guess:
LINK
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Burn in fire of righteousness!
Easy Loginscreen

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
« Reply #103 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

mariobox

  • Registred Member
  • Race Changer
  • *****
  • Posts: 36
    • View Profile
Re: [TUTORIAL]How to create a Loginscreen with Lua & XML edi
« Reply #104 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?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »