For now its Really good without anyproblems

No bugs for now we will Report them if we find some

No Problem SirCorrettoSambuca wrote:Alright, I'll update the post and remove the old 1.2.2 version.
Thank you for the testing!
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
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
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"]
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...
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.