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

Place to report issues and suggest improvements to the API documentation.
User avatar
PennyJim
Fast Inserter
Fast Inserter
Posts: 171
Joined: Wed Jan 18, 2023 3:49 am
Contact:

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

Post 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).
Last edited by PennyJim on Thu May 28, 2026 7:15 am, edited 1 time in total.
User avatar
PennyJim
Fast Inserter
Fast Inserter
Posts: 171
Joined: Wed Jan 18, 2023 3:49 am
Contact:

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

Post 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.
User avatar
PennyJim
Fast Inserter
Fast Inserter
Posts: 171
Joined: Wed Jan 18, 2023 3:49 am
Contact:

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

Post 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
Post Reply

Return to “Documentation Improvement Requests”