Author Topic: XIIxOveR's Miner For Dummies 3.0  (Read 246690 times)

0 Members and 2 Guests are viewing this topic.

Offline 4chubber

  • Jr. Member
  • **
  • Posts: 14
  • Activity:
    0%
  • Reputation Power: 1
  • 4chubber has no influence.
  • Respect: +2
  • Referrals: 0
    • View Profile
Re: XIIxOveR's Miner For Dummies 3.0
« Reply #315 on: December 11, 2012, 09:42:07 AM »
0
ok,i know I'm a pain... lol

I run this script on 2 different computers, same files on both, but on the one computer i keep getting a "ghost" image of ore (or a gem) in my pack when he goes to empty. I have to pause the script each time because he tries to empty and gets stuck tying to pick up something that isn't there. I have to re-open his backpack so it goes away. Can someone tell me what (and where) to add so the script open his pack each time before emptying?

Offline 12TimesOverTopic starter

  • Another Day, Another Vendetta
  • Global Moderator
  • *
  • *****
  • Posts: 3694
  • Activity:
    0%
  • Reputation Power: 41
  • 12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.
  • Gender: Male
  • Respect: +321
  • Referrals: 2
    • View Profile
Re: XIIxOveR's Miner For Dummies 3.0
« Reply #316 on: December 11, 2012, 03:26:00 PM »
0
That's odd, it should already be reopening the backpack before dumping the ore. I added that ages ago because of the ghosting issue.

You're on a prod shard?

X
When they come for me I'll be sitting at my desk
     with a gun in my hand wearing a bulletproof vest
My, my, my how the time does fly
     when you know you're gonna die by the end of the night

Offline bodfather

  • Sr. Member
  • *
  • Posts: 380
  • Activity:
    0%
  • Reputation Power: 5
  • bodfather has no influence.
  • Gender: Male
  • Respect: +28
  • Referrals: 0
    • View Profile
Re: XIIxOveR's Miner For Dummies 3.0
« Reply #317 on: December 11, 2012, 03:31:55 PM »
0
  I get it every so often myself.

Prodo shard. Sometimes it even ghosts what previously logged characters gear like robe, apron, shoes.

They screwed something in this patch too. I haven't patched yet but between yours and mw's LJ they go for a drop or two then just stop period. They worked flawless prior.


Offline 4chubber

  • Jr. Member
  • **
  • Posts: 14
  • Activity:
    0%
  • Reputation Power: 1
  • 4chubber has no influence.
  • Respect: +2
  • Referrals: 0
    • View Profile
Re: XIIxOveR's Miner For Dummies 3.0
« Reply #318 on: December 12, 2012, 09:10:26 AM »
0
Yes on production shards. It happens all the time on my one computer (so much so that I dont even run the script on it any more) and it happened for the first time on my other computer last night. I will freely admit that I know next to nothing about scripting, but it seems it happens because the delay between opening the house secure, and opening the backpack is too short, because I almost always see the message "you must wait to perform another action" I think maybe its not actually re-opening the backpack because of it.

Offline 12TimesOverTopic starter

  • Another Day, Another Vendetta
  • Global Moderator
  • *
  • *****
  • Posts: 3694
  • Activity:
    0%
  • Reputation Power: 41
  • 12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.
  • Gender: Male
  • Respect: +321
  • Referrals: 2
    • View Profile
Re: XIIxOveR's Miner For Dummies 3.0
« Reply #319 on: December 12, 2012, 09:46:56 AM »
0
Ahh that would make sense.

Try this, in the dropnstock sub you're going to see the following section:

Code: [Select]
   ;Deal with ghost items in pack by re-opening
   wait %lWait
   event macro 8 7
   gosub XIIxGumpWait container_gump container_gump 230_204

The %lwait is set to 20 (1 second) at the top of the script however it is also used in a few other places. What you could do is simply replace the %lwait with a larger value and test it out again. Start with 60 and if that works simply lower the number until you get to a value just slow enough so that you don't have the issue anymore:

Code: [Select]
   ;Deal with ghost items in pack by re-opening
   wait 60
   event macro 8 7
   gosub XIIxGumpWait container_gump container_gump 230_204

If you change it to 60 and it still has the issue then you know it's not the problem because 3 seconds (60) should be plenty of time for it to try opening the pack after opening the secure.

Let me know how that goes.

X
When they come for me I'll be sitting at my desk
     with a gun in my hand wearing a bulletproof vest
My, my, my how the time does fly
     when you know you're gonna die by the end of the night

Offline KaliOfLS

  • That's "Dr." Kali to you!
  • Sr. Member
  • *
  • Posts: 406
  • Activity:
    0%
  • Reputation Power: 6
  • KaliOfLS has no influence.
  • Gender: Male
  • Respect: +33
  • Referrals: 2
    • View Profile
Re: XIIxOveR's Miner For Dummies 3.0
« Reply #320 on: December 12, 2012, 01:40:58 PM »
0
From my experience, Ghost items usually are result of a timing bug within the script itself.  At some point you tried to move that pile or smelt that pile before you could perform the action.  Generally speak, you should increase the wait times when opening a pack or moving items if you have that problem.

Shaving ms off your script is nice, introducing bugs isn't worth it-  However, since this is a timing problem it could be related to lag, possibly the author has a better connection to his server than the user experiencing the issue.
R~~~~ B~~~~~~~~ 
^ real life signature for sure

Offline SlackBladder

  • Jr. Member
  • **
  • Posts: 33
  • Activity:
    0%
  • Reputation Power: 1
  • SlackBladder has no influence.
  • Respect: +5
  • Referrals: 0
    • View Profile
Re: XIIxOveR's Miner For Dummies 3.0
« Reply #321 on: December 19, 2012, 12:25:27 AM »
0
Hi 12times......Hows things?
Ive not been around much lately but have started to play again over the xmas holidays....
I have used your mining script for ages with great success, but for some reason it is playing silly buggers this time....
Bit of background
I play a freeshard (freedom)
Using Razor to connect
UO patched to 7.0.21.1 (since the .mul file changes i cant run any higher patches because the miner recalls to the mining spots and just sits there)
EUOX up to date (version 236)

So, what is happening is first of all my bag doesnt seem to reopen, it just stays permanently open
Then every few hours or so the script trips up and just sits there
Pressing pause shows that it trips in in the "sub XIIxmovestuff" section
The last 3 lines "namespace clear, namepace pop, return #result"
It will stop randomly on one of those lines

I have noticed that the last piece of ore he mines appears in the pack when he gets to the house, so can presume that i need to change some timings to suit the server i play on?

I have tryed the fix you recommend above and changed to 60, but still doesnt stop this from happening
As you will have guessed i am not a script write, although i can usually fumble around enough to get stuff working....

Any help would be appreciated....

Offline 4chubber

  • Jr. Member
  • **
  • Posts: 14
  • Activity:
    0%
  • Reputation Power: 1
  • 4chubber has no influence.
  • Respect: +2
  • Referrals: 0
    • View Profile
Re: XIIxOveR's Miner For Dummies 3.0
« Reply #322 on: December 20, 2012, 07:22:38 AM »
0
Sorry I wanted to post this sooner but got side tracked. I messed with the delay and it still didn't fix they ghost image problem, but I did find a bandaid workaround for it. I have my miner equipped with a -magery staff (to fight off small spawn). so all I do is each time before I start the script is un-equip and re-equip his staff. Then when it gets to the point in the script where it ghosts the image, it ghosts the staff, and that doesn't affect the script.

Offline gimlet

  • Very Super Secret
  • Global Moderator
  • *
  • *
  • Posts: 6206
  • Activity:
    3%
  • Reputation Power: 71
  • gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!gimlet is awe-inspiring!
  • Gender: Male
  • Respect: +274
  • Referrals: 3
    • View Profile
Re: XIIxOveR's Miner For Dummies 3.0
« Reply #323 on: December 20, 2012, 07:36:10 AM »
0
Sorry I wanted to post this sooner but got side tracked. I messed with the delay and it still didn't fix they ghost image problem, but I did find a bandaid workaround for it. I have my miner equipped with a -magery staff (to fight off small spawn). so all I do is each time before I start the script is un-equip and re-equip his staff. Then when it gets to the point in the script where it ghosts the image, it ghosts the staff, and that doesn't affect the script.

clever very clever

Offline 12TimesOverTopic starter

  • Another Day, Another Vendetta
  • Global Moderator
  • *
  • *****
  • Posts: 3694
  • Activity:
    0%
  • Reputation Power: 41
  • 12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.
  • Gender: Male
  • Respect: +321
  • Referrals: 2
    • View Profile
Re: XIIxOveR's Miner For Dummies 3.0
« Reply #324 on: December 20, 2012, 08:37:19 AM »
0
Very odd. I may have to play a little bit over the next week and see if I can duplicate and resolve the problem again, it sounds like it's changed slightly.

I'll look into it.

X
When they come for me I'll be sitting at my desk
     with a gun in my hand wearing a bulletproof vest
My, my, my how the time does fly
     when you know you're gonna die by the end of the night

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13302
  • Activity:
    0.2%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: XIIxOveR's Miner For Dummies 3.0
« Reply #325 on: December 20, 2012, 08:56:42 AM »
0
Man, I cringe every time I see your avatar!
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline SlackBladder

  • Jr. Member
  • **
  • Posts: 33
  • Activity:
    0%
  • Reputation Power: 1
  • SlackBladder has no influence.
  • Respect: +5
  • Referrals: 0
    • View Profile
Re: XIIxOveR's Miner For Dummies 3.0
« Reply #326 on: December 20, 2012, 09:31:20 AM »
0
Thx 4chubber i am trying that now.....strangely the axe i use lowers my magery too lol.....

Also thanks to 12 times for taking the time to look into the script, much appreciated...

Some of my problem may be the fact i am using an up to date easyuo exe and a UO client from around february of this year.....It does seem that easyuo hangs a bit, so may be some conflict between the 2.....

Offline SlackBladder

  • Jr. Member
  • **
  • Posts: 33
  • Activity:
    0%
  • Reputation Power: 1
  • SlackBladder has no influence.
  • Respect: +5
  • Referrals: 0
    • View Profile
Re: XIIxOveR's Miner For Dummies 3.0
« Reply #327 on: December 22, 2012, 02:12:57 AM »
0
Just a little update and some more info
The equip/unequip worked to stop about 50% of the script stopping

When i press pause now the script has stopped on 2 places in the code indicated below

Code: [Select]
;Drop Items
   Repeat
      finditem %AllMinedTypes C_ , #backpackid
      if #findkind <> -1
         {
         repeat
            if #findtype IN %GemTypes
               set %DropBag %GemBagID
            if #findtype IN %SandTypes
               set %DropBag %OreBagID
            if #findtype IN %CrystalBRTypes
               set %DropBag %GemBagID
            if #findtype IN %GoldTypes
               set %DropBag %SecureID
            if #findtype IN %OreTypes
               set %DropBag %OreBagID
            if #findtype IN %StoneTypes
               set %DropBag %StoneBagID
            if #findtype IN %BlackrockTypes && #findcol <> 0
               set %DropBag %BlkRkBagID
            set %ItemType #findtype      [color=red][b]<--------------------- script sometimes stops here[/b][/color]
            set %ItemCount #findstack
            set %ItemColor #findcol
            gosub XIIxMoveStuff #findid #backpackid %ItemCount %DropBag
         until #RESULT = #TRUE                         [color=red][b]<----------------- script also sometimes stops here[/b][/color]
         gosub ResourceCnt %ItemType %ItemCount %ItemColor
         gosub TM_NGFS_SaveVariables XIIxMining
         finditem %AllMinedTypes C_ , #backpackid
         }
   Until #findkind = -1

Offline twb1990

  • Jr. Member
  • **
  • Posts: 18
  • Activity:
    0%
  • Reputation Power: 0
  • twb1990 has no influence.
  • Respect: +3
  • Referrals: 0
    • View Profile
Re: XIIxOveR's Miner For Dummies 3.0
« Reply #328 on: February 06, 2013, 12:44:57 PM »
0
I am running into issues when the script starts mining. It gets stuck trying to mine locations that "cannot be reached." I am playing on a free shard and connect via razor. any advice? i thought it would black list locations it couldnt mine after seeing it in the logs.

Offline 12TimesOverTopic starter

  • Another Day, Another Vendetta
  • Global Moderator
  • *
  • *****
  • Posts: 3694
  • Activity:
    0%
  • Reputation Power: 41
  • 12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.
  • Gender: Male
  • Respect: +321
  • Referrals: 2
    • View Profile
Re: XIIxOveR's Miner For Dummies 3.0
« Reply #329 on: February 06, 2013, 01:09:14 PM »
0
I am running into issues when the script starts mining. It gets stuck trying to mine locations that "cannot be reached." I am playing on a free shard and connect via razor. any advice? i thought it would black list locations it couldnt mine after seeing it in the logs.

The first time it runs through it attempts all spots in each rune location, it marks the bad spots as bad and the good as good then moves on. The next time through it only mines the good spots.

X
When they come for me I'll be sitting at my desk
     with a gun in my hand wearing a bulletproof vest
My, my, my how the time does fly
     when you know you're gonna die by the end of the night

Tags: