Jump to content


Photo

gearswap beginner. won't load the lua


Best Answer Kenshi , 11 June 2014 - 08:02 AM

The lua file should be Name_JOB.lua. The Name being your character's name.

Go to the full post


    5 replies to this topic

    #1 Nanohamaho

    Nanohamaho

      Newbie

    • Members
    • Pip
    • 3 posts

      Posted 11 June 2014 - 06:36 AM

      returning player here, found out people switched from spellcast to gearswap and i wasn't too thrilled but hey.

       

      anyways, i've been trying the most simple things i could even see in the tutorial and i have yet to see any in game responses from my character when casting spells. i've concluded that i am infact an idiot and there's just something i don't get.

       

      function get_sets()
      sets.precast.FC = {head="Walahra Turban", ear1="Loquacious Earring", waist="Swift Belt", feet="Rostrum Pumps"}
      sets.midcast = {main="", body="Goetia Coat +1", waist="Cognition Belt"}
      sets.aftercast = {main="Terra's Staff"}
       
      end
       
      function precast(spell)
      equip(sets.precast.FC)
      end
       
      function midcast(spell)
      equip(sets.midcast)
      end
       
      function aftercast(spell)
      equip(sets.aftercast)
      end
       
      thats what i'm working with, it has barely any gear at all and its old outdated shitty stuff for my 2year old blm that i refuse to play until i get a proper gearswap working. i've been saving it as a .lua file in the windower4/addons/gearswap/data/ folder because the instructions said "lua's go here" so unless that is the problem i have no idea.
       
      appreciate any help at all.


      #2 Arcon

      Arcon

        Advanced Member

      • Windower Staff
      • 1189 posts
      • LocationMunich, Germany

      Posted 11 June 2014 - 06:58 AM

      What did you name the file? That's the right folder to save it in.

       

      However, you're missing a sets.precast = {} at the top of the get_sets function, that would cause an error.



      #3 Nanohamaho

      Nanohamaho

        Newbie

      • Members
      • Pip
      • 3 posts

        Posted 11 June 2014 - 07:17 AM

        the file itself is named myownblm,lua  >.>; changed from things like fuckingtest.lua and goddammit.lua as my frustrationg grew

         

        also just tried adding that, still nothing ><


        Edited by Nanohamaho, 11 June 2014 - 07:21 AM.


        #4 Kenshi

        Kenshi

          Advanced Member

        • Members
        • PipPipPip
        • 334 posts

          Posted 11 June 2014 - 08:02 AM   Best Answer

          The lua file should be Name_JOB.lua. The Name being your character's name.



          #5 Nanohamaho

          Nanohamaho

            Newbie

          • Members
          • Pip
          • 3 posts

            Posted 11 June 2014 - 08:08 AM

            oh lord it had a naming scheme? le sigh.

             

            yep, that did it. thanks a ton, resolved. XD



            #6 Arcon

            Arcon

              Advanced Member

            • Windower Staff
            • 1189 posts
            • LocationMunich, Germany

            Posted 14 June 2014 - 07:28 AM

            How else would it know how to look for the file?

            You can manually load a file by typing:

            //gs load myownblm





            1 user(s) are reading this topic

            0 members, 1 guests, 0 anonymous users