Page 1 of 1

[Mod 0.2.9] Furnace Upgrades

Posted: Tue Feb 26, 2013 1:33 am
by 15Cyndaquil
I have finished the furnace upgrade mod i have been working on for about a week. I have finished all the code and the recipes are just 5 of the respected material for which the furnace is called (iron furnace is 5 iron plates, copper furnace is 5 copper plates, and steel furnace is 5 steel plates). Although i have finished the code i am not talented in drawing in any shape, form or way so the sprites are the same as the regular furnace.

I am planing to change the recipe of the furnaces to make it a little more challenging to obtain and am willing to take any suggestions on this topic and will consider any and all suggestions given to me for the recipes of these furnaces.

As i have stated i do not have any sprites for the furnaces i added and am unable to create them my self, so anyone who want to submit a sprite for these furnaces i will be willing to update the mod with these furnaces if they are good.

In order to install this mod just extract all files into the main factorio folder

for 0.2.8 not upgraded to 0.2.9
mod_furnace-upgrade 0.1.0.zip
(83.37 KiB) Downloaded 429 times


for 0.2.9
mod_furnace-upgrade 0.2.0.zip
(83.43 KiB) Downloaded 500 times

Re: [WIP] Furnace Upgrades

Posted: Tue Feb 26, 2013 10:58 pm
by ficolas
WTF u had the same idea I had...
And for me the copper is needed to create the iron one, so the iron one is better

but the steel furnace is a electric furnace for me :P
But I dont know if I can do that, im gonna try anyways, if I cant, I will read the code :S

Re: [WIP] Furnace Upgrades

Posted: Wed Feb 27, 2013 2:13 am
by 15Cyndaquil
I'm wondering if someone can help. I have already done most of the modding for the furnaces but i keep getting an id error and have not been able to figure out how to fix it.

Re: [WIP] Furnace Upgrades

Posted: Wed Feb 27, 2013 7:51 am
by Heinrich
I tried to create a test furnance yesterday and it worked. The ID error is due tu a missing item definition.

You need an entity definition, a recipe definition and an item definition.

- The entity definition describes how it's integrated in the game world (appearence, behavior).
- The recipe definition describes how it is created.
- The item definition describes how it's handled in your inventory.

Optional you can create an item descriptions/name, so the game can say something meaningfull about it.

I'll upload my test files later when i'm at the other computer.

Hope it helps,
Heinrich.

Re: [WIP] Furnace Upgrades

Posted: Wed Feb 27, 2013 9:56 am
by Heinrich
I attached my Test Furnace mod to this post. It just adds more smoke and is less expensive to craft.

The file contains the games data folder with everything deleted not associated with the mod:

1. Edited freeplay.lua + backup to have more resources at start and no creepers spawning.
2. Prototype definitions for the test furnace, including entity, item and recipe definitions.
3. Graphic resources, I just copied the images from the stone furnace and renamed them.

You just have overwrite your [Factorio Folder]\data folder with the data folder in the attachment and it should work. However, i skipped making some description/naming due to lazyness ;) .

Re: [WIP] Furnace Upgrades

Posted: Wed Feb 27, 2013 7:42 pm
by 15Cyndaquil
Thanks heinrich ill try this out later today and upload the mod as soon as i get some images.

Re: [WIP] Furnace Upgrades

Posted: Thu Feb 28, 2013 1:28 pm
by MatLaPatate
Wait ... it's called Furnace Upgrades, but there is no Electric one ? ^^

Re: [WIP] Furnace Upgrades

Posted: Thu Feb 28, 2013 1:31 pm
by ficolas
MatLaPatate wrote:Wait ... it's called Furnace Upgrades, but there is no Electric one ? ^^
You cant make an electric furnace yet, c code needs to be edited, and for mods we can just use json and lua

Re: [WIP] Furnace Upgrades

Posted: Thu Feb 28, 2013 2:29 pm
by rk84
You could make electric furnace from radar type entity (for melting) and container entities (for holding ores/metal). So that onscan event you would check containers next to it and switch ores to metal. Not the easiest setup but could work?

Re: [WIP] Furnace Upgrades

Posted: Thu Feb 28, 2013 2:39 pm
by kovarex
ficolas wrote:
MatLaPatate wrote:Wait ... it's called Furnace Upgrades, but there is no Electric one ? ^^
You cant make an electric furnace yet, c code needs to be edited, and for mods we can just use json and lua
I will just make the energy source of furnace dynamic (the same way it is specified in mining drill/inserter), so people can create electric furnace easily.

Re: [WIP] Furnace Upgrades

Posted: Thu Feb 28, 2013 3:45 pm
by MatLaPatate
kovarex wrote:
ficolas wrote:
MatLaPatate wrote:Wait ... it's called Furnace Upgrades, but there is no Electric one ? ^^
You cant make an electric furnace yet, c code needs to be edited, and for mods we can just use json and lua
I will just make the energy source of furnace dynamic (the same way it is specified in mining drill/inserter), so people can create electric furnace easily.
Will we be able to make machines that wouldn't be furnace, i.e processing ore machines ?

Re: [WIP] Furnace Upgrades

Posted: Thu Feb 28, 2013 3:53 pm
by kovarex
Well, nothing stops you from creating recipe for ore processing even now.

Re: [WIP] Furnace Upgrades

Posted: Thu Feb 28, 2013 4:37 pm
by MatLaPatate
Yup, but for now it can't be energy based. But that's ok :)

Re: [WIP] Furnace Upgrades

Posted: Thu Feb 28, 2013 5:04 pm
by ficolas
MatLaPatate wrote:Yup, but for now it can't be energy based. But that's ok :)
Quote from kovarex's post
kovarex wrote:I'm just rewriting the recipe structure so this will be easily possible to mod.
Basically, all recipes will be defined the same way, but every recipe has recipe-category.
Machines (and player and furnace) will have list of categories they can use.
So mod can add new recipe categories and machines that are specialised on certain categories.

Re: [WIP] Furnace Upgrades

Posted: Thu Feb 28, 2013 6:42 pm
by MatLaPatate
Lol. So I may be able to make some processing machines. Nice :)