Closed JanSharp closed 11 months ago
i'm making a few small tweaks to this as i pull it in:
9 shorten the inner-type to a single letter to keep the total name length down, since they do show up occasionally
Sounds good. It is true that they're rediculously long
campaigns have a second layer of inner name for the level within the campaign
I was unaware, never looked into campaigns enough I suppose, so yea makes sense :+1:
When determining the name for the
global
table in a file, the following has been changed:data
folder in the file's uri to detectbase
andcore
mod filescampaigns
andtutorials
, similar to howscenarios
workedscenarios
and friends to only look in the part of the path after the modnameThe resulting global names take the form
__mod-name__inner-type__inner-name__global
wheremod-name
isbaes
,core
, the folder name aftermods
or the workspace name as a fallbackinner-type
is eithercampaign
,tutorial
orscenario
inner-name
is the folder name aftercampaigns
,tutorials
orscenarios
And if none of the 3 folder names were found,inner-type
andinner-name
are omitted, leaving just__mod-name__global