Jump to content


Photo

Targetinfo Lua error


    9 replies to this topic

    #1 miltman

    miltman

      Newbie

    • Members
    • Pip
    • 5 posts

      Posted 05 April 2014 - 04:00 PM

      widows Xp 64 bit

       

      addons

       

      distance

      dynamis helper

      vwhl

       

      plugins

       

      updateresources

      luacore

      attainment

      pettp

      tparty

       

      when loading the game i get this error

       

      Faild to load targetinfo. Lua error (1):C:/Program Files/Widower4//addons/targetinfo/targetinfo.lua:62:ambiguous syntax        (function call x new statement) near '('.

       

      how can i fix this or can you fix it ? plmk

      thank you



      #2 Arcon

      Arcon

        Advanced Member

      • Windower Staff
      • 1189 posts
      • LocationMunich, Germany

      Posted 05 April 2014 - 05:14 PM

      Add a single ; in front of that line, that will fix it. It's fixed on the dev build and should go live soon.



      #3 miltman

      miltman

        Newbie

      • Members
      • Pip
      • 5 posts

        Posted 05 April 2014 - 05:20 PM

        thank you ill do that



        #4 miltman

        miltman

          Newbie

        • Members
        • Pip
        • 5 posts

          Posted 05 April 2014 - 06:25 PM

          `````````````````````````````````````````````````````````````````````
          [ 4.0.4985.17832 ] 2013-10-13 11:33:30.5575000 UTC
          ---------------------------------------------------------------------
          System.ArgumentException: Process with an Id of 4180 is not running.
             at System.Diagnostics.Process.GetProcessById(Int32 processId, String machineName)
             at System.Diagnostics.Process.GetProcessById(Int32 processId)
             at #=qXyyXdoYE_A$PdwbUUZueS2PY0_CZhTycUazZtLKLhCM=.#=qkJSpsmagrZt5tUOzRrGd9g==(String #=qRYfmJu0rmY4o4W8ov0yr_w==, #=q6mWRaLvku35y5PvOPKOdv6ppZu9sYsEhvKf3XWBgyGE= #=qpgAoMQFERzNQ$HO3KQ_Gaw==, Boolean #=qjtPcnt$5NHR9WzzKFus6Xw==, TimeSpan #=qBHeE$utMKw4k7LcdfiOHxA==)
             at #=qXyyXdoYE_A$PdwbUUZueS2PY0_CZhTycUazZtLKLhCM=.#=qZLgLfZqftRIrhVzDeNAGYw==(String #=qRWp8lIKIwJJlrMIUanjh0A==, #=q6mWRaLvku35y5PvOPKOdv6ppZu9sYsEhvKf3XWBgyGE= #=q4dcixIh1T3SXcuZktUbdLQ==, Boolean #=qzGz9_bsLPB6882BeNNVmoQ==)
             at #=qi1ddPsvVTkYYqGBf994ETINNWbh7Axp5NnqItU4M6Bc=.#=qUEFCS09CIYGdhIyUaBe3Fw==()
             at #=q8y6YwFIYKvIrtYd5UqpMBsgohWty99QfpNHKBw3nZeY=.#=qFCz6OKwn21Vw93hYAu2BrA==(#=qNcaKhbEcNi31E17E7Iyc6g== #=qoyvSW2EHSnwBwZeh$kU7wg==)
             at #=qNcaKhbEcNi31E17E7Iyc6g==.#=qObS1VUNc2eAEFpJfVicDzA==()
             at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
             at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
             at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
             at System.Threading.ThreadHelper.ThreadStart()
          `````````````````````````````````````````````````````````````````````
          this is what im geting from the crash report just to let u know



          #5 Arcon

          Arcon

            Advanced Member

          • Windower Staff
          • 1189 posts
          • LocationMunich, Germany

          Posted 05 April 2014 - 08:19 PM

          It's not crashing, and even if it was it wouldn't leave a report. That report is from the Launcher crashing and completely unrelated.



          #6 miltman

          miltman

            Newbie

          • Members
          • Pip
          • 5 posts

            Posted 08 April 2014 - 04:03 AM

            still getting the same error

            sorry to be a pain

            thank



            #7 Arcon

            Arcon

              Advanced Member

            • Windower Staff
            • 1189 posts
            • LocationMunich, Germany

            Posted 08 April 2014 - 05:58 AM

            Can you post your TargetInfo.lua file please? Use pastebin or something.



            #8 miltman

            miltman

              Newbie

            • Members
            • Pip
            • 5 posts

              Posted 10 April 2014 - 01:21 AM

              _addon.name = 'TargetInfo'
              _addon.author = 'Arcon'
              _addon.version = '1.0.0.2'
              _addon.language = 'English'

              require('luau')
              texts = require('texts')

              -- Config

              defaults = {}
              defaults.showhexid = true
              defaults.showfullid = true
              defaults.showspeed = true
              defaults.display = {}
              defaults.display.pos = {}
              defaults.display.pos.x = 0
              defaults.display.pos.y = 0
              defaults.display.bg = {}
              defaults.display.bg.red = 0
              defaults.display.bg.green = 0
              defaults.display.bg.blue = 0
              defaults.display.bg.alpha = 102
              defaults.display.text = {}
              defaults.display.text.font = 'Consolas'
              defaults.display.text.red = 255
              defaults.display.text.green = 255
              defaults.display.text.blue = 255
              defaults.display.text.alpha = 255
              defaults.display.text.size = 12

              settings = config.load(defaults)
              settings:save()

              text_box = texts.new(settings.display, settings)

              -- Events

              windower.register_event('prerender', function()
               local mob = windower.ffxi.get_mob_by_target('t')
               if mob and mob.id > 0 then
                      local info = {}
                      info.hex = mob.id:hex():slice(-3)
                      info.full = tostring(mob.id):lpad(' ', 8)
                      local speed = math.round(100*(mob.movement_speed/4 - 1), 2)
                      info.speed = (
                          speed > 0 and
                              '\\cs(0,255,0)' .. ('+' .. speed):lpad(' ', 4)
                          or speed < 0 and
                              '\\cs(255,0,0)' .. tostring(speed):lpad(' ', 4)
                          or
                              '\\cs(102,102,102)' .. ('+' .. speed):lpad(' ', 5)) .. '%\\cr'
                      text_box:update(info)
                      text_box:show()
               else
                text_box:hide()
               end
              end)

              -- Constructor

              (function (t, settings)
                  local properties = L{}
                  if settings.showfullid then
                      properties:append('ID:  ${full|-}')
                  end
                  if settings.showhexid then
                      properties:append('Hex ID:   ${hex|-}')
                  end
                  if settings.showspeed then
                      properties:append('Speed: ${speed|-}')
                  end
                  text_box:clear()
                  text_box:append(properties:concat('\n'))
              end)(text_box, settings)

              text_box:register_reload_event(initialize)

              --[[
              Copyright © 2013, Windower
              All rights reserved.

              Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

                  * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
                  * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
                  * Neither the name of Windower nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

              THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL Windower BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
              ]]



              #9 Arcon

              Arcon

                Advanced Member

              • Windower Staff
              • 1189 posts
              • LocationMunich, Germany

              Posted 10 April 2014 - 05:01 AM

              Next time please use pastebin for it and don't paste it in the thread.

               

              Anyway, I told you earlier to insert a semicolon ( ; ) before the opening parenthesis at line 62 (at the very beginning of the line), then save it and reload it, that should make it work.


              • IBHalliwell likes this

              #10 IBHalliwell

              IBHalliwell

                Advanced Member

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

              Posted 17 April 2014 - 10:11 AM

              Next time please use pastebin for it and don't paste it in the thread.

               

              Anyway, I told you earlier to insert a semicolon ( ; ) before the opening parenthesis at line 62 (at the very beginning of the line), then save it and reload it, that should make it work.

               

              Just FYI to anyone else having this problem:  The above solution works great for me!  Remember it is a semicolon at line 62.  It should look like this starting at line 60 ....

               

              -- Constructor

              ;(function (t, settings)
                  local properties = L{}
                  if settings.showfullid then

               

              Take care and have fun adventuring! :-)

               

              I.B. Halliwell on Ragnarok






              1 user(s) are reading this topic

              0 members, 1 guests, 0 anonymous users