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

Textures are not reloaded after updater run (example updating background.png) #1044

Open
2 of 5 tasks
lucasoares opened this issue Jan 15, 2025 · 0 comments
Open
2 of 5 tasks
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

@lucasoares
Copy link
Contributor

Priority

Low

Area

  • Data
  • Source
  • Docker
  • Other

What happened?

As stated by @kokekanon on #1032 (comment), the textures are not reloaded when the updater is executed.

Quoting him:

I was testing and updater works with init.lua, modules.lua/.otui, spr/dat . The only thing that didn't work was that it didn't reload the textures(example updating background.png).

I got it to work by adding this g_textures.clearCache() here:

https://github.com/mehah/otclient/blob/main/modules/updater/updater.lua#L164

What OS are you seeing the problem on?

Windows

Code of Conduct

  • I agree to follow this project's Code of Conduct
@lucasoares lucasoares added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label Jan 15, 2025
@github-actions github-actions bot added Priority: Low Minor impact Status: Pending Test This PR or Issue requires more testing labels Jan 15, 2025
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

1 participant