[0.12.24] [Rseding91] Mod with spaces cannot be set as dependency
Posted: Tue Mar 01, 2016 1:39 am
It seems I have never tried to make one of my mods dependent on another until now, and I've run into a problem: In info.json, setting a dependency for a mod that has spaces in its name fails.
The following works just fine with no problems:
But when I try to add a dependency for Orbital Ion Cannon...
The game complains:
The following works just fine with no problems:
Code: Select all
{
"name": "Uplink Station",
"version": "0.1.2",
"title": "Satellite Uplink Station",
"author": "Supercheese",
"homepage": "https://forums.factorio.com/forum/viewtopic.php?f=97&t=19883",
"dependencies": ["base >= 0.12.17", "? bobelectronics >= 0.12.0", "? bobtech >= 0.12.0", "? filtered-deconstruction-planner >= 0.1.0", "? upgrade-planner >= 1.1.0", "? YARM >= 0.7.0"],
"description": "Remotely view, explore, attack, or deconstruct by using your spy satellites in orbit."
}
Code: Select all
{
"name": "Uplink Station",
"version": "0.1.2",
"title": "Satellite Uplink Station",
"author": "Supercheese",
"homepage": "https://forums.factorio.com/forum/viewtopic.php?f=97&t=19883",
"dependencies": ["base >= 0.12.17", "? Orbital Ion Cannon", "? bobelectronics >= 0.12.0", "? bobtech >= 0.12.0", "? filtered-deconstruction-planner >= 0.1.0", "? upgrade-planner >= 1.1.0", "? YARM >= 0.7.0"],
"description": "Remotely view, explore, attack, or deconstruct by using your spy satellites in orbit."
}
It seems the check is hardcoded to presume that all mods do not have spaces, which needs to be rectified.Mod dependency ? Orbital Ion Cannon not matching pattern "[?] ModName [ModVersion specifier]".