Item Search
     
BG-Wiki Search
Page 86 of 307 FirstFirst ... 36 76 84 85 86 87 88 96 136 ... LastLast
Results 1701 to 1720 of 6124
  1. #1701
    BG Content
    Join Date
    Jul 2007
    Posts
    22,372
    BG Level
    10
    FFXI Server
    Lakshmi
    Blog Entries
    1

    Spoiler: show
    Code:
    timeit = require 'timeit'
    
    function event_addon_command(...)
        command = table.concat({...},' ')
        if command:lower() == 'test' then
            if testmode then
                testmode = false
                table.sort(timearray)
                local basetime = 25
                add_to_chat(8,'------ Delays ------')
                for i,v in ipairs(timearray) do
                    add_to_chat(8,tostring(v))
                    if v < basetime then
                        basetime = v
                    end
                end
                add_to_chat(121,'TP Delay should be set to about: '..basetime-0.4) -- 0.3 seconds longer than necessary.
            else
                testmode = true
                timearray = {}
                add_to_chat(121,'Start shooting as fast as you possibly can.\7 Really try to spam the shit out of it.')
            end
        end
    end
    
    function event_load()
    --- You edit this ---
        TPdelay = 0.3
        preshot_script = 'preshot.txt'
        midshot_script = 'midshot.txt'
        aftershot_script = 'aftershot.txt'
        
        
    --- Don't edit this ---
        autoshot = false
        testmode = false
        failurecount = 0
        radelay = 0.7
        wsdelay = 1.7
        Cancel_delay = 1
        send_command('bind ^d lua i makeshot startshooting')
        send_command('alias ms lua c makeshot')
    end
    
    function event_unload()
        send_command('unalias ms')
        send_command('unbind ^d')
    end
    
    function event_action(act)
        local player = get_player()
        if player['id'] ~= act['actor_id'] then return end
        
        if act['category'] == 12 and act['param'] == 24931 then
            add_to_chat(121,'Aiming a ranged attack!')
            if file_exists(lua_base_path..'../../scripts/'..midshot_script) then
                send_command('exec '..midshot_script)
            end
            if testmode and ttime then
                timearray[#timearray+1] = ttime:stop()
            end
        elseif act['category'] == 12 and act['param'] == 28787 then
            if autoshot then
                failurecount = failurecount +1
                if failurecount >= 3 then
                    autoshot = false
                    add_to_chat(5,j..'3 Shot failures. Autoshot Canceled. Control D to restart')
                else
                    send_command('wait '..Cancel_delay..';lua i makeshot checktp')
                end
            end
            if file_exists(lua_base_path..'../../scripts/'..aftershot_script) then
                send_command('exec '..aftershot_script)
            end
        elseif act['category'] == 2 then -- Shot Landing
            failurecount = 0
            if autoshot then
                send_command('wait '..TPdelay..';lua i makeshot checktp')
            end
            if testmode then
                ttime = timeit.new()
                ttime:start()
            end
            if file_exists(lua_base_path..'../../scripts/'..aftershot_script) then
                send_command('exec '..aftershot_script)
            end
        elseif act['category'] == 3 then -- WS Landing
            if autoshot then
                add_to_chat(121,'Autoshot resumed!')
                send_command('wait '..(wsdelay+TPdelay)..';lua i makeshot checktp')
            end
        end
    end
    
    function startshooting()
        if autoshot then
            autoshot = false
        else
            autoshot = true
            if file_exists(lua_base_path..'../../scripts/'..preshot_script) then
                send_command('exec '..preshot_script)
            end
            send_command('wait '..radelay..';input /ra <t>;')
        end
    end
    
    function checktp()
        local player = get_player()
        if player.vitals.tp < 100 and autoshot then
            if file_exists(lua_base_path..'../../scripts/'..preshot_script) then
                send_command('exec '..preshot_script)
            end
            send_command('wait '..radelay..';input /ra <t>')
        elseif player.vitals.tp >= 100 then
            add_to_chat(121,'Autoshot canceled, WS away!')
        end
    end


    You can try to use this if you want ^

    To get it:
    * Copy it from above.
    * Paste it into windower4/addons/makeshot/makeshot.lua (a folder with a text document that you create)
    * Save it.
    * Load it in game with //lua l makeshot

    To use it:
    * Control D to start auto-shooting. It'll stop for you at 100TP. Once you WS, it'll start again.
    ** You can use control D again to make it pause for JA use or whatever
    ** This is comparable to auto-attack, but because you can't use JAs while auto-attacking you will have to stop it (with Control-d) when you want to use a JA.
    ** If you fail to shoot 3 times (movement, target, etc.), it'll automatically shut itself off and you'll have to reactivate it with Control-d

    * Put the equip commands for your preshot gear in windower4/scripts/preshot.txt
    ** Oldschool windower script style
    * Same for your midshot gear (midshot.txt)
    * Same for your idle gear (if you have any / feel like it, aftershot.txt)
    * Unload spellcast

    Balloon helped me test it yesterday. I'd like to confirm that it's working with a few more people before I push it out as the new AutoRA.

    Unload it with "//lua u makeshot" when you are done. Do not use weaponskills while wearing throwable ammo on other jobs after forgetting to unload this. IF IT CAN BE THROWN, IT WILL BE THROWN.

  2. #1702
    CoP Dynamis
    Join Date
    Nov 2009
    Posts
    265
    BG Level
    4
    FFXI Server
    Ragnarok

    Quote Originally Posted by Byrthnoth View Post
    Unload it with "//lua u makeshot" when you are done. Do not use weaponskills while wearing throwable ammo on other jobs after forgetting to unload this. IF IT CAN BE THROWN, IT WILL BE THROWN.
    You can unload addons with something like this in autoexec:

    Code:
    <register event="(regex)jobchange_[^g][^e][^o]/[^v][^v][^v](/regex)">lua unload MobCompass;</register>
    <register event="(regex)jobchange_[^b][^l][^u]/[^v][^v][^v](/regex)">lua unload AzureSets;</register>
    <register event="(regex)jobchange_[^p][^u][^p]/[^v][^v][^v](/regex)">lua unload PetSchool;</register>
    The above procs if you job change from GEO BLU and PUP respectively.
    Unloading stuff if you job change from RNG/COR would look like this:

    Code:
    <register event="(regex)jobchange_[^r][^n][^g]/[^v][^v][^v](/regex)">lua unload MakeShot;</register>
    <register event="(regex)jobchange_[^c][^o][^r]/[^v][^v][^v](/regex)">lua unload MakeShot;</register>
    Code might be ghetto, but hey, it works.

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

    that code for me seems to try and unload them every job change. but the end result is the same i guess. doesnt hurt to try and unload something that isnt loaded already.

  4. #1704
    Sea Torques
    Join Date
    Sep 2012
    Posts
    736
    BG Level
    5
    FFXI Server
    Leviathan

    You should really not use AutoExec at all anymore, LuaCore has entirely absorbed it.

    You can add this line to makeshot or make your own addon containing nothing but this line:
    Code:
    event_job_change = function(_, job) if job ~= 'Corsair' and job ~= 'Ranger' then send_command('lua u makeshot') end end

  5. #1705
    CoP Dynamis
    Join Date
    Nov 2009
    Posts
    265
    BG Level
    4
    FFXI Server
    Ragnarok

    Quote Originally Posted by Arcon View Post
    You should really not use AutoExec at all anymore, LuaCore has entirely absorbed it.

    You can add this line to makeshot or make your own addon containing nothing but this line:
    Code:
    event_job_change = function(_, job) if job ~= 'Corsair' and job ~= 'Ranger' then send_command('lua u makeshot') end end
    Takes time to learn the new language; for now I try to work with what's familiar to me.
    Your code example is nice, I already see I can easily reverse it and write something that loads/unloads addons depending on what job I change to/from (namely MobCompass, AzureSets and PetSchool) - I don't like things sitting in memory or on screen if I don't need them.
    Maybe Byrth (or anyone, or me in distant future) would consider adding handling addons vs your job to AddonManager? Might be the best place to incomporate this functionality.

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

    I love enternity, but It makes it difficult to see what is inside a chest in abyssea (it spams past the item when you peer through the crack), is that something that could be fixed or no? I had it do the same thing to me when i was trying to look at a armor/weapon at the magian moogle. Also one time my game froze when i checked a geomantic reservoir. i had to reboot and i unloaded enternity and i could do the reservoir correctly.

  7. #1707
    Sea Torques
    Join Date
    Sep 2012
    Posts
    736
    BG Level
    5
    FFXI Server
    Leviathan

    Quote Originally Posted by Zirael View Post
    Takes time to learn the new language; for now I try to work with what's familiar to me.
    Of course, and now it's time to learn

    AutoExec was massively useful, but it has always been pretty restricted, especially in terms of syntax, because you had to rely on the unreliable Windower command parser. All of the events of AutoExec are available in Lua now, and quite a few more. See this for a full reference.

    Quote Originally Posted by Trumpy View Post
    I love enternity, but It makes it difficult to see what is inside a chest in abyssea (it spams past the item when you peer through the crack), is that something that could be fixed or no? I had it do the same thing to me when i was trying to look at a armor/weapon at the magian moogle. Also one time my game froze when i checked a geomantic reservoir. i had to reboot and i unloaded enternity and i could do the reservoir correctly.
    That is known and it has been tried to work around that, but it turns out to not be that simple. It's still a planned addition to Enternity, but for now you'll probably have to unload it when you want to know items that show up in the text.

    The Geomantic reservoir bug was noted, although the reason for the crash is unknown. But it was manually added as an exception to Enternity for now, so at least it should not be happening again on that until someone figures out what was happening.

  8. #1708
    Melee Summoner
    Join Date
    Mar 2011
    Posts
    42
    BG Level
    1

    autora/autora.lua:115: attempt to compare nil with number - no clue what this is insight please? thank you

  9. #1709
    Sea Torques
    Join Date
    Aug 2007
    Posts
    692
    BG Level
    5

    Does anyone keep having C++ error and shut your POL ? I was in the middle with Hurkan and happened a few times. End up, to be safe... I played without Windower until the end.

  10. #1710
    Puppetmaster
    Join Date
    May 2011
    Posts
    54
    BG Level
    2

    Hello everyone. I just downloaded Windower 4 in an attempt to solve my crashing from old windower. The old version works fine, besides the crashing that has started to happen after the most recent version update, but Windower 4 causes extreme lag. I don't even get above 10 FPS. Is there a way to fix this? I'm not sure why that would be happening.

  11. #1711
    Sea Torques
    Join Date
    Aug 2007
    Posts
    692
    BG Level
    5

    Quote Originally Posted by Uselessaccount2 View Post
    Hello everyone. I just downloaded Windower 4 in an attempt to solve my crashing from old windower. The old version works fine, besides the crashing that has started to happen after the most recent version update, but Windower 4 causes extreme lag. I don't even get above 10 FPS. Is there a way to fix this? I'm not sure why that would be happening.
    Try to check whether you have Super Sampling turn on. It's under Profile -> Edit (bottom left, pencil icon) -> Game

  12. #1712
    Custom Title
    Join Date
    Nov 2008
    Posts
    1,065
    BG Level
    6
    FFXI Server
    Diabolos

    Sooooo does the Test Server button work or no? I just get an instacrash after the fadeout.

    Spoiler: show
    Problem signature:
    Problem Event Name: APPCRASH
    Application Name: pol.exe
    Application Version: 1.18.13.0
    Application Timestamp: 4e3bcddc
    Fault Module Name: FFXiMain.dll
    Fault Module Version: 3.0.0.0
    Fault Module Timestamp: 51e7e5f2
    Exception Code: c0000005
    Exception Offset: 003a91fc
    OS Version: 6.1.7601.2.1.0.256.1
    Locale ID: 1033
    Additional Information 1: 0a9e
    Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
    Additional Information 3: 0a9e
    Additional Information 4: 0a9e372d3b4ad19135b953a78882e789

  13. #1713
    Old Merits
    Join Date
    Sep 2010
    Posts
    1,094
    BG Level
    6
    FFXI Server
    Ragnarok

    I've been doing shield testing on the test server for the last 6 hours or so. so yeah, it works. I was getting a crash right after plugins loaded. Shortly after, not right when they load. But it stopped after unchecking spellcast.

    Also, the test server is really screwed up right now. Spellcast can be loaded after logging in fully, but crashes itself on any action. Receiving a tell would crash all my plugins. Battle mod does nothing. find and findall do nothing.

    Most of the rest of the plugins work though

  14. #1714
    Custom Title
    Join Date
    Nov 2008
    Posts
    1,065
    BG Level
    6
    FFXI Server
    Diabolos

    Spoiler: show
    Well I just updated an ancient install (last time I was on the test server was like... level 99 TotM weapons introduced), took a few hours.

    Checked registry settings and whatnot.

    All addons and plugins off...

    Could be related to my non-testserver always crashing on /shutdown, plugins unloaded or whatever, because this is a migrated install pushing about six years old now, but the test server files are all separate so that doesn't make any sense...


    Nevermind. Crashes regardless of windower. My install must be dicked.

    File check: Problems were found in 21742 files.

    (Did I just nuke half the folders or something? lol)

    Okay and it only spent 30 seconds fixing it. Still crashes. DON'T EVEN CARE NOW. Dumping files from regular folder into it.

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

    Did someone fix the shutdown crash? cause the last 4 times i /shutdown i havent crashed at all, which is amazing!

  16. #1716
    Sea Torques
    Join Date
    Aug 2007
    Posts
    692
    BG Level
    5

    Microsoft C++ Run time error, crashed.

    Does anyone has any idea?

    Random Crashed at :
    1) Random JA used
    2) Random Warp, Item Warp, or Blood Port
    3) Random Zoned
    4) IDLE for a few hours, then /away or /online command, crashed

    With/ Without Windower

  17. #1717
    Pandemonium
    Join Date
    Jul 2008
    Posts
    4,875
    BG Level
    7
    FFXI Server
    Bismarck

    If it's without Windower, we've obviously excluded that as a potential culprit.

    I've already made this suggestion in relation to other cases before, but usually, if sudden and new crashes start happening in FFXI, and it isn't due to corrupt DATs, it's assuredly computer-related. To ensure it isn't DAT related, though, you should run a File Check if you haven't already. Beyond that, what changes have you made to your computer since FFXI was working normally? Have you installed new graphics card drivers? Have you installed any other hardware, software, or games? Have you changed your FFXI configuration (e.g., to a higher resolution)?

  18. #1718
    Cerberus
    Join Date
    Jun 2007
    Posts
    409
    BG Level
    4

    I recommend a thorough RAM->HDD->GFX card check in that order. Back when I used to run XI on my XP machine from '04 or so, I ran into such a problem that gave both GFX/HDD errors. At the end of it all though, the culprit was the RAM. I was dumb enough to replace the HDD and GFX back then without considering anything else as errors were found, they were obviously false positives created by the bad RAM though so take caution.

  19. #1719
    Sea Torques
    Join Date
    Aug 2007
    Posts
    692
    BG Level
    5

    Quote Originally Posted by Kohan View Post
    If it's without Windower, we've obviously excluded that as a potential culprit.

    I've already made this suggestion in relation to other cases before, but usually, if sudden and new crashes start happening in FFXI, and it isn't due to corrupt DATs, it's assuredly computer-related. To ensure it isn't DAT related, though, you should run a File Check if you haven't already. Beyond that, what changes have you made to your computer since FFXI was working normally? Have you installed new graphics card drivers? Have you installed any other hardware, software, or games? Have you changed your FFXI configuration (e.g., to a higher resolution)?
    I did have graphic driver updated, and bitdefender installed.
    I'll uninstalled both to try again.

    Thanks for the advise!

  20. #1720
    E. Body
    Join Date
    Sep 2008
    Posts
    2,132
    BG Level
    7
    FFXI Server
    Bismarck

    Why do I keep crashing after logging out mule3 then logging on char 4 every time!

Page 86 of 307 FirstFirst ... 36 76 84 85 86 87 88 96 136 ... 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