Factorio

Factorio

İstatistiklere Bak:
Plasma gasification for electricity and slag production
This would be really cool for a mod! Plasma gasification produces a gas that is combustable which can be used as fuel, and the slag could be used as a landfill or wall material, or maybe as a recipe ingredient at increased cost.
< >
29 yorumdan 16 ile 29 arası gösteriliyor
So i added an icon (the one that came with the mod) and now it wants a subgroup also. None of the base recipes for items have a subgroup (from the recipe.lua)
I'm not sure how items.lua and recipes.lua interact, but it seems that by changing to use results table, somehow the definitions in items.lua got thrown out. I set the subgroup in recipes, and now the name of the item in the game got changes to "unknown key.recipes" blah blah. But it's working now, assembles two items as per the recipe.
En son Game Over, Man tarafından düzenlendi; 7 May 2016 @ 23:24
You closed it off incorrectly.

Here is an example of a results block
results= { {type="item", name="y-crush-yres1", amount=1, }, {type="item", name="y-crush-yres2", amount=1, }, },

Every item must have an icon and must belong to some category, group, and subgroup.
En son Muffinman tarafından düzenlendi; 7 May 2016 @ 23:39
Here's how it looks currently:
--result = "flare-stack"
results =
{
{type="item", name="flare-stack", amount=1,},
{type="item", name="wooden-chest", amount=1,},
},
icon = "__Flare Stack__/graphics/icon/flare-stack.png",
subgroup = "production-machine"
only thing out of place is the name, it reads "Unknown key: recipe-name.flare-stack"

There was no group defined anywhere in the mod.. except for the refining recipes.
En son Game Over, Man tarafından düzenlendi; 7 May 2016 @ 23:46
Well what is flare-stack and has it been defined before?
It's a mod I have installed, I am using it as a template or example. I just don't see a group for the item anywhere, only a subgroup. The name shows up fine without the changes.
En son Game Over, Man tarafından düzenlendi; 8 May 2016 @ 1:04
As for the original idea, I think having two types of waste, organic and inorganic, would be the only way to make a modicum of logical sense. Looking at this idea in terms of the game, there would need to be a plethora of recipes for the gasifier, because then it could produce both slag and gas. From what I read of them of wikipedia, there is some kind of feedstock ratio between organic and inorganic material. And there must be recipes for the game, which are hardcoded amounts.
If it is telling you "Unknown key: recipe-name.flare-stack" then it means flare-stack is not defined or that your syntax for the recipe is wrong so it can't read it right. The syntax is quite picky. As for groups, and subgroup, that is another set of entries. I suggest you look at Yuoki mod for examples.

Here is a recipe with two results
{ type = "recipe", name = "y-filtering-dust-recipe", energy_required = 2.0, enabled = "true", ingredients = {{"y-c_mud", 40},}, results= { {type="item", name="y-crush-yres1", amount=1, }, {type="item", name="y-crush-yres2", amount=1, }, }, icon = "__Yuoki__/graphics/icons/bg-dusts.png", category = "yuoki-formpress-recipe", group = "yuoki", subgroup = "y_line3", },
En son Muffinman tarafından düzenlendi; 8 May 2016 @ 8:04
If it's only the name of the entity/recipe/item... that says unknown-key ingame but everything else works, then you just need to add a locale to your mod.
Check out how other mods do it, in their locale folder. Make sure you at least add an english locale, as that's what will be used when the specific language is not found.
I will look at these mods for examples. I'm not proficient in Lua, I barely understand the syntax, but I don't think syntax is the error here.

The mod I cited as an example does have a locale file. The name problem only happens when I add a second item to the result. I used the same results table, with only one entry, and the name showed up normally. Adding the second item, wooden chest for this example, caused the name error.
İlk olarak Game Over, Man tarafından gönderildi:
The mod I cited as an example does have a locale file. The name problem only happens when I add a second item to the result. I used the same results table, with only one entry, and the name showed up normally. Adding the second item, wooden chest for this example, caused the name error.
If the recipe has only one product then it will use the name of the product as recipe name.
If it has two or more products you'll need to give the recipe itself a name.

Example (from the hardCrafting mod, locale/en/recipes.cfg):
[recipe-name] dried-dirt=Dried dirt
The dried-dirt recipe uses one ingredient (dirt) but creates two products (dried dirt and water), therefore you need to add a designated name for the recipe.
Yes that fixed it. It only had an Entity name, and adding the same definition under recipe name worked. Thanks guys!
Doesn't a mod like this already exists in the form of DyTech ?
I kinda remember something about slag, dirt, etc etc in that mod

(been playing BoB's mod more recently)

EDIT: NOT meant to discourage you...in fact; I think it's excellent you're trying to implement it on your own (kudo's for you). I just wanted to bring it to your attention.
En son Overeagerdragon tarafından düzenlendi; 10 May 2016 @ 6:21
I think there some be some form of material waste, not only air pollution. This idea started from wanting an incinerator to burn unused items, but it would be cooler to recycle them somehow.
< >
29 yorumdan 16 ile 29 arası gösteriliyor
Sayfa başına: 1530 50

Gönderilme Tarihi: 7 May 2016 @ 0:39
İleti: 29