• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Items.xml missing entries finder and updater

Acedb

Well-Known Member
Joined
Oct 27, 2008
Messages
77
Reaction score
99
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):
  1. Run the scan to produce the report.
  2. 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 &lt;item fromid=".." toid=".."&gt; 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

Last edited:
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):
  1. Run the scan to produce the report.
  2. 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 &lt;item fromid=".." toid=".."&gt; 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. 😉
Failed to load resource: the server responded with a status of 404 ()
6
itemImageGenerator.js:1533
Failed to load sprites: Error: DataBuffer: getU8 failed
error@
[td width="1081.33px"]itemImageGenerator.js:1533[/td]
 
Back
Top