Skip to content

Commit

Permalink
updated the export app to have a new arg in there and handle things a…
Browse files Browse the repository at this point in the history
…ppropriately
  • Loading branch information
Cammin committed Jan 3, 2024
1 parent 61599d3 commit 227bbcd
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
14 changes: 11 additions & 3 deletions Assets/LDtkUnity/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
# 4.1.1
###### January 1, 2023
# 4.2.0
###### January 3, 2023
- Updated json support & samples for [LDtk 1.5](https://ldtk.io/json/#changes;1.5.0)
- Added LDtkPreprocessor: Use to read/modify any json data before hierarchies are created
- Added LDtkPreprocessor: Use to read/modify any json data before GameObject hierarchies are created
- Improved the experience with the tileset export app
- Instead of the export app looking for an active windows process to get the project name, it's a new parameter in the command.
- The export app will now pause if errors are encountered to enable easier reading

### Note
- 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.
- Copy the new command from the importer inspector, and paste it into your LDtk project settings and Re-save.

# 4.1.0
###### October 23, 2023
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ internal sealed class LDtkEditorCommandUpdater
public LDtkEditorCommandUpdater(string projectPath)
{
ProjectPath = projectPath;
Command = GetCommand();
ProjectName = Path.GetFileNameWithoutExtension(projectPath);
Command = GetCommand();
}

private string GetCommand()
Expand All @@ -34,6 +34,9 @@ private string GetCommand()
//backslashes break deserialization
commandContent = LDtkPathUtility.CleanPathSlashes(commandContent);

//append the project name!
commandContent += $" {ProjectName}";

//Debug.Log($"fromPath {fromPath}");
//Debug.Log($"appPath {appPath}");
//Debug.Log($"relPath {relPath}");
Expand Down Expand Up @@ -279,7 +282,7 @@ public bool HasCustomCommand(LdtkJson data, out string reason)
}
}

reason = $"A command to the above path doesn't exists";
reason = $"A command to the above path doesn't exists or needs to be updated";
return false;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ internal static class LDtkImporterConsts
public const int LEVEL_VERSION = 11;
public const int TILESET_VERSION = 3;
public const string LDTK_JSON_VERSION = "1.3.0";
public const string EXPORT_APP_VERSION_REQUIRED = "1.0.0.0";
public const string EXPORT_APP_VERSION_REQUIRED = "1.0.0.2";

public const string PROJECT_EXT = "ldtk";
public const string LEVEL_EXT = "ldtkl";
Expand Down
Binary file modified Assets/LDtkUnity/LDtkTilesetExporter.zip
Binary file not shown.

0 comments on commit 227bbcd

Please sign in to comment.