How to disable an entity?

Place to get help with not working mods / modding interface.
Keysivi
Fast Inserter
Fast Inserter
Posts: 108
Joined: Mon Feb 07, 2022 5:29 pm
Contact:

How to disable an entity?

Post by Keysivi »

Hello! I am setting up the integration of the AAI Industry and Crash Site mods https://mods.factorio.com/mod/atan-crash-site

Since Crash Site already has production and laboratory modules, I want to disable the entities 'burner_lab' and 'burner-assembling-machine'

Unfortunately, deleting recipes from the technology tree is not enough, since 'burner_lab' as a type of 'lab' is hardcoded in the technologies "research-speed-1-6".

I ask for help, since my programming knowledge was not enough.

Thanks!
Keysivi
Fast Inserter
Fast Inserter
Posts: 108
Joined: Mon Feb 07, 2022 5:29 pm
Contact:

Re: How to disable an entity?

Post by Keysivi »

Here's how it is:
3.png
3.png (107 KiB) Viewed 185 times
And here's how it should be:
88.png
88.png (103.57 KiB) Viewed 185 times

The problem is in this parameter which is written in AAI industry:

Code: Select all

data.raw.lab["burner-lab"].next_upgrade = nil
data.raw.lab["burner-lab"].hidden = true
It needs to be canceled somehow.
Last edited by Keysivi on Tue Dec 03, 2024 2:23 am, edited 2 times in total.
s6x
Inserter
Inserter
Posts: 35
Joined: Fri Nov 15, 2024 8:22 pm
Contact:

Re: How to disable an entity?

Post by s6x »

Code: Select all

burner_lab.next_upgrade = nil
Keysivi
Fast Inserter
Fast Inserter
Posts: 108
Joined: Mon Feb 07, 2022 5:29 pm
Contact:

Re: How to disable an entity?

Post by Keysivi »

s6x wrote: Mon Dec 02, 2024 6:11 pm

Code: Select all

burner_lab.next_upgrade = nil
Thanks for the comment.

I apologize. I inserted the wrong code.

To avoid confusing visitors, I replaced the original comment.
Post Reply

Return to “Modding help”