Search found 1065 matches
- Wed Dec 17, 2025 10:55 pm
- Forum: Modding interface requests
- Topic: Increasing the tile rotation "limit"
- Replies: 2
- Views: 192
Re: Increasing the tile rotation "limit"
A side note is tile-rotation is an always-on thing for blueprints. There is "already a problem" where if someone rotates a blueprint with hazard concrete, the lines are now going the "wrong way" and would be out of place, when one only wanted to rotation the position of tiles, not the direction. I ...
- Wed Dec 17, 2025 10:23 pm
- Forum: Modding interface requests
- Topic: Increasing the tile rotation "limit"
- Replies: 2
- Views: 192
Re: Increasing the tile rotation "limit"
Here's a mod which exposes the behavior:
Edit: Also, a second weird note of the behavior is the directions are "restarted" at each tile, so if you copy existing tiles and rotate, they rotate "twice". The directions are sort-of non-linear, that there's no "constant mapping" of direction to tile ...
Edit: Also, a second weird note of the behavior is the directions are "restarted" at each tile, so if you copy existing tiles and rotate, they rotate "twice". The directions are sort-of non-linear, that there's no "constant mapping" of direction to tile ...
- Wed Dec 17, 2025 10:18 pm
- Forum: Modding interface requests
- Topic: Increasing the tile rotation "limit"
- Replies: 2
- Views: 192
Increasing the tile rotation "limit"
Context: I was allow refined-concrete "rotate" through all the colors, to make alternate colors buildable without items.
Collision: The tile can only go through three rotations, because it (from a dev) has rotation cooked into it - north / east / south / west, an unexpected artifact
Recommended ...
Collision: The tile can only go through three rotations, because it (from a dev) has rotation cooked into it - north / east / south / west, an unexpected artifact
Recommended ...
- Tue Dec 09, 2025 4:49 am
- Forum: Modding interface requests
- Topic: Make non-Lua shortcut state readable.
- Replies: 2
- Views: 278
Re: Make non-Lua shortcut state readable.
Can't you just read that from the player's LUAEntity?
allow_dispatching_robots
The character doesn't exist, at least can't be retrieved when, the player is in a vehicle. I haven't checked if the LuaEntity is still valid when the player is in a vehicle, if one had it already. It'd be a little ...
- Sun Dec 07, 2025 9:15 pm
- Forum: Modding interface requests
- Topic: Make non-Lua shortcut state readable.
- Replies: 2
- Views: 278
Make non-Lua shortcut state readable.
There exists what feels like a rather arbitrary limitation, that one can't read "non-Lua" shortcuts toggle state. I'm specifically trying to read the toggle-personal-roboport shortcut, so a player can know if it were accidentally toggled.
Only custom shortcut prototypes with the action type "lua ...
Only custom shortcut prototypes with the action type "lua ...
- Tue Nov 11, 2025 4:07 am
- Forum: Ideas and Suggestions
- Topic: Option to prevent Escape from exiting Map mode
- Replies: 7
- Views: 1982
Re: Option to prevent Escape from exiting Map mode
This topic came up again in a discussion. The idea was to add a separate key for 'exit map/remote view' and make the default "open menu" no longer exit the map. If they're both bound to escape, it is invisible to existing players (as long as exit map overrides open menu, then open menu works on the ...
- Tue Oct 07, 2025 11:01 pm
- Forum: Modding discussion
- Topic: [Research] Quick questions for modders (university seminar)
- Replies: 6
- Views: 786
Re: [Research] Quick questions for modders (university seminar)
1) I'm not sure if any particularly stood out - I might say Mobile Factory, which I was involved in for a while, which heavily used metatables - an incredibly large amount were running around, nearly everything got one. I think some of the code was inspired from Mining Drones, but there is ...
- Sat Oct 04, 2025 1:03 am
- Forum: Resolved Problems and Bugs
- Topic: [2.0.69] on_player_placed_equipment gets cancelled if character is assigned
- Replies: 2
- Views: 938
[2.0.69] on_player_placed_equipment gets cancelled if character is assigned
What you expected:
1) Multiple equipment gets inserted into armor
2) Changing the character during on_player_placed_equipment does not "cancel" the rest of the events
What happens:
1) Multiple equipment gets inserted into armor
2) Changing the character during on_player_placed_equipment "cancels ...
1) Multiple equipment gets inserted into armor
2) Changing the character during on_player_placed_equipment does not "cancel" the rest of the events
What happens:
1) Multiple equipment gets inserted into armor
2) Changing the character during on_player_placed_equipment "cancels ...
- Mon Jul 21, 2025 11:31 pm
- Forum: Minor issues
- Topic: [2.0.60] Leaving remote map view does not raise on_selected_entity_changed
- Replies: 3
- Views: 810
Re: [2.0.60] Leaving remote map view does not raise on_selected_entity_changed
Thanks for replying. I think watching on_player_controller_changed, in addition, might solve my mod's "issue" then.
- Sat Jul 19, 2025 2:52 pm
- Forum: Minor issues
- Topic: [2.0.60] Leaving remote map view does not raise on_selected_entity_changed
- Replies: 3
- Views: 810
[2.0.60] Leaving remote map view does not raise on_selected_entity_changed
What you expected:
Deselecting an entity always raises on_selected_entity_changed when it's reasonable to do so.
What happens:
It doesn't. The tooltip changes and everything
To reproduce:
/c
script.on_event(defines.events.on_selected_entity_changed, function(event)
game.print(event.tick)
end ...
Deselecting an entity always raises on_selected_entity_changed when it's reasonable to do so.
What happens:
It doesn't. The tooltip changes and everything
To reproduce:
/c
script.on_event(defines.events.on_selected_entity_changed, function(event)
game.print(event.tick)
end ...
- Sun Jun 22, 2025 2:39 am
- Forum: Duplicates
- Topic: [2.0.57] Module effects on recipes, in furnaces, exposes weird 'bug'
- Replies: 2
- Views: 688
Re: [2.0.57] Module effects on recipes, in furnaces, exposes weird 'bug'
Also noting: a recipe which isn't active (the machine isn't crafting but shows the recipe) can have the modules inserted. Only when a recipe is active do the modules refuse to insert.
- Sat Jun 21, 2025 9:36 pm
- Forum: Duplicates
- Topic: [2.0.57] Module effects on recipes, in furnaces, exposes weird 'bug'
- Replies: 2
- Views: 688
[2.0.57] Module effects on recipes, in furnaces, exposes weird 'bug'
Recreation:
Have a recipe which doesn't accept modules, but the furnace does. A simple example:
local steel_recipe = data.raw.recipe["steel-plate"]
steel_recipe.allow_productivity = false
Mod:
furnace_module_oddity_0.0.1.zip
Place modules in a furnace:
weird_modules-2.jpg
Save file ...
Have a recipe which doesn't accept modules, but the furnace does. A simple example:
local steel_recipe = data.raw.recipe["steel-plate"]
steel_recipe.allow_productivity = false
Mod:
furnace_module_oddity_0.0.1.zip
Place modules in a furnace:
weird_modules-2.jpg
Save file ...
- Fri Jun 06, 2025 12:12 am
- Forum: Resolved Problems and Bugs
- Topic: [Lou][2.0.55] Modding - Non-Square Machines, Fluidbox, Rotation event
- Replies: 6
- Views: 2589
[Lou][2.0.55] Modding - Non-Square Machines, Fluidbox, Rotation event
What you expect:
The machine - non-square (rectangular) crafting machine with fluid_boxes and fluid_boxes_off_when_no_fluid_recipe = true
The machine can be placed, and if you try to rotate it, it doesn't rotate (conventional behavior for assemblers), and does not raise on_player_rotated_entity , or ...
The machine - non-square (rectangular) crafting machine with fluid_boxes and fluid_boxes_off_when_no_fluid_recipe = true
The machine can be placed, and if you try to rotate it, it doesn't rotate (conventional behavior for assemblers), and does not raise on_player_rotated_entity , or ...
- Thu Jun 05, 2025 11:48 pm
- Forum: Modding interface requests
- Topic: Allow 180 rotation of rectangular crafting machines after placement
- Replies: 2
- Views: 1460
Re: Allow 180 rotation of rectangular crafting machines after placement
In 2.0, a setting on assembling-machines was added:
fluid_boxes_off_when_no_fluid_recipe which is default false. By default, a non-square / rectangular assembling machine with fluid boxes can rotate after being placed.
fluid_boxes_off_when_no_fluid_recipe which is default false. By default, a non-square / rectangular assembling machine with fluid boxes can rotate after being placed.
- Sat May 24, 2025 12:58 am
- Forum: Modding interface requests
- Topic: Breaking changes: aligning furnace.cant_insert_at_source_message_key and the rest
- Replies: 6
- Views: 960
Re: Breaking changes: aligning furnace.cant_insert_at_source_message_key and the rest
2) ' If you want to change it to a localized string, it can't be called a key anymore. '
I don't understand this statement. Yes. Changing the type permitted changes the type permitted.
Can't be called a key. Because it's not a key. And right now it's called a key.
Yes, and that's why any ...
- Sat May 24, 2025 12:49 am
- Forum: Modding interface requests
- Topic: Breaking changes: aligning furnace.cant_insert_at_source_message_key and the rest
- Replies: 6
- Views: 960
Re: Breaking changes: aligning furnace.cant_insert_at_source_message_key and the rest
Small desired edits: Nth being the length of the pre-defined parameters, localised parameters being n+1 of the localised string, etc
- Sat May 24, 2025 12:46 am
- Forum: Modding interface requests
- Topic: Breaking changes: aligning furnace.cant_insert_at_source_message_key and the rest
- Replies: 6
- Views: 960
Re: Breaking changes: aligning furnace.cant_insert_at_source_message_key and the rest
It receives a parameter from the outside. How do you suppose that should be passed to a fully specified localized string?
Hence also the word "key" in the name of the property. The key being the name of the locale string it uses to look it up. If you want to change it to a localized string, it ...
- Fri May 23, 2025 10:31 pm
- Forum: Modding interface requests
- Topic: Breaking changes: aligning furnace.cant_insert_at_source_message_key and the rest
- Replies: 6
- Views: 960
Breaking changes: aligning furnace.cant_insert_at_source_message_key and the rest
A small discrepancy in some of the new localised things for furnaces, and maybe other prototypes. It was decided they used plain strings, omitting the table of localised strings.
Considering localised strings in the regular use has tables, I think there should be an alignment one way or the other ...
Considering localised strings in the regular use has tables, I think there should be an alignment one way or the other ...
- Sat Apr 12, 2025 2:41 pm
- Forum: Modding interface requests
- Topic: Change rocket-silo.lua to check for normal rocket-silo
- Replies: 0
- Views: 330
Change rocket-silo.lua to check for normal rocket-silo
A simple change would allow for modded, but freeplay-based, games to use rocket silos for other purposes, without triggering the win condition.
On line 33 of rocket-silo.lua, there's:
if not (rocket and rocket.valid) then return end
These lines could be added, underneath:
local silo ...
On line 33 of rocket-silo.lua, there's:
if not (rocket and rocket.valid) then return end
These lines could be added, underneath:
local silo ...
- Wed Apr 02, 2025 2:42 am
- Forum: Resolved Requests
- Topic: InventoryPosition stack is 0-based
- Replies: 1
- Views: 459
InventoryPosition stack is 0-based
It would be appreciated if https://lua-api.factorio.com/2.0.43/concepts/InventoryPosition.html was noted to use 0-based inventory indexing, in contrast to other inventory stack index behavior.
It is noted in a forum post, this behavior is "intended" unless a larger change is made for backwards ...
It is noted in a forum post, this behavior is "intended" unless a larger change is made for backwards ...