• Hail, we're RedGuides. We want you to play six (yes, 6!) EverQuest characters at once. We have scripts and a friendly community to help, please join our playstyle and say hello! 👋
  • We've added LLM sections to our Terms & Rules and Resource Rules, for everyone's sanity & in-game safety.
    Read more
    a. Do not replace your voice with an LLM. This goes for your posts and your scripts. Drafting and editing with a tool is fine, but don't take you out of what you share.
    b. Do not replace your EQ character's voice with an LLM. We don't want scripts that speak over /ooc, /shout or other public channels. This has been an unwritten rule that's kept casino scripts off the site for decades, but we're now compelled to make it clear: keep automated communication private.

    Why Does RG Review Scripts?
    Nearly every LLM-written Lua script we see is making your character do impossible things, and rarely in a way that's beneficial to you. We've seen heavy server hammering, /target over impossible distances when /nav spawn would passively accomplish the same thing, a spawn search that fires 20+ times per second, and other pointless actions that are likely annoying GMs.

    You are welcome to use LLMs as a tool to structure, draft, and edit your work, but please read critically before hitting /lua run

Question - ImGui Launching UI-Intensive Tasks Freezes EQ

Situation:
ImGui button kicks off a method which performs some UI-heavy stuff (specifically Overseer walking the agent list). With my agent count, this can take 30 seconds of UI interactions.

This works. Except the entire EQ UI freezes up for approx 2-3 seconds. Then snaps back with the task completed (30-second task done in 2. Handy, but), flooding the console window to catch up on any output generated.
mq.pause(), mq.parse('/delay xxx') seem ignored or have no impact.


This does sound like a single-UI thread block kinda thing. But not sure the solution.

I have separate modules, etc. Have tried quite a few variations of what goes where, but I assume I'm missing something fundamental here.

Lua:
local mq = require('mq')
local overseer = require('overseer.overseer')
local hasAction = false

function DrawMainWindow()
    Open, ShowUI = ImGui.Begin('Overseer', Open)
    if ShowUI then
        if ImGui.Button('Collect Statistics') then
            hasAction = true
        end
    end

    ImGui.End()

    if (hasAction) then
        hasAction = false
        overseer.CollectAgentStatistics()
    end
end
 
not sure mq.pause is a thing that exists, and mq.parse('/delay x') would be running a pause over in macro land unrelated to your Lua.

to delay in Lua it is mq.delay(timeMS)

generally you want to run stuff from the main while loop of the script rather than directly from the ImGui callback. the ImGui callback can just set a flag when the buttons clicked, so the main loop knows to execute some task. then you can have delays or whatever else you need in the main loop.
 
Thanks, aquietone. That's the concept I was just about to look into. Should have realized sooner. Your response helps a lot there.

Edit: and I got the pause/delay names wrong, but was intrigued that they had no impact. Was an unexpected result.
 
Question - ImGui Launching UI-Intensive Tasks Freezes EQ

Users who are viewing this thread

Back
Top
Cart