Open erimyth opened 5 months ago
Unfortunately not with the current code.
My original idea was to make it possible to export for different versions, but I have since abandoned that idea due to a lack of time. There is a small amount of separation between otb versions in the code, but you would need many changes to the code to make it work for 8.60.
If you want to try to fix it yourself, here's some information:
I can't remember whether I've tested the loading of .dat files in this repository (Backend/Tibia7/DatIO.cs). It is possible that there are problems there as well.
You will have to modify LapisItemEditor/ViewModels/Main/ItemPropertiesViewModel.cs and Backend/Appearance.cs so that they don't make use of code from the Tibia.Protobuf
namespace (or create Appearance
instances based on the info from the .dat file).
You also need to modify the OtbData::WriteItemTypes function so that it doesn't write otb properties that didn't exist in 8.60: https://github.com/giuinktse7/LapisItemEditor/blob/036a8495cc4c9cae8291abe16f0f833587a356b5/Backend/OtbData.cs#L499
These are the main things I can think of, but there will doubtlessly be additional smaller changes required in other places in the code base as well.
Sorry I can't be of more help, good luck!
Would it be possible to export to a version of otb 8.60?