Hello, fellow OtLanders!
I ran into probably a pretty common problem while working on a custom TFS 1.5 (8.6) OTS: missing entries in items.xml. With a bit of help from AI (Im lazy guy), I built a small php tool to make this easier.
Idea:
Give the tool your existing items.xml and an OTBM map. It converts the map to JSON using OTBM2JSON, scans the map for item IDs that aren’t defined in items.xml, and generates a report (XLSX; CSV is available too - theoretically, because not tested at all).
The XLSX report can also populate an image column if you provide a folder with <id>.png icons (e.g., export them via Item Image Generator - OpenTibiaLibrary (https://item-images.ots.me/generator) — thanks, Gesior). Super handy when reviewing results.
Workflow (two commands):
More details are in the README.
Repo: GitHub - abecek/openTibiaMissingItemsTool (https://github.com/abecek/openTibiaMissingItemsTool/tree/main)
Hope it speeds up your workflow — especially for the lazy among us.
I ran into probably a pretty common problem while working on a custom TFS 1.5 (8.6) OTS: missing entries in items.xml. With a bit of help from AI (Im lazy guy), I built a small php tool to make this easier.
Idea:
Give the tool your existing items.xml and an OTBM map. It converts the map to JSON using OTBM2JSON, scans the map for item IDs that aren’t defined in items.xml, and generates a report (XLSX; CSV is available too - theoretically, because not tested at all).
The XLSX report can also populate an image column if you provide a folder with <id>.png icons (e.g., export them via Item Image Generator - OpenTibiaLibrary (https://item-images.ots.me/generator) — thanks, Gesior). Super handy when reviewing results.
Workflow (two commands):
- Run the scan to produce the report.
- Manually fill the article and name columns in that report, then run the second command to append the new entries to items.xml (or write to a separate output file). Consecutive IDs with identical article/name are merged into a single <item fromid=".." toid=".."> range.
More details are in the README.
Repo: GitHub - abecek/openTibiaMissingItemsTool (https://github.com/abecek/openTibiaMissingItemsTool/tree/main)
Hope it speeds up your workflow — especially for the lazy among us.
Attachments
-
openTibiaMissingItemsTool-main.zip39.3 KB · Views: 10 · VirusTotal
Last edited: