Skip to content

Fix CN plugin download: use NewMoe FFXIV_ACT_Plugin_CN releases - #179

Merged
marzent merged 1 commit into
marzent:mainfrom
DirtyManZBY:cn-plugin-source
Nov 26, 2026
Merged

marzent merged 1 commit into
marzent:mainfrom
DirtyManZBY:cn-plugin-source

Conversation

@DirtyManZBY

@DirtyManZBY DirtyManZBY commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Problem

On the CN client (ChineseSimplified), FetchDependencies downloads the parser from cninact.diemoe.net. That source is currently broken for IINACT 2.10:

  1. Wrong format – PluginUrlChinese returns a bare FFXIV_ACT_Plugin.dll, but it is saved as FFXIV_ACT_Plugin.zip and passed to ZipFile.ExtractToDirectory, so the plugin fails to load with
    InvalidDataException: End of Central Directory record could not be found.
  2. Outdated build – the mirror serves FFXIV_ACT_Plugin 2.7.4.9. Even when extracted manually, IINACT 2.10.3.12 fails with
    TypeLoadException: Could not load type 'FFXIV_ACT_Plugin.Memory.Models.Global.CombatantStruct' from assembly 'FFXIV_ACT_Plugin.Memory, Version=2.7.4.9',
    and its memory layout no longer matches the current CN client (7.58).

The international 3.0.3.5 build is not a usable workaround on CN, as it has global offsets.

Change

For the CN client, fetch the plugin from the latest release of
NewMoe-Technology/FFXIV_ACT_Plugin_CN, which is maintained per CN patch (currently 3.0.3.0-CN7.58, released 2026-11-10).

  • The release asset FFXIV_ACT_Plugin.zip has the same layout as the global download (FFXIV_ACT_Plugin.dll + deucalion-*.dll), so the existing extract → delete deucalion → Patcher flow is reused unchanged.
  • Update detection by release tag: CN releases keep the same assembly version across client patches (3.0.3.0-CN7.56 → CN7.57 → CN7.58), so remoteVersion > plugin.Version would never trigger an update. The installed tag is stored in FFXIV_ACT_Plugin.release next to the plugin, and an update is triggered when it differs from the latest release tag. Installs without the file (e.g. from the old mirror) update once.
  • The release lookup reuses the existing GitHub-API code (previously inline in the global fallback), now factored into GetLatestRelease. The global path is otherwise unchanged; its fallback request now also uses a 30 s timeout.
  • The CN path does not fall back to the global ravahn/FFXIV_ACT_Plugin release, since that build does not work on the CN client.
  • If the release check fails or times out (3 s, as before), NeedsUpdate still returns false and the installed plugin is kept, so a slow GitHub connection does not block loading.

Only FetchDependencies/FetchDependencies.cs is changed (+68 / −21).

Testing

macOS (XIVLauncherCN / Wine), .NET SDK 10.0.404, Mono.Cecil from Dalamud 15.0.4.0. A small harness compiled the actual FetchDependencies/*.cs and ran GetFfxivPlugin() into empty directories:

Scenario Result
CN, fresh install Downloads 3.0.3.0-CN7.58; the existing Patcher completes without errors: marker IINACT_API_V1_6_0 added, 11/11 DataSubscription.On* BeginInvoke → Invoke, ScanMemory.Run → ret, LogFormat.FormatVersion rewritten; tag file = 3.0.3.0-CN7.58
CN, up to date No download (~1 s)
CN, tag file 3.0.3.0-CN7.57 Updates to 3.0.3.0-CN7.58
CN, no tag file (legacy install) Updates once
Global, fresh install / up to date Unchanged: 3.0.3.5, no tag file, no re-download
dotnet build IINACT/IINACT.csproj -c Release Succeeds, 0 warnings

The same 3.0.3.0-CN7.58 plugin (patched by hand) was confirmed working in-game with IINACT 2.10.3.12 on CN 7.58: player/combatant data, DPS and cactbot alerts/timeline.

The CN mirror (cninact.diemoe.net) serves an outdated 2.7.4.9 build as a
bare DLL, which fails to extract and is incompatible with IINACT 2.10.
Fetch the latest FFXIV_ACT_Plugin.zip from NewMoe-Technology/
FFXIV_ACT_Plugin_CN instead and track updates by release tag, since CN
releases keep the same assembly version across client patches.
@DirtyManZBY
DirtyManZBY marked this pull request as ready for review November 16, 2026 10:05
@marzent

marzent commented Nov 20, 2026

Copy link
Copy Markdown
Owner

Hm is that the "official" URL for the current FFXIV_ACT_Plugin Chinese version?

I am not really familiar with the Chinese parsing community too much, so I am sorry for the trivial questions...

@DirtyManZBY

Copy link
Copy Markdown
Contributor Author

There's no official CN build from ravahn as far as I know. The de facto source in the CN community is the DieMoe team (NewMoe-Technology), who maintain ACT.DieMoe, the ACT bundle most CN players use. They also run diemoe.net, so cninact.diemoe.net, the URL IINACT uses today, is theirs too. This PR just switches to their GitHub releases, which are kept up to date with each CN patch.

@marzent

marzent commented Nov 25, 2026

Copy link
Copy Markdown
Owner

I am not too sure we need the 2nd commit? The case it describes can only happen when the remote is reached and the version is guaranteed to be out of date. I think in that case it is correct for the initialization to fail.

If the remote is not reachable NeedsUpdate already returns false.

@DirtyManZBY

Copy link
Copy Markdown
Contributor Author

You're right, I've dropped the second commit. The PR is back to the single commit described above.

@marzent
marzent merged commit 85bbb2c into marzent:main Nov 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants