Login Next Char userfunction error

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Message
Author
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Login Next Char userfunction error

#21 Post by rock5 »

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

Re: Login Next Char userfunction error

#22 Post by BeyondNames »

k
BeyondNames
Posts: 104
Joined: Thu Jun 27, 2013 7:39 pm

Re: Login Next Char userfunction error

#23 Post 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>
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Login Next Char userfunction error

#24 Post 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.
  • 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

#25 Post 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
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Login Next Char userfunction error

#26 Post 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.
  • 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

#27 Post 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
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Login Next Char userfunction error

#28 Post 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.
  • 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

#29 Post 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"
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Login Next Char userfunction error

#30 Post 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.
  • 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

#31 Post by BeyondNames »

i put my acc info there 2
BeyondNames
Posts: 104
Joined: Thu Jun 27, 2013 7:39 pm

Re: Login Next Char userfunction error

#32 Post by BeyondNames »

ITS WORKING!!!!!! I HAVE NO CLUE WHAT I DID!!!!!!!!
lol
ty so much for all the help rock5
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Login Next Char userfunction error

#33 Post 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.
  • 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

#34 Post by BeyondNames »

cool
Post Reply