Need help width micro addon for SE and two different mods (Base 2.0)

Place to get help with not working mods / modding interface.
SANCHERIZZO
Burner Inserter
Burner Inserter
Posts: 9
Joined: Tue Mar 19, 2024 10:41 pm
Contact:

Need help width micro addon for SE and two different mods (Base 2.0)

Post by SANCHERIZZO »

Hello. I have a problem. When trying to integrate transport belts from the UltimateBeltsSpaceAge mod with the SE mod, I get the error:
Error while running setup for entity prototype "ultra-express-belt" (transport-belt): next_upgrade target (extreme-express-belt) must have the same collision mask.
I don't know where to look to fix this. All I do, is add:

Code: Select all

data.raw["transport-belt"]["extreme-express-belt"].se_allow_in_space = true 
and I keep getting this error. I tried to see what was happening with the addon during boot. Does it see the data? Judging by the log, it does.
addon:

Code: Select all

if mods["UltimateBeltsSpaceAge"] then
log("[TEST] The code is running as expected")
if data.raw["transport-belt"]["extreme-express-belt"] then
log("[TEST] Found the entity prototype")
else
log("[TEST] NOOO! COULD NOT FIND THE PROTOTYPE!")
end
end
log:

Code: Select all

1.418 Script @__Space_Stuff__/data-updates.lua:2: [TEST] The code is running as expected
1.418 Script @__Space_Stuff__/data-updates.lua:4: [TEST] Found the entity prototype
But if i add aftter log("TEST Found the entity prototype")

Code: Select all

data.raw["transport-belt"]["extreme-express-belt"].se_allow_in_space = true

I get an error. Please help me solved this error. Thanks!
SANCHERIZZO
Burner Inserter
Burner Inserter
Posts: 9
Joined: Tue Mar 19, 2024 10:41 pm
Contact:

Re: Need help width micro addon for SE and two different mods (Base 2.0)

Post by SANCHERIZZO »

The problem was solved. It was necessary to specify the prototypes from the very first, vanilla, belt, to the very last one in the chain.

Code: Select all

data.raw["transport-belt"]["transport-belt"].se_allow_in_space = true
data.raw["transport-belt"]["fast-transport-belt"].se_allow_in_space = true
data.raw["transport-belt"]["express-transport-belt"].se_allow_in_space = true
data.raw["transport-belt"]["ultra-fast-belt"].se_allow_in_space = true
data.raw["transport-belt"]["extreme-fast-belt"].se_allow_in_space = true
data.raw["transport-belt"]["ultra-express-belt"].se_allow_in_space = true
data.raw["transport-belt"]["extreme-express-belt"].se_allow_in_space = true
data.raw["transport-belt"]["ultimate-belt"].se_allow_in_space = true
Post Reply

Return to “Modding help”