[0.14.7] Crafting Bug Between Bob's and Dytech

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

Moderator: bobingabout

vladsnakedragon
Manual Inserter
Manual Inserter
Posts: 4
Joined: Fri Apr 25, 2014 9:57 am
Contact:

[0.14.7] Crafting Bug Between Bob's and Dytech

Post by vladsnakedragon »

Hello, I'm having an issue with Dytech and Bob's mods in crafting.

In some recipes, a material comes up Twice as an input, however unless I manually put the item in the second slot of the same required item (as in, for example the battery shown below) then the machine does not craft, as it requires all slots of materials filled.

I am not sure if it's an issue with Dytech's recipes or with Bob's mods recipes, but I will cross post this to the Dytech forum just in case.Image
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: [0.14.7] Crafting Bug Between Bob's and Dytech

Post by bobingabout »

Due to several points (Dytech not being updated officially, him also messing me around when it was, etc) I stopped supporting compatibility for Dytech (It was surprisingly, a lot of work).

My mods use a function system to update recipes, they should NOT add an item that already exists. and they do it in the data-updates phase, after the recipe has initially been built. This is the propper way to do it, so DyTech does the same thing.

Look at the order in which the item is updated by mods... base > DyTech core > Bobplates > DyTech Metallurgy. This is telling you that DyTech edits the recipe last. bobplates needs to be last.

To fix this, you'll have to do a little bit of editing, don't worry, it's easy.

Extract the bobplates mod to a folder within your mods folder, since you will need to edit a file in that mod.
Open the info.json file in a text editor, both that of bobplates and DyTech Metalurgy. You don't need to extract DyTech's mod, since you'll just be looking at it for reference.
Now, I don't actually have DyTech's mods here, so, I'll be explaining what to do. Find the name field in Dytech's mod, and copy the entry to the end of the dependencies line in my mod.
The entries should be in quotes, separated by commas, all inside those square brackets. Don't worry about the >= version number thing, just add the name and it will work.

When you're done, the dependancies line will PROBABLY look like this:

Code: Select all

  "dependencies": ["base >= 0.13.0", "boblibrary >= 0.13.0", "? bobconfig >= 0.13.0", "? bobores >= 0.13.0", "? bobtech >= 0.13.0", "? bobenemies >= 0.13.0", "MAIN-DyTech-Metallurgy"]
Save the bobplates info.json file, and it should now be fixed.

An issue though is that your new edited bobplates mod won't be compatable in multiplayer unless other people make the same change. And if you update my mod, you'll have to make the same change to the update.

I hope that helps... But, it won't fix ALL the compatibility issues between my mods and DyTech, as stated, keeping the 2 compatible is a lot of work, which is why, combined with the lack of an official 0.13/0.14 version, is why I stopped supporting compatabillity for DyTech.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
vladsnakedragon
Manual Inserter
Manual Inserter
Posts: 4
Joined: Fri Apr 25, 2014 9:57 am
Contact:

Re: [0.14.7] Crafting Bug Between Bob's and Dytech

Post by vladsnakedragon »

Thanks for the response! Yeah I understand the hassle that can come with supporting other mods, especially when people clash as well.

I do appreciate this a lot though :) about to give it a try.

From what I'm understanding of what you said, is that I only need to reference the main dependency of DyTech? If so, the code would look similar (and not) to what you had quoted.

Code: Select all

"dependencies": ["base >= 0.14.0", "boblibrary >= 0.14.0", "? bobconfig >= 0.14.0", "? bobores >= 0.14.0", "? bobtech >= 0.14.0", "? bobenemies >= 0.14.0", "CORE-DyTech-Core >= 1.9.9"]
About to give it a try :) wish me luck!

Edit 1: Oh I dun derped! My fault, Name field not dependancy! Retrying

Edit 2: Fiddle a little bit with this, ended up having

Code: Select all

"dependencies": ["base >= 0.14.0", "boblibrary >= 0.14.0", "? bobconfig >= 0.14.0", "? bobores >= 0.14.0", "? bobtech >= 0.14.0", "? bobenemies >= 0.14.0", "CORE-DyTech-Core >= 1.9.9", "? MAIN-DyTech-Metallurgy >= 3.0.0"]
No Luck :( order does not change
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: [0.14.7] Crafting Bug Between Bob's and Dytech

Post by bobingabout »

vladsnakedragon wrote: Edit 2: Fiddle a little bit with this, ended up having

Code: Select all

"dependencies": ["base >= 0.14.0", "boblibrary >= 0.14.0", "? bobconfig >= 0.14.0", "? bobores >= 0.14.0", "? bobtech >= 0.14.0", "? bobenemies >= 0.14.0", "CORE-DyTech-Core >= 1.9.9", "? MAIN-DyTech-Metallurgy >= 3.0.0"]
No Luck :( order does not change
If that's the case, then DyTech MAY be adding items in the data-final-fixes stage, instead of the data-updates phase. As stated above, mine will only add an item to a recipe if it doesn't already exist. And in the case of the battery, completely replaces the recipe, so if DyTech added first, his add would be undone.

Try adding a ? in front of the CORE mod too, and remove the version numbers from the ends, so that the line should look like this:

Code: Select all

"dependencies": ["base >= 0.14.0", "boblibrary >= 0.14.0", "? bobconfig >= 0.14.0", "? bobores >= 0.14.0", "? bobtech >= 0.14.0", "? bobenemies >= 0.14.0", "? CORE-DyTech-Core", "? MAIN-DyTech-Metallurgy"]
If this doesn't help... you'd have to delve a little deeper into modding... I can try and guide you through the process, but I wouldn't recomend it.

EDIT: I downloaded MAIN-DyTech-Metallurgy. The offending file is prototypes/base-edit/base-edit.lua.
you need to remove these 3 lines to fix batteries

Code: Select all

AddToRecipe("battery", "lead-plate", 2)
RemoveFromRecipe("battery","iron-plate")
RemoveFromRecipe("battery","copper-plate")
You may want to remove even more than that, but I'd need to understand what he's doing to know which lines to recommend removing.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: [0.14.7] Crafting Bug Between Bob's and Dytech

Post by Nexela »

My question is why Dytech and Bob's and not just Bobs the mod that is officially maintained and improved upon. I think I played with dytech for like 5 minutes before uninstalling it.
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: [0.14.7] Crafting Bug Between Bob's and Dytech

Post by bobingabout »

I have to admit, it is a fair bit of work to make the two work together. Part of the reason why they don't play nice is because they try to do a lot of the same things.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
vladsnakedragon
Manual Inserter
Manual Inserter
Posts: 4
Joined: Fri Apr 25, 2014 9:57 am
Contact:

Re: [0.14.7] Crafting Bug Between Bob's and Dytech

Post by vladsnakedragon »

I ended up simply removing the Metallurgy component of Dytech, it was the culprit in the recipes at the end of the day... and I realized it was much more hassle too X3

Seems to be working fine so far, started a new map earlier today for testing this out on :)
Post Reply

Return to “Bob's mods”