Jump to content


Photo

BoxDestroyer


    10 replies to this topic

    #1 Tmarlow968

    Tmarlow968

      Member

    • Members
    • PipPip
    • 19 posts

      Posted 21 February 2017 - 10:27 PM

      Sorry to bother you on a minor problem

       

      I am getting a error on box destroyer line 119 says bad argument #1 to format (number expected, got nil)

       

      line 119 looks like this

       

       windower.add_to_chat(207, 'best guess: %d (%d%%)':format(box[id][math.ceil(#box[id] / 2)], 1 / remaining * 100))

       

      please help me to fix this 

       

      thank you Thomas

       

      P.S. here is the entire 

       

      -- display helper function
       
      function display(id, chances)
          if #box[id] == 90 then
              windower.add_to_chat(207, 'possible combinations: 10~99')
          else
              windower.add_to_chat(207, 'possible combinations: ' .. table.concat(box[id], ' '))
          end
          local remaining = math.floor(#box[id] / math.pow(2, (chances - 1)))
          if remaining == 0 then
              remaining = 1
          end
          windower.add_to_chat(207, 'best guess: %d (%d%%)':format(box[id][math.ceil(#box[id] / 2)], 1 / remaining * 100))
      end
       
       
      thank you


      #2 Byrth

      Byrth

        Advanced Member

      • Members
      • PipPipPip
      • 85 posts

        Posted 22 February 2017 - 04:44 PM

        When do you get this error? I suspect that the message IDs are just out of date.



        #3 Tmarlow968

        Tmarlow968

          Member

        • Members
        • PipPip
        • 19 posts

          Posted 22 February 2017 - 07:18 PM

          when i am looking at chest in the game, it does not close in on the combonation, and that error code comes up.

           

          Thomas



          #4 Byrth

          Byrth

            Advanced Member

          • Members
          • PipPipPip
          • 85 posts

            Posted 24 February 2017 - 03:40 AM

            Okay, so when you're dealing with a chest. What zone is it in?



            #5 Tmarlow968

            Tmarlow968

              Member

            • Members
            • PipPip
            • 19 posts

              Posted 24 February 2017 - 09:44 PM

              Uggalepih Temple



              #6 tandc

              tandc

                Newbie

              • Members
              • Pip
              • 1 posts

                Posted 28 February 2017 - 01:25 PM

                I am having the same problem in sky same error everytime i open a box get the message and none of the values are ever right anymore 



                #7 smg123000

                smg123000

                  Newbie

                • Members
                • Pip
                • 1 posts

                  Posted 07 March 2017 - 07:05 AM

                  Similar issue in Ifrit's Couldron, it will only guess 54, ignores some of the hints, or will sometimes reset to 54 as the only option after an attempt. Also not interpreting some of the hints correctly like suggesting numbers in the 70s when the final number was 17. It's not throwing any errors most of the time. I tried reloading it while game was still running and it gave some. I'll see if i can replicate the errors to post here.



                  #8 Tokenr

                  Tokenr

                    Member

                  • Members
                  • PipPip
                  • 10 posts

                    Posted 08 March 2017 - 10:11 AM

                    I agree, BoxDestroyer seems broken with last update. Probably easy to fix if I knew lua & windower :)



                    #9 Tmarlow968

                    Tmarlow968

                      Member

                    • Members
                    • PipPip
                    • 19 posts

                      Posted 11 March 2017 - 01:04 AM

                      thank you for fixing Box-Destroyer :)



                      #10 IBHalliwell

                      IBHalliwell

                        Advanced Member

                      • Members
                      • PipPipPip
                      • 102 posts
                      • LocationBastok (Chicago)

                      Posted 04 April 2017 - 04:37 PM

                      I am having the same problem in sky same error everytime i open a box get the message and none of the values are ever right anymore 

                       

                      Agreed same exact issue ... multiple zones (in fact any I've been in and wanting to open a box).

                       

                      I have NOT tried it since the update on 4/3-4/2017.



                      #11 bohohobo

                      bohohobo

                        Newbie

                      • Members
                      • Pip
                      • 2 posts

                        Posted 23 April 2017 - 11:02 PM

                        I currently have the same problem using Windower 4's stable release.  Do I need to change to the dev branch to get Box Destroyer working again?






                        1 user(s) are reading this topic

                        0 members, 1 guests, 0 anonymous users