[0.11.x] Belt Utilities
Re: [0.11.5] Belt Utilities
I am With Alpha we Test it in MP.
For now its Really good without anyproblems
No bugs for now we will Report them if we find some
For now its Really good without anyproblems
No bugs for now we will Report them if we find some
Sorry for my bad English ! i will not remove it !
RailTanker [MP WIP]
Our Modpack
WIP Test MODSRailTanker [MP WIP]
- CorrettoSambuca
- Long Handed Inserter
- Posts: 57
- Joined: Sun May 04, 2014 9:29 am
- Contact:
Re: [0.11.5] Belt Utilities
Alright, I'll update the post and remove the old 1.2.2 version.
Thank you for the testing!
Thank you for the testing!
Re: [0.11.5] Belt Utilities
No Problem SirCorrettoSambuca wrote:Alright, I'll update the post and remove the old 1.2.2 version.
Thank you for the testing!
Sorry for my bad English ! i will not remove it !
RailTanker [MP WIP]
Our Modpack
WIP Test MODSRailTanker [MP WIP]
- Skellitor301
- Fast Inserter
- Posts: 140
- Joined: Mon Aug 04, 2014 10:04 pm
- Contact:
Re: [0.11.5] Belt Utilities
Any possibility this mod could also have compatable components for the Dytech mod? Since the mod adds a few more faster belts it would be ideal if this mod could tell if dytech logistics is installed and add in the research options and items for the faster belts. I like both that and this mod, but the slow down from extreme belts to express belt is irksome.
Re: [0.11.5] Belt Utilities
I have only made it compatible with 0.11.5 and multiplayer, there is no intention at this stage to add any features due to my limited knowledge and time available.
RSO LetsPlay Playlist
- Skellitor301
- Fast Inserter
- Posts: 140
- Joined: Mon Aug 04, 2014 10:04 pm
- Contact:
Re: [0.11.5] Belt Utilities
ah alright, thanks for answering my question
Re: [0.11.x] Belt Utilities
This mod seems to break saving in 0.11.15 for now. See kovarex note about it here. Apparently fixed in .16 whenever that will be released.
Re: [0.11.x] Belt Utilities
Yes, but the fix is just kind of patch of this mod doing something wrong.
The problem is here:
The code is kind of evil (not only because it should move the technologies table into local variable, so it doesn't create the full table of technologies objects for every j.technologies["something"]), because it can change the data state on save and load and can desynchronise the game and make other problems.
The proper way to enable recipes for already researched technologies when the mod is loaded is to use the lua migrations. Take a look at data/base/migrations folder in the base game.
The
2014-03-20_Factorio_0.9.5.lua:
This code ensures, that when someone had oil-processing already researched, he will get the lubricant recipe, but also this code is always only called when loading save before the specified version, so it is not executed again and again on every game load.
The problem is here:
Code: Select all
function onLoad()
for i,j in pairs(game.forces) do
if j.technologies["logistics"].researched == true and j.recipes["basic-divider"] ~= true then
j.technologies["logistics"].researched = false
j.technologies["logistics"].researched = true
end
if j.technologies["logistics-2"].researched == true and j.recipes["fast-divider"] ~= true then
j.technologies["logistics-2"].researched = false
j.technologies["logistics-2"].researched = true
end
if j.technologies["logistics-3"].researched == true and j.recipes["express-divider"] ~= true then
j.technologies["logistics-3"].researched = false
j.technologies["logistics-3"].researched = true
end
end
end
The proper way to enable recipes for already researched technologies when the mod is loaded is to use the lua migrations. Take a look at data/base/migrations folder in the base game.
The
2014-03-20_Factorio_0.9.5.lua:
Code: Select all
if game.isdemo() then
return
end
game.player.force.resettechnologies()
game.player.force.resetrecipes()
for index, force in pairs(game.forces) do
if force.technologies["oil-processing"].researched then
force.recipes["lubricant"].enabled = true
end
end
Re: [0.11.x] Belt Utilities
Here is a quick fix for 11.15 build.
As kovarex's post added migration code and removed control.lua
Edit: Updated from FreeER's code and removed lubricant (copy paste error)
As kovarex's post added migration code and removed control.lua
Edit: Updated from FreeER's code and removed lubricant (copy paste error)
- Attachments
-
- Lane Splitters_1.2.3.zip
- Updated to FreeER Code
- (1.65 MiB) Downloaded 2179 times
Last edited by WonderDog on Sat Feb 07, 2015 8:09 am, edited 2 times in total.
Re: [0.11.x] Belt Utilities
According to this comment by kovarex:WonderDog wrote:As kovarex's post added migration code and removed control.lua
This would be a better way to do it (avoids recreation of technologies/recipes table), though admittedly it's only done once now instead of every load so it's not as big of an issue as before...kovarex wrote:not only because it should move the technologies table into local variable, so it doesn't create the full table of technologies objects for every j.technologies["something"]
migration code
Re: [0.11.x] Belt Utilities
let me find my hosted code and make the changes posted above.
Edit: i see people with more knowledge than me have taken a look. Thanks guys.
Edit: i see people with more knowledge than me have taken a look. Thanks guys.
RSO LetsPlay Playlist
Re: [0.11.x] Belt Utilities
I am sorry, but I've got an issue that I can't trace down to who's causing. Kovaerx thinks it's an issue on your side, but I can't confirm. Could you please take a look at https://forums.factorio.com/forum/vie ... =30&t=8492?
Thanks for the mod by the way. I love using it in specific situations where I save belt lanes instead of building a whole new one =] I love to save space!
Edit: Ignore my post, just saw even kovarex posted the solution here!
Thanks for the mod by the way. I love using it in specific situations where I save belt lanes instead of building a whole new one =] I love to save space!
Edit: Ignore my post, just saw even kovarex posted the solution here!
- CorrettoSambuca
- Long Handed Inserter
- Posts: 57
- Joined: Sun May 04, 2014 9:29 am
- Contact:
Re: [0.11.x] Belt Utilities
I updated the main post with this download link, and rewrote it a bit.
Thank you everyone for the support; a special mention to WonderDog for the code and of course Kovarex for giving this tiny mod his time!
Thank you everyone for the support; a special mention to WonderDog for the code and of course Kovarex for giving this tiny mod his time!
Re: [0.11.x] Belt Utilities
I love the idea of this mod !
I thought there should be something like this while watching a YouTuber mess up a build...
I might give it a try now that I'm starting a new 0.11.19 map
I thought there should be something like this while watching a YouTuber mess up a build...
I might give it a try now that I'm starting a new 0.11.19 map
[request] RTL support please
My mods
Formally Hebrew translator for FARL & EvoGUI mods
join me on
- Twitter[@jockeril],
- Twitch.tv/jockeril,
- Youtube/jocker-il (or JoCKeR-iL)
- and steam !
My mods
Formally Hebrew translator for FARL & EvoGUI mods
join me on
- Twitter[@jockeril],
- Twitch.tv/jockeril,
- Youtube/jocker-il (or JoCKeR-iL)
- and steam !
Re: [0.11.x] Belt Utilities
Author can you make compatibilty with belts and splitters from dytech transportaion (new dytech) and bob logistics - may be as separate mods, I would be very grateful
Nickname on ModPortal - Naron79
- CorrettoSambuca
- Long Handed Inserter
- Posts: 57
- Joined: Sun May 04, 2014 9:29 am
- Contact:
Re: [0.11.x] Belt Utilities
Unfortunately I have zero time and even less skills for modding, I just mantain the post. So if anyone posts an update/upgrade of the mod I'll link it in the main post, but I literally cannot do it myself...
Re: [0.11.x] Belt Utilities
Well. It must be said that I'm new to this community, as you can probably tell, but I know my way around coding and I've got a little bit of experience with Lua. All of the source code seems straightforward enough, anyway. Let me see what I can do.CorrettoSambuca wrote:Unfortunately I have zero time and even less skills for modding, I just mantain the post. So if anyone posts an update/upgrade of the mod I'll link it in the main post, but I literally cannot do it myself...
Re: [0.11.x] Belt Utilities
Hi everyone!
I'm going to release a new version when 0.12 comes out, but it's going to be a break from the previous version as I'm not including the divider-style entity, as its behaviour was always a bit hackish and had some visual bugs. On the plus side, I've got these things working properly now:
Using the same technique I can also make a single-tile entity that will block one lane while allowing the other to pass, but I don't have a sprite for it yet.
I'd like to thank Cullyn, WonderDog and FreeER for updating this mod, and CorrettoSambuca for maintaining this thread.
I'd also like to apologise for my god-awful onLoad() script, I was very much learning as I went when I did it.
I'm going to release a new version when 0.12 comes out, but it's going to be a break from the previous version as I'm not including the divider-style entity, as its behaviour was always a bit hackish and had some visual bugs. On the plus side, I've got these things working properly now:
Using the same technique I can also make a single-tile entity that will block one lane while allowing the other to pass, but I don't have a sprite for it yet.
I'd like to thank Cullyn, WonderDog and FreeER for updating this mod, and CorrettoSambuca for maintaining this thread.
I'd also like to apologise for my god-awful onLoad() script, I was very much learning as I went when I did it.
Re: [0.11.x] Belt Utilities
Changes to belt mechanics in 0.12.0 have completely broken the method I was using to block lanes, it may take a while to find a viable alternative.
Re: [0.11.x] Belt Utilities
Can you please also change the name of the mod file to be the same as the thread name (I think it's more fitting and it will help with finding the thread when wanting to remember what it is from looking in the mods folder - like I just did...)GotLag wrote:Changes to belt mechanics in 0.12.0 have completely broken the method I was using to block lanes, it may take a while to find a viable alternative.
tnx
[request] RTL support please
My mods
Formally Hebrew translator for FARL & EvoGUI mods
join me on
- Twitter[@jockeril],
- Twitch.tv/jockeril,
- Youtube/jocker-il (or JoCKeR-iL)
- and steam !
My mods
Formally Hebrew translator for FARL & EvoGUI mods
join me on
- Twitter[@jockeril],
- Twitch.tv/jockeril,
- Youtube/jocker-il (or JoCKeR-iL)
- and steam !