Butchering another mod - prototype error

Place to get help with not working mods / modding interface.
Post Reply
Guybrush08
Manual Inserter
Manual Inserter
Posts: 3
Joined: Mon Jun 25, 2018 10:23 am
Contact:

Butchering another mod - prototype error

Post by Guybrush08 »

Hello

My first attempt at making a mod - I just want thewater and air pumps from bobs plates - I thought I had taken everything I needed.

I am getting an error on startup to do with protoypes not found in the base game.

Any help would be really appreciated.

I can copy the code into the threat here if needed
Attachments
WaterandAirPumps_0.1.0.zip
The mod itself
(125.59 KiB) Downloaded 36 times
Mod error picture
Mod error picture
error factorio mod.png (17.91 KiB) Viewed 959 times

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2903
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Butchering another mod - prototype error

Post by darkfrei »

data.lua is:

Code: Select all

require("prototypes.item")
require("prototypes.recipe")
require("prototypes.entity")
data.lua must be:

Code: Select all

require("prototypes.entity.pumps")
require("prototypes.item.item")
require("prototypes.recipe.item-recipe")

Guybrush08
Manual Inserter
Manual Inserter
Posts: 3
Joined: Mon Jun 25, 2018 10:23 am
Contact:

Re: Butchering another mod - prototype error

Post by Guybrush08 »

Thank you

That solved that problem

I am now getting this

I have got this in my prototypes/category.lua

Code: Select all

data:extend(
{
  {
    type = "recipe-category",
    name = "air-pump"
  },
  {
    type = "recipe-category",
    name = "water-pump"
  },
}
)

Attachments
error factorio mod.png
error factorio mod.png (14.78 KiB) Viewed 937 times

orzelek
Smart Inserter
Smart Inserter
Posts: 3911
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: Butchering another mod - prototype error

Post by orzelek »

I would be a bit careful about "butchering" like that.
Bob's license for his mods might forbid that kind of mod stripping unless you want it for personal use only without any distribution.

Guybrush08
Manual Inserter
Manual Inserter
Posts: 3
Joined: Mon Jun 25, 2018 10:23 am
Contact:

Re: Butchering another mod - prototype error

Post by Guybrush08 »

This is literally just for me - wont be going on the portal.

I've had a good look around and cant find any pumps on other mods that do the same things barring using creative mod and I dont want to.

Post Reply

Return to “Modding help”