Search found 5 matches

by LiroxDeYamon
Mon Apr 27, 2026 2:42 pm
Forum: Modding interface requests
Topic: Consistency issues in events on_placed/removed_equipment
Replies: 9
Views: 432

Re: Consistency issues in events on_placed/removed_equipment


This is asking for a complete re-write of how LuaObjects work on the engine side and is not something I have any interest in attempting.


Ok then what about extra data table containing equipment's shield, max_shield, energy, max_energy, etc?
You already provide some data like name and quality ...
by LiroxDeYamon
Mon Apr 27, 2026 2:04 pm
Forum: Modding interface requests
Topic: Consistency issues in events on_placed/removed_equipment
Replies: 9
Views: 432

Re: Consistency issues in events on_placed/removed_equipment



#2 is kinda useless without #4
Btw, how does the event provide equipment name and quality if the instance is already gone?


Recording the ID (name and quality) before removing the equipment is simple. In Lua terms its as simple as:

local name = equipment.name
local quality = equipment ...
by LiroxDeYamon
Mon Apr 27, 2026 1:36 pm
Forum: Modding interface requests
Topic: Consistency issues in events on_placed/removed_equipment
Replies: 9
Views: 432

Re: Consistency issues in events on_placed/removed_equipment



Unfortunately #3 is just not currently viable due to how many places and ways can send the event (the current count is 15 places across robots, mods, direct player actions, copy-pasting spidertron settings and so on). #4 is not possible because by the time the equipment is removed - it is gone ...
by LiroxDeYamon
Mon Apr 27, 2026 10:59 am
Forum: Modding interface requests
Topic: Consistency issues in events on_placed/removed_equipment
Replies: 9
Views: 432

Consistency issues in events on_placed/removed_equipment

Hello!

Its really hard to do things with equipment as their events are inconsistent in naming, behavior and provided data.
Below is what i noticed so far an how I suggest fixing it.

Naming:
on_equipment_inserted and on_player_placed_equipment have different names ( "inserted" != "placed ...

Go to advanced search