Re: [MOD 0.12.x] Marathon 1.0.3
Posted: Tue Jun 28, 2016 2:12 am
any chance of a download mirror the mod portal doesn't seem to be working. many thanks for the mod
You tha real MVP.Izzybelle wrote:For anyone else impatiently waiting, this is the new version built from the github source.
Marathon should not be dependent on any of them, and you should be able to mix and match. Please post which ones you were using and I will look into the issue.mbattjes@gmail.com wrote:Marathon is dependent on all of the Bob's mods modules. I don't want to use them all but if i disable one of them, the game stops working because it wants Marathon to use all of Bob's modules.
Ok, thanks, I'll debug.mbattjes@gmail.com wrote:Copy of my response on the mod portal:
It works when i remove the turret and production recipe dependencies from the updates lua. I was using bobs library, assembly, modules, power, logistics and config (also using mining now that its fixed). Was getting errors about steel bearings and steel gear wheels but theres probably more.
First thing that comes to my mind is to place optional dependency on Marathon and then check data.raw for changes it does.DRY411S wrote:Is there a way in data.lua to test whether Marathon mod is enabled? I have a request to make 'marathon' Recycling Machine recipes and entities in my mod if Marathon mod is enabled.
I just did a bit of a test, and I think that if I test for a global variable called 'marathon' (set in Marathon Mod 'data.lua') then that tells me that it's enabled.orzelek wrote:First thing that comes to my mind is to place optional dependency on Marathon and then check data.raw for changes it does.DRY411S wrote:Is there a way in data.lua to test whether Marathon mod is enabled? I have a request to make 'marathon' Recycling Machine recipes and entities in my mod if Marathon mod is enabled.
I don't think Marathon adds unique items so it can't be detected this way. IT also doesn't have config so no variables to read on data stage.
Ahh yes - seems to be done for this purposeDRY411S wrote:I just did a bit of a test, and I think that if I test for a global variable called 'marathon' (set in Marathon Mod 'data.lua') then that tells me that it's enabled.orzelek wrote:First thing that comes to my mind is to place optional dependency on Marathon and then check data.raw for changes it does.DRY411S wrote:Is there a way in data.lua to test whether Marathon mod is enabled? I have a request to make 'marathon' Recycling Machine recipes and entities in my mod if Marathon mod is enabled.
I don't think Marathon adds unique items so it can't be detected this way. IT also doesn't have config so no variables to read on data stage.
Awesome. Let me know.IhanaMies wrote:I have done one, but I havent got the time to check if angels has made any chances to his mods. I will notify through this and angels mod topic when im done
My Recycling Machines Mod is now updated so that the Recycling Machines cost the same as Assembly Machines if the Marathon Mod is enabled. Check it out at https://mods.factorio.com/mods/DRY411S/ZRecyclingorzelek wrote:Ahh yes - seems to be done for this purposeDRY411S wrote:I just did a bit of a test, and I think that if I test for a global variable called 'marathon' (set in Marathon Mod 'data.lua') then that tells me that it's enabled.orzelek wrote:First thing that comes to my mind is to place optional dependency on Marathon and then check data.raw for changes it does.DRY411S wrote:Is there a way in data.lua to test whether Marathon mod is enabled? I have a request to make 'marathon' Recycling Machine recipes and entities in my mod if Marathon mod is enabled.
I don't think Marathon adds unique items so it can't be detected this way. IT also doesn't have config so no variables to read on data stage.
Code: Select all
---------------------------
Error
---------------------------
Failed to load mod "marathon 1.1.2"
__marathon__/data-updates.lua:109: __marathon__/prototypes/bobsmods/recipe-production.lua:27: attempt to call a table value
---------------------------
OK
---------------------------
Update to 1.1.3 and and ask me not to make typos.Bizobinator wrote:I got an error message trying to load the latest (1.1.2) version.
How do I fix it?Code: Select all
--------------------------- Error --------------------------- Failed to load mod "marathon 1.1.2" __marathon__/data-updates.lua:109: __marathon__/prototypes/bobsmods/recipe-production.lua:27: attempt to call a table value --------------------------- OK ---------------------------
Code: Select all
---------------------------
Error
---------------------------
Failed to load mod "marathon 1.1.3"
__marathon__/data-updates.lua:109: __marathon__/stdlib/data/recipe.lua:43: bad argument #1 to 'match' (string expected, got table)
---------------------------
OK
---------------------------
That's what I get for "fixing" an issue without actually testing it.Bizobinator wrote:So..... I got a different error this time
Code: Select all
--------------------------- Error --------------------------- Failed to load mod "marathon 1.1.3" __marathon__/data-updates.lua:109: __marathon__/stdlib/data/recipe.lua:43: bad argument #1 to 'match' (string expected, got table) --------------------------- OK ---------------------------