YAIM904 d10b Lane splitters

by yaim904

Create dividers the size of a line. [[I accept suggestions]]

Content
10 days ago
2.0 - 2.1
251
Logistics

i Compatibility with Advanced Belts 2.0

a month ago

Hey there!
Can you add a compatibility wih "Advanced Belts 2.0" (by Duvaichon)? Its Version 2.0, not 2.1. So I have the new splitters also for the other belts.

What can you tell me about the UPS usage of your splitters?

(If you dont know which mod I exactly mean: https://mods.factorio.com/mod/AdvancedBeltsUpdated?from=search)

a month ago

Thanks for writing.
I took a look at the mod you mentioned.
That mod has its own lane splitters.
I’m curious—why are you so interested in my lane splitters?

a month ago

The splitters in this mod are standard ones, just in the new belt colors.
If I'm interpreting your thumbnail correctly, then your splitters are small, just for one lane, not splitting them into two (like normal splitters do, also the ones in the mod I mentioned).

a month ago

It seems I didn't make myself clear.
I am working on compatibility with "Advanced Belts 2.0," but there are two important points I’m curious about:
1. Is it because it isn't available for 2.1? (https://mods.factorio.com/mod/AdvancedBeltsSA)
2. Is it because you want "lane splitters"? That mod already includes its own lane splitters.

I’m glad you’re using my mod, but I’m curious—why?

Why are you using my mod? Was it because you weren't aware of the 2.1 version, or does this one have something the other one lacks?

As I said, I’m just curious; the update will be ready in a few hours.

a month ago

https://mods.factorio.com/mod/AdvancedBeltsSA and https://mods.factorio.com/mod/AdvancedBeltsUpdated is not the same.
I play with Space Explorations, but its not compatible with Space Age, but https://mods.factorio.com/mod/AdvancedBeltsSA (what you mentioned) requires Space Age.
I need https://mods.factorio.com/mod/AdvancedBeltsUpdated because it dont need Space Age and its full compatible with Space exploration.
This is only available in 2.0 (and my whole game, with all 130 installed Mods are 2.0).

Again: https://mods.factorio.com/mod/AdvancedBeltsUpdated only has normal, standard splitters (splitting one belt into two). This mod dont has lane splitters for ONE lane, like your mod. I dont know if https://mods.factorio.com/mod/AdvancedBeltsSA (what you menationed) has the one-lane-splitters, but this dont cares me, because I cant use this mod.

And no, I am not using your mod yet, because its only available for the low belt tiers, in my game I need faster ones who fit the speed of the new belts from https://mods.factorio.com/mod/AdvancedBeltsUpdated

a month ago
(updated a month ago)

Ah...
Now I understand the situation.
You are playing on version 2.0 and need Lane Splitters. The changes I made are for version 2.1.
And you’re right—my Lane Splitter doesn’t work properly with AdvancedBeltsUpdated.
I can make my mod compatible with AdvancedBeltsUpdated.

However, two points:
1. The current version of my mod is for 2.1; I’m not sure if it’s possible to upload a version for an earlier release. I’ll try, but I can’t promise anything.
2. I checked the code for AdvancedBeltsUpdated, and it actually creates three Lane Splitters for the three types of belts it adds (the high-speed ones). Isn’t that what you’re looking for? (Perhaps there was a misunderstanding.)

Note: My mod doesn’t just generate new Lane Splitters out of thin air; it uses the existing splitters. If there are no additional splitters available, there won’t be any additional Lane Splitters either.

a month ago

I’ve uploaded the update for 2.0; please check if it’s working properly and let me know.

a month ago
(updated a month ago)

"You are playing on version 2.0 and need Lane Splitters. The changes I made are for version 2.1."
I thought this was clear with mentioning the mod "Advanced Belts 2.0" (it has "2.0" in the name and this mod is only for 2.0).
Your own mod is for 2.0 with version 0.0.1 (you uploaded 10 months ago). If your mod were only for version 2.1, I wouldn't have contacted you in the first place.

"2. I checked the code for AdvancedBeltsUpdated, and it actually creates three Lane Splitters for the three types of belts it adds (the high-speed ones). Isn’t that what you’re looking for? (Perhaps there was a misunderstanding.)"
Again: This mod only adds normal splitters, like the vanilla Factorio ones, just with faster speeds to fit the new belts. It DONT has this single-belt-splitters like your mod has! Is this that hard to understand?

"Note: My mod doesn’t just generate new Lane Splitters out of thin air; it uses the existing splitters. If there are no additional splitters available, there won’t be any additional Lane Splitters either."
Whatever you mean by that. I can only repeat myself. In my game (and in the mod "Advanced Belts 2.0" are ONLY normal splitters, for every belt color).

"I’ve uploaded the update for 2.0; please check if it’s working properly and let me know."
Yes, thank you, it works. But one thing worried me a LOT! I have 130 mods installed and I write my own, but I've never seen THIS before.
When I install your both Mods ("YAIM904 d10b Lane splitters" and "YAIM904 d00b Core") and load my save file, then I get the message, that Hadur (the planet I stand on (from Space Exploration)) couldnt be deleted. What the..?!
I tried to check myself for hours to find the issue and I also checked Space Exploration (universe.lua and zone.lua, it seemed it has do to with that), but I couldnt find out, so I loaded up everything to Claude (the Luas from Space Exploration and the ones from your mods, also my factorio-current.log and I got this for you:
(not my words!)


"I found a serious incompatibility with Space Exploration.

Setup: Factorio 2.0.77, Space Exploration 0.7.57, YAIM904-d00b-core 0.0.4 + YAIM904-d10b-lane-splitters 0.0.4, many other mods.
Problem: When I load an existing save after adding your mods, SE logs:

space-exploration/scripts/universe.lua:1461: Resource settings mismatch: Resource rebuild required. (Destructive)
space-exploration/scripts/zone.lua:3526: Deleting surface for zone: Calidus Orbit
... (many more zones)

On the planet I was standing on I got "<Planet> cannot be deleted while players are on it. Try trimming the surface instead." This never happened before installing your mods. With both mods disabled the same save loads normally.
Probable cause (from reading the code, not yet fully verified): d00b-core's data-final-fixes.lua, This_MOD.set_localised(), wraps the localised_name of every item:

if type(item.localised_name) == "table" and item.localised_name[1] ~= "" then
item.localised_name = { "", item.localised_name }
end

SE's Universe.list_core_fragments() identifies its core fragment items via proto.localised_name[1] == "item-name.core-fragment". After the wrapping, [1] is "", so the list changes, SE's resource settings comparison string differs, and SE rebuilds all resource assignments (deleting surfaces, regenerating/rescaling resources).

Suggested fixes:
- Only modify prototypes your mod creates or intentionally changes; don't rewrite localised_name of all items/entities/recipes/techs globally.
- If you need a normalized form, don't change the structure of existing localised_name tables (or at least skip items from other mods).
- Similarly, change_orders() and format_minable()/format_icons() touch all of data.raw; this may cause other cross-mod side effects.

Since the damage happens at load time in existing saves, this could be dangerous for users with SE. Maybe add a warning to the mod page until fixed."


I hope this will help you to find the issue.

10 days ago

I’ve uploaded the update for 2.0; please check if it’s working properly and let me know.

10 days ago
(updated 10 days ago)

It seems it works now. I get no error messages and all splitters can be placed and they work properly.
I will tell you if something will happen.
Thank you for your efforts.
You didnt answer one of my first questions: Can you say how UPS-friendly your mod is?

10 days ago

I’m glad to hear it’s working for you now.

To be honest, I’ve never checked the UPS impact, but it should be low—it’s a feature already present in Factorio; I simply applied it to all the splitters.

I’ll keep an eye out for any bugs.

New response