Page 45 of 46

Re: rock5's "fastLogin Revisited"

Posted: Sat Jun 20, 2015 3:05 am
by Testa
Big thx! The runtimecalculation works very good!

________________________________________________________

rock5 wrote:I see what you mean now. It just gets a bit confusing especially when you add the existing printout. When you print both I think it will look confusing. How about modifying the existing print out to look something like this.

Code: Select all

Changing to character 2 account 3 (2/4)
(2/4) meaning '2 of 4'. I think that's clear.

We could also have how many characters on the account left too. Eg.

Code: Select all

Changing to character 2 (2/7) account 3 (2/4)
How does that sound?
Testa wrote:

Code: Select all

Changing to character 2 (2/7) account 3 (2/4). Runtime: 1:10 hours
Back to this topic. Can you please implement this in your userfunction? This would be very great :)

Re: rock5's "fastLogin Revisited"

Posted: Sat Jun 20, 2015 11:14 am
by rock5
Ok. Done. I can't be bothered testing it. Someone please test it for me.
userfunction_LoginNextChar.lua
Version 1.52 beta 1
(8.46 KiB) Downloaded 348 times
Note: When changing to the first character of the next account where no characters are specified, eg. chars={}, it has no way to know how many characters there are in the next account so it will display (1/?).
Note2: If it does a client restart as per the RestartClientInterval option then you wont see this information because the restarting function has it's own printouts. I guess I could do the restart after this print but then you would get duplication when the login function does it's own prints.

Re: rock5's "fastLogin Revisited"

Posted: Sat Jun 20, 2015 10:16 pm
by beanybabe
I look and am not sure the latest version of fastlogin I see so many changes going back 3 pages but did not find the original.

Re: rock5's "fastLogin Revisited"

Posted: Sat Jun 20, 2015 10:39 pm
by rock5
I don't know if I'll ever have time for that major update I talked about. I'm doing other things now and don't have time for large projects like that. I think my latest version of fastlogin is on the first post. The beta version of the LogiNextChar userfunction above will be added to the first post once someone has tested it and reported back.

Re: rock5's "fastLogin Revisited"

Posted: Sun Jun 21, 2015 3:53 am
by Testa
rock5 wrote:Ok. Done. I can't be bothered testing it. Someone please test it for me.
userfunction_LoginNextChar.lua
Note: When changing to the first character of the next account where no characters are specified, eg. chars={}, it has no way to know how many characters there are in the next account so it will display (1/?).
Note2: If it does a client restart as per the RestartClientInterval option then you wont see this information because the restarting function has it's own printouts. I guess I could do the restart after this print but then you would get duplication when the login function does it's own prints.

after a first test the function don´t display it. i think maybe you forget to change the printf? or maybe i do something wrong :)

Display:

Code: Select all

Changing to character 1 account 6.

Re: rock5's "fastLogin Revisited"

Posted: Sun Jun 21, 2015 4:29 am
by rock5
Did you use LoginNextChar or ChangeChar?

Did you delete the original file or did you rename it as a backup?

Re: rock5's "fastLogin Revisited"

Posted: Sun Jun 21, 2015 4:34 am
by Testa
LoginNextChar()

Code: Select all

function relog()						<!--Put your Character list here see http://www.solarstrike.net/phpBB3/viewtopic.php?f=27&t=1245 for more info-->
	SetCharList({
		{account=1, chars= {1}},
		{account=2, chars= {1}},
		{account=3, chars= {1}},
	})
		LoginNextChar()
		yrest(4000)
		player:update()
		loadPaths("test.xml");

	end
the first test i rename the old funtion to "_userfunction_LoginNextChar.lua". the second test i delete the old function... both tests with the same result

Re: rock5's "fastLogin Revisited"

Posted: Sun Jun 21, 2015 4:56 am
by rock5
"_userfunction_LoginNextChar.lua" was ok. It wouldn't have been loaded.

I have to say I don't think it's the right version. If there was a bug that caused the placeData to be nil then it wouldn't add the extra info but the Runtime info should always be added. The fact that it wasn't added in your output means it's still using the wrong version.

Open the file and have a look at the version at the top of the file. It should be 1.52 beta 1. If it isn't then download it again. If it is the right version then there must be another copy somewhere over-writing it.

Re: rock5's "fastLogin Revisited"

Posted: Sun Jun 21, 2015 5:22 am
by Testa
i found my fault! now it´s working great! BIG THX!

my fault:
the version was right but i had a file named "withlog_userfunction_LoginNextChar.lua" in the userfuntion folder. (this was a version from you with the diagnostic output of my last problem) :) after i moved it, the right function worked

now the outputs are right:

Code: Select all

Changing to character 1 (1/1) account 12 (12/18). Runtime 00:04:10
Changing to character 1 (1/1) account 56 (2/18). Runtime 00:05:10
Changing to character 1 (1/1) account 92 (2/18). Runtime 00:03:30
i will test it more. the character count i can not test because i only use one char on a account. big thx again for your work

[*]it would be great if the runtime code could be like "runtime all" ("runtime char")

Code: Select all

Runtime 00:08:20 (Runtime character 00:04:10)

Re: rock5's "fastLogin Revisited"

Posted: Sun Jun 21, 2015 6:13 am
by rock5
I'm so happy it worked, and on the first go!

I thought userfunctions had to start with "userfunction_" to be loaded.

Code: Select all

string.match(v, "userfunction_(.*)%.lua")
Looks like it doesn't. I'll fix that. So in the future adding text at the beginning of the file name will cause it to not load.

I'm not sure about total time. I'm not sure of it's usefulness, unless maybe you include how many characters it's for so you could work out an average. I think it might be a bit too much. I guess I could just use the existing bot start time player.BotStartTime_nr but the user could use it too and do their own display. I'll think about it.

Re: rock5's "fastLogin Revisited"

Posted: Sun Jun 21, 2015 6:38 pm
by beanybabe
Im trying to get this working again but now I just get a screen full of buttons and the login button is gone

here is how i did it.

accountlogin.lua
local CustomLogin = {
Account55 = { UserName = "", Password = "", Server = "", Label = "Eg.Heading" },
Account56 = { UserName = "Eg.Account1", Password = "EgPassword", Server = "Eg.Server", Label = "" },
Account57 = { UserName = "Eg.Account2", Password = "EgPassword", Server = "Eg.Server", Label = "Eg.Label" },
Account1 = { UserName = "char1", Password = "thepass1", Server = "myserver", ),
Account2 = { UserName = "char2", Password = "thepass2", Server = "myserver", ),

}

logindialog.lua

local CustomSecondaryPass = {
Account56 = { SecondaryPassword = "EgSecondaryPassword", },
Account57 = { SecondaryPassword = "EgSecondaryPassword", },
Account1 = { SecondaryPassword = "thesecpass1", },
Account2 = { SecondaryPassword = "thesecpass2", },

}

Re: rock5's "fastLogin Revisited"

Posted: Mon Jun 22, 2015 12:28 am
by rock5
That usually means you made a syntax error somewhere. It looks like you used the wrong brackets.

Code: Select all

Account1 = { UserName = "char1", Password = "thepass1", Server = "myserver", ),
Account2 = { UserName = "char2", Password = "thepass2", Server = "myserver", ),
should be

Code: Select all

Account1 = { UserName = "char1", Password = "thepass1", Server = "myserver", },
Account2 = { UserName = "char2", Password = "thepass2", Server = "myserver", },

Re: rock5's "fastLogin Revisited"

Posted: Mon Jun 22, 2015 2:13 pm
by beanybabe
Good eye. I missed that. I had copied the sample and filled in my data but it looks like part of the line got cut off I also missed the Label=""

I wonder why none of the editors I use flag mismatched brackets. notepadd ++ and subline both do not seem to catch that error.

Re: rock5's "fastLogin Revisited"

Posted: Tue Jun 23, 2015 12:52 am
by rock5
Regular editors like these only do syntax highlighting. They don't look for syntax errors and show them to you. Usually you can click on the brackets and it will show the matching bracket. If there is no matching bracket then there is a mistake. I've used Intellij Idea on large projects to help me find syntax errors but it's more geared towards projects than editing single files and it takes too long to load so I rarely use it. I looked but never found an editor geared towards editing single files that also did syntax correction.

Re: rock5's "fastLogin Revisited"

Posted: Tue Jun 23, 2015 4:03 pm
by beanybabe
tried that inteliid also, it search/find was very lacking so I avoid using it.

Notepad ++ with the plugin XPatherizerNPP works for finding xml errors.
The compare plugin is handy also, although doing side by side view
is a little hard to use till you figure how to use it views.

I will keep looking for a syntax checker I can use.

Re: rock5's "fastLogin Revisited"

Posted: Wed Jun 24, 2015 6:29 am
by rock5
I found a syntax check addon for my editor SynWrite. I didn't know 1 existed. It has to be triggered though. It doesn't check on the fly.

Re: rock5's "fastLogin Revisited"

Posted: Wed Jul 22, 2015 4:47 am
by beanybabe
I found Luaedit2010
has a syntax check that works good under its debug menu. The only problem is it does not like xml so it only helps with onload section.

I use notepad++ it has a add-on that does xml syntax checking, also can view 2 files side by side and do compares.

Re: rock5's "fastLogin Revisited"

Posted: Fri Sep 18, 2015 4:23 pm
by beanybabe
log next char seems to be having a problem now just started this week i think. I seen it many times today still trying to tell what is triggering it.

it logs out old char and when new one gets logged in before it moves I get

The game client did not crash.
2015-09-18 16:08:12 - C:/micromacro/scripts/rom/classes/memorytable.lua:216: attempt to concatenate a nil value

Re: rock5's "fastLogin Revisited"

Posted: Thu Nov 19, 2015 7:20 pm
by beanybabe
Did server merge affect this add on I notice lots more chars on my list now. Has anyone tried this yet.

Re: rock5's "fastLogin Revisited"

Posted: Fri Nov 20, 2015 5:36 pm
by Kanches
Hello, I am having a problem of it going through an entire account and then not logging on to the next one, saying that it has reached the last player and then it stops.
I will paste a little after the code in question in case it might have something to do with it.

function relog() <!--Put your Character list here see http://www.solarstrike.net/phpBB3/viewt ... =27&t=1245 for more info-->
SetCharList({{
{account=97 , chars= {1,2,3,4,5,6,7,8}},
{account=98 , chars= {1,2,3,4,5,6,7,8}},
}})
LoginNextChar()
yrest(3000)
player:update()
loadProfile()
loadPaths("Daily.xml");
end


So it goes through the account 97 just fine but wont do anything with 98. Even if I start it on account 98 it just does one character and then stops, saying it reached the end.
Please help. :3