Search found 13 matches

by pfg
Tue Apr 24, 2018 12:18 am
Forum: Modding discussion
Topic: [Guide] Adding badges to a mod's github readme
Replies: 2
Views: 1722

[Guide] Adding badges to a mod's github readme

Some github projects have badges that give you information about the project like number of open issues or number of users. The factorio mods page has an API where you can get some of this info. Using https://shields.io you can get badges from your mod page. To use, replace YOUR-MOD with your mod Do...
by pfg
Wed Feb 07, 2018 6:22 pm
Forum: Mods
Topic: [MOD 0.16.x] Liquid Science
Replies: 0
Views: 866

[MOD 0.16.x] Liquid Science

Type: Mod Name: Liquid Science Description: In game, science packs look like they should be a liquid. This mod turns science into a liquid that you have to bottle before using them in a lab. License: MIT Download: https://mods.factorio.com/mod/liquid-science/downloads Version: 0.1.6 Release: 11 mont...
by pfg
Sun Jan 28, 2018 7:49 am
Forum: Modding help
Topic: data.raw["recipe"] does not exist
Replies: 6
Views: 2419

Re: data.raw["recipe"] does not exist

Nexela wrote:settings.lua is a special file ran in the settings stage which is before the data stage, Simply rename this file (and where it is required from) to something else.
Thanks that fixed it
by pfg
Sun Jan 28, 2018 7:03 am
Forum: Modding help
Topic: data.raw["recipe"] does not exist
Replies: 6
Views: 2419

Re: data.raw["recipe"] does not exist

Somewhere before the fluid code then you must be doing data.raw = {} ? You will have to package everything up so we can take a look data.raw is used in the following places in the entire project. The project also worked in 0.14: enabled = data.raw["recipe"][name]["enabled"], log...
by pfg
Sun Jan 28, 2018 6:52 am
Forum: Modding help
Topic: data.raw["recipe"] does not exist
Replies: 6
Views: 2419

Re: data.raw["recipe"] does not exist

Post the whole code, or at least the whole code that adds the fluid. parseColor = require("api.parse_color") function addFluid(name,base_color,flow_color,icon) data:extend({ { type = "fluid", name = name, default_temperature = 0, max_temperature = 0, heat_capacity = "0KJ&qu...
by pfg
Sun Jan 28, 2018 6:03 am
Forum: Modding help
Topic: data.raw["recipe"] does not exist
Replies: 6
Views: 2419

data.raw["recipe"] does not exist

I'm working on a mod and it needs to get some recipes from the base game. It seems that doing data.raw["recipe"] returns nil and the only thing in data.raw is the one thing my mod managed to register before erroring. data.raw: 0.697 Script @__modname__/api/filename.lua:4: { fluid = { [&quo...
by pfg
Fri Feb 24, 2017 3:58 pm
Forum: Modding help
Topic: Remove ore offset randomization
Replies: 3
Views: 1305

Re: Remove ore offset randomization

darkfrei wrote:Make tile pictures 32x32 seamless.
That made it look even worse:
Image
by pfg
Fri Feb 24, 2017 5:10 am
Forum: Modding help
Topic: Remove ore offset randomization
Replies: 3
Views: 1305

Remove ore offset randomization

I currently am making a mod that adds sand, a mineable resource on the ground. This works fine, except the sand texture gets randomized in its placement on the ground, making it not tile. Is there any way to fix this? What I have: http://i.imgur.com/gpgBVLN.png What I want: (Notice how the sand text...
by pfg
Sun Feb 19, 2017 3:49 am
Forum: Modding help
Topic: Recipe is in crafting category but has a non-item product
Replies: 6
Views: 1969

Re: Custom fluid has unknown key

Unknown key means there's no locale (translation) for the thing giving the error text. How can I fix this? By adding the locale/en/locale.cfg file to your mod with the respective translations. It appears this isn't actually the problem, the full error says "recipe is in crafting category but h...
by pfg
Sun Feb 19, 2017 3:39 am
Forum: Modding help
Topic: Recipe is in crafting category but has a non-item product
Replies: 6
Views: 1969

Re: Custom fluid has unknown key

Rseding91 wrote:Unknown key means there's no locale (translation) for the thing giving the error text.
How can I fix this?
by pfg
Sun Feb 19, 2017 3:35 am
Forum: Modding help
Topic: Recipe is in crafting category but has a non-item product
Replies: 6
Views: 1969

Recipe is in crafting category but has a non-item product

I am registering a fluid called science-red, however when I try to use it in a crafting recipe, it says that "Recipe is in crafting category but has a non-item product". I can use other items I created such as an inserter I made, however the fluid isn't registering or isn't working for som...
by pfg
Wed Sep 21, 2016 10:01 pm
Forum: Modding help
Topic: Detecting when a custom inserter picks up an item
Replies: 3
Views: 1075

Detecting when a custom inserter picks up an item

I already have a custom inserter, and I want to know when it picks up an item so I can replace it with something else. How can I do this?

Go to advanced search