Mod Compatibilty for 0.13

Place to post guides, observations, things related to modding that are not mods themselves.
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5150
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Mod Compatibilty for 0.13

Post by Klonan »

So the other day i had a nice idea to test mods for 0.13, to see which will break,
I asked for people to post mods and i would check them,
But i deleted that thread due to a realization i had, and i thought keeping the thread around would lead to an ambiguous message

In my testing i found that 0.13 will break most mods, in particular any mod with a control.lua will need at least a small update to work with 0.13, this is due to defines.lua no longer exiting (its not coded into the game script)
This sort of mods include RSO, FatController, Blueprint string, FARL, Bobs mods, DyTech... basically anything more advanced than additional entities.

This is a good opportunity to describe what the plan is for 0.13.

The new mod portal will now be the recommended and only official source for uploading and hosting mods and their discussions,
The mod forum will be archived in a way, that old threads are available, but there won't be a sub-forum for 0.13 mods,
From now on we would like all mods to be hosted on the mod portal.

Modding discussion and modding help will remain here on the forum, as i feel they will still be useful

So with 0.13, I ask that mod creators (myself included) will take this opportunity to become familiar with the mod portal,
And from now on host their mods there.

I also ask that nobody start uploading old mods for 0.12 onto the mod portal, as this would be incongruent with the direction we would like to take

For anybody that posted in my mod compatibility thread, thank you for making me realize how broken they all are
And i hope we will be moving forward into a golden age of Factorio modding

User avatar
steinio
Smart Inserter
Smart Inserter
Posts: 2633
Joined: Sat Mar 12, 2016 4:19 pm
Contact:

Re: Mod Compatibilty for 0.13

Post by steinio »

And what is the plan for developers with broken mods?

Does Wube test each mod after upload before release on the portal?
Get the missing file included again for compatibility?

You just wrote, that instead of the forum, all mods must be uploaded to the portal, what was mentioned partly in the FFF.
I'm missing a solution for your findings, sorry.

Greetings steinio
Image

Transport Belt Repair Man

View unread Posts

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5150
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: Mod Compatibilty for 0.13

Post by Klonan »

steinio wrote:And what is the plan for developers with broken mods?

Does Wube test each mod after upload before release on the portal?
Get the missing file included again for compatibility?

You just wrote, that instead of the forum, all mods must be uploaded to the portal, what was mentioned partly in the FFF.
I'm missing a solution for your findings, sorry.

Greetings steinio
If your mod is broken, you will have to update it, it won't be broken in any unrecoverable way, generally it will be a 1 or 2 line fix, unless you have some specific scripting,
The missing file won't be needed, as the values which defines is used for is not accessible without requiring the file, so deleting the require will fix it.

We won't be testing mods as they are uploaded, but if people report that a mod doesn't work, we reserve the right to hide it or remove it until there is a 0.13 compatible version developed

User avatar
steinio
Smart Inserter
Smart Inserter
Posts: 2633
Joined: Sat Mar 12, 2016 4:19 pm
Contact:

Re: Mod Compatibilty for 0.13

Post by steinio »

Ok, thank you.

Your offer to test mods was really honorable, but i guess you didn't expect this flood of requests ;).

Maybe version 0.14 or 0.15 offers a automated code review service to check against the current lua documentation.

Greetings steinio
Image

Transport Belt Repair Man

View unread Posts

sparr
Smart Inserter
Smart Inserter
Posts: 1327
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

Re: Mod Compatibilty for 0.13

Post by sparr »

Klonan wrote:The new mod portal will now be the recommended and only official source for uploading and hosting mods and their discussions,
...
From now on we would like all mods to be hosted on the mod portal.
...
So with 0.13, I ask that mod creators (myself included) will take this opportunity to become familiar with the mod portal,
And from now on host their mods there.
I really hope that support will remain for the actual mod zip to be hosted on github. Being able to tag a release on github and not have to re-upload the zip file another place is a nice feature, which I would hate to lose.

User avatar
taiiat
Long Handed Inserter
Long Handed Inserter
Posts: 81
Joined: Sat Apr 02, 2016 8:39 pm
Contact:

Re: Mod Compatibilty for 0.13

Post by taiiat »

sparr wrote:I really hope that support will remain for the actual mod zip to be hosted on github. Being able to tag a release on github and not have to re-upload the zip file another place is a nice feature
i concur, Git (and other places like it) do a good job of making Software Development much less painful and time consuming for those that don't have access to a CDN.

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5150
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: Mod Compatibilty for 0.13

Post by Klonan »

sparr wrote:
Klonan wrote:The new mod portal will now be the recommended and only official source for uploading and hosting mods and their discussions,
...
From now on we would like all mods to be hosted on the mod portal.
...
So with 0.13, I ask that mod creators (myself included) will take this opportunity to become familiar with the mod portal,
And from now on host their mods there.
I really hope that support will remain for the actual mod zip to be hosted on github. Being able to tag a release on github and not have to re-upload the zip file another place is a nice feature, which I would hate to lose.

On initial launch there won't be direct support for deploying via github, but it is on our list of planned/hoped features

Zeblote
Filter Inserter
Filter Inserter
Posts: 973
Joined: Fri Oct 31, 2014 11:55 am
Contact:

Re: Mod Compatibilty for 0.13

Post by Zeblote »

Klonan wrote:
sparr wrote:
Klonan wrote:The new mod portal will now be the recommended and only official source for uploading and hosting mods and their discussions,
...
From now on we would like all mods to be hosted on the mod portal.
...
So with 0.13, I ask that mod creators (myself included) will take this opportunity to become familiar with the mod portal,
And from now on host their mods there.
I really hope that support will remain for the actual mod zip to be hosted on github. Being able to tag a release on github and not have to re-upload the zip file another place is a nice feature, which I would hate to lose.

On initial launch there won't be direct support for deploying via github, but it is on our list of planned/hoped features
How will this work? For example, is the mod portal going to create a version for each github release? Or automatically build a zip from release branch on every commit?

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5150
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: Mod Compatibilty for 0.13

Post by Klonan »

Zeblote wrote:
Klonan wrote:
sparr wrote:
Klonan wrote:The new mod portal will now be the recommended and only official source for uploading and hosting mods and their discussions,
...
From now on we would like all mods to be hosted on the mod portal.
...
So with 0.13, I ask that mod creators (myself included) will take this opportunity to become familiar with the mod portal,
And from now on host their mods there.
I really hope that support will remain for the actual mod zip to be hosted on github. Being able to tag a release on github and not have to re-upload the zip file another place is a nice feature, which I would hate to lose.

On initial launch there won't be direct support for deploying via github, but it is on our list of planned/hoped features
How will this work? For example, is the mod portal going to create a version for each github release? Or automatically build a zip from release branch on every commit?

Im not 100% on details, but the mod will only be updated through the mod portal when you choose to, not with every commit or push

sparr
Smart Inserter
Smart Inserter
Posts: 1327
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

Re: Mod Compatibilty for 0.13

Post by sparr »

Klonan wrote:On initial launch there won't be direct support for deploying via github, but it is on our list of planned/hoped features
Will we simply be able to put a github link as the download link, as we currently can with factoriomods.com?

User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: Mod Compatibilty for 0.13

Post by bobingabout »

I see you listed Bobmods.

To clarify, only 2 actually use the control.lua, Clock and Techsave.

I'm sure others will cause issues due to accessing base game items and entities that have changed name (Like logistics mod changing values on the underground belts, the first level changes internal name)
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.

Peppe
Fast Inserter
Fast Inserter
Posts: 223
Joined: Fri Nov 28, 2014 6:48 pm
Contact:

Re: Mod Compatibilty for 0.13

Post by Peppe »

Klonan wrote:So the other day i had a nice idea to test mods for 0.13, to see which will break,
I asked for people to post mods and i would check them,
But i deleted that thread due to a realization i had, and i thought keeping the thread around would lead to an ambiguous message

In my testing i found that 0.13 will break most mods, in particular any mod with a control.lua will need at least a small update to work with 0.13, this is due to defines.lua no longer exiting (its not coded into the game script)
This sort of mods include RSO, FatController, Blueprint string, FARL, Bobs mods, DyTech... basically anything more advanced than additional entities.

This is a good opportunity to describe what the plan is for 0.13.

The new mod portal will now be the recommended and only official source for uploading and hosting mods and their discussions,
The mod forum will be archived in a way, that old threads are available, but there won't be a sub-forum for 0.13 mods,
From now on we would like all mods to be hosted on the mod portal.

Modding discussion and modding help will remain here on the forum, as i feel they will still be useful

So with 0.13, I ask that mod creators (myself included) will take this opportunity to become familiar with the mod portal,
And from now on host their mods there.

I also ask that nobody start uploading old mods for 0.12 onto the mod portal, as this would be incongruent with the direction we would like to take

For anybody that posted in my mod compatibility thread, thank you for making me realize how broken they all are
And i hope we will be moving forward into a golden age of Factorio modding
So these, http://lua-api.factorio.com/0.13.0-preview/defines.html, are going away or just accessed in a different way??

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5150
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: Mod Compatibilty for 0.13

Post by Klonan »

Peppe wrote:So these, http://lua-api.factorio.com/0.13.0-preview/defines.html, are going away or just accessed in a different way??
They will be accessible without requiring the defines.lua

User avatar
DedlySpyder
Filter Inserter
Filter Inserter
Posts: 253
Joined: Fri Jun 20, 2014 11:42 am
Contact:

Re: Mod Compatibilty for 0.13

Post by DedlySpyder »

Klonan wrote:
Peppe wrote:So these, http://lua-api.factorio.com/0.13.0-preview/defines.html, are going away or just accessed in a different way??
They will be accessible without requiring the defines.lua
So... We can access them the same way as before (with defines.X or a number), but we don't need "require" defines"?

sparr
Smart Inserter
Smart Inserter
Posts: 1327
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

Re: Mod Compatibilty for 0.13

Post by sparr »

DedlySpyder wrote:
Klonan wrote:
Peppe wrote:So these, http://lua-api.factorio.com/0.13.0-preview/defines.html, are going away or just accessed in a different way??
They will be accessible without requiring the defines.lua
So... We can access them the same way as before (with defines.X or a number), but we don't need "require" defines"?
Correct. All else being equal, you'll just delete the 'require "defines"` line from your mod.

Zeblote
Filter Inserter
Filter Inserter
Posts: 973
Joined: Fri Oct 31, 2014 11:55 am
Contact:

Re: Mod Compatibilty for 0.13

Post by Zeblote »

Why not just keep a defines.lua that doesn't do anything for a few versions?

User avatar
Afforess
Filter Inserter
Filter Inserter
Posts: 422
Joined: Tue May 05, 2015 6:07 pm
Contact:

Re: Mod Compatibilty for 0.13

Post by Afforess »

Klonan wrote: Modding discussion and modding help will remain here on the forum, as i feel they will still be useful

So with 0.13, I ask that mod creators (myself included) will take this opportunity to become familiar with the mod portal,
And from now on host their mods there.
Where will mod feedback/questions/support go? I know most of the activity in mod threads are usually bug reports or questions about how to use a mod. Will the mod portal have it's own built in discussion or...?

User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5150
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: Mod Compatibilty for 0.13

Post by Klonan »

Afforess wrote:
Klonan wrote: Modding discussion and modding help will remain here on the forum, as i feel they will still be useful

So with 0.13, I ask that mod creators (myself included) will take this opportunity to become familiar with the mod portal,
And from now on host their mods there.
Where will mod feedback/questions/support go? I know most of the activity in mod threads are usually bug reports or questions about how to use a mod. Will the mod portal have it's own built in discussion or...?
Yep, therewill be discussions and threads on the mod portal

User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: Mod Compatibilty for 0.13

Post by Adil »

I've heard quite a few times recently of how horrible the forthcoming compatibility break will be, whereas the changes are quite minor actually compared to those of previous breaks.
So I've written python3 script, which performs regex substitutions to plug the breached holes. viewtopic.php?f=137&t=26613
Now I believe certain ide's might have more powerful automated tools for this job, but it's not like I could do anything better with my time.

Could you test it?
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.

User avatar
DRY411S
Filter Inserter
Filter Inserter
Posts: 727
Joined: Sun Mar 13, 2016 9:48 am
Contact:

Re: Mod Compatibilty for 0.13

Post by DRY411S »

It feels to me as though in a way, the mod portal is going to try to reproduce a lot of the functionality of GitHub, the de-facto 'portal' for open source software. This is a significant undertaking.

I'd like devs to consider delivering GitHub API integration asap. GitHub has already got all the features that mod developers need for cooperation, discussion, issue tracking, release management, etc. The minimum the mod portal needs in my opinion is a way of getting the latest release (not commit) version of the mod, if it has changed.

Mod developers are adding value to factorio for 'love', not money. Give us some love back. :)

Post Reply

Return to “Modding discussion”