Page 1 of 1

[0.13.6][posila] Mod Crashing Factorio

Posted: Thu Jul 07, 2016 3:02 pm
by jason03272002
I was told to place this in here by another user, as my problem shouldn't be crashing Factorio the way it is.

I created a mod that is supposed to make a mine that makes a flaming puddle upon detonation, and the research, crafting recipe and everything works fine, except when it is triggered. When an enemy steps on the mine, the game freezes for 30 or so seconds (although windows said it was still responding) after which I get a message saying I broke the game and the details are in the log. It starts fine, and looks like it has no problems other than that. My PC specs are:
-Windows 7 Home Premium, Service Pack 1
-64 bit architecture
-Intel i5 processor
-Intel HD Graphics 2000 graphics driver
-No graphics card, integrated
The log file and the mod are attached below.
NOTE: I previously added the WRONG LOG FILE, please re-download it!

Re: [0.13.6][posila] Mod Crashing Factorio

Posted: Thu Jul 07, 2016 6:13 pm
by posila
Hi, thanks for the report. I'll fix the crash, but the mod won't work anyway.
Entity of type "flame-thrower-explosion" cannot be created using "create-entity" trigger effect item. You have to use "create-explosion". You should use "create-explosion" also for creating "explosion" entity.

Re: [0.13.6][posila] Mod Crashing Factorio

Posted: Thu Jul 07, 2016 9:31 pm
by jason03272002
Thanks a lot! I appreciate the fix, and the help with my mod. Still a beginner :P

Re: [0.13.6][posila] Mod Crashing Factorio

Posted: Mon Aug 01, 2016 1:50 pm
by posila
Fixed for 0.13.14.
I considered making check when loading the mods, but that would add too much of complexity to solve such a small problem. So instead you'll get a runtime error instead of crash.

Re: [0.13.6][posila] Mod Crashing Factorio

Posted: Tue Aug 02, 2016 11:13 am
by jason03272002
Thanks! :D