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

Improve error granularity when creating resources #8836

Open
britzl opened this issue Apr 23, 2024 · 0 comments
Open

Improve error granularity when creating resources #8836

britzl opened this issue Apr 23, 2024 · 0 comments
Labels
engine Issues related to the Defold engine feature request A suggestion for a new feature live update Issue related to the Live Update feature

Comments

@britzl
Copy link
Contributor

britzl commented Apr 23, 2024

When working with Live Update it would be really helpful if resource errors has a higher granularity. As it is now, any failure to create a resource (resource.cpp > DoCreateResource) often result in the generic dmResource::RESULT_FORMAT_ERROR.

Take res_render_script.cpp as an example where ResRenderScriptCreate() will return RESULT_FORMAT_ERROR when it

  • fails to load the protobuf file using dmDDF::LoadMessage
  • fails to create submodules using dmGameObject::RegisterSubModules
  • fails to create the render script using dmRender::NewRenderScript

(the same kind of scenario exists for res_script.cpp as well).

It would be very helpful if I as a developer knew if it was breaking change in the protobuf format (unlikely) or if my liveupdate archive has a reference to a file that doesn't exist (more likely).

@britzl britzl added feature request A suggestion for a new feature engine Issues related to the Defold engine live update Issue related to the Live Update feature labels Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
engine Issues related to the Defold engine feature request A suggestion for a new feature live update Issue related to the Live Update feature
Projects
None yet
Development

No branches or pull requests

1 participant