Page 1 of 1

Persistent "Entity Does Not Exist" Error with Simple Generator-Equipment Mod (2.0)

Posted: Sun Sep 28, 2025 8:48 pm
by Zupermini09
Hi everyone,

I'm trying to learn modding by creating a simple generator for my armor in Factorio 2.0, but I'm completely stuck on a persistent error and I'm hoping someone can see what I'm missing.

No matter what I try, the game fails to load with this same error:
`Error in assignID: entity with name 'fusion-core-equipment' does not exist. Source: fusion-core-equipment (item).`

This is confusing because a minimal test mod (defining just a single simple item) loads perfectly fine in the same folder, so I don't think it's an issue with my file names or encoding.

Based on help I've received, I have already tried fixing all the common 2.0 API changes:
- Added the mandatory `equipment_id` property to the equipment.
- Changed the item's icon definition to the new `icons = {{...}}` format.
- Changed the recipe to use the new `ingredients = {{...}}` and `results = {{...}}` table formats.
- Updated the equipment `categories` from "power-armor" to "armor".
- Removed the obsolete `allow_in_power_armor` property.

Nothing has worked. Could someone please look at my files and tell me what is wrong?

Re: Persistent "Entity Does Not Exist" Error with Simple Generator-Equipment Mod (2.0)

Posted: Sun Sep 28, 2025 9:04 pm
by boskid
Your "fusion-core-equipment" item says (through ItemPrototype::place_result) that it can be used to build entity "fusion-core-equipment", however you are not defining any entity of that type. Given that the first prototype inside of your data.lua is of type "generator-equipment", i will assume what you want is for this item to not build an entity but to place an equipment. In that case your item should stop using place_result and use place_as_equipment_result instead.