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

/data/things/772/Tibia.dat no valid .dat file #1024

Open
2 of 5 tasks
scriptbutter opened this issue Jan 8, 2025 · 3 comments
Open
2 of 5 tasks

/data/things/772/Tibia.dat no valid .dat file #1024

scriptbutter opened this issue Jan 8, 2025 · 3 comments
Labels
Priority: Low Minor impact Status: Pending Test This PR or Issue requires more testing Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@scriptbutter
Copy link

Priority

Low

Area

  • Data
  • Source
  • Docker
  • Other

What happened?

I used a custom /772/ dat file witch works on otclientv8. Here it do not work.

What OS are you seeing the problem on?

Windows

Code of Conduct

  • I agree to follow this project's Code of Conduct
@scriptbutter scriptbutter added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label Jan 8, 2025
@github-actions github-actions bot added Priority: Low Minor impact Status: Pending Test This PR or Issue requires more testing labels Jan 8, 2025
@kokekanon
Copy link
Collaborator

kokekanon commented Jan 8, 2025

open in object builder and Check the image to see which options are active. And DEPENDING on those options, enable these features.
It is in order.
Or check how it is set up in v8.

game_feature

g_game.enableFeature(GameSpritesU32)
g_game.enableFeature(GameSpritesAlphaChannel)
g_game.enableFeature(GameEnhancedAnimations)
g_game.enableFeature(GameIdleAnimations)

image-14

@scriptbutter
Copy link
Author

Sorry cant help any further.

I get this in console:

ERROR: Failed to read dat '/data/things/772/Tibia.dat': in file '/data/things/772/Tibia.dat': [FileStream::getString] - Read failed because string is too big'
ERROR: Failed to read dat '/data/things/772/Tibia.dat': corrupt data (id: 101, category: 0, count: 255, lastAttr: 105)'
ERROR: Failed to read dat '/data/things/772/Tibia.dat': corrupt data (id: 101, category: 0, count: 255, lastAttr: 105)'
Exiting application..

@gesior
Copy link
Contributor

gesior commented Jan 8, 2025

Only feature that is enabled by default in OTCv8 for any client version is:

g_game.enableFeature(GameSpritesU32)

In Mehah you must enable it manually in:

In OTCv8 it detects that .dat failed to load, enables this feature and tries to load .dat again:
https://github.com/OTCv8/otclientv8/blob/master/modules/game_things/things.lua#L33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Low Minor impact Status: Pending Test This PR or Issue requires more testing Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

No branches or pull requests

3 participants