How does the "dependencies" property in the info.json work?

Place to get help with not working mods / modding interface.
Post Reply
User avatar
RalleYTN
Long Handed Inserter
Long Handed Inserter
Posts: 55
Joined: Wed Feb 01, 2017 7:14 am
Contact:

How does the "dependencies" property in the info.json work?

Post by RalleYTN »

I looked at the info.json from Angels Infinite Ores.

Code: Select all

"dependencies": [
	"base >= 0.14.0", 
	"? rso-mod >= 2.3.3", 
	"? angelsrefining >= 0.6.0", 
	"? angelspetrochem >= 0.4.0", 
	"? bobconfig >= 0.14.0", 
	"? bobplates >= 0.14.0", 
	"? Yuoki >= 0.4.0",
	"? UraniumPower >= 0.6.3",
	"? Nucular >= 0.2.0",
	"? dark-matter-replicators >= 0.6.1",
	"? angelstrigger-infiniteores-disableinfiniteores >= 0.1.2", 
	"? angelstrigger-infiniteores-disablersomode >= 0.1.2"
]
what I can guess is that the text on each array element is the "name" property of the required mods and that they need the specific version or a higher version as said. But what does the "?" at the beginning mean?
I'm currently working on a tool that will allow everyone to create mods for Factorio without having to learn any of the complicated stuff.
Follow the development here: viewtopic.php?f=137&t=40830.

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2904
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: How does the "dependencies" property in the info.json work?

Post by darkfrei »

RalleYTN wrote:I looked at the info.json from Angels Infinite Ores.

Code: Select all

"dependencies": [
	"base >= 0.14.0", 
	"? rso-mod >= 2.3.3", 
]
what I can guess is that the text on each array element is the "name" property of the required mods and that they need the specific version or a higher version as said. But what does the "?" at the beginning mean?
Must have or it's only option.

User avatar
RalleYTN
Long Handed Inserter
Long Handed Inserter
Posts: 55
Joined: Wed Feb 01, 2017 7:14 am
Contact:

Re: How does the "dependencies" property in the info.json work?

Post by RalleYTN »

darkfrei wrote:
RalleYTN wrote:I looked at the info.json from Angels Infinite Ores.

Code: Select all

"dependencies": [
	"base >= 0.14.0", 
	"? rso-mod >= 2.3.3", 
]
what I can guess is that the text on each array element is the "name" property of the required mods and that they need the specific version or a higher version as said. But what does the "?" at the beginning mean?
Must have or it's only option.
Ok thanks! :)
I'm currently working on a tool that will allow everyone to create mods for Factorio without having to learn any of the complicated stuff.
Follow the development here: viewtopic.php?f=137&t=40830.

Post Reply

Return to “Modding help”