Page 3 of 10

Re: swietlowka Autologin v2 with boxes and secondary pass

Posted: Mon Feb 07, 2011 3:51 am
by momostar
rock5 wrote:I've been able to narrow it down to something in the logindialog files because if I delete those, it works (after entering the secondary password manually).
aaa i can not log in wold after secpass :-(
plz fix it ;-(

Re: swietlowka Autologin v2 with boxes and secondary pass

Posted: Mon Feb 07, 2011 5:36 am
by swietlowka
as i said ill fix it, will try asap xD

EDIT it seems like the original fastlogin v5 doesnt work at all... or im missing smt...

Re: swietlowka Autologin v2 with boxes and secondary pass

Posted: Mon Feb 07, 2011 9:08 am
by momostar
thx i sink the code from character select and logindialog handel up together
and can you put the Secondary password to the accountlogin file?
Account1 = { UserName = "xyz", Password = "xyz", SecPassword="xyz", },

or so :-)

sorry bu i hav no ++ telents ;-)

Re: swietlowka Autologin v2 with boxes and secondary pass

Posted: Mon Feb 07, 2011 11:45 am
by swietlowka
functions from logindialog are not workind correct imho... i still have some issues with this, if u'll come up with some code share it, ill upload asap my will work correctly

Re: swietlowka Autologin v2 with boxes and secondary pass

Posted: Tue Feb 08, 2011 1:33 am
by rock5
I found the problem

In logindialog.lua this

Code: Select all

function CheckSecondaryPass()
    for i = 1, 18 do
        if CustomSecondaryPass["Account"..i].ID = LogID then return CustomSecondaryPass["Account"..i].SecondaryPassword end
	return 0
    end
end
Is supposed to be

Code: Select all

function CheckSecondaryPass()
    for i = 1, 18 do
        if CustomSecondaryPass["Account"..i].ID = LogID then return CustomSecondaryPass["Account"..i].SecondaryPassword end
    end
	return 0
end

Re: swietlowka Autologin v2 with boxes and secondary pass

Posted: Tue Feb 08, 2011 5:55 am
by heinzk
you still cant enter the world

Re: swietlowka Autologin v2 with boxes and secondary pass

Posted: Tue Feb 08, 2011 6:24 am
by rock5
The above fix worked for me. Did you add your secondary passwords to logindialog.lua?

Re: swietlowka Autologin v2 with boxes and secondary pass

Posted: Tue Feb 08, 2011 6:26 am
by swietlowka
imho logindialog doesnt work at all, i added a onshow function to the character.lua and it works, but i cannot add confrim pass and ofc the function u just metnioned wasnt working either, ill try to make it work tonight

Re: swietlowka Autologin v2 with boxes and secondary pass

Posted: Tue Feb 08, 2011 6:36 am
by swietlowka
lol it really worked? strange, i tried to use it without anything else (the original one) and it wasnt working for me...

Re: swietlowka Autologin v2 with boxes and secondary pass

Posted: Tue Feb 08, 2011 6:41 am
by rock5
I may have spoken too soon. It did work but now it's not. I discovered another bug but it still doesn't work after I fixed it. In that function a '=' is used where it's supposed to be '=='. So it should be.

Code: Select all

function CheckSecondaryPass()
    for i = 1, 18 do
        if CustomSecondaryPass["Account"..i].ID == LogID then return CustomSecondaryPass["Account"..i].SecondaryPassword end
    end
	return 0
end

Re: swietlowka Autologin v2 with boxes and secondary pass

Posted: Tue Feb 08, 2011 7:46 am
by rock5
It took me awhile but I found the problem that was screwing up the login. There is a missing 'then' around line 217.

But it still doesn't always work. Sometimes it will work and sometimes it will ask for the secondary password. I'm still trying to figure it out.

Re: swietlowka Autologin v2 with boxes and secondary pass

Posted: Tue Feb 08, 2011 8:04 am
by rock5
Ok I've got it working. I made a few changes, I don't remember what they all were so here is the file.

Re: swietlowka Autologin v2 with boxes and secondary pass

Posted: Tue Feb 08, 2011 9:12 am
by heinzk
still no win for me :( and yes i added secpw :>


without logindialog.lua it works fine but i have to write secpw, i use german client

Re: swietlowka Autologin v2 with boxes and secondary pass

Posted: Tue Feb 08, 2011 11:17 am
by Giram
For me it's not filling the first password. Account name comes. But if i write password there it didn't ask for secondary password. I used rock5 file. I am using english client. And then i cannot enter world with any character.

Re: swietlowka Autologin v2 with boxes and secondary pass

Posted: Tue Feb 08, 2011 3:39 pm
by swietlowka
rock5 u sure that this function should work? cause i alwyas get a nil value...
i have it like this:

Code: Select all

function LoginDialog_OnShow()
local CustomSecondaryPass = CheckSecondaryPass()
			LoginDialogEditBox:SetText(CustomSecondaryPass); 
end

local function CheckSecondaryPass()
    for i = 1, 18 do
        if CustomSecondaryPass["Account"..i].ID == LogID then return CustomSecondaryPass["Account"..i].SecondaryPassword end
    end
   return 0
end

Re: swietlowka Autologin v2 with boxes and secondary pass

Posted: Tue Feb 08, 2011 8:19 pm
by rock5
Just to let you guys know, I'm still working on it.

Re: swietlowka Autologin v2 with boxes and secondary pass

Posted: Wed Feb 09, 2011 1:28 am
by rock5
I had to start from scratch but I'm a 100 % sure it works properly now, well maybe 99%.

So try it out.

Re: swietlowka Autologin v2 with boxes and secondary pass

Posted: Wed Feb 09, 2011 4:32 am
by heinzk
GJ ! ;)

Re: rock5&swietlowka Autologin v2.1 with boxes and secondary

Posted: Wed Feb 09, 2011 5:05 am
by swietlowka
ok now last thing

Code: Select all

function ToonChange(toontoload, acctoload)
    local AutoLoginAccount = acctoload
    local AutoLoginCharacter = toontoload
    Logout(); 
      if ( AutoLoginAccount == LogID ) then
        CHARACTER_SELECT.selectedIndex = AutoLoginCharacter
        CharacterSelect_EnterWorld();
      else
        CharacterSelect_Exit();
        CustomLoginButton_OnClick("..AutoLoginAccount..");
        CHARACTER_SELECT.selectedIndex = AutoLoginCharacter
        CharacterSelect_EnterWorld();
      end
end
this code is still not working, it logouts but doesnt login in after, i think i should add some wait for login screen or smt, u guys have some ideas?

Re: rock5&swietlowka Autologin v2.1 with boxes and secondary

Posted: Wed Feb 09, 2011 5:35 am
by rock5
I was messing around with that function too when I was fixing logindialog.lua but I couldn't get it to work.

What you have to realize is when it logs off, a whole lot of automatic things start happening. The onshow event happens and all the code that was there before for autoreloging is there. Values get changed and it interferes with what you intend to do.

The only way I could get it to log back in was to set "fastLoginRelog = true" but it didn't change character and of course it wouldn't work for changing account anyway.

I think it's going to be very hard to implement this on top of the code that's already there that's why I was going to start from scratch if I did it. Your best bet I think is to figure out how the "LoginNextToon=true" option works because it still does, and try to use it or modify it to do what you want.