Why use otb format? I see that otb format is used in two situations:
Ok I can understand that real tibia map requires some binaryformat like otb becosue real tibia map is very big and binary format gives performance boost comparing to xml, But items in otb format - is it only becouse like 10 years ago decided to specify items both in xml and otb? (first commit is 2013 and this is fork of another opentibia server)? Maybe good idea would be to refactor items so that it does not require otb binary format.
PS note that this is only a question not actual proposal to refactor anything becouse it might be too early
OTB is absolutely useless, it even complicates a lot of things because client & server ID's are different, for which there's absolutely no reason. Everything could be done in the items.xml file.
Hi thanks for reply. Maybe it could be possible to allow alternative: (only xml format with some extra fields) or (xml and otb format to allow compatibility with existing datapacks)?
Edit: I think the reason for server and client ID mismatch was some "tibie bot protection system" that finally appeared to be not effective but id mismatch persists
I remember someone saying that the id mismatch is to keep "consistency" or something like this, maybe @marksamman can tell more about (or maybe I dreamed about it and I'm completely wrong lol), and about the format itself:
read #2458 #2206 #2272 we maybe will see a new format in a few years tho 馃構
OTB is absolutely useless, it even complicates a lot of things because client & server ID's are different, for which there's absolutely no reason. Everything could be done in the items.xml file.
Server id was a real failure in open tibia.
You can look at this repository where it uses a different format and mechanics for the items:
https://github.com/TwistedScorpio/Nostalrius/tree/master/data/items
10 years ago it wasn't failure. It was thing required to make OTS easily change from version to version.
If you decide 'i want to make 8.6 ots', it would be easier to use client IDs on server.
If you want to upgrade your server from version to version, you get risk that tibia owners will mix IDs to make your life hell. For that case there was a tool that traced items by their sprite images and generate consistent client id -> server id map which was saved as items.otb.
Most helpful comment
10 years ago it wasn't failure. It was thing required to make OTS easily change from version to version.
If you decide 'i want to make 8.6 ots', it would be easier to use client IDs on server.
If you want to upgrade your server from version to version, you get risk that tibia owners will mix IDs to make your life hell. For that case there was a tool that traced items by their sprite images and generate consistent client id -> server id map which was saved as items.otb.