[0.16.41][Modding] rocket-part not showing "made in" icon

Place to get help with not working mods / modding interface.
User avatar
lovely_santa
Filter Inserter
Filter Inserter
Posts: 502
Joined: Sat Feb 18, 2017 9:41 pm
Contact:

[0.16.41][Modding] rocket-part not showing "made in" icon

Post by lovely_santa »

Hi,

I'm currently working on changing the way the rocket is made :roll: . Here I use the following (relevant) code to make the rocket recipe visible, so it can be set just like an assembler:

Code: Select all

data.raw["rocket-silo"]["rocket-silo"].fixed_recipe = nil
data.raw["rocket-silo"]["rocket-silo"].rocket_parts_required = 1
data.raw["recipe"]["rocket-part"].hidden = nil
Apart from that I also change the subgroup, item and recipe, but thats irrelevant in this case:
Knipsel.PNG
Knipsel.PNG (661.26 KiB) Viewed 2198 times
As you can see, its showing "Made in:", but its not showing the rocket-silo as building that its build in, and yes, the recipe is still set to crafting in "rocket-building".

Kind regards,
lovely_santa
You can find all my mods on the mod portal. Also helping on Arch666Angel's mods.
Image
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5412
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: [0.16.41][Modding] rocket-part not showing "made in" icon

Post by Klonan »

Rocket silo cannot handle the recipe it has too many ingredients.

Code: Select all

data.raw["rocket-silo"]["rocket-silo"].ingredient_count = 6
to fix it
User avatar
lovely_santa
Filter Inserter
Filter Inserter
Posts: 502
Joined: Sat Feb 18, 2017 9:41 pm
Contact:

Re: [0.16.41][Modding] rocket-part not showing "made in" icon

Post by lovely_santa »

Yup, I totaly missed that...

This fixed it...

Code: Select all

data.raw["rocket-silo"]["rocket-silo"].ingredient_count = 6
You can find all my mods on the mod portal. Also helping on Arch666Angel's mods.
Image
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: [0.16.41][Modding] rocket-part not showing "made in" icon

Post by bobingabout »

Honestly, why is that tag even on the rocket silo? it trips up so many people, including myself.

and doubly so when you have packs like mine, and angels and more mods adding an ingredient to the rocket silo, but we all set it to 4 (1 above the existing), so the rocket part ends up with 5 or 6 ingredients, but everyone along the chain sets it to 4.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
User avatar
lovely_santa
Filter Inserter
Filter Inserter
Posts: 502
Joined: Sat Feb 18, 2017 9:41 pm
Contact:

Re: [0.16.41][Modding] rocket-part not showing "made in" icon

Post by lovely_santa »

First of all, I don't set a "fixed recipe" on the rocket silo, and second of all, you should look if the number of ingredients is lower then yours, if you need 4 items, but its already set to 5 or 6, don't change it back to 4...
You can find all my mods on the mod portal. Also helping on Arch666Angel's mods.
Image
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: [0.16.41][Modding] rocket-part not showing "made in" icon

Post by darkfrei »

If we have

Code: Select all

data.raw["rocket-silo"]["rocket-silo"].ingredient_count = nil
then we can have unlimited ingredients?
User avatar
lovely_santa
Filter Inserter
Filter Inserter
Posts: 502
Joined: Sat Feb 18, 2017 9:41 pm
Contact:

Re: [0.16.41][Modding] rocket-part not showing "made in" icon

Post by lovely_santa »

darkfrei wrote:If we have

Code: Select all

data.raw["rocket-silo"]["rocket-silo"].ingredient_count = nil
then we can have unlimited ingredients?
No, as i think it needs the ingredient_count set to a value...
You can find all my mods on the mod portal. Also helping on Arch666Angel's mods.
Image
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5211
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: [0.16.41][Modding] rocket-part not showing "made in" icon

Post by eradicator »

lovely_santa wrote:
darkfrei wrote:If we have

Code: Select all

data.raw["rocket-silo"]["rocket-silo"].ingredient_count = nil
then we can have unlimited ingredients?
No, as i think it needs the ingredient_count set to a value...
Recipies can't have unlimited ingredients. So just set it to 10^10 or something and move on :P. I don't even understand the whole concept of "ingredient count". Recipes are already limited by crafting_category. There's no point of imposing another limit.
Bilka
Factorio Staff
Factorio Staff
Posts: 3470
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: [0.16.41][Modding] rocket-part not showing "made in" icon

Post by Bilka »

eradicator wrote:So just set it to 10^10 or something and move on :P.
That will throw an error :P Max value is 255, since it's an uint8: https://wiki.factorio.com/Prototype/Ass ... ient_count
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5211
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: [0.16.41][Modding] rocket-part not showing "made in" icon

Post by eradicator »

Bilka wrote:
eradicator wrote:So just set it to 10^10 or something and move on :P.
That will throw an error :P Max value is 255, since it's an uint8: https://wiki.factorio.com/Prototype/Ass ... ient_count
Well, i did say "or something". Haven't yet gotten around to memorizing value types of every variable ;p.
Post Reply

Return to “Modding help”