Author SHA1 Message Date
ff14wedandgithub-actions[bot] 5c0475d597 Update for 7.45 (2026.03.07.0000.0000) 2026-03-11 07:38:45 +00:00
9 changed files with 807 additions and 25257 deletions
+11 -10
View File
@@ -15,6 +15,13 @@ jobs:
- name: Checkout
uses: actions/checkout@v6
- name: Download Latest ffxiv_dx11.exe
id: downloader-latest
uses: WorkingRobot/ffxiv-downloader@v8
with:
output-path: latest
regex: '^ffxiv_dx11\.exe$'
- name: Set up Python
uses: actions/setup-python@v6
with:
@@ -23,20 +30,14 @@ jobs:
- name: Fetch Patch Info and Update Versions
id: versions
if: steps.downloader-latest.outputs.updated == 'true' || github.event_name == 'workflow_dispatch'
run: python automation/ffxiv_info.py >> $GITHUB_OUTPUT
- name: Download Latest ffxiv_dx11.exe
if: steps.versions.outputs.is_new == 'true'
uses: WorkingRobot/ffxiv-downloader@v8
with:
output-path: latest
regex: '^ffxiv_dx11\.exe$'
- name: Download Previous ffxiv_dx11.exe
if: steps.versions.outputs.is_new == 'true'
uses: WorkingRobot/ffxiv-downloader@v8
with:
version: ${{ steps.versions.outputs.thaliak_version_prev }}
version: ${{ steps.versions.outputs.date_prev }}
output-path: previous
regex: '^ffxiv_dx11\.exe$'
@@ -77,8 +78,8 @@ jobs:
uses: peter-evans/create-pull-request@v8
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Update for ${{ steps.versions.outputs.retail_new }} (${{ steps.versions.outputs.thaliak_version_new }})"
title: "Update for ${{ steps.versions.outputs.retail_new }} (${{ steps.versions.outputs.thaliak_version_new }})"
commit-message: "Update for ${{ steps.versions.outputs.retail_new }} (${{ steps.versions.outputs.date_new }})"
title: "Update for ${{ steps.versions.outputs.retail_new }} (${{ steps.versions.outputs.date_new }})"
body: |
This automatic update contains the following changes:
- Updated `ffxiv_versions_global.json`
+1 -4
View File
@@ -135,10 +135,7 @@ def get_packet_handler_opcode_offset(r2, exe_file: str):
r2.cmd(f"s {opcode_offset_target}")
r2.cmd("aei; aeim; aeip") # Initialize ESIL VM, stack, and instruction pointer
if semver.compare(sem_ver, "7.5.0") >= 0:
offset_reg = "r13"
opcode_offset = _get_opcode_offset_post_72(r2, offset_reg)
elif semver.compare(sem_ver, "7.4.0") >= 0:
if semver.compare(sem_ver, "7.4.0") >= 0:
offset_reg = "r15"
opcode_offset = _get_opcode_offset_post_72(r2, offset_reg)
elif semver.compare(sem_ver, "7.3.8") >= 0:
+42 -66
View File
@@ -79,6 +79,12 @@ def load_versions() -> List[dict]:
return []
def get_latest_version_entry() -> Optional[dict]:
"""Returns the most recent version entry from the version file."""
data = load_versions()
return data[-1] if data else None
def fetch_latest_thaliak_patch() -> Optional[str]:
"""
Fetches the latest date-based version string from the Thaliak API.
@@ -125,35 +131,7 @@ def extract_patch_version(html):
if not html or not (m := re.search(r"patch\s+(\d+\.\d+)", html, re.I)):
return None
v = m.group(1)
if len(v.split(".")[1]) == 1:
v += "0"
return v
def get_next_hotfix_version(base_v, existing_versions):
matching = [
v["retail_version"]
for v in existing_versions
if v["retail_version"].startswith(base_v)
]
hotfixes = [v for v in matching if "h" in v]
if not hotfixes:
return f"{base_v}h"
# Extract numeric suffix: h -> 1, h2 -> 2, etc.
nums = [int(h.split("h")[1]) if h.split("h")[1].isdigit() else 1 for h in hotfixes]
return f"{base_v}h{max(nums) + 1}"
def determine_retail_version(base_v, existing_versions, thaliak_version_new):
matching = [v for v in existing_versions if v["retail_version"].startswith(base_v)]
latest = matching[-1] if matching else None
# If we have a record for this base version but the Thaliak version is new, it's a hotfix.
if latest and thaliak_version_new and thaliak_version_new != latest["version_string"]:
return get_next_hotfix_version(base_v, existing_versions)
return latest["retail_version"] if latest else base_v
return v + "0" if len(v.split(".")[1]) == 1 else v
def is_maintenance_post(title):
@@ -162,7 +140,14 @@ def is_maintenance_post(title):
return "all worlds" in t and "maintenance" in t and "follow-up" not in t
def scrape_latest_maintenance(thaliak_version_new=None):
def format_retail_version(v, count):
"""Formats the version with hotfix suffixes: 7.41, 7.41h, 7.41h2, etc."""
if count <= 1:
return v
return f"{v}h{count - 1 if count > 2 else ''}"
def scrape_latest_maintenance():
"""
Scrapes the Lodestone to find the most recent 'All Worlds Maintenance' post.
"""
@@ -179,7 +164,6 @@ def scrape_latest_maintenance(thaliak_version_new=None):
return None
news_items = parse_lodestone_news_list(html)
existing_versions = load_versions()
for item in news_items:
title = item["title"]
@@ -189,18 +173,12 @@ def scrape_latest_maintenance(thaliak_version_new=None):
continue
detail_html = fetch_url(link)
if not detail_html:
continue
version = extract_patch_version(detail_html)
base_version = extract_patch_version(detail_html)
if not base_version:
continue
retail_version = determine_retail_version(
base_version, existing_versions, thaliak_version_new
)
return {"retail_version": retail_version, "title": title, "url": link}
if version:
# We assume the first (most recent) valid maintenance post
# with a patch version is our target.
return {"retail_version": version, "title": title, "url": link}
return None
@@ -209,15 +187,15 @@ def get_version_info() -> Optional[dict]:
"""
Returns the latest version information by combining Thaliak and Lodestone data.
"""
thaliak_version_new = fetch_latest_thaliak_patch()
maintenance = scrape_latest_maintenance(thaliak_version_new=thaliak_version_new)
date_new = fetch_latest_thaliak_patch()
maintenance = scrape_latest_maintenance()
if not maintenance and not thaliak_version_new:
if not maintenance and not date_new:
return None
return {
"retail_version": maintenance["retail_version"] if maintenance else "Unknown",
"version_string": thaliak_version_new,
"version_string": date_new,
"title": maintenance["title"] if maintenance else "Unknown",
"url": maintenance["url"] if maintenance else "Unknown",
}
@@ -226,26 +204,27 @@ def get_version_info() -> Optional[dict]:
def get_patch_context():
"""
Returns a dictionary containing:
- retail_prev, thaliak_version_prev: The latest registered version.
- retail_new, thaliak_version_new: The latest versions found externally.
- is_new: True if thaliak_version_new is not in the registry.
- retail_prev, date_prev: The latest registered version.
- retail_new, date_new: The latest versions found externally.
- is_new: True if date_new is not in the registry.
"""
versions = load_versions()
prev = versions[-1] if versions else None
thaliak_version_new = fetch_latest_thaliak_patch()
maintenance = scrape_latest_maintenance(thaliak_version_new=thaliak_version_new)
date_new = fetch_latest_thaliak_patch()
maintenance = scrape_latest_maintenance()
retail_new = maintenance["retail_version"] if maintenance else None
is_new = thaliak_version_new is not None and not any(
v["version_string"] == thaliak_version_new for v in versions
)
is_new = False
if date_new:
is_new = not any(v["version_string"] == date_new for v in versions)
return {
"retail_prev": prev["retail_version"] if prev else None,
"thaliak_version_prev": prev["version_string"] if prev else None,
"date_prev": prev["version_string"] if prev else None,
"retail_new": retail_new,
"thaliak_version_new": thaliak_version_new,
"date_new": date_new,
"is_new": is_new,
}
@@ -257,26 +236,23 @@ def update_and_get_info():
"""
ctx = get_patch_context()
if ctx["thaliak_version_prev"]:
print(f"thaliak_version_prev={ctx['thaliak_version_prev']}")
if ctx["date_prev"]:
print(f"date_prev={ctx['date_prev']}")
if ctx["retail_prev"]:
print(f"retail_prev={ctx['retail_prev']}")
if ctx["thaliak_version_new"]:
print(f"thaliak_version_new={ctx['thaliak_version_new']}")
if ctx["date_new"]:
print(f"date_new={ctx['date_new']}")
if ctx["retail_new"]:
print(f"retail_new={ctx['retail_new']}")
print(f"is_new={'true' if ctx['is_new'] else 'false'}")
if ctx["is_new"] and ctx["thaliak_version_new"] and ctx["retail_new"]:
if ctx["is_new"] and ctx["date_new"] and ctx["retail_new"]:
data = load_versions()
data.append(
{
"retail_version": ctx["retail_new"],
"version_string": ctx["thaliak_version_new"],
}
{"retail_version": ctx["retail_new"], "version_string": ctx["date_new"]}
)
print(
f"Added new version mapping: {ctx['retail_new']} -> {ctx['thaliak_version_new']}",
f"Added new version mapping: {ctx['retail_new']} -> {ctx['date_new']}",
file=sys.stderr,
)
with open(VERSIONS_FILE, "w") as f:
+1 -13
View File
@@ -132,19 +132,7 @@
"version_string": "2026.02.20.0000.0000"
},
{
"retail_version": "7.45h",
"retail_version": "7.45",
"version_string": "2026.03.07.0000.0000"
},
{
"retail_version": "7.45h2",
"version_string": "2026.03.17.0000.0000"
},
{
"retail_version": "7.50",
"version_string": "2026.04.21.0000.0000"
},
{
"retail_version": "7.50h",
"version_string": "2026.05.01.0000.0000"
}
]
+752 -752
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
-6158
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff