+ Reply to Thread
Results 1 to 3 of 3

Thread: Just a small bug, or two.

  1. #1
    Join Date
    Dec 2011
    Posts
    47
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Just a small bug, or two.

    • Script - MSI Clay Softener & Container Fillers (Color)
    • Error - The script isn't able to find and/or withdraw jugs from the bank
    • Debug
      Code:
      [ * ] ------ MSI_OpenBank: True (BANK_VE/EV)
      [ * ] ------ MSI_Deposit
      [ * ] -------- Deposited all items in the inventory
      [ * ] ------ MSI_Deposit: True
      [ * ] ---- MSI_BankStandard: True
      [ * ] ------ Loaded material: Jug
      [ * ] ---- MSI_Withdraw
      [ * ] ------ Failed to find item in bank: Jug
      [ * ] ------ Didn't find item (Jug) in inventory
      [ * ] ---- MSI_Withdraw: False (Jug)
      [ * ] ------ MSI_SetupCooking: Failed 1 times
      [ * ] ------ Loaded material: Jug
      [ * ] ---- MSI_BankStandard
      [ * ] ------ MSI_OpenBank
      [ * ] ------ MSI_OpenBank: True (BANK_VE/EV)
      [ * ] ------ MSI_Deposit
      [ * ] -------- Deposited all items in the inventory
      [ * ] ------ MSI_Deposit: True
      [ * ] ---- MSI_BankStandard: True
      [ * ] ------ Loaded material: Jug
      [ * ] ---- MSI_Withdraw
      [ * ] ------ Failed to find item in bank: Jug
      [ * ] ------ Didn't find item (Jug) in inventory
      [ * ] ---- MSI_Withdraw: False (Jug)
      [ * ] ------ MSI_SetupCooking: Failed 2 times
      [ * ] ------ Loaded material: Jug
      [ * ] ---- MSI_BankStandard
      [ * ] ------ MSI_OpenBank
      [ * ] ------ MSI_OpenBank: True (BANK_VE/EV)
      [ * ] ------ MSI_Deposit
      [ * ] -------- Deposited all items in the inventory
      [ * ] ------ MSI_Deposit: True
      [ * ] ---- MSI_BankStandard: True
      [ * ] ------ Loaded material: Jug
      [ * ] ---- MSI_Withdraw
      [ * ] ------ Failed to find item in bank: Jug
      [ * ] ------ Didn't find item (Jug) in inventory
      [ * ] ---- MSI_Withdraw: False (Jug)
      [ * ] ------ MSI_SetupCooking: Failed 3 times
      [ * ] -- MSI_SetupPlayer: False
      [ * ] -- MSI_UnsetPlayer
      [ * ] ---- Failed to setup player
    • Variations
      I tried to solve this myself, it didn't exactly work. I thought it was a problem with the DTM and that it was using a point that might be covered up by the yellow number, so I changed the code around a bit.
      I changed the DTM from
      Code:
          JUG_EMPTY, JUG_WATER:
            Result := [
                        Point(886, 273),
                        Point(898, 280),
                        Point(884, 294),
                        Point(874, 286),
                        Point(883, 267)
                      ];
      ...
      ...
      ...
          JUG_EMPTY   : Result := 6710891;
          JUG_WATER   : Result := 12085350;
      to
      Code:
          JUG_EMPTY, JUG_WATER:
            Result := [
                        Point(18, 11),
                        Point(11, 11),
                        Point(22, 11),
                        Point(17, 3),
                        Point(15, 31)
                      ];
      ...
      ...
      ...
          JUG_EMPTY   : Result := 6579305;
          JUG_WATER   : Result := 11494499;
      I used a point where the image would show up as blue when the jug was filled and it would be blank when it was empty.

      I thought I messed up something really severe when I saw in the debug that it did find the jug in the bank but couldn't remove it.

      Code:
      [ * ] ---- MSI_Withdraw
      [ * ] ------ Found item in bank: Jug
      [ * ] -------- Length(p) = 1
      [ * ] -------- p := [(144, 101)]
      [ * ] ------ Uptext: hp^pp^pd ----\\{Hp&=a|bp}\^----$p|| qp|d $0 ^|&a p
      [ * ] ------ Didn't find item (Jug) in inventory
      [ * ] ---- MSI_Withdraw: False (Jug)
      [ * ] ------ MSI_SetupCooking: Failed 1 times
      [ * ] ------ Loaded material: Jug
      [ * ] ---- MSI_BankStandard
      [ * ] ------ MSI_OpenBank
      [ * ] ------ MSI_OpenBank: True (BANK_VE/EV)
      [ * ] ------ MSI_Deposit
      [ * ] -------- Deposited all items in the inventory
      [ * ] ------ MSI_Deposit: True
      [ * ] ---- MSI_BankStandard: True
      [ * ] ------ Loaded material: Jug
      [ * ] ---- MSI_Withdraw
      [ * ] ------ Found item in bank: Jug
      [ * ] -------- Length(p) = 1
      [ * ] -------- p := [(144, 101)]
      [ * ] ------ Uptext: hp^pp^pd -k--\\{Hp&=a|bp}\\----$p|| qp|d $0 ^|&a p
      [ * ] ------ Didn't find item (Jug) in inventory
      [ * ] ---- MSI_Withdraw: False (Jug)
      [ * ] ------ MSI_SetupCooking: Failed 2 times
      [ * ] ------ Loaded material: Jug
      [ * ] ---- MSI_BankStandard
      [ * ] ------ MSI_OpenBank
      [ * ] ------ MSI_OpenBank: True (BANK_VE/EV)
      [ * ] ------ MSI_Deposit
      [ * ] -------- Deposited all items in the inventory
      [ * ] ------ MSI_Deposit: True
      [ * ] ---- MSI_BankStandard: True
      [ * ] ------ Loaded material: Jug
      [ * ] ---- MSI_Withdraw
      [ * ] ------ Found item in bank: Jug
      [ * ] -------- Length(p) = 1
      [ * ] -------- p := [(144, 101)]
      [ * ] ------ Uptext: Withdraw-1 pd^P.^dre-^^^p^=a|bp}\\----$p|| qp|d $0 ^|&a p
      [ * ] ------ Didn't find item (Jug) in inventory
      [ * ] ---- MSI_Withdraw: False (Jug)
      [ * ] ------ MSI_SetupCooking: Failed 3 times
      [ * ] -- MSI_SetupPlayer: False
      [ * ] -- MSI_UnsetPlayer
      [ * ] ---- Failed to setup player
      [ * ] ------ All players inactive
      Lol. but someone just happened to be advertising a gold buying site and his words appeared at the top row and it was detected as uptext.

      So I ran it again and it worked! Or so I thought... After logging in, it successfully found and withdrew 28 jugs from the bank and went to the fountain to fill them. BUT, when it went back to the bank to go fill another load of jugs, it wasn't able to find them. So, I'm stumped, any ideas?

      *The debug for the third trial was the same as the first debug, just stated that it wasn't able to find jug in the bank.

  2. #2
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Thanks for the report, I'll get on this when I return from the Holidays.
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  3. #3
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    I know this is old, but I just now have time to go through all of the bugs. Marking this one as resolved, seems to be running fine.

    Progress Report:
    {----------------------------------------------------------------}
    {                    MSI Phoenix Short Report                    }
    {----------------------------------------------------------------}
    {     Time Running: 7 Minutes and 28 Seconds                     }
    {----------------------------------------------------------------}
    {                                                                }
    {        Totals:                                                 }
    {         - Players:           2                                 }
    {         - Player Time:       02m 49s                           }
    {         - Loads:             4                                 }
    {         - Containers Filled: 100                               }
    {                                                                }
    {----------------------------------------------------------------}
    {----------------------------------------------------------------}
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may post attachments
  • You may edit your posts
  •