Page 1 of 1

How to disable an entity?

Posted: Mon Dec 02, 2024 10:27 am
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!

Re: How to disable an entity?

Posted: Mon Dec 02, 2024 5:40 pm
by Keysivi
Here's how it is:
3.png
3.png (107 KiB) Viewed 419 times
And here's how it should be:
88.png
88.png (103.57 KiB) Viewed 419 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.

Re: How to disable an entity?

Posted: Mon Dec 02, 2024 6:11 pm
by s6x

Code: Select all

burner_lab.next_upgrade = nil

Re: How to disable an entity?

Posted: Tue Dec 03, 2024 2:22 am
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.