Login Next Char userfunction error
Re: Login Next Char userfunction error
I put the print messages in the wrong place. Try this one.
- Attachments
-
- userfunction_LoginNextChar.lua
- (7.16 KiB) Downloaded 227 times
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
-
BeyondNames
- Posts: 104
- Joined: Thu Jun 27, 2013 7:39 pm
-
BeyondNames
- Posts: 104
- Joined: Thu Jun 27, 2013 7:39 pm
Re: Login Next Char userfunction error
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
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.That's supposed to print the account number
And that's supposed to print the selected character.
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")Code: Select all
/script SendSystemChat(CHARACTER_SELECT.selectedIndex or "nil")- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
-
BeyondNames
- Posts: 104
- Joined: Thu Jun 27, 2013 7:39 pm
Re: Login Next Char userfunction error
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
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
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.luaSo 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 login buttons dont work correctly because my username and password r suppose to be on them but only my username
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.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
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
-
BeyondNames
- Posts: 104
- Joined: Thu Jun 27, 2013 7:39 pm
Re: Login Next Char userfunction error
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
to login i just type in my password and choose server and sec password
Re: Login Next Char userfunction error
That's the "7z" file right? That doesn't matter.BeyondNames wrote:yes that is what my file list looks like including loginxml3.3
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.BeyondNames wrote:to login i just type in my password and choose server and sec password
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
-
BeyondNames
- Posts: 104
- Joined: Thu Jun 27, 2013 7:39 pm
Re: Login Next Char userfunction error
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"
-- >>>>>>>>>>>>>>> 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
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.
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.
Code: Select all
local CustomLogin = {
Account1 = { UserName = "", Password = "", Server = "", },
Account2 = { UserName = "", Password = "", Server = "", },
Account3 = { UserName = "", Password = "", Server = "", },
I should probably add in an option to auto start using one of the buttons details so the relog functions do work.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
-
BeyondNames
- Posts: 104
- Joined: Thu Jun 27, 2013 7:39 pm
Re: Login Next Char userfunction error
i put my acc info there 2
-
BeyondNames
- Posts: 104
- Joined: Thu Jun 27, 2013 7:39 pm
Re: Login Next Char userfunction error
ITS WORKING!!!!!! I HAVE NO CLUE WHAT I DID!!!!!!!!
lol
ty so much for all the help rock5
lol
ty so much for all the help rock5
Re: Login Next Char userfunction error
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.
----------------------------------------------------------
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.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
-
BeyondNames
- Posts: 104
- Joined: Thu Jun 27, 2013 7:39 pm