Skip to content

Improve error granularity when creating resources #8836

Description

@britzl

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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    engineIssues related to the Defold enginefeature requestA suggestion for a new featurelive updateIssue related to the Live Update feature

    Type

    No type

    Fields

    Priority

    4

    Size

    2

    Score

    8

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions