Skip to content

Commit

Permalink
upped the minimum required ldtk version
Browse files Browse the repository at this point in the history
  • Loading branch information
Cammin committed Jan 13, 2024
1 parent 411794b commit 8a65a3b
Show file tree
Hide file tree
Showing 45 changed files with 51 additions and 48 deletions.
3 changes: 2 additions & 1 deletion Assets/LDtkUnity/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
- Updated json support & samples for [LDtk 1.5.2](https://ldtk.io/json/#changes;1.5.2)
- Added LDtkPreprocessor: Use to read/modify any json data before GameObject hierarchies are created
- Added support for the additional Table-of-content data from LDtk 1.5
- Except the `Fields`; will come later
- Except the `Fields`; will need to come later
- Updated samples to 1.5.2

### Fixes
Expand All @@ -14,6 +14,7 @@
- The export app will now pause if errors are encountered to enable easier reading

### Breaking Changes
- This importer requires LDtk projects of LDtk version 1.5 at a minimum. Update your LDtk app and save your project.
- Deprecated `LDtkTableOfContents.GetEntities`, use `GetEntry` instead
- This version has an update to the tileset export app, and the command to run is changed. So follow these two steps:
- Select your LDtk project file, and you will be able to install a newer version with the click of a button.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ internal static class LDtkImporterConsts
public const int PROJECT_VERSION = 28;
public const int LEVEL_VERSION = 12;
public const int TILESET_VERSION = 4;
public const string LDTK_JSON_VERSION = "1.3.0";
public const string MINIMUM_JSON_VERSION = "1.5.0";
public const string EXPORT_APP_VERSION_REQUIRED = "1.5.2.0";

public const string PROJECT_EXT = "ldtk";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public static bool CheckOutdatedJsonVersion(string jsonVersion, string assetName
return false;
}

Version minimumRecommendedVersion = new Version(LDtkImporterConsts.LDTK_JSON_VERSION);
Version minimumRecommendedVersion = new Version(LDtkImporterConsts.MINIMUM_JSON_VERSION);
if (version < minimumRecommendedVersion)
{
LDtkDebug.LogError($"The version of the project \"{assetName}\" is outdated. It's a requirement to update your project to the latest supported version. ({version} < {minimumRecommendedVersion})", projectCtx);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.3.2",
"appVersion": "1.5.2",
"url": "https://ldtk.io"
},
"iid": "74500040-7820-11ed-b22f-a186b2438f37",
"jsonVersion": "1.3.2",
"appBuildId": 467535,
"jsonVersion": "1.5.2",
"appBuildId": 473624,
"nextUid": 56,
"identifierStyle": "Capitalize",
"toc": [],
Expand All @@ -22,6 +22,8 @@
"defaultPivotX": 0,
"defaultPivotY": 0,
"defaultGridSize": 16,
"defaultEntityWidth": 16,
"defaultEntityHeight": 16,
"bgColor": "#40465B",
"defaultLevelBgColor": "#696A79",
"minifyJson": false,
Expand All @@ -37,7 +39,7 @@
"levelNamePattern": "%world_Level_%idx",
"tutorialDesc": "Meant to only contain nothing. No tile sets. We just want to gauge basic import capability",
"customCommands": [],
"flags": ["IgnoreBackupSuggest"],
"flags": [ "ExportOldTableOfContentData", "IgnoreBackupSuggest" ],
"defs": { "layers": [], "entities": [], "tilesets": [], "enums": [], "externalEnums": [], "levelFields": [] },
"levels": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.3.2",
"appVersion": "1.5.2",
"url": "https://ldtk.io"
},
"identifier": "World_Level_0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.3.2",
"appVersion": "1.5.2",
"url": "https://ldtk.io"
},
"identifier": "World_Level_1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.3.2",
"appVersion": "1.5.2",
"url": "https://ldtk.io"
},
"identifier": "World_Level_10",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.3.2",
"appVersion": "1.5.2",
"url": "https://ldtk.io"
},
"identifier": "World_Level_11",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.3.2",
"appVersion": "1.5.2",
"url": "https://ldtk.io"
},
"identifier": "World_Level_12",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.3.2",
"appVersion": "1.5.2",
"url": "https://ldtk.io"
},
"identifier": "World_Level_13",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.3.2",
"appVersion": "1.5.2",
"url": "https://ldtk.io"
},
"identifier": "World_Level_14",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.3.2",
"appVersion": "1.5.2",
"url": "https://ldtk.io"
},
"identifier": "World_Level_15",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.3.2",
"appVersion": "1.5.2",
"url": "https://ldtk.io"
},
"identifier": "World_Level_16",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.3.2",
"appVersion": "1.5.2",
"url": "https://ldtk.io"
},
"identifier": "World_Level_17",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.3.2",
"appVersion": "1.5.2",
"url": "https://ldtk.io"
},
"identifier": "World_Level_18",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.3.2",
"appVersion": "1.5.2",
"url": "https://ldtk.io"
},
"identifier": "World_Level_19",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.3.2",
"appVersion": "1.5.2",
"url": "https://ldtk.io"
},
"identifier": "World_Level_2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.3.2",
"appVersion": "1.5.2",
"url": "https://ldtk.io"
},
"identifier": "World_Level_20",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.3.2",
"appVersion": "1.5.2",
"url": "https://ldtk.io"
},
"identifier": "World_Level_21",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.3.2",
"appVersion": "1.5.2",
"url": "https://ldtk.io"
},
"identifier": "World_Level_22",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.3.2",
"appVersion": "1.5.2",
"url": "https://ldtk.io"
},
"identifier": "World_Level_23",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.3.2",
"appVersion": "1.5.2",
"url": "https://ldtk.io"
},
"identifier": "World_Level_24",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.3.2",
"appVersion": "1.5.2",
"url": "https://ldtk.io"
},
"identifier": "World_Level_25",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.3.2",
"appVersion": "1.5.2",
"url": "https://ldtk.io"
},
"identifier": "World_Level_26",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.3.2",
"appVersion": "1.5.2",
"url": "https://ldtk.io"
},
"identifier": "World_Level_27",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.3.2",
"appVersion": "1.5.2",
"url": "https://ldtk.io"
},
"identifier": "World_Level_28",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.3.2",
"appVersion": "1.5.2",
"url": "https://ldtk.io"
},
"identifier": "World_Level_29",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.3.2",
"appVersion": "1.5.2",
"url": "https://ldtk.io"
},
"identifier": "World_Level_30",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.3.2",
"appVersion": "1.5.2",
"url": "https://ldtk.io"
},
"identifier": "World_Level_31",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.3.2",
"appVersion": "1.5.2",
"url": "https://ldtk.io"
},
"identifier": "World_Level_32",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.3.2",
"appVersion": "1.5.2",
"url": "https://ldtk.io"
},
"identifier": "World_Level_33",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.3.2",
"appVersion": "1.5.2",
"url": "https://ldtk.io"
},
"identifier": "World_Level_34",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.3.2",
"appVersion": "1.5.2",
"url": "https://ldtk.io"
},
"identifier": "World_Level_35",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.3.2",
"appVersion": "1.5.2",
"url": "https://ldtk.io"
},
"identifier": "World_Level_36",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.3.2",
"appVersion": "1.5.2",
"url": "https://ldtk.io"
},
"identifier": "World_Level_37",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.3.2",
"appVersion": "1.5.2",
"url": "https://ldtk.io"
},
"identifier": "World_Level_38",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.3.2",
"appVersion": "1.5.2",
"url": "https://ldtk.io"
},
"identifier": "World_Level_39",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.3.2",
"appVersion": "1.5.2",
"url": "https://ldtk.io"
},
"identifier": "World_Level_4",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.3.2",
"appVersion": "1.5.2",
"url": "https://ldtk.io"
},
"identifier": "World_Level_40",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"doc": "https://ldtk.io/json",
"schema": "https://ldtk.io/files/JSON_SCHEMA.json",
"appAuthor": "Sebastien 'deepnight' Benard",
"appVersion": "1.3.2",
"appVersion": "1.5.2",
"url": "https://ldtk.io"
},
"identifier": "World_Level_5",
Expand Down
Loading

0 comments on commit 8a65a3b

Please sign in to comment.