Skip to content

Commit a5b4982

Browse files
committed
use relative map path
supported since GU17 and required for mod.io
1 parent 8f57c68 commit a5b4982

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

AnnoMapEditor/Mods/Mod.cs

+1-3
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,7 @@ private async Task WriteAssetsXml(string modPath, string fullModName, string map
159159
if (assetsXmlDir is not null)
160160
Directory.CreateDirectory(assetsXmlDir);
161161

162-
string fullMapPath = Path.Combine("mods", fullModName, mapFilePath).Replace("\\", "/");
163-
164-
string content = CreateAssetsModOps(mapType, fullMapPath);
162+
string content = CreateAssetsModOps(mapType, mapFilePath);
165163

166164
using StreamWriter writer = new(File.Create(assetsXmlPath));
167165
await writer.WriteAsync(content);

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ It's not reliable to do so without manual editing.
5353

5454
### 0.5
5555

56+
- 0.5.1: save as mod: set map name also for non-English languages
57+
- 0.5.1: save as mod: fix use via mod.io (relative map path)
5658
- Add, remove, change pool islands
5759

5860
### 0.4

0 commit comments

Comments
 (0)