Page 2 of 2

Re: loadpaths

Posted: Fri Feb 21, 2014 1:23 am
by rock5
After you change character, if you want to start with lyliya again then you need to set NextFileToLoad="lyliya" in survivalnext otherwise it will skip it.

Re: loadpaths

Posted: Fri Feb 21, 2014 7:45 am
by Supergala
ok i understand but anyone answer on my precisally question...i try to retry to ask:

do i must change character list in the first section or i must change also the other?

Code: Select all

	CharList = {
					{account=1,chars={1,3}},
					{account=3,chars={1}},
				}
--[[					{account=4,chars={2}},
					{account=5,chars={1}},
					{account=6,chars={1}},
		
		}]]
		-- Character list to use when using the "charlist" option above. Requires my "userfunction_LoginNextChar" userfunction.
		-- Find it here. http://www.solarstrike.net/phpBB3/viewtopic.php?p=10350
		--		eg.
		--		CharList = {
		--			{account=4,chars={}},
		--			{account=8,chars={1}},
		--			{account=7,chars={1,2,5}},
		--		}
	NextFileToLoad = "lyliya" -- File to load after changing character.
	--====================--

	if When_Finished == "relog" then
		sendMacro("}LoginNextToon=true;a={")          
		sendMacro("Logout();");
		waitForLoadingScreen();
		loadProfile()
		loadPaths(NextFileToLoad);                            (---------------------change something here maybe?
	elseif When_Finished == "charlist" then
		SetCharList(CharList)
		LoginNextChar()
		loadProfile()
		loadPaths(NextFileToLoad); 
	elseif When_Finished == "end" then
			error("Ending script",2)
	else
		error("'When_Finished' option is invalid",0)
	end
</onLoad>


and here do i must change anything also "NextFileToLoad = "lyliya" -- File to load after changing charac"? ty

Re: loadpaths

Posted: Fri Feb 21, 2014 7:57 am
by Supergala
with this configuration i have the same error

Re: loadpaths

Posted: Fri Feb 21, 2014 8:04 am
by rock5
Everything between "--[[" and "]]" is a comment and every line that starts with "--" is a comment. So all of this is a comment.

Code: Select all

--[[               {account=4,chars={2}},
               {account=5,chars={1}},
               {account=6,chars={1}},
      
      }]]
      -- Character list to use when using the "charlist" option above. Requires my "userfunction_LoginNextChar" userfunction.
      -- Find it here. http://www.solarstrike.net/phpBB3/viewtopic.php?p=10350
      --      eg.
      --      CharList = {
      --         {account=4,chars={}},
      --         {account=8,chars={1}},
      --         {account=7,chars={1,2,5}},
      --      }
So set your character list in the first part.

Code: Select all

   CharList = {
               {account=1,chars={1,3}},
               {account=3,chars={1}},
            }
The user options are between

Code: Select all

	--=== User Options ===--
and

Code: Select all

	--====================--
Don't edit anything after that.
Supergala wrote:with this configuration i have the same error
You were already told how to fix that.
rock5 wrote:2. Set survival to load survivalnext (by setting When_Finished to "survivalnext").

Re: loadpaths

Posted: Fri Feb 21, 2014 9:53 am
by Supergala
this is survival xml already add survivalnext.xml:

Code: Select all

	if RoMScript("GetNumSpeakOption()") > 0 then -- enter game
			sendMacro("ChoiceOption(1);");
			if not waitForLoadingScreen(30) then
				print("Failed to teleport into Survival")
				logentry = "Failed to teleport into Survival."
				checkRelog()
			end
		else
			print("This character already did Survival.")
			logentry = "Already did Survival."
			checkRelog()
	loadPaths("survivalnext.xml")
		end

survivalnext have 2 section where i must add lyliya one in useroption:

Code: Select all

	--=== User Options ===--
	When_Finished = "charlist"
		-- "end" to end script, "relog" to log next character, "charlist" to log next in 'charlist'.

	CharList = {
					{account=1,chars={1,3}},
					{account=3,chars={1}},
				}
--[[					{account=4,chars={2}},
					{account=5,chars={1}},
					{account=6,chars={1}},
		
		}]]
		-- Character list to use when using the "charlist" option above. Requires my "userfunction_LoginNextChar" userfunction.
		-- Find it here. http://www.solarstrike.net/phpBB3/viewtopic.php?p=10350
		--		eg.
		--		CharList = {
		--			{account=4,chars={}},
		--			{account=8,chars={1}},
		--			{account=7,chars={1,2,5}},
		--		}
	NextFileToLoad = "lyliya" -- File to load after changing character.
	--====================--
and one after:

Code: Select all

if When_Finished == "relog" then
		sendMacro("}LoginNextToon=true;a={")
		sendMacro("Logout();");
		waitForLoadingScreen();
		loadProfile()
		loadPaths(NextFileToLoad);                        (--------------------HEREEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE?
	elseif When_Finished == "charlist" then
		SetCharList(CharList)
		LoginNextChar()
		loadProfile()
		loadPaths(NextFileToLoad);
	elseif When_Finished == "end" then
			error("Ending script",2)
	else
		error("'When_Finished' option is invalid",0)
	end
</onLoad>


is ok or i wrong?

Re: loadpaths

Posted: Fri Feb 21, 2014 6:13 pm
by lisa
rock5 wrote: The user options are between

Code: Select all

--=== User Options ===--
and

Code: Select all

 --====================--
Don't edit anything after that.
I made the imortant part bigger and in bold for you.

Re: loadpaths

Posted: Fri Feb 21, 2014 9:39 pm
by Supergala
ty but still don't work..any character relog

Re: loadpaths

Posted: Fri Feb 21, 2014 10:10 pm
by rock5
We usually try to help users to change their files instead of doing it for them because we want to help the users learn. But in your case I think it's impossible. It's already been 2 pages of posts trying to teach you how to just change some options and you still haven't got it. So here are the files done for you. You just need to check the character list in survivalnext. I used the one you posted previously.

Re: loadpaths

Posted: Sat Feb 22, 2014 8:00 am
by Supergala
thanks rocco but from what I see in your file there are many more differences than those that have been said in post.i'm sorry .
i try it but not work because each time when character start mm search character profile called as the same character name...probably there is a setting must be change for say to mm charge default profile ....healp?

Re: loadpaths

Posted: Sat Feb 22, 2014 9:29 am
by rock5
If you don't want to create a profile for each character then copy the profile default.xml and name it userdefault.xml. If a character doesn't have a profile then it will load userdefault.xml automatically.

Re: loadpaths

Posted: Sat Feb 22, 2014 1:52 pm
by Supergala
i try ty