[Question] Is there a Way to remove ... ?

Place to get help with not working mods / modding interface.
User avatar
LuziferSenpai
Filter Inserter
Filter Inserter
Posts: 375
Joined: Tue Jul 08, 2014 10:06 am
Contact:

[Question] Is there a Way to remove ... ?

Post by LuziferSenpai »

Hey Guys, is there a way to completly remove a Tech, Item, Recipe etc. ?

I know the ways:

Code: Select all

data.raw["technology"]["armor-making"] = nil
data.raw["technology"]["armor-making"] = {}
But then i get a Error with AssignID's.
Please help me.

Greetz,

Cookie
Coding is awesome!
Animes are love!
Factorio is life!

My MODs:
Click

Greetz,

Senpai
Rseding91
Factorio Staff
Factorio Staff
Posts: 14397
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [Question] Is there a Way to remove ... ?

Post by Rseding91 »

You have to remove all references to the thing you want to remove.

If you remove an item you need to remove any recipes that use it.

If you remove an technology you need to remove other technologies that reference it.

If you remove an entity you need to remove all items that reference it and any other entity that references it.
If you want to get ahold of me I'm almost always on Discord.
User avatar
LuziferSenpai
Filter Inserter
Filter Inserter
Posts: 375
Joined: Tue Jul 08, 2014 10:06 am
Contact:

Re: [Question] Is there a Way to remove ... ?

Post by LuziferSenpai »

And is there an easy way to see what i need to remove?
Coding is awesome!
Animes are love!
Factorio is life!

My MODs:
Click

Greetz,

Senpai
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3718
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: [Question] Is there a Way to remove ... ?

Post by DaveMcW »

1. Install Notepad++ or any other program with a good file search.
2. Search the Factorio folder for the item you want to remove.
User avatar
LuziferSenpai
Filter Inserter
Filter Inserter
Posts: 375
Joined: Tue Jul 08, 2014 10:06 am
Contact:

Re: [Question] Is there a Way to remove ... ?

Post by LuziferSenpai »

DaveMcW wrote:1. Install Notepad++ or any other program with a good file search.
2. Search the Factorio folder for the item you want to remove.
I have Sumblime Text ^^ But yeah, i only have a problem be disabling Armor, but i dont know why.
Coding is awesome!
Animes are love!
Factorio is life!

My MODs:
Click

Greetz,

Senpai
User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: [Question] Is there a Way to remove ... ?

Post by Adil »

I'm likely to do many typos but you can get the idea
data-final-fixes.lua
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
Post Reply

Return to “Modding help”