Page 2 of 2

Re: Another problem with LoginNextChar

Posted: Wed Jan 21, 2015 7:55 am
by NonAnon
Still not working, but i have printout for you.

Code: Select all

Changing to character 2 account 2.
Doing player update in waitForLoadingScreen
Player address changed: 0x2659EB00
Ranged skill found: DRUID_EARTH_ARROW
Doing updateNature
Doing getBuff
Doing updatebuffs
Doing GetIdName in updateBuffs
Doing GetIdName 620454
Ending GetIdName
Doing GetIdName in updateBuffs
Doing GetIdName 620455
Ending GetIdName
Doing GetIdName in updateBuffs
Doing GetIdName 622704
Ending GetIdName
Ending updatebuffs
Doing GetIdName in getbuff
Doing GetIdName 503827
Slashcommand2   1       2       1       2
Paused. (Delete) to continue, (CTRL+L) exit to shell, (CTRL+C) quit
Resumed.
Ending GetIdName
Ending getBuff
Ending player:updateNature
Finished player update  1       2
loadPaths

Re: Another problem with LoginNextChar

Posted: Wed Jan 21, 2015 9:58 am
by rock5
I was really hoping in this line the numbers wouldn't match. It would give me something to look for.

Code: Select all

Slashcommand2   1       2       1       2
But 1,2 matches 1,2.

I noticed though that there is a loop immediately after this that it could get stuck in. Basically it's waiting for a value to change in memory. If it never changes because the command didn't work then it would wait forever. I'll try adding a time out and maybe have it try the command again. Hopefully these files will actually fix the problem. I still included some print messages to see if what I think is correct. In case you miss the messages I'm having it write to a log file too.
memorytable.lua
(8.32 KiB) Downloaded 129 times
functions.lua
(89.95 KiB) Downloaded 114 times
You can revert player.lua and pawn.lua.

If it gets stuck again. Show me what it prints. If it works then after you have run a few characters send me the log file in rom/logs called bool.log.

Re: Another problem with LoginNextChar

Posted: Wed Jan 21, 2015 12:43 pm
by NonAnon
IT'S ALIVE! Ekhm. Wrong speech.
It's Working.

Code: Select all


Bot started...
Slashcommand2	503827	1	2	1	2	
mismatched macros. Trying to run setupMacros()	
Slashcommand2	503827	1	2	1	2	
Slashcommand2	503827	1	2	1	2	
mismatched macros. Trying to run setupMacros()	
Slashcommand2	503827	1	2	1	2	
Slashcommand2	503827	1	2	1	2	
mismatched macros. Trying to run setupMacros()	
Slashcommand2	503827	1	2	1	2	
Slashcommand2	503827	1	2	1	2	
mismatched macros. Trying to run setupMacros()	
Slashcommand2	503827	1	2	1	2	
Slashcommand2	503827	1	2	1	2	
mismatched macros. Trying to run setupMacros()	
Slashcommand2	503827	1	2	1	2	
Slashcommand2	503827	1	2	1	2	
mismatched macros. Trying to run setupMacros()	
Slashcommand2	503827	1	2	1	2	
Slashcommand2	503827	1	2	1	2	
mismatched macros. Trying to run setupMacros()	
Slashcommand2	503827	1	2	1	2	
Slashcommand2	503827	1	2	1	2	
mismatched macros. Trying to run setupMacros()	
Slashcommand2	503827	1	2	1	2	
Slashcommand2	503827	1	2	1	2	
mismatched macros. Trying to run setupMacros()	
Slashcommand2	503827	1	2	1	2	
Slashcommand2	503827	1	2	1	2	
mismatched macros. Trying to run setupMacros()	
Slashcommand2	503827	1	2	1	2	
Slashcommand2	503827	1	2	1	2	
mismatched macros. Trying to run setupMacros()	
Slashcommand2	503827	1	2	1	2	
Slashcommand2	503827	1	2	1	2	
mismatched macros. Trying to run setupMacros()	
Slashcommand2	503827	1	2	1	2	
Slashcommand2	503827	1	2	1	2	
mismatched macros. Trying to run setupMacros()	
Slashcommand2	503827	1	2	1	2	
I was very smooth run!

Re: Another problem with LoginNextChar

Posted: Wed Jan 21, 2015 8:10 pm
by rock5
Good. I'll work on releasing an update to the bot. When I do, you might get conflict when you try to do an svn update. Just click ok when you get the conflict then do a revert on the whole rom folder. Or revert the files before doing the update.

And thanks for your help in solving this. This will be helpful to other users.

Re: Another problem with LoginNextChar

Posted: Thu Jan 22, 2015 2:49 am
by NonAnon
No problem, It can help me too in the future. : )
Thanks one more time.

Re: Another problem with LoginNextChar

Posted: Tue Jan 27, 2015 10:10 am
by rock5
NonAnon, I see you are still visiting the forum. I'm not really happy with the solution. Could you try some other fixes?

I noticed that waitForLoadingScreen doesn't check IsInGame. This is because on my system IsInGame is already true by the time the loading screen has gone so there is no point. But maybe on servers like you play with this bug IsInGame becomes true a little later. This would be great if true.
functions.lua
IsInGame fix
(89.81 KiB) Downloaded 131 times
If that doesn't work then the only other idea I can think of is to try a RoMScript and see if it works. Of course you can't do this all the time but it could be added to waitForLoadingScreen just to be sure it's fully in the game.
functions.lua
RoMScript wait fix
(89.76 KiB) Downloaded 135 times
Please test with memorytable.lua restored to default.

Re: Another problem with LoginNextChar

Posted: Sat Mar 07, 2015 6:32 am
by NonAnon
Well with 1th:

Code: Select all

Changing to character 2 account 2.
IsInGame is true so it doesn't look like this will fix it.
Player address changed: 0x2634D700
Ranged skill found: DRUID_EARTH_ARROW
Paused. (Delete) to continue, (CTRL+L) exit to shell, (CTRL+C) quit
Resumed.
loadPaths
Still need to pause.
But for a second function.lua it seem to be working, but i still not sure, when i'll go through all alts on 2 accs i'll get you know.

Code: Select all

Changing to character 3 account 2.
RoMScript is working this time
Player address changed: 0x3C6FFA00
Ranged skill found: DRUID_EARTH_ARROW
loadPaths
But I'm really hopeful.

Re: Another problem with LoginNextChar

Posted: Sat Mar 07, 2015 6:49 am
by rock5
Looks like I went with the RoMScript fix anyway in rev 780. So if the second is working then you should be able to just update the bot to 780 and it will also work.