Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export to 8.60 version #9

Open
erimyth opened this issue May 17, 2024 · 3 comments
Open

Export to 8.60 version #9

erimyth opened this issue May 17, 2024 · 3 comments

Comments

@erimyth
Copy link

erimyth commented May 17, 2024

Would it be possible to export to a version of otb 8.60?

@giuinktse7
Copy link
Owner

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:

  • Code related to Tibia 11+ (appearances.dat & LZMA format) is here: Backend/Tibia11
  • Code related to Tibia 7+ (.dat & .spr) is here: Backend/Tibia7

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:

private void WriteItemTypes(OtbWriter writer, GameData gameData)

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!

@Aniiiko
Copy link

Aniiiko commented Dec 27, 2024

I have been working on the support for .dat and .spr files. So far the .dat and .spr files are loaded successfully, but I'm coming across some obstacles that might be silly for someone with a better understanding of how the design of an Item Editor is supposed to be. If you could reach out to me that would be great!

Edit:
I got it to work with assets <= 10.98 perfectly.

@giuinktse7
Copy link
Owner

Glad to hear @Aniiiko! Aplogoies for not answering, I've been absent from all things coding during my vacation 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants