Page 1 of 1

Writing to force::research_queue doesn't raise on_research_queued?

Posted: Thu May 28, 2026 6:56 am
by PennyJim
Considering `player_index` is listed as optional for on_research_queued, I'm going to assume that writing to LuaForce::research_queue would raise that event.

Also can the research queue even be disabled anymore? I feel like I remember that no longer being a thing. I'm writing code when I should be in bed though, so I'm not going to go down that rabbit hole. I already found out chat messages about research queuing is only printed when there's multiple LuaPlayers (eg removing offline players can make them stop).

Re: Writing to force::research_queue doesn't raise on_research_queued?

Posted: Thu May 28, 2026 7:14 am
by PennyJim
Hah found an old improvement request of mine while searching for another one. 111745
Seems like this one is semi-related in that LuaForce::add_research() should be raising the `on_research_queued` event as well instead of the one it currently does. I haven't done any testing to see if the started event actually fires if you're adding to an empty queue though.

Re: Writing to force::research_queue doesn't raise on_research_queued?

Posted: Thu May 28, 2026 7:23 am
by PennyJim
Rseding91 wrote: Tue Jun 10, 2025 3:33 pm The index is always the last in the queue so there's no point in including it [in on_research_queued].
Sounds like on_research_queued is not meant to fire when writing to LuaForce::research_queue..
Not sure if that fires an event then.

Also off to go find/make a request for more information in `on_research_moved` and then go to bed