Item Search
     
BG-Wiki Search
Page 268 of 302 FirstFirst ... 218 258 266 267 268 269 270 278 ... LastLast
Results 5341 to 5360 of 6036

Thread: Gearswap Help Thread!     submit to reddit submit to twitter

  1. #5341
    Relic Shield
    Join Date
    Jan 2013
    Posts
    1,868
    BG Level
    6

    not to long ago i reposted the assistme addon someone wrote forever ago. its a decent addon, though not perfect. Im sure you can search for it if intrested cause Im not on my FFXI pc to repost it. It makes ur mule fight what you are fighting and makes them follow you afterward. or you can toggle either of those options separately. It also makes pets attack what you are fighting as a separate option. Only problem I find is with autotargetting. when u kill a mob and switch to the next without disengagin, Unless ur mule is facin the right direction and has auto target on too it often wont attack. same with pets.



    And for the zoning out issue where you dont get put into idle, I ran into the same issue myself. But I just started usin autoexec. Upon any zoning i just have it use a update gear command like 10 seconds afterwards (so its loaded hopefully) It works most the time.

  2. #5342
    Bagel
    Join Date
    Dec 2012
    Posts
    1,488
    BG Level
    6

    Quote Originally Posted by Trumpy View Post
    And for the zoning out issue where you dont get put into idle, I ran into the same issue myself. But I just started usin autoexec. Upon any zoning i just have it use a update gear command like 10 seconds afterwards (so its loaded hopefully) It works most the time.
    i never said it could not be fixed he asked me why it happens
    it can also be done in gearswap but its really complex to do and doing things outside of gearswap's basic purview and can cause issues in windower and with the way his is setup

    Example(untested): http://pasted.co/0f58d95f
    --when i post heavy code like this it gets blocked as malicious code
    --this should trigger your gear to change as soon as the item loading is done(thoes 2 circles that are on the top right of your screen every time you zone/login)
    --this would be easier if gearswap allowed us to use equip(set) outside of the functions it called
    --yes it would need to be done this way or else it will trigger every time one of your items data changes for any reason(equipping/use/timer reset/anything can cause this if it involves your items/item bags)
    --there is probably a packet that releases you after a zone change but i dont know what that packet is

  3. #5343
    Relic Shield
    Join Date
    Oct 2007
    Posts
    1,552
    BG Level
    6

    dlsmd, I just tried using your skillup.lua and it works great... for a while, then it just stops. No errors, just stops casting.

    Any ideas?

  4. #5344
    Bagel
    Join Date
    Dec 2012
    Posts
    1,488
    BG Level
    6

    Quote Originally Posted by Fallyn View Post
    dlsmd, I just tried using your skillup.lua and it works great... for a while, then it just stops. No errors, just stops casting.

    Any ideas?
    what spell type are you using
    are you using a custom spell list
    are you using the moded version that out there that does in-combat stuff (aka Range,etc.)
    what are your settings
    what is it doing when it stops

  5. #5345
    Relic Shield
    Join Date
    Oct 2007
    Posts
    1,552
    BG Level
    6

    Quote Originally Posted by dlsmd View Post
    what spell type are you using
    are you using a custom spell list
    what are your settings
    what is it doing when it stops
    Just Pollen, using BLU.

    The only thing I've changed in the .lua is I've added Pollen in-between the brackets:

    Code:
    user_settings = {
        user_spells = {
            Healing = T{},
            Geomancy = T{},
            Enhancing = T{},
            Ninjutsu = T{},
            Singing = T{},
            Blue = T{Pollen},
            Summoning = T{}},
        save_settings = false} --change this to true if you wish to save the last position of your skillup window
    sets.brd = {
        wind_inst = {
            range="Cornette"},--put your wind instrument here
        string_inst = {
            range="Lamia Harp"},}--put your string instrument here
    sets.Idle = {
        right_ear="Liminus Earring",
        head="Tema. Headband",
        body="Temachtiani Shirt",
        hands="Temachtiani Gloves",
        legs="Temachtiani Pants",
        feet="Temachtiani Boots",
        }
    sets.Resting = {
        main="Dark Staff",
        left_ear="Relaxing Earring",
        ammo="Clarus Stone",
        neck="Eidolon pendant",
        right_ear="Boroka Earring",
        }
    Character got to 0mp, rested, stood up once full then continued for about 200mp and then it stopped. Another time he just stopped after 10 or so casts.

  6. #5346
    Bagel
    Join Date
    Dec 2012
    Posts
    1,488
    BG Level
    6

    Quote Originally Posted by Fallyn View Post
    Just Pollen, using BLU.

    The only thing I've changed in the .lua is I've added Pollen in-between the brackets:

    ...

    Character got to 0mp, rested, stood up once full then continued for about 200mp and then it stopped. Another time he just stopped after 10 or so casts.
    1. It should be
    Blue = T{"Pollen"}, or Blue = T{'Pollen'},
    2. You always need to have at lest 2 different spells in the list (especially for Blue Magic)
    --the custom spell set was only put in for thoes who want it and actually makes it slower as higher tear spells give more upgrades but cost more mp

    NOTE:Blue/Summoning Magic has always had an issue that i could never figure out that causes it to stop randomly
    NOTE2: it could be rewitten but im not going to because i only have one job not skilled to max and thats GEO(all skilled with my skill-up tool)

  7. #5347
    Relic Shield
    Join Date
    Oct 2007
    Posts
    1,552
    BG Level
    6

    Ah okay, I'll set another spell and stick the " on it. Thanks a lot for the speedy response, and the .lua in the first place!

  8. #5348
    Bagel
    Join Date
    Dec 2012
    Posts
    1,488
    BG Level
    6

    no problem
    i always try to give fast answers
    and believe it or not the skill-up tool was built so i could learn LUA nothing more

  9. #5349
    HABS SUCK!!!!!
    Sepukku is my Hero
    Therrien's Cum Dumpster

    Join Date
    Mar 2005
    Posts
    37,884
    BG Level
    10
    FFXI Server
    Gilgamesh

    Quote Originally Posted by Roland_J View Post
    Is there a way to make a foolproof /assist system for your alt through gearswap and the send addon? I'm not pleased with the vanilla assist system since it tends to fail if the character already has a target, even if not engaged to said previous target. <bt> also tends to fail either due to the char facing away from the mob or for w/e random reasons. I'd like to make an assist that takes the player.target.ID, or whatever is most fitting, and tells the alt char to target that target ID.
    I find that <bt> fails only under the following situation:
    Kill MobA, eEngage another mob (via autotarget or whatever) with MobA's corpse still around, <bt> will be MobA until that corpse despawns.

    I've never had a problem of not facing the mob or whatever

  10. #5350
    Smells like Onions
    Join Date
    Sep 2016
    Posts
    4
    BG Level
    0

    Lua Tables

    Maybe this has already been answered, but the search function doesn't handle curly braces very well....

    In some gearswaps I see: var = n{}

    like this from the pup lua:
    Code:
        -- Subset of modes that use magic
        magicPetModes = S{'Nuke','Heal','Magic'}
        
        -- Var to track the current pet mode.
        state.PetMode = M{['description']='Pet Mode', 'None', 'Melee', 'Ranged', 'Tank', 'Magic', 'Heal', 'Nuke'}
    end

    What the heck does the "S" and "M" do in front of the curly braces? I can't find anything on that online....

  11. #5351
    Puppetmaster
    Join Date
    Jan 2014
    Posts
    51
    BG Level
    2
    FFXI Server
    Bahamut

    I am looking for some aid with making something sort of like aecho, but for holy waters/remedies (doom/para being my biggest issues).

    I've tried several different ways but it keeps erroring or not working.

    If anything like this exists, please point me in the right direction. Thank you in advance ^^

  12. #5352
    Relic Shield
    Join Date
    Jan 2013
    Posts
    1,868
    BG Level
    6

    Yea Dlsmd I was only offering how I achieved fixing the not going into idle after zoning thing. Not sayin it was unfixable or anything.

    my problem with <bt> is for somereason if i have a player targetted it will apparently try to cast whatever spell on them. It says cant act on this target if its like a nuke or enfeeble. Im not sure why this happens because anytime in the past i have had a mob claimed bt targets them regardless of what you have targetted and what spell/JA it was. In the past the only reasons why i stopped usin bt was because if you had two mobs claimed it often randomly picked one (which always seemed to be the wrong one) Im not sure if its because I now use spellcast/shortcuts when before I was on a consoles with no windower.

  13. #5353
    trv
    trv is offline
    Melee Summoner
    Join Date
    Oct 2014
    Posts
    48
    BG Level
    1

    Quote Originally Posted by zoezooms View Post
    Maybe this has already been answered, but the search function doesn't handle curly braces very well....

    In some gearswaps I see: var = n{}

    like this from the pup lua:
    Code:
        -- Subset of modes that use magic
        magicPetModes = S{'Nuke','Heal','Magic'}
        
        -- Var to track the current pet mode.
        state.PetMode = M{['description']='Pet Mode', 'None', 'Melee', 'Ranged', 'Tank', 'Magic', 'Heal', 'Nuke'}
    end

    What the heck does the "S" and "M" do in front of the curly braces? I can't find anything on that online....
    The "S", "M", "L", "T" (etc?) are functions. In Lua, you do not need to use parentheses to pass single arguments to a function if the argument is a string literal or a table constructor. In all of the cases I listed, the functions take a table as a parameter, occasionally modify that table, and always assign a metatable to it.
    For example, the S function, defined in the Sets library, takes a table (say {1,2,3,4}) and uses it to construct a second table with the form {1=true, 2=true, 3=true, 4=true}. It assigns the sets metatable to the second table (which allows you to call the methods defined in the Sets library -- contains, etc.) and returns it.

    It's usually referred to as "casting". S "casts" a table as a set, L "casts" a table as a list, etc.

    For reference: S - sets (set operations!), L - lists (arrays -- numerical indices only, & length is stored in the table so that it doesn't need to be calculated all the time), T - tables (adds useful methods to the generic Lua table), M - Modes (used in Motenten's gearswap files).

  14. #5354
    Smells like Onions
    Join Date
    Sep 2016
    Posts
    4
    BG Level
    0

    @trv

    Thanks for the explanation, that makes sense.

    Lua has such strange syntax to me, I never would have figured that that was a function with a parameter.

    So, are the () not required? or are they not syntactically correct?

    Would coding style convention tell me to leave them out, or can (should?) they be added to make the code more understandable?

  15. #5355
    Bagel
    Join Date
    Dec 2012
    Posts
    1,488
    BG Level
    6

    Quote Originally Posted by zoezooms View Post
    So, are the () not required? or are they not syntactically correct?

    Would coding style convention tell me to leave them out, or can (should?) they be added to make the code more understandable?
    --this is how i look at this--
    he only talking about Casting(aka "S", "M", "L", "T") not normal functions

    Casting's are special functions for tables you must use like this
    a = T{}
    or
    a = T({})--if i recall correctly
    but why use () if there is no need to, you're just making your file size bigger

    how ever to use normal functions thay do require you to use ()
    --these are the same thing(its a style choice)
    function test()
    or
    test = function()

    when you need to use a function
    a = test()--copy's the return of the test function to a
    a = test--copy's the test function to a
    if test() then--uses the return of function test to say the if is true/false
    if test then--if the test function exists this if will be true otherwise its false

  16. #5356
    trv
    trv is offline
    Melee Summoner
    Join Date
    Oct 2014
    Posts
    48
    BG Level
    1

    The parentheses are not required if the function receives only one argument and the argument is a string literal or table constructor. It's up to you if you want to include them in those cases.

    I like
    Code:
    print 'lalala' require 'library' S{}
    more than
    Code:
    print('lalala') require('library') S({})
    To emphasize, it's only a syntax shortcut and it only works in those two cases.
    Code:
    a_string = 'lalala'
    print a_string -- Nope, won't work
    a_table = {}
    T a_table -- Nooooope.

  17. #5357
    Bagel
    Join Date
    Dec 2012
    Posts
    1,488
    BG Level
    6

    i prefer print("test") because it shows the end of the print sequence the same goes for all functions except table Casting

  18. #5358
    Smells like Onions
    Join Date
    Sep 2016
    Posts
    4
    BG Level
    0

    Quote Originally Posted by dlsmd View Post
    but why use () if there is no need to, you're just making your file size bigger
    Because it's more readable... who cares about a few extra bytes on a modern system?

    That being said;it sounds like the consensus for table casting is to NOT use (), so I will not use them.

    Thanks for all the replies!

  19. #5359
    Bagel
    Join Date
    Dec 2012
    Posts
    1,488
    BG Level
    6

    Quote Originally Posted by zoezooms View Post
    who cares about a few extra bytes on a modern system?
    that's actually where you are wrong

    let me explain
    in win7 the cluster size is 4KB for hard drives up to 16TB it gets worse if you have a hard larger that that (a 256TB hard drive has cluster sizes of 64 KB)
    if you create a file that's 4.0009765625KB you must use a second cluster for that 0.0009765625KB (0.0009765625 is the size of 1 bit/the 1 or 0 used in machine language)
    and if you have 100 files that are 4.0009765625KB is size you lose 399.90234375KB of space on your hard drive

    here is an example my include's main file is 11.9KB (12,230 bytes) in size how ever it uses 12.0KB (12,288) of hard drive space if i increased it size by 59 bytes it would use over 16KB (16,384 bytes) of hard drive space
    you might think that 4KB (4,096 bytes) is nothing but it will add up the more files that are even 1 byte over the 4KB cluster size especially with modern computer systems that have millions or billions of files
    if even 1% of 1 million files(10,000 files) exceed the 4KB cluster size by 1 byte you will lose 39GB of hard drive space
    dont get me wrong this is unlikely to happen but that's because program writers strive to keep there files in that 4KB barrier(most of them anyway)

    and every () would add 2 bytes to my file size and with over 20 tables that use S,T,L that is over 40 bytes right there

  20. #5360
    Relic Shield
    Join Date
    Jan 2013
    Posts
    1,868
    BG Level
    6

    I am workin on a SCH file. Is there a way to make it so when you try to cast ERASE, if you aren't /whm or dont have addenum white up to have it automatically use addenum white and then cast erase? Everything I tried just tells me i cant cast Erase (being i need to be sch/whm or have addenum white up to cast it)

    I had a second question but completely forgottered what it was the moment i began writing.

    Also this isnt a Mote file or anything a completely from scratch one.

Page 268 of 302 FirstFirst ... 218 258 266 267 268 269 270 278 ... LastLast

Similar Threads

  1. Replies: 6547
    Last Post: 2014-07-08, 22:45