Search found 10 matches

by FeelusM
Tue Oct 28, 2025 12:42 am
Forum: Modding help
Topic: How to get/set description of combinator?
Replies: 1
Views: 211

How to get/set description of combinator?

How to get/set description of constant-combinator or decider-combinator?
by FeelusM
Mon Oct 27, 2025 11:49 pm
Forum: Modding help
Topic: How to modify entity.tags?
Replies: 7
Views: 565

Re: How to modify entity.tags?

ghost_unit_number
I create entity, click on it, it prints `entity` `499`.
I deconstruct entity, press Ctrl+Z, click on ghost, and it prints `ghost` `nil`.

local function create_gui(player, entity)
game.print("entity")
game.print(entity.unit_number)
end
local function create_ghost_gui(player ...
by FeelusM
Sun Oct 26, 2025 1:29 pm
Forum: Modding help
Topic: How to modify entity.tags?
Replies: 7
Views: 565

Re: How to modify entity.tags?

Where should I store data between deconstruction and cancelling deconstruction (Ctrl+Z) and
How should I set ghost_entity.tags? (On which event? and How to understand which real former entity corresponds to the restored ghost? (real former entity and restored ghost have different `unit_number`s))
by FeelusM
Sat Oct 25, 2025 11:21 pm
Forum: Modding help
Topic: How to modify entity.tags?
Replies: 7
Views: 565

Re: How to modify entity.tags?

Can I store data associated with real entity somewhere in entity object? Is there canonical place for such purposes?

Or I should save it in `storage.some_data[entity.unit_number]` and write boilerplate code for transferring it between `storage` and `ghost_entity.tags` for numerous events?
by FeelusM
Sat Oct 25, 2025 9:40 pm
Forum: Modding help
Topic: How to modify entity.tags?
Replies: 7
Views: 565

How to modify entity.tags?

Documantation says:
Note that the API returns tags as a simple table, meaning any modifications to it will not propagate back to the game. Thus, to modify a set of tags, the whole table needs to be written back to the respective property.

I try:

script.on_event(defines.events.on_built_entity ...
by FeelusM
Mon Oct 20, 2025 1:16 pm
Forum: Ideas and Suggestions
Topic: Make circuit connection behavior configurable per wire
Replies: 58
Views: 12336

Re: Make circuit connection behavior configurable per wire

Also useful option would be to control enabling "trash unrequested" mode in blue chest by some signal letter (like controlling inserter capacity in inserters)
by FeelusM
Wed Oct 15, 2025 2:51 pm
Forum: Ideas and Suggestions
Topic: involve entity settings in undo-redo sequence
Replies: 0
Views: 161

involve entity settings in undo-redo sequence

steps to reproduce:
1) build or destroy some object A (lamp for example)
2) change settings of some another object B (for example set filters in some inserter)
3) press Ctrl+Z

expected behavior:
settings of object B will be the same as it was before
OR settings of object B will be the same as it ...
by FeelusM
Mon Oct 13, 2025 8:15 pm
Forum: Ideas and Suggestions
Topic: description for lamps
Replies: 0
Views: 164

description for lamps

Please, add capability to add description for lamp like for Display panel or for any other combinators
by FeelusM
Sun Oct 12, 2025 2:21 pm
Forum: Ideas and Suggestions
Topic: Make circuit connection behavior configurable per wire
Replies: 58
Views: 12336

Re: Please, PLEASE make circuit connection behavior configurable per wire

I would also like to suggest make an option in blue chests (and other storages with requests) to "read the contents, including the contents of robots involved by this chest."
How robots work: Upon receiving a request, the robot reserves the requested items = subtracts robot's capacity from the total ...
by FeelusM
Thu Oct 09, 2025 11:32 am
Forum: Ideas and Suggestions
Topic: Make circuit connection behavior configurable per wire
Replies: 58
Views: 12336

requester chest: cirquit connection

I can inserter simultaneously connect to two cirquits: by one set filters and by another read hand contents.
But for requester chest I can only choose between set requests and read contents.
Feature request: make independent capabilities of set requests and read contents for requester chest.

Go to advanced search