Item Duplicate

Place to get help with not working mods / modding interface.
Alukat
Inserter
Inserter
Posts: 26
Joined: Mon May 18, 2015 11:16 pm
Contact:

Item Duplicate

Post by Alukat »

Hey, since the original homeworld author hasn't updated it in ages, i'm trying to update it.
Dyworld has sand & glass recipe, when having both dyworld and homeworld there is sand & glass twice with diffrent picture/recipe.
How can i make it so that the dyworld picture/recipe is used and the homeworld recipe/picture gets deactivated when dyworld is active?
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Item Duplicate

Post by darkfrei »

Alukat wrote:Hey, since the original homeworld author hasn't updated it in ages, i'm trying to update it.
Dyworld has sand & glass recipe, when having both dyworld and homeworld there is sand & glass twice with diffrent picture/recipe.
How can i make it so that the dyworld picture/recipe is used and the homeworld recipe/picture gets deactivated when dyworld is active?
They must have the same internal names.

Please always write PM to old mod author before ljdp's Profile

So, all dyworld-intermediates must be without "dyworld-" prefix.

Code: Select all

data.raw.item["dyworld-sand"].type = "item"
data.raw.item["dyworld-sand"].name = "dyworld-sand"
data.raw.item["dyworld-sand"].flags.1 = "goes-to-main-inventory"
data.raw.item["dyworld-sand"].subgroup = "dyworld-intermediates"
data.raw.item["dyworld-sand"].stack_size = 500
data.raw.item["dyworld-sand"].icon = "__DyWorld__/graphics/icons/sand.png"
data.raw.item["dyworld-sand"].order = "sand"
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Item Duplicate

Post by darkfrei »

So, here is DyWorld Renamer, it makes all items from DyWorld same like in all other mods (without prefixes).
Added migration script.
Attachments
2017-12-04 20_11_55.png
2017-12-04 20_11_55.png (76.58 KiB) Viewed 3069 times
Alukat
Inserter
Inserter
Posts: 26
Joined: Mon May 18, 2015 11:16 pm
Contact:

Re: Item Duplicate

Post by Alukat »

thx ^^
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: Item Duplicate

Post by bobingabout »

I can understand why he does that... but there was a talk about conventions, and when and where you should and shouldn't prefix things.

By prefixing everything, he's just being.... unkind.

Common items like ores, plates, gears etc SHOULDN'T be prefixed, though if the production process differs from the base game (you don't get a plate from smelting an ore in the furnace, and gears don't cost 2 plates each in an assembling machine etc), then you should prefix the RECIPE only.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
Post Reply

Return to “Modding help”