Page 1 of 1

stability problems using fastLogin

Posted: Fri Mar 22, 2013 1:02 pm
by C3PO
Hello,

I'm using since 2 weeks the fastLogin functionality and nearly every time I need to do something because it hangs up. The error messages are:

1) within a WP File

Code: Select all

3:24pm - D:/MicroMacro/scripts/rom/functions.lua:2227: bad argument #1 to 'origi
nalkeyboardHold' (number expected, got nil)
or within a command in the commandline

Code: Select all

onLoad error: D:/MicroMacro/scripts/rom/functions.lua:2227: bad argument #1 to '
originalkeyboardHold' (number expected, got nil)
2) or

Code: Select all

Keine Fernkampf Fähigkeit im Profil angegeben. Option COMBAT_RANGED_PULL wurde a
usgeschaltet.
onLoad error: undefined player.Class1 in settings.lua
3) or it "forgets" the server (within one account)
4) or it writes that it didn't find the macro on place 1
5) after changing the char the bot is not fighting against the mobs in the changeOptionFriendMob("mob", mob, "Add"). but the char is running and fighting back if necessary.

could someone tell me what to do to get it working more reliable?

the code for the command is

Code: Select all

function all_Users()
	
	AccountNumber = RoMScript("LogID")									
	CharacterNumber = RoMScript("CHARACTER_SELECT.selectedIndex")
		
	while not (AccountNumber == 55 and CharacterNumber ==8)
	do
		SetCharList({
					{account=1 , chars= {1,2,3,4,5,6,7,8}},
					--...
					{account=55 , chars= {1,2,3,4,5,6,7,8}},
					})
		
		
		
		
		logInfo("test","running with " .. player.Name .. "/" .. RoMScript("GetAccountName()") .. "(" .. CharacterNumber .. "/" .. RoMScript("LogID") .. ") ",true)
		player:rest(0.05*60)												-- 30sec pause
		
		LoginNextChar()
		player = CPlayer.new();
		settings.load();
		settings.loadProfile(convertProfileName("MyDef"))
		
		AccountNumber = RoMScript("LogID")									--AccountName = RoMScript("GetAccountName()")
		CharacterNumber = RoMScript("CHARACTER_SELECT.selectedIndex")
	end
	logInfo("test","running with " .. player.Name .. "/" .. RoMScript("GetAccountName()") .. "(" .. CharacterNumber .. "/" .. RoMScript("LogID") .. ") ",true)
	player:rest(0.05*60)												-- 30sec pause
end

Re: stability problems using fastLogin

Posted: Sat Mar 23, 2013 12:56 am
by rock5
Maybe you have a corrupt bot installation. Try doing a svn revert.

Re: stability problems using fastLogin

Posted: Sat Mar 23, 2013 4:37 pm
by C3PO
Hi Rock,

I tested it but it's still the same. About 20 from 160 times (maybe more often) I get one of the error above.

Re: stability problems using fastLogin

Posted: Sat Mar 23, 2013 7:12 pm
by lisa
When I change characters a lot in a short period of time I get the choose server window popup but it keeps logging in anyway, if I am only logging occasional it is fine.

Re: stability problems using fastLogin

Posted: Thu Mar 28, 2013 3:39 pm
by C3PO
What time span would you suggest Lisa?

Re: stability problems using fastLogin

Posted: Thu Mar 28, 2013 6:05 pm
by lisa
If I am running a WP that literally logs in and then logs next char it gets the choose server window, when I run a WP that takes more than 2 minutes it seems fine. It may be different for others.