Page 32 of 39

Re: Rock5's Millers Ranch Scripts

Posted: Tue Dec 27, 2011 3:02 pm
by cufRet8e
Hello there,
I have serious problems with running micromacro, since last 2 patches, I believe.
I'am running game client as usual, then run micromacro bot, and after several seconds it's crashes the game. Sometime when attempt to harvest a Ranch Hen, sometimes during harvest Feed Bag.
Can anyone help me with debugging it? What should I do? I have latest version of micromacro and rombot, updated from SVN. And just to mention: I had run micromacro rombot successfull for about 3 weeks, but since last patches from Frogster, game client just crashes when I tried to run Millers Ranch Script.

Code: Select all

Press the (End) key to stop/pause the script. Also, it crashes on my custom Xaviera and Aslan scripts, makes it unusable ;/
You can resume with the (Delete) key.
Attempt to read playerAddress
[DEBUG] playerAddr: 0x496FB900
[DEBUG] player classes: 4/5
[DEBUG] player pet: 0x0
[DEBUG] Player target: 0x0
[DEBUG] player in battle: false
[DEBUG] mousePawn: 0x0
[DEBUG] mousePawn id: -1
[DEBUG] camAddress: 0x11DD800
[DEBUG] Cam X: -723.99, Y: 108.28, Z: -5938.15
[DEBUG] Cam XU: -0.29, YU: 0.95, ZU: 0.10
RoM windows size is 800x600, upper left corner at 1058,47
Loading profile L***.xml
Testing 'ingamefunctions' macro. If it gets stuck here, please update the 'ingam
efunctions' by copying the 'ingamefunctions' folder from 'rom/devtools' to the g
ames 'interface/addons' folder.
MACRO Test: ok
Ranged skill found: MAGE_FLAME
[DEBUG] CPU Frequency 3527.47
Id 527062 not found
Id 538120 not found
Waypoint files from X:/Programs/micromacro/scripts/rom:
*...*
Enter the number of the path you want to use and press Enter > 43
You chose 43
Loaded waypoint path Chickens_MillersRanch.xml
Waypoint #6 is closer then #1. Hence we start with waypoint #6.
No return path with default naming RanczoMillerow/Chickens_MillersRanch_return.x
ml found.
We use the normal waypoint path Chickens_MillersRanch.xml now.
We changed the option 'HARVEST_DISTANCE' from '120' to '150'.
We try to find NPC Sorrun:
We successfully target NPC Matt Sorrun and try to open the dialog window.
Use MACRO: Executing RoMScript "ChoiceOption(3)".
Use MACRO: Executing RoMScript "ChoiceOption(1)".
Player address changed: 0x51A30000
Ranged skill found: MAGE_FLAME
Moving to waypoint #1, (4026, 3400)
Moving to waypoint #2, (4029, 3327)
Moving to waypoint #3, (4016, 3172)
Moving to waypoint #4, (3948, 3107)
We found Kura z Rancza and will harvest it.
Did not find any crashed game clients.
8:0pm - X:/Programs/micromacro/scripts/rom/classes/pawn.lua:220: bad argument #1
 to 'readfunc' ((null))


Please enter the script name to run.
Type in 'exit' (without quotes) to exit.
Script>
Sample output from micromacro here. I tried to delete all addons, switch language to english, everytime same results - client crashes after few minutes.

Re: Rock5's Millers Ranch Scripts

Posted: Tue Dec 27, 2011 9:54 pm
by rock5
When addresses change after a patch, the targeting address and values change too. Sound like an issue there. Is it possible you had a conflict when you updated your bot? Check to see if there are any files with yellow or red icons next to them, if so then right click the "rom" folder and select "TortoiseSVN/Revert".

Re: Rock5's Millers Ranch Scripts

Posted: Tue Dec 27, 2011 10:56 pm
by lisa
rom/functions.lua definately needs to be kept up to date with a green tick, otherwise it will crash everytime you try to click an object.

Re: Rock5's Millers Ranch Scripts

Posted: Tue Dec 27, 2011 11:52 pm
by cufRet8e
Thanks for your reply.
Everything updated and "green". I wiped rombot directory and SVN checkout again, then I copied my profiles and waypoints. Addon ingamefunctions copied again as well.
I manually downloaded newest file from SVN, to be sure that I have proper one.
rom\functions.lua r685 by lconner...@yahoo.com.au on Dec 22 (5 days ago)
Still have game client crashes - not a bot.

Code: Select all

Clearing target.
Moving to waypoint #8, (3928, 3185)
Moving to waypoint #9, (3929, 3261)
We found Ranch Hen and will harvest it.
We found Fresh Egg and will harvest it.
We found Ranch Hen and will harvest it.
Did not find any crashed game clients.
4:48am - ...ograms/micromacro/scripts/rom/classes/objectlist.lua:11: bad argumen
t #1 to 'memoryReadInt' ((null))

Re: Rock5's Millers Ranch Scripts

Posted: Wed Dec 28, 2011 12:14 am
by lisa
What server do you play on?
Does it use the latest client
4.0.6.2483 ?

Also make sure you have the latest WP files and userfunctions.

Re: Rock5's Millers Ranch Scripts

Posted: Wed Dec 28, 2011 12:15 am
by rock5
Lisa you beat me to it. (Is your game version 4.0.6.2483? You can see that in the bottom right corner of the clientupdate window.)

Also try doing it manually for awhile. It may be something has changed in the game that makes it unstable with your system now.

Re: Rock5's Millers Ranch Scripts

Posted: Wed Dec 28, 2011 12:27 am
by cufRet8e
Thanks for your reply again;)
One of EU servers. Of course, game client is 4.0.6.2483.en. Two days ago I downloaded again Slim Game Client (4GB), installed it, tried rombot on it, and no difference.
When bot is not running, I can do Millers manually and no crashes, so I think game client is fine. I carefully checked my system and hardware condition, everything absolutely fine, all my 3D games works fine, RoM itself works fine.
Also make sure you have the latest WP files and userfunctions.
I downloaded latest version of rock5's Millers script from this topic. I deleted all userfunctions, all game addons (except ingamefunctions), because Millers don't need them.

Re: Rock5's Millers Ranch Scripts

Posted: Wed Dec 28, 2011 12:56 am
by rock5
Are you using "millersranchchickens" or "MRC_Optimised"? Because "millersranchchickens" is no longer maintained.

Re: Rock5's Millers Ranch Scripts

Posted: Wed Dec 28, 2011 1:33 am
by cufRet8e
rock5 wrote:Are you using "millersranchchickens" or "MRC_Optimised"? Because "millersranchchickens" is no longer maintained.
Thanks. I will check this tomorrow, as servers are down due to another update;)

Re: Rock5's Millers Ranch Scripts

Posted: Wed Dec 28, 2011 8:17 pm
by cufRet8e
I just wiped my game and installed again, reverted all rombot and micromacro files from SVN, and installed waypoint file MRC_Optimized with default profile. And amazing! It working! Running Millers for 30 minutes now and no crash, neither game or rombot itself. Thank you rock5 for your support :)

Re: Rock5's Millers Ranch Scripts

Posted: Sun Jan 01, 2012 11:42 am
by volkovy
dear masters, i have a question..

is it possible to make the bot do the same: if it gets 10 or X eggs, it goes out to the Logar mailbox, mails them to a specified character, then goes back to the farm, and continues to farm?

yes, im lazy, but its soo long to do it manually with 20+ clients running

with this, that script would be PERFECT

Re: Rock5's Millers Ranch Scripts

Posted: Sun Jan 01, 2012 12:10 pm
by cufRet8e
volkovy wrote:yes, im lazy, but its soo long to do it manually with 20+ clients running
Time spend to manually send eggs and mails you could spend to learn some LUA coding.
Just take some examples from this forum, sample files with sending e-mails and structure of if..then are there as well http://www.solarstrike.net/phpBB3/viewforum.php?f=27

Re: Rock5's Millers Ranch Scripts

Posted: Sun Jan 01, 2012 2:03 pm
by volkovy
ty i'll take a look at it!

Re: Rock5's Millers Ranch Scripts

Posted: Thu Jan 05, 2012 4:34 pm
by cufRet8e
Today:

Code: Select all

Displaying Stats:
Ignore lists:
Ignored hens    Seconds
439b1e00        32
439ba500        15
439bbe00        0
Total stuck hens = 3

All hens are stuck. Waiting for hens Timeout to end before trying again.
100% [************************************************************]
Did not find any crashed game clients.
9:31pm - X:/Programs/micromacro/scripts/rom/classes/pawn.lua:220: bad argument #1 to 'read
func' ((null))
game client crashes. i am using now all files reverted with SVN, with default profile.

Re: Rock5's Millers Ranch Scripts

Posted: Fri Jan 06, 2012 12:51 am
by rock5
How often does it crash? Try running with only one client. See what happens.

Re: Rock5's Millers Ranch Scripts

Posted: Sat Jan 14, 2012 1:42 pm
by m1rco
Hello everybody,

first of all a big RESPECT to Rock5's work. The script works very fine, but since 2 or 3 days i mentioned, that after some time (sometimes 60-80 mins) eggs are subtracted. Do anyone has an idea on how this can happen and what can be wrong?
If it happend today too, i will make and upload a screeny.

best regards

P.S.: Sorry for my bad english :?

Re: Rock5's Millers Ranch Scripts

Posted: Sat Jan 14, 2012 2:12 pm
by bobdole
Hi, I am back for the dead.

This is not longer always working because the seem to get the server selection screen a lot now when they reconnect:

Code: Select all

                       -- Set relog option
                       RoMScript("} fastLoginRelog=true a={")
                       -- Logout
                       RoMScript("Logout()")
                       waitForLoadingScreen()
                       -- Restore relog option
                       RoMScript("} fastLoginRelog=false a={")
                       -- Reload path
                       loadPaths("eggs5")
		end
Any chance you can tell me a solution?

Update: I watched the bot trying to logout and back in and the problem appears its doing RoMScript("} fastLoginRelog=false a={") while in the loading screen which in error clicks the cancel button and loads to the change server option. Whats the best way to resolve this?

Re: Rock5's Millers Ranch Scripts

Posted: Sat Jan 14, 2012 8:28 pm
by lisa
seems your issue is with autologin and not the millers ranch script, make sure you have the latest of all files and it will no doubt work fine.

Re: Rock5's Millers Ranch Scripts

Posted: Sat Jan 14, 2012 10:33 pm
by bobdole
I have that auto login code in my miller script in 2 spots. Is their a better code to use?

Re: Rock5's Millers Ranch Scripts

Posted: Sat Jan 14, 2012 10:43 pm
by rock5
Assuming you have the loginnextchar userfunction, you can try this

Code: Select all

ChangeChar()
waitForLoadingScreen()
loadPaths("eggs5")