Problem with fast Login revisited

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
BlubBlab
Posts: 948
Joined: Fri Nov 30, 2012 11:33 pm
Location: My little Pony cafe

Problem with fast Login revisited

#1 Post by BlubBlab » Sat Aug 17, 2013 1:53 pm

Too make it short, when I do this:

Code: Select all

SetCharList({
{account=1, chars= {2,5}},
{account=2, chars= {3}},
			{account=3, chars= {1}},
		})
		if IsLastChar() ~= true then
			ChangeCharRestart();
			loadProfile()
			loadPaths("VonVaranasTQ") 
		else
			error("Ending script",2);
		end

I got this:

Code: Select all

The game client did not crash.
8:pm - C:\Users\xxxx\Documents\micromacro2\lib\lib.lua:512: stack overflow
I know what a stack overflow is but I don't know how It came to be their are a huge mount of code to go throw. Could anyone help me?
Edit: And yes I use the newest version so far I know(first post in the thread bottom), maybe it is because GF Luncher has a another directory.
Jack-of-all-trades, but master-of-only of a few :D

My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226

User avatar
BlubBlab
Posts: 948
Joined: Fri Nov 30, 2012 11:33 pm
Location: My little Pony cafe

Re: Problem with fast Login revisited

#2 Post by BlubBlab » Sun Aug 18, 2013 10:42 am

Found the problem :oops:
Didn't read it to well, so I wanted something else.
My Solution:

Code: Select all

function ChangeCharRestartNext(client)
	if(client == nil) then
		client = "Client"
	end
	if #charList == 0 then
		error("LoginNextChar(); No character list defined. Use \"SetCharList(_table)\" to define list before using \"LoginNextChar()\"")
	end

	nextChar, nextAcc = GetNextChar()

	if nextAcc == nil then
		if (Quit_Game == "true") then
			-- we will quit game
			print("Last player finished. We will Quit game")
			RoMScript("QuitGame()")
		else			-- Last character
			print("Last player finished.")
			player:logout()
		end
	end
	ChangeCharRestart(nextChar,nextAcc, client);
end
Jack-of-all-trades, but master-of-only of a few :D

My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests