Item Search
     
BG-Wiki Search
Page 279 of 307 FirstFirst ... 229 269 277 278 279 280 281 289 ... LastLast
Results 5561 to 5580 of 6124
  1. #5561
    Campaign
    Join Date
    Jul 2007
    Posts
    6,633
    BG Level
    8

    Tbf I'm leaning to thing it has "something" to do with Windows10 latest patch and Xbox One wireless pad problems.
    I've been using Xbox360 pad lately and ever since no problem came up.
    Coincidence? Too small of a sample?
    Time will tell, but so far so good.

  2. #5562
    Puppetmaster
    Join Date
    Sep 2015
    Posts
    73
    BG Level
    2

    Quote Originally Posted by Byrthnoth View Post
    Battlemod wouldn't affect the code I posted, but it would affect exact matching implementations like what you originally tried to do. Just use my code.
    Thanks again for the reply! Hmm. What is an "exact matching implementation"? I just don't understand, is all. Does it refer to the (.*) in my original code? I've ran a few tests with the code below so far and I might be using it wrong because I can't get it to work with battlemod in the tests I've done. Here is what I am currently testing.
    Code:
    test_command = "defeats the"
    windower.raw_register_event('incoming text',function(col,org,mod)
        if string.find(org,test_command) then
    		windower.send_command('input /echo The test worked!')
        end
    end)
    So I run around and defeat mobs, waiting to see the echo command; I specifically chose to use the defeat text line as a trigger because it is one of the text strings that battlemod does interact with and change. With battlemod loaded I see nothing and with battlemod unloaded I get the echo. Do I need to change what I have in the test_command in order for it to work with battlemod loaded?

  3. #5563
    BG Content
    Join Date
    Jul 2007
    Posts
    22,366
    BG Level
    10
    FFXI Server
    Lakshmi
    Blog Entries
    1

    Battlemod removes the "the" from "defeats the" so your code wouldn't work.

    Your example code was using chat lines (testing) to trigger an action, which my code would work for because Battlemod doesn't touch chat lines. If you wanted to bot with it (as you seem to), you'd have to get more creative.

  4. #5564
    Puppetmaster
    Join Date
    Sep 2015
    Posts
    73
    BG Level
    2

    Quote Originally Posted by Byrthnoth View Post
    Battlemod removes the "the" from "defeats the" so your code wouldn't work.

    Your example code was using chat lines (testing) to trigger an action, which my code would work for because Battlemod doesn't touch chat lines. If you wanted to bot with it (as you seem to), you'd have to get more creative.
    What I want is to get it to register text that battlemod alters. That is a rather harsh accusation! Is that really necessary? :/

    Eventually I want it to handle the text of helixes wearing off/getting purged and have it execute a reset of my helix timer. My current goal is to get it to stop getting defeated by battlemod so that it becomes a nice feature rather than something I'd rather not use due to disabling battlemod while using it.

    Your suggestion is something I considered and I think I tested it. To be sure I just tested it again. This time I used
    Code:
    test_command = "Indi-Refresh"
    windower.raw_register_event('incoming text',function(col,org,mod)
        if string.find(org,test_command) then
    		windower.send_command('input /echo The test worked!')
        end
    end)
    When I cast Indi-Refresh ingame battlemod puts out "Indi-Refresh -> Character" and so with your theory this would work, wouldn't it? It's not working, though ; ;

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

    Quote Originally Posted by Roland_J View Post
    What I want is to get it to register text that battlemod alters. That is a rather harsh accusation! Is that really necessary? :/

    Eventually I want it to handle the text of helixes wearing off/getting purged and have it execute a reset of my helix timer. My current goal is to get it to stop getting defeated by battlemod so that it becomes a nice feature rather than something I'd rather not use due to disabling battlemod while using it.

    Your suggestion is something I considered and I think I tested it. To be sure I just tested it again. This time I used
    Code:
    test_command = "Indi-Refresh"
    windower.raw_register_event('incoming text',function(col,org,mod)
        if string.find(org,test_command) then
            windower.send_command('input /echo The test worked!')
        end
    end)
    When I cast Indi-Refresh ingame battlemod puts out "Indi-Refresh -> Character" and so with your theory this would work, wouldn't it? It's not working, though ; ;

    try this

    Code:
    test_command = "Indi-Refresh"
    windower.raw_register_event('incoming text',function(original, modified, original_mode, modified_mode, blocked)
        if original.contains(test_command) then
            windower.send_command('input /echo The test worked!')
        end
    end)

  6. #5566
    Puppetmaster
    Join Date
    Sep 2015
    Posts
    73
    BG Level
    2

    Quote Originally Posted by dlsmd View Post
    try this

    Code:
    test_command = "Indi-Refresh"
    windower.raw_register_event('incoming text',function(original, modified, original_mode, modified_mode, blocked)
        if original.contains(test_command) then
            windower.send_command('input /echo The test worked!')
        end
    end)
    We're making progress! You're a genius, dlsmd! You've helped me many times before. Thank you once again.

    Ok, so I'm working with the following code (modified, yours gave "GearSwap: Lua runtimer error: libs/strings.lua:27: bad argument #1 to 'find' (string expected, not nil) seemingly because of original.contains. I replaced it with string.find in order to get that error to stop popping up)
    Code:
    test_command = "Haste"
    windower.raw_register_event('incoming text',function(original, modified, original_mode, modified_mode, blocked)
        if string.find(original,test_command) then
    		windower.send_command('input /echo The test worked!')
        end
    end)
    When I get "Haste -> Character" through battlemod it executes the echo line. I then tried changing the test_command to "Haste effect wears off" but when I click off haste, and that same text appears onscreen, it doesn't send the echo Also, i tried changing the test_command to Erratic Flutter and when I get "Erratic Flutter -> Character" on screen it does not execute the echo. Something is going on that I don't understand. It works for Haste but not for these other two.
    Any ideas?

  7. #5567
    BG Content
    Join Date
    Jul 2007
    Posts
    22,366
    BG Level
    10
    FFXI Server
    Lakshmi
    Blog Entries
    1

    You are having issues with battlemod because of the hidden color codes. Instead of "Haste effect wears off" do "Haste.- effect wears off"

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

    Quote Originally Posted by Byrthnoth View Post
    You are having issues with battlemod because of the hidden color codes. Instead of "Haste effect wears off" do "Haste.- effect wears off"
    well thats new to me however i dont use battlemod so thats probably why

  9. #5569
    Hydra
    Join Date
    Feb 2011
    Posts
    141
    BG Level
    3
    FFXI Server
    Odin

    Is it possible for someone to simplify the command I need to type in to the console to unlock the FPS? The commands I have googled don't work. Say it's not a command, etc. Please and thank you!

  10. #5570
    Puppetmaster
    Join Date
    Sep 2015
    Posts
    73
    BG Level
    2

    So .- is what makes up a color-code syntax? Ugh, I've looked through the battlemod .luas and all I found was...
    Code:
    function fieldsearch(message)
        local fieldarr = {}
        string.gsub(message,"{(.-)}", function(a) fieldarr[a] = true end)
        return fieldarr
    end
    And I'm not sure what to make of that or if it would have helped me figure it out.

    Thank you, it has gotten this to where it will work on helixes I believe! I haven't tested it on a helix because I don't have time to play sch with all these campaigns going on but since it works on haste wearing off it'll probably work on a helix, too.

    Here is what I'm using to experiment with. (I'm not sure whether to use Byrthnoth or Dlsmd's function as I don't know what different features each one offers. I just went with Byrth's for now)
    Code:
    haste_command = "Haste.-" --works--
    casthaste_command = "Haste ¨" --broken--
    wear_command = "Haste.- effect wears off" --works--
    flutter1_command = "Erratic Flutter.-" --broken--
    flutter2_command = "Flutter.-" --works--
    
    windower.raw_register_event('incoming text',function(col,org,mod)
        if string.find(org,haste_command) then
            windower.send_command('input /echo The test worked!')
        elseif string.find(org,casthaste_command) then
            windower.send_command('input /echo The test worked!')
        elseif string.find(org,wear_command) then
            windower.send_command('input /echo The test worked!')
        elseif string.find(org,flutter1_command) then
            windower.send_command('input /echo The test worked!')
        elseif string.find(org,flutter2_command) then
            windower.send_command('input /echo The test worked!')
    
        end
    end)
    Battlemod must take many-worded abilities and put some sort of symbol inbetween the words, because there's something other than a space between the two words that is breaking "Erratic Flutter.-" from working, whereas "Flutter.-" actually works. It is also interesting trying to get the casting line to trigger. The -> is apparently a ¨ symbol, but I can't get "Haste ¨" to trigger. Battlemod sure is interesting to try to pick apart.

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

    Quote Originally Posted by Roland_J View Post
    So .- is what makes up a color-code syntax? Ugh, I've looked through the battlemod .luas and all I found was...
    Code:
    function fieldsearch(message)
        local fieldarr = {}
        string.gsub(message,"{(.-)}", function(a) fieldarr[a] = true end)
        return fieldarr
    end
    And I'm not sure what to make of that or if it would have helped me figure it out.

    Thank you, it has gotten this to where it will work on helixes I believe! I haven't tested it on a helix because I don't have time to play sch with all these campaigns going on but since it works on haste wearing off it'll probably work on a helix, too.

    Here is what I'm using to experiment with. (I'm not sure whether to use Byrthnoth or Dlsmd's function as I don't know what different features each one offers. I just went with Byrth's for now)
    Code:
    haste_command = "Haste.-" --works--
    casthaste_command = "Haste ¨" --broken--
    wear_command = "Haste.- effect wears off" --works--
    flutter1_command = "Erratic Flutter.-" --broken--
    flutter2_command = "Flutter.-" --works--
    
    windower.raw_register_event('incoming text',function(col,org,mod)
        if string.find(org,haste_command) then
            windower.send_command('input /echo The test worked!')
        elseif string.find(org,casthaste_command) then
            windower.send_command('input /echo The test worked!')
        elseif string.find(org,wear_command) then
            windower.send_command('input /echo The test worked!')
        elseif string.find(org,flutter1_command) then
            windower.send_command('input /echo The test worked!')
        elseif string.find(org,flutter2_command) then
            windower.send_command('input /echo The test worked!')
    
        end
    end)
    Battlemod must take many-worded abilities and put some sort of symbol inbetween the words, because there's something other than a space between the two words that is breaking "Erratic Flutter.-" from working, whereas "Flutter.-" actually works. It is also interesting trying to get the casting line to trigger. The -> is apparently a ¨ symbol, but I can't get "Haste ¨" to trigger. Battlemod sure is interesting to try to pick apart.
    joust do this to see what it writes
    Code:
    windower.raw_register_event('incoming text',function(original, modified, original_mode, modified_mode, blocked)     print(original) end)
    just remember it with do every chat line

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

    Sometimes you need a _ instead of space, not sure if that helps.

    fitch do you mena unlockin the FPS with the config plugin? Im not sure there is a actual ingame command for it, ive always just modified the settings file and reloaded it. you could always try "//config help" and see if anything pops up.

  13. #5573
    Puppetmaster
    Join Date
    Sep 2015
    Posts
    73
    BG Level
    2

    Quote Originally Posted by dlsmd View Post
    joust do this to see what it writes
    Code:
    windower.raw_register_event('incoming text',function(original, modified, original_mode, modified_mode, blocked)     print(original) end)
    just remember it with do every chat line
    Neat! That gave me the following.

    [÷Character] Erratic Flutter ¨ ÷Character

    I tried "÷Character.-" but even that didn't register, whereas it works if I remove the special symbols that came from the print(original), or rather, as just "Character.-". There are quite a few symbols that you guys can't even see, 13 to be precise, but they are there in the text, though all but one get deleted from this post as soon as I submit it but I can see them while creating the post. They are squares with 4 digits within them, all having a combination of 0s, 1s, and Es.

    I might just give up on figuring out this puzzle, it seems awfully complicated. o.o At least I got to where my super-duper helix tracking feature's creation stage can gain some momentum! /hurray (that'll have to wait till after the campaigns though, lol)

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

    Quote Originally Posted by Roland_J View Post
    Neat! That gave me the following.

    [÷Character] Erratic Flutter ¨ ÷Character

    I tried "÷Character.-" but even that didn't register, whereas it works if I remove the special symbols that came from the print(original), or rather, as just "Character.-". There are quite a few symbols that you guys can't even see, 13 to be precise, but they are there in the text, though all but one get deleted from this post as soon as I submit it but I can see them while creating the post. They are squares with 4 digits within them, all having a combination of 0s, 1s, and Es.

    I might just give up on figuring out this puzzle, it seems awfully complicated. o.o At least I got to where my super-duper helix tracking feature's creation stage can gain some momentum! /hurray (that'll have to wait till after the campaigns though, lol)
    if this is the output from the code (with no differences)
    [÷Character] Erratic Flutter ¨ ÷Character
    and you want to find Erratic Flutter just do this
    if original:find("Erratic Flutter") then

    but sence i dont know the full out put thats the best i can do
    grab a pic so i can see it

  15. #5575
    BG Content
    Join Date
    Jul 2007
    Posts
    22,366
    BG Level
    10
    FFXI Server
    Lakshmi
    Blog Entries
    1

    You guys are having trouble with special characters. SE uses a custom Shift-JIS code page implementation. Each ASCII character you're used to seeing is represented as one byte. Most Japanese characters are as well. However, some character codes (byte values) mean something else. 0x1E and 0x1F both indicate the start of a 2-byte code recoloring some text. 0xEF starts a 2-byte character code for things like the Red / Green ( )s. 0xFD starts and ends a 6 byte character code for autotranslations.

    Your text editors (and even the windower console) don't use the same custom code page implementation as FFXI. That's why you get random stuff like " and + and things when you know in game it looks like something else.

    Anyway, long and the short of it is that every time the color changes in battlemod there's an invisible 2-byte color code. Also, text reverts to the original color on line breaks, which we can't predict, so battlemod wraps every possible line-break in text recoloring characters as well. This is why I recommended using .- anywhere there might be a color code, because it should be non-greedy but accept anything. It'll also probably be fairly inefficient, but it should work for what you need it for.

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

    Quote Originally Posted by Byrthnoth View Post
    You guys are having trouble with special characters. SE uses a custom Shift-JIS code page implementation. Each ASCII character you're used to seeing is represented as one byte. Most Japanese characters are as well. However, some character codes (byte values) mean something else. 0x1E and 0x1F both indicate the start of a 2-byte code recoloring some text. 0xEF starts a 2-byte character code for things like the Red / Green ( )s. 0xFD starts and ends a 6 byte character code for autotranslations.

    Your text editors (and even the windower console) don't use the same custom code page implementation as FFXI. That's why you get random stuff like " and + and things when you know in game it looks like something else.

    Anyway, long and the short of it is that every time the color changes in battlemod there's an invisible 2-byte color code. Also, text reverts to the original color on line breaks, which we can't predict, so battlemod wraps every possible line-break in text recoloring characters as well. This is why I recommended using .- anywhere there might be a color code, because it should be non-greedy but accept anything. It'll also probably be fairly inefficient, but it should work for what you need it for.
    i wonder if this will work
    string.match(original, "Erratic.-Flutter")

    i also figured out why this did not work
    haste_command = "Haste.-" --works--
    casthaste_command = "Haste ¨" --broken--
    wear_command = "Haste.- effect wears off" --works--
    flutter1_command = "Erratic Flutter.-" --broken--
    flutter2_command = "Flutter.-" --works--
    windower.raw_register_event('incoming text',function(col,org,mod)
    if string.find(org,haste_command) then
    windower.send_command('input /echo The test worked!')
    elseif string.find(org,casthaste_command) then
    windower.send_command('input /echo The test worked!')
    elseif string.find(org,wear_command) then
    windower.send_command('input /echo The test worked!')
    elseif string.find(org,flutter1_command) then
    windower.send_command('input /echo The test worked!')
    elseif string.find(org,flutter2_command) then
    windower.send_command('input /echo The test worked!')
    end
    end)

    When using -, you need to remember to "anchor" it from both sides, otherwise it will match nothing (since it tries to match as little as possible):

    > = string.match("abc", 'a.*')
    abc
    > = string.match("abc", 'a.-') -- the .- part matches nothing
    a
    > = string.match("abc", 'a.-$') -- the $ matches the end of the string
    abc
    > = string.match("abc", '^.-b') -- the ^ matches the start of the string
    ab

    here http://lua-users.org/wiki/PatternsTutorial

  17. #5577
    Puppetmaster
    Join Date
    Sep 2015
    Posts
    73
    BG Level
    2

    Quote Originally Posted by dlsmd View Post
    i wonder if this will work
    string.match(original, "Erratic.-Flutter")

    ... text removed from quote ...

    When using -, you need to remember to "anchor" it from both sides, otherwise it will match nothing (since it tries to match as little as possible):
    It did work! As did "Erratic.-Flutter.-". I'm still not sure how to get battlemod's ->'s to work, though. In the log they're a ¨ which is actually 2 characters, though you only see the one that looks like a ".

    I'm pretty sure the other one is one of those special symbols that byrth mentioned; it's not visible in Notepad++ or while viewing this page. The only place I can see them, actually, is while writing/editing posts on BG. Idk why but the text editor for this website makes them visible.

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

    Quote Originally Posted by Roland_J View Post
    It did work! As did "Erratic.-Flutter.-". I'm still not sure how to get battlemod's ->'s to work, though. In the log they're a ¨ which is actually 2 characters, though you only see the one that looks like a ".

    I'm pretty sure the other one is one of those special symbols that byrth mentioned; it's not visible in Notepad++ or while viewing this page. The only place I can see them, actually, is while writing/editing posts on BG. Idk why but the text editor for this website makes them visible.
    i cant see what it actually is with out a picture to look at thats why i asked you to post a pic

  19. #5579
    Campaign
    Join Date
    Jul 2007
    Posts
    6,633
    BG Level
    8

    Haven't seen it reported already but I might be wrong.
    There's currently something broken with Shortcuts.

    If you do an /emote without specifying <t>, it will work if it's on another player character, but not if you're on an NPC or object.
    For the /emote to work on npcs or objects you need to specify <t>.
    "/raw /emote" works just fine.

  20. #5580
    Puppetmaster
    Join Date
    Sep 2015
    Posts
    73
    BG Level
    2

    Quote Originally Posted by dlsmd View Post
    i cant see what it actually is with out a picture to look at thats why i asked you to post a pic
    http://s12.postimg.org/lkrxccmr1/example.png
    I hope this includes everything you were hoping for

Page 279 of 307 FirstFirst ... 229 269 277 278 279 280 281 289 ... LastLast

Similar Threads

  1. Service and Support
    By Ribeye in forum FFXI: Everything
    Replies: 8
    Last Post: 2009-10-17, 18:23
  2. Windows vista and FFXI problem
    By Takeno in forum FFXI: Everything
    Replies: 1
    Last Post: 2007-07-26, 13:36
  3. Windows Vista and Windower
    By divisortheory in forum FFXI: Everything
    Replies: 35
    Last Post: 2006-06-23, 04:19