get_max_inventory_index() on a rocket silo returns 12, but get_inventory(12) seems to always be nil, and the largest defined index is 11:
fuel=1
rocket_silo_input=crafter_input=2
rocket_silo_output=crafter_output=3
rocket_silo_modules=crafter_modules=4
unnamed =5
burnt_result=6
crafter_trash=8 ...
Search found 307 matches
- Mon Nov 17, 2025 10:05 pm
- Forum: Not a bug
- Topic: [2.0.72] Rocket Silo max inventory index 11 vs 12
- Replies: 1
- Views: 174
- Mon Nov 17, 2025 9:59 pm
- Forum: Bug Reports
- Topic: [2.0.72] Rocket Silo inventory index 5 has no defines.inventory/name
- Replies: 0
- Views: 108
[2.0.72] Rocket Silo inventory index 5 has no defines.inventory/name
get_inventory(5) on a rocket silo returns an inventory, but that inventory has an empty `name`, and there is no corresponding defines.inventory value. From discussion with Bilka, this seems to be `rocketInventoryIndex`, the inventory of the attached cargo pod.
- Tue Nov 04, 2025 6:22 pm
- Forum: Fixed for 2.1
- Topic: [2.0.72] Crash and weirdness with game.simulation.write (BlueprintLibraryGui::rebuildGui)
- Replies: 3
- Views: 398
Re: [2.0.72] Crash and weirdness with game.simulation.write (BlueprintLibraryGui::rebuildGui)
Just to confirm, the other pr (#7998 re: LuaPlayer.blueprints) does not in fact fix this - but i don't understand this one enough to do anything more helpful
- Tue Aug 12, 2025 4:50 pm
- Forum: Documentation Improvement Requests
- Topic: Package Load Preference
- Replies: 0
- Views: 490
Package Load Preference
https://lua-api.factorio.com/latest/aux ... cture.html
would be nice to specify the preference when multiple packages of the same mod exist (zipped/unzipped) which one will be loaded
would be nice to specify the preference when multiple packages of the same mod exist (zipped/unzipped) which one will be loaded
- Wed Jul 09, 2025 6:33 pm
- Forum: Modding discussion
- Topic: is https://github.com/Rseding91/Factorio-Lua up to date?
- Replies: 6
- Views: 1318
Re: is https://github.com/Rseding91/Factorio-Lua up to date?
It is now. thank you. also it seems that i cant compile it? it says that trio.h is not found? is there a dependency im missing or something?
we use https://daniel.haxx.se/projects/trio/ for a printf that actually works correctly on every platform (which, amazingly, is not something you can ...
- Thu Nov 07, 2024 7:49 pm
- Forum: Documentation Improvement Requests
- Topic: Use overload signatures where possible instead of union return types
- Replies: 1
- Views: 488
Use overload signatures where possible instead of union return types
for example, https://lua-api.factorio.com/latest/classes/LuaEntity.html#get_logistic_point could trivially be a function with two overloads: fun():LuaLogisticPoint, fun(index):dictionary, and we could in turn generate overload tags for LuaLS to correctly determine which return it got from a given ...
- Wed Oct 23, 2024 3:21 pm
- Forum: Resolved Requests
- Topic: The 'quality' field is not documented for SignalID
- Replies: 3
- Views: 873
Re: The 'quality' field is not documented for SignalID
in the mean time, SignalFilter is probably the type you're actually looking for!
- Fri Dec 08, 2023 6:16 am
- Forum: Development tools
- Topic: Workaround for broken mouse click functionality when debugging Factorio in a mouse event
- Replies: 2
- Views: 2469
Re: Workaround for broken mouse click functionality when debugging Factorio in a mouse event
If anyone has any suggestions for how I can detect, from the debugger (in TS), that this has occurred (or is likely to occur in a given environment), i can also offer to set the setting for the future.
- Sun Nov 26, 2023 12:31 am
- Forum: Documentation Improvement Requests
- Topic: Specify key type for index[] operators
- Replies: 0
- Views: 641
Specify key type for index[] operators
The runtime classes with index[] operators currently only specify the values returned by that operator, not the key types to use with it. LuaLS tags require a key type for these as well, which i'm currently filling in with special cases.
- Sat Oct 28, 2023 2:03 pm
- Forum: Resolved Requests
- Topic: Incorrect formatting for `__base__` in `FileName`
- Replies: 1
- Views: 768
Incorrect formatting for `__base__` in `FileName`
https://lua-api.factorio.com/latest/types/FileName.html has `base` in bold, instead of in code tags with underscores
- Wed May 31, 2023 4:10 pm
- Forum: Development tools
- Topic: Factorio Modding Tool Kit: Debugging, LSP for Locale and Changelog, Packaging and more
- Replies: 1
- Views: 6482
Factorio Modding Tool Kit: Debugging, LSP for Locale and Changelog, Packaging and more
FMTK provides a growing collection of tools for VSCode and other editors. It is available as a VSCode Extension , and a standalone npm cli tool
Tools include:
Debugging, with breakpoints, stepping, variable inspection etc (for any DAP-compatible editor)
JSON Validation of various files ...
Tools include:
Debugging, with breakpoints, stepping, variable inspection etc (for any DAP-compatible editor)
JSON Validation of various files ...
- Sat Mar 11, 2023 4:58 pm
- Forum: Modding help
- Topic: Setting Up a Dev Environment
- Replies: 4
- Views: 2884
- Thu Dec 08, 2022 3:01 am
- Forum: Mod portal Discussion
- Topic: [Public] Mod images API
- Replies: 3
- Views: 2192
Re: [Public] Mod images API
What's the lifetime of an image that is uploaded and then un-referenced?
Could we have a flag for "hidden"/unlisted images in the gallery to not be shown in the image-strip on the mod page, for use in the markdown description/faq pages?
Could we have a flag for "hidden"/unlisted images in the gallery to not be shown in the image-strip on the mod page, for use in the markdown description/faq pages?
- Thu Dec 08, 2022 2:59 am
- Forum: Mod portal Discussion
- Topic: [Public] Mod details API
- Replies: 4
- Views: 2902
Re: [Public] Mod details API
I finally got around to using this some and it's working great! The one thing i'd note is that it is currently impossible to *remove* a homepage or source_url from a mod that already has them, as they won't accept an emptystring as a valid value.
- Fri Oct 22, 2021 1:41 am
- Forum: Documentation Improvement Requests
- Topic: Documentation Improvement Requests
- Replies: 316
- Views: 136930
Re: Small documentation improvement requests
https://lua-api.factorio.com/latest/Con ... Connection
describes the type of positions as array[Vector], but hten has a comment that they have x/y, shouldn't this be array[Position]?
describes the type of positions as array[Vector], but hten has a comment that they have x/y, shouldn't this be array[Position]?
- Thu Sep 23, 2021 4:31 pm
- Forum: Implemented Suggestions
- Topic: [Implemented] Instrument Mode on Headless
- Replies: 3
- Views: 2801
Re: Instrument Mode on Headless
I'm not sure about the exact timing, but this went into the last round of updates (.40 i think), give it a go on the latest update!
- Wed Jun 23, 2021 10:16 pm
- Forum: Resolved Problems and Bugs
- Topic: [Rseding91] [1.1.35] crash when using set_stack inside blueprint book
- Replies: 1
- Views: 3052
[Rseding91] [1.1.35] crash when using set_stack inside blueprint book
Using set_stack() to replace an item in a blueprint book causes a crash
Repro command (imports a book containing an empty blueprint)
/c game.player.cursor_stack.import_stack("0eNqrVkrKKU0tKMrMK4lPys ...
Repro command (imports a book containing an empty blueprint)
/c game.player.cursor_stack.import_stack("0eNqrVkrKKU0tKMrMK4lPys ...
- Wed Jun 16, 2021 5:56 pm
- Forum: Releases
- Topic: Version 1.1.35
- Replies: 13
- Views: 26545
Re: Version 1.1.35
yes but we are talking about an API and making it easier to consume and not providing full on lua debugging.
I use schema's primarily for autocompletion in kubernetes yaml files or for my cloudformation for AWS so i don't have to memorise the file format or have the doco open in another monitor ...
- Wed Jun 16, 2021 5:21 pm
- Forum: Releases
- Topic: Version 1.1.35
- Replies: 13
- Views: 26545
Re: Version 1.1.35
should consider that json support for https://json-schema.org/ format
example schema's can be seen: https://www.schemastore.org/json/
i use it all the time as i code from neovim. would mean the format provided is in a more generally consumable format with heaps of editors with support out of ...
- Wed Jun 16, 2021 5:14 pm
- Forum: Releases
- Topic: Version 1.1.35
- Replies: 13
- Views: 26545
Re: Version 1.1.35
should consider that json support for https://json-schema.org/ format
example schema's can be seen: https://www.schemastore.org/json/
i use it all the time as i code from neovim. would mean the format provided is in a more generally consumable format with heaps of editors with support out of the ...