Page 1 of 1

Make Fire Easier to Extend [solved]

Posted: Thu Oct 24, 2019 10:47 pm
by saors
TL;DR
I want to spawn different color fire entities, but I cannot do it very easily.

What ?
Trying to create a new fire entity, in the same way that I do other custom entities, and modify the tint value, duration, and damage. I cannot because I basically need to copy over every function in the file (to get pictures, and the smoke, etc.), at which point I get an error about not using fire-smoke as it's been deprecated in favor of trivial smoke.
Screenshot_1.png
Screenshot_1.png (20.11 KiB) Viewed 1014 times

Re: Make Fire Easier to Extend

Posted: Fri Oct 25, 2019 12:14 pm
by Rseding91
This seems like a lack of understanding how Factorio modding works. I'm going to move this into the modding help section where you're far more likely to get useful help.

Re: Make Fire Easier to Extend

Posted: Fri Oct 25, 2019 3:28 pm
by saors
I discovered the problem. my working directory was pre .17 while my testing directory was post .17

After fixing this, I am able to copy the fireutil, fireutil.foreach, and fireutil.create_fire_pictures and just do a deepcopy of the fire-flame and modify that.

I then had to copy the graphics from the base and change the references to them in the fireutil function.