Page 2 of 2
Re: Login Next Char userfunction error
Posted: Fri Jul 05, 2013 12:23 pm
by rock5
I put the print messages in the wrong place. Try this one.
Re: Login Next Char userfunction error
Posted: Fri Jul 05, 2013 12:45 pm
by BeyondNames
k
Re: Login Next Char userfunction error
Posted: Fri Jul 05, 2013 1:01 pm
by BeyondNames
Here is what i got
Code: Select all
Quest completed: Helping Them Grow
Did not find any crashed game clients.
10:59am - ...scripts/rom/userfunctions/userfunction_LoginNextChar.lua:193: bad a
rgument #1 to 'printf' (got nil)
AL lib: FreeContext: (02B4CCC8) Deleting 1 Source(s)
Please enter the script name to run.
Type in 'exit' (without quotes) to exit.
Script>
Re: Login Next Char userfunction error
Posted: Fri Jul 05, 2013 1:19 pm
by rock5
It errored at the first print. I should have added support for nil values so I could check the other values. But what that error tells me is "CHARACTER_SELECT.selectedIndex" in the game is nil which doesn't make sense. That's one of the main variables used in loginxml. I think this means that your loginxml (fastlogin) isn't installed properly. Can you explain how you installed it? And does it work properly? Does it show only the login buttons you set up and do they work properly? Does the character selection screen work properly, no strange behavior?
Also print those values in the game manually just to double check that there is a problem with them. Type the following.
Code: Select all
/script SendSystemChat(LogID or "nil")
That's supposed to print the account number
Code: Select all
/script SendSystemChat(CHARACTER_SELECT.selectedIndex or "nil")
And that's supposed to print the selected character.
Re: Login Next Char userfunction error
Posted: Fri Jul 05, 2013 2:44 pm
by BeyondNames
ok i installed it properly and put the loginxml in interface next to addons so the documents look like this
Runes of magic/interface/addons,login.xml/accountlogin.lua,.xml, charcreate.lua,.xml,char select.lua,.xml, logindialog.lua,loginxml[3.3]
the login buttons dont work correctly because my username and password r suppose to be on them but only my username is but they show up
The character selection works properlly when i first start ROM but when i logout back to char selection none of my char r there if i log back in they r back
Re: Login Next Char userfunction error
Posted: Fri Jul 05, 2013 3:11 pm
by rock5
I don't know if I understand your file list. Do you mean your files look like this?
Code: Select all
Runes of magic/interface/loginxml/accountlogin.lua,.xml
Runes of magic/interface/loginxml/characterselect.lua,.xml
Runes of magic/interface/loginxml/charactercreate.lua,.xml
Runes of magic/interface/loginxml/logindialog.lua
BeyondNames wrote:the login buttons dont work correctly because my username and password r suppose to be on them but only my username
So you don't use the button to log in? Do you log in with the edit boxes? I think that means LogID doesn't get set because LogID is the button you press. Which means loginNextChar wont work because it doesn't know which account you are logged into. I don't even think ChangeChar will work because that uses LodID as well.
BeyondNames wrote:The character selection works properlly when i first start ROM but when i logout back to char selection none of my char r there if i log back in they r back
Yes that happens on some servers. For me the official EU and AU servers show the characters when I log out but my rom4u client doesn't and I have to go back to the login screen to log back in.
Re: Login Next Char userfunction error
Posted: Fri Jul 05, 2013 3:24 pm
by BeyondNames
yes that is what my file list looks like including loginxml3.3
to login i just type in my password and choose server and sec password
Re: Login Next Char userfunction error
Posted: Fri Jul 05, 2013 3:48 pm
by rock5
BeyondNames wrote:yes that is what my file list looks like including loginxml3.3
That's the "7z" file right? That doesn't matter.
BeyondNames wrote:to login i just type in my password and choose server and sec password
Then you are not going to be able to use any of the relog function. There's no point in even having fastlogin installed unless you set up the passwords too.
Re: Login Next Char userfunction error
Posted: Fri Jul 05, 2013 4:08 pm
by BeyondNames
I did set up my password it doesnt show up on the login screen
-- >>>>>>>>>>>>>>> ENTER YOUR USERNAME BETWEEN THE QUOTES BELOW <<<<<<<<<<<<<<<<<
fastLoginUser = "my username is here"
-- >>>>>>>>>>>>>>> ENTER YOUR PASSWORD BETWEEN THE QUOTES BELOW <<<<<<<<<<<<<<<<<
local fastLoginPass = "my password is here"
Re: Login Next Char userfunction error
Posted: Fri Jul 05, 2013 4:19 pm
by rock5
Those 2 options aren't really for botting. They are for if you want it to automatically log in when you start the game but they aren't compatible with the relog functions such as changechar and loginnextchar. You need to add in your password (and your account name) in the table below.
Code: Select all
local CustomLogin = {
Account1 = { UserName = "", Password = "", Server = "", },
Account2 = { UserName = "", Password = "", Server = "", },
Account3 = { UserName = "", Password = "", Server = "", },
and use the button to log in.
I should probably add in an option to auto start using one of the buttons details so the relog functions do work.
Re: Login Next Char userfunction error
Posted: Fri Jul 05, 2013 4:35 pm
by BeyondNames
i put my acc info there 2
Re: Login Next Char userfunction error
Posted: Sat Jul 06, 2013 10:29 pm
by BeyondNames
ITS WORKING!!!!!! I HAVE NO CLUE WHAT I DID!!!!!!!!
lol
ty so much for all the help rock5
Re: Login Next Char userfunction error
Posted: Sun Jul 07, 2013 12:44 am
by rock5
I posted this in the wrong topic yesterday. It was supposed to go here.
----------------------------------------------------------
I've updated fastlogin.
http://solarstrike.net/phpBB3/viewtopic ... 851#p50851
Of interest to you is if you want to automatically log in you can set 'fastLoginUser' to your account number eg. "1" and it will automatically login in and ChangeChar and LoginNextChar will still work. You would still need to set up your account details properly in the table of course.
Re: Login Next Char userfunction error
Posted: Sun Jul 07, 2013 3:07 pm
by BeyondNames
cool