Search found 6 matches

by Wannie
Tue Mar 18, 2025 8:49 am
Forum: Modding interface requests
Topic: Add Item Count to CustomInputEvent.selected_prototype
Replies: 2
Views: 134

Add Item Count to CustomInputEvent.selected_prototype

Would it be possible to add the item count when hovering over an item stack as a new custom-input property?

Thank you.
by Wannie
Mon Mar 20, 2023 10:07 pm
Forum: Minor issues
Topic: [1.1.72] on_trigger_created_entity has no last_user when player.character is destroyed before the entity is created
Replies: 4
Views: 1711

Re: [1.1.72] on_trigger_created_entity has no last_user when player.character is destroyed before the entity is created

Thanks for the clarification. I assume its not possible to change the projectile so it can also link to "LuaPlayer" or "playeridentification"? Because according to the API documentation, both the parameter "player" in surface.create_entity() and the attribute "last_user" of the class "luaEntity ...
by Wannie
Mon Mar 20, 2023 5:19 pm
Forum: Minor issues
Topic: [1.1.72] on_trigger_created_entity has no last_user when player.character is destroyed before the entity is created
Replies: 4
Views: 1711

Re: [1.1.72] on_trigger_created_entity has no last_user when player.character is destroyed before the entity is created

Sorry for the late reply. Its neither one of these. I try to clarify the situation more.

1. First the player is read via local player = game.players[...]
2. Second, a capsule is created via command surface.create_entity{ player = player }. This capsule has a projectile asscociated to it. The ...
by Wannie
Tue Nov 15, 2022 6:48 pm
Forum: Minor issues
Topic: [1.1.72] on_trigger_created_entity has no last_user when player.character is destroyed before the entity is created
Replies: 4
Views: 1711

[1.1.72] on_trigger_created_entity has no last_user when player.character is destroyed before the entity is created

When a projectile is created via LuaSurface.create_entity() with the parameter “player” set, but the player.character is destroyed before the projectile has time to trigger the “on_trigger_created_entity” event, the variable last_user in the created event.entity is nil.

The issue can be reproduced ...
by Wannie
Fri Apr 16, 2021 4:44 pm
Forum: Mods
Topic: [MOD 1.1] Combat Robots Overhaul
Replies: 0
Views: 2289

[MOD 1.1] Combat Robots Overhaul

Description:
This mod aims to overhaul the behaviour of Factorio's vanilla combat robots to make them more useful.

Defender Units will either follow the player or automatically defend the base in case of a biter attack. (toggle-able)

Distractor Units have been renamed to Sentry Units to better ...

Go to advanced search