Recipe error in assignID, item with name 'power-armor-mk3' does not exist.

Place to get help with not working mods / modding interface.
Shapeshifters
Burner Inserter
Burner Inserter
Posts: 11
Joined: Sun Nov 27, 2016 12:25 pm
Contact:

Recipe error in assignID, item with name 'power-armor-mk3' does not exist.

Post by Shapeshifters »

So, I'm not an experienced modder by any degree but I've taken to trying to modify Rampant Arsenal for personal use.

Essentially whats happened is I took interest in this mod called Power Armor MK4 because it has a ridiculous 40x40 equipment grid MK4 armor, but other than that there wasn't much to it I liked. Also while running Rampant Arsenal with this mod, and the Power Armor MK3 mod there becomes two MK3 armors. So I took it upon myself to just integrate a Power Armor MK4 into Rampant Arsenal and remove the MK3 and MK4 mods from my mod pack.

I succeeded, but then I guess I realized that the item, 'power-armor-mk3' my MK4 was using for its recipe was the one from the other mod. Though as far as I can tell the MK3 from Rampant arsenals item name should also be 'power-armor-mk3'.

Where would I find the name for the armor from Rampant Arsenal?
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3749
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Recipe error in assignID, item with name 'power-armor-mk3' does not exist.

Post by DaveMcW »

This command will print the name of the armor you are wearing.

Code: Select all

/c game.print(game.player.get_inventory(defines.inventory.character_armor)[1].name)
Shapeshifters
Burner Inserter
Burner Inserter
Posts: 11
Joined: Sun Nov 27, 2016 12:25 pm
Contact:

Re: Recipe error in assignID, item with name 'power-armor-mk3' does not exist.

Post by Shapeshifters »

Code: Select all

    local powerarmor3 = makeTechnology({
	    name = "power-armor-mk3",
	    icon="__RampantArsenal__/graphics/technology/power-armor-mk3.png",
	    prerequisites = {"power-armor-mk2", "nuclear-power"},
	    effects = {},
	    count = 600,
	    ingredients = {
		{"automation-science-pack", 1},
    		{"logistic-science-pack", 1},
		{"chemical-science-pack", 1},
    		{"military-science-pack", 1},
		{"utility-science-pack", 1},
		{"production-science-pack", 1}
	    },
	    time = 30
    })

    makeTechnology({
	    name = "power-armor-mk4",
	    icon="__RampantArsenal__/graphics/technology/power-armor-mk4.png",
	    prerequisites = {"powerarmor3", "space-science-pack"},
	    effects = {},
	    count = 600,
	    ingredients = {
		{"automation-science-pack", 1},
    		{"logistic-science-pack", 1},
		{"chemical-science-pack", 1},
    		{"military-science-pack", 1},
		{"utility-science-pack", 1},
		{"production-science-pack", 1}
	    },
	    time = 30
    })
So here's what I'm dealing with right now, and the error I'm getting is saying "powerarmor3" does not exist. What am I doing wrong?

Basically all I'm trying to do is get the second technology to require the first one.
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3749
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Recipe error in assignID, item with name 'power-armor-mk3' does not exist.

Post by DaveMcW »

Replace "powerarmor3" with powerarmor3.name or "power-armor-mk3".
Shapeshifters
Burner Inserter
Burner Inserter
Posts: 11
Joined: Sun Nov 27, 2016 12:25 pm
Contact:

Re: Recipe error in assignID, item with name 'power-armor-mk3' does not exist.

Post by Shapeshifters »

DaveMcW wrote: Fri Apr 03, 2020 6:01 am Replace "powerarmor3" with powerarmor3.name or "power-armor-mk3".
Tried this just now, doesn't seem to work. Just also says cannot find "power-armor-mk3" or "powerarmor3.name" when I try to load.
Post Reply

Return to “Modding help”