Jump to content


Photo

Simple assist addon (crash on load)


    3 replies to this topic

    #1 arshesney

    arshesney

      Newbie

    • Members
    • Pip
    • 2 posts

      Posted 04 February 2014 - 12:10 PM

      Hello everyone, I recently came back to FFXI and started playing with the new lua api, mainly gearswap so far.

       

      I'm trying something a bit more spicy, a simple addon with 3 features:

       

      - if main job is BST, SMN or PUP have correct attack command issued to pet when engaging a mob

      - when dualboxing, send assist and attack commands to the other character on engage

      - again when dualboxing, send follow command when combat is over

       

      I came up with this code, using autocontrol as guideline: http://pastebin.com/eGMUM6mL

      but it crashes game when trying to load it, I was hoping that more experienced eyes could spot what I'm doing wrong.

       

      For reference I created assistme and assistme\data directories under addons, windower and ffxi are installed on secondary HDD outside any system path.

       

      Thanks for the help in advance.



      #2 Arcon

      Arcon

        Advanced Member

      • Windower Staff
      • 1189 posts
      • LocationMunich, Germany

      Posted 04 February 2014 - 12:33 PM

      This line:

      _addon.commands = ('assistme')

      should read:

      _addon.commands = {'assistme'}

      or:

      _addon.command = 'assistme'

       

      {} is to declare a table, while () effectively does nothing (it just groups things together).

       

      If you wanna troubleshoot I recommend you join our IRC channel, crashes are much easier to discuss on there. There are a few other things in there that aren't right, but it's kinda bothersome to discuss it on here, so you'd be much better off getting advice on IRC .



      #3 arshesney

      arshesney

        Newbie

      • Members
      • Pip
      • 2 posts

        Posted 05 February 2014 - 12:33 AM

        Thank you!

        That was causing the crash, code still needed quite a bit of hammering, but is working now.

        Killing trash in ceizak is much more relaxing now



        #4 Schliematt

        Schliematt

          Member

        • Members
        • PipPip
        • 18 posts

          Posted 06 July 2014 - 08:33 PM

          Arshesney, did you do more work on this addon, does it work well, I am interested in the dual boxing part of this addon.






          1 user(s) are reading this topic

          0 members, 1 guests, 0 anonymous users