Tips and Trick Crashing 1.1.109 Modded VS 2.0.35 Modded

Place to get help with not working mods / modding interface.
S_gamez
Long Handed Inserter
Long Handed Inserter
Posts: 52
Joined: Sat Mar 21, 2020 9:44 pm
Contact:

Tips and Trick Crashing 1.1.109 Modded VS 2.0.35 Modded

Post by S_gamez »

So i notice that my modded 1.1.109 Tips & Tricks don't crash or anything. While playing in 2.0.35 Modded. Tips & Tricks have multiple issues with the feature so I'm asking if this is going to be looked at or not? It really is disappointing that 2.0 tips & tricks will crash while the old 1.1.109 don't even in modded.

I have taken the liberty to check and confirm the tips and trick only crashes if 2.0.35 si modded.
Bulk craftingImage
entity pipetteImage
Circuit Network Image

And a few more that i could post but to not fill this post with screen shots i stop here
Attachments
02-21-2025, 07-00-58.png
02-21-2025, 07-00-58.png (25.48 KiB) Viewed 370 times
02-21-2025, 06-59-17.png
02-21-2025, 06-59-17.png (25.61 KiB) Viewed 370 times
02-21-2025, 06-58-33.png
02-21-2025, 06-58-33.png (25.91 KiB) Viewed 370 times
Muche
Smart Inserter
Smart Inserter
Posts: 1006
Joined: Fri Jun 02, 2017 6:20 pm
Contact:

Re: Tips and Trick Crashing 1.1.109 Modded VS 2.0.35 Modded

Post by Muche »

What mods do you have enabled?
S_gamez
Long Handed Inserter
Long Handed Inserter
Posts: 52
Joined: Sat Mar 21, 2020 9:44 pm
Contact:

Re: Tips and Trick Crashing 1.1.109 Modded VS 2.0.35 Modded

Post by S_gamez »

Right at the time it's beta testing bobs mods and my own mods along with space age to see how good they all go together possibly patch recipes and tech as i play the game.
Attachments
mod-list.json
(8.94 KiB) Downloaded 27 times
Muche
Smart Inserter
Smart Inserter
Posts: 1006
Joined: Fri Jun 02, 2017 6:20 pm
Contact:

Re: Tips and Trick Crashing 1.1.109 Modded VS 2.0.35 Modded

Post by Muche »

The issue looks to be that the Bulk crafting and Entity pipette simulations are trying to find (by using LuaSimulation::get_widget_position) transport belt recipe in the (default) Logistics category, and Circuit network simulation is trying to find an iron plate signal in the Intermediates category.
Bobs seems to be moving them to Bob's logistics and Metallurgy casting respectively.

1.1 simulations are simpler - Bulk crafting is a static image; Entity pipette pipettes entities only, not recipes; Circuit network is a passive simulation.

I don't know what the proper solution is.
Bobs could certainly replace e.g. data.raw["tips-and-tricks-item"]["pipette"].simulation.init by its own updated version, but that may lead to too much maintenance.
Muche
Smart Inserter
Smart Inserter
Posts: 1006
Joined: Fri Jun 02, 2017 6:20 pm
Contact:

Re: Tips and Trick Crashing 1.1.109 Modded VS 2.0.35 Modded

Post by Muche »

The following strategy seems to work for simpler modded updates (recipe is present and visible in simulation's craft menu i.e. no scrolling):

Code: Select all

--- data/base/prototypes/tips-and-tricks-simulations.lua
+++ data/base/prototypes/tips-and-tricks-simulations.lua
@@ -1032,10 +1032,40 @@ simulations.pipette =
           condition = story_elapsed_check(0.25),
           action = function() player.opened = player end
         },
-        { condition = story_elapsed_check(0.25) },
+        -- modded game support - change group to one containing transport-belt
         {
+          condition = story_elapsed_check(0.25),
+          action = function()
+            local target = game.simulation.get_widget_position({type = "recipe-slot", data = "transport-belt"})
+            if target then 
+              story_jump_to(storage.story, "belt-skip-groupchange")
+            end
+          end
+        },
+        {
+          condition = function()
+            local rec = prototypes.recipe["transport-belt"]
+            local groupname = rec.group.name
+            local target = game.simulation.get_widget_position({type = "item-group-tab", data = groupname})
+            if not target then error("Item group '" .. tostring(groupname) .. "' not found") end
+            return game.simulation.move_cursor({position = target, speed = 0.15})
+          end
+        },
+        {
+          condition = story_elapsed_check(0.25),
+          action = function() game.simulation.mouse_down() end
+        },
+        {
+          condition = story_elapsed_check(0.25),
+          action = function() game.simulation.mouse_up() end
+        },
+        -- skipped group change branch join
+        { action = function() end },
+        {
+          name = "belt-skip-groupchange",
           condition = function()
             local target = game.simulation.get_widget_position({type = "recipe-slot", data = "transport-belt"})
+            if not target then error("Recipe 'transport-belt' not found") end
             return game.simulation.move_cursor({position = target})
           end
         },
Qatavin
Burner Inserter
Burner Inserter
Posts: 18
Joined: Mon Sep 20, 2021 7:42 pm
Contact:

Re: Tips and Trick Crashing 1.1.109 Modded VS 2.0.35 Modded

Post by Qatavin »

The team updating Bob's are aware of this issue, and we are working to fix it.
Post Reply

Return to “Modding help”