Page 1 of 1

Tips and Trick Crashing 1.1.109 Modded VS 2.0.35 Modded

Posted: Fri Feb 21, 2025 6:05 am
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

Re: Tips and Trick Crashing 1.1.109 Modded VS 2.0.35 Modded

Posted: Fri Feb 21, 2025 3:29 pm
by Muche
What mods do you have enabled?

Re: Tips and Trick Crashing 1.1.109 Modded VS 2.0.35 Modded

Posted: Sat Feb 22, 2025 2:47 pm
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.

Re: Tips and Trick Crashing 1.1.109 Modded VS 2.0.35 Modded

Posted: Sat Feb 22, 2025 7:16 pm
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.

Re: Tips and Trick Crashing 1.1.109 Modded VS 2.0.35 Modded

Posted: Sun Feb 23, 2025 1:47 am
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
         },

Re: Tips and Trick Crashing 1.1.109 Modded VS 2.0.35 Modded

Posted: Tue Feb 25, 2025 1:46 am
by Qatavin
The team updating Bob's are aware of this issue, and we are working to fix it.