Search found 9 matches

by Gamker
Sun Aug 13, 2023 4:12 pm
Forum: Modding help
Topic: How to get the type of magazine which damaged the entity
Replies: 1
Views: 289

How to get the type of magazine which damaged the entity

I'm creating a mod which adds special types of magazines to the game, on of which explodes in a small area upon impact. I want to make it explode when an entity is damaged using the "on_entity_damaged" event, but I can't figure out how to get the type of magazine that damaged the entity.
by Gamker
Thu Jan 14, 2021 12:51 pm
Forum: Modding help
Topic: [Solved] Error in assignID
Replies: 10
Views: 1866

Re: Error in assignID

Oh ok.
by Gamker
Thu Jan 14, 2021 8:02 am
Forum: Gameplay Help
Topic: Is there a way keep it all day just by visual but not the actual day/night mechanism?
Replies: 8
Views: 2261

Re: Is there a way keep it all day just by visual but not the actual day/night mechanism?

There is a way to do that without commands. There are night vision goggles in factorio vanilla and if you download the afraid of the dark mod you will be able to craft perfect night glasses.
by Gamker
Thu Jan 14, 2021 7:58 am
Forum: Modding help
Topic: [Solved] Error in assignID
Replies: 10
Views: 1866

Re: Error in assignID

I'm going to leave this thread open because I have no idea how to close it so if anyone knows plz tell me.
by Gamker
Wed Jan 13, 2021 4:05 pm
Forum: Modding help
Topic: [Solved] Error in assignID
Replies: 10
Views: 1866

Re: Error in assignID

It helped a lot.
by Gamker
Wed Jan 13, 2021 3:56 pm
Forum: Modding help
Topic: [Solved] Error in assignID
Replies: 10
Views: 1866

Re: Error in assignID

PFQNiet wrote: ↑
Wed Jan 13, 2021 3:33 pm
Deepcopy data.raw.item.inserter and change its properties as needed.
Ok I'll try that.
by Gamker
Wed Jan 13, 2021 3:19 pm
Forum: Modding help
Topic: [Solved] Error in assignID
Replies: 10
Views: 1866

Re: Error in assignID

PFQNiet wrote: ↑
Wed Jan 13, 2021 9:42 am
You have an entity and a recipe, but you need an item.
And how do I add an item(I'm a beginner at modding)?
by Gamker
Wed Jan 13, 2021 8:16 am
Forum: Modding help
Topic: [Solved] Error in assignID
Replies: 10
Views: 1866

Re: Error in assignID

ptx0 wrote: ↑
Tue Jan 12, 2021 5:56 pm
are you doing that in data stage?
No, it's in item.lua. It's the last bit that seems to not work (recepie.result= "inserter2").
by Gamker
Tue Jan 12, 2021 5:44 pm
Forum: Modding help
Topic: [Solved] Error in assignID
Replies: 10
Views: 1866

[Solved] Error in assignID

I have started modding and I got an error (Error in assignID: item with name 'inserter2' does not exits.) My code so far (item.lua): local inserter2 = table.deepcopy(data.raw["inserter"]["inserter"]) inserter2.name = "inserter2" inserter2.icons = { { icon = inserter2.ic...

Go to advanced search