[0.14] inconsistancy

Some mods, made by Bob. Basically streaks every Factroio-area.

Moderator: bobingabout

Post Reply
DutchJer
Long Handed Inserter
Long Handed Inserter
Posts: 65
Joined: Sat Feb 13, 2016 8:43 am

[0.14] inconsistancy

Post by DutchJer » Sat Nov 26, 2016 1:16 pm

hi bob,

I am working on a mod where it is possible to get all the items/recipes etc out the game in a json, for vanilla it is all fine, but i noticed, when i added your mod that the hydrogen canister emtying has results, but its like this:
results = {
{
amount = 5,
name = "hydrogen",
type = "fluid"
} --[[table: 0x000000000e668400]],
{
"gas-canister",
1
} --[[table: 0x000000000e668460]]
} --[[table: 0x000000000e6683a0]],

It might probably still work(not playing with bobs atm) but for consistancy wouldnt it be better to have the second one also with the amout, name & type?

i can probably work around it, but I dont know if you did this on purpose, or that you have it good on other places as well?

if this is the case, just reply then ill build it so it can thanks

DutchJer
Long Handed Inserter
Long Handed Inserter
Posts: 65
Joined: Sat Feb 13, 2016 8:43 am

Re: [0.14] inconsistancy

Post by DutchJer » Sat Nov 26, 2016 1:34 pm

never mind, build the fix already :P

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

Re: [0.14] inconsistancy

Post by bobingabout » Sat Nov 26, 2016 1:36 pm

Oh right, I see were that is.

Code: Select all

    ingredients =
    {
      {type="fluid", name="hydrogen", amount=5},
      {"gas-canister", 1},
    },
The first ingredient there, Hydrogen is a fluid and MUST be written in the full type/name/amount format. Gas canister is an item, and can be written in either full, or short mode.

Short mode is most commonly used by the base game, therefore a lot of my mod uses short form where available, and long where it isn't.


If something is run through my functions to add items though, the function will always add in full mode.
So yes, there is a bit of inconsistency there, but the inconsistencies you're pointing out in this specific case is exactly how the base game would handle it anyway.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.

Post Reply

Return to “Bob's mods”

Who is online

Users browsing this forum: No registered users