Giter Site home page Giter Site logo

Comments (3)

forkercat avatar forkercat commented on June 13, 2024

Some observations:

  1. In this case, the prefab being processed is SuperCat. The owning instance is Cat and the entity is its (i.e. Cat) container entity.
  2. If you remove CatEntity, the warning still persist, which means it is the container entity. If you duplicate Cat prefabs, there would be two warnings.
  3. It only happens to nested prefabs.
  4. Code that generates the warning: Prefabs/InstanceEntityIdMapper.cpp

from o3de.

forkercat avatar forkercat commented on June 13, 2024

Note that the same warning also applies when we run the game in Editor. Related GHI: #14323

I believe it is the same root cause that happens when a prefab source asset is being converted to a product asset (spawnable).

from o3de.

forkercat avatar forkercat commented on June 13, 2024

I added some log lines in the PrefabBuilder, PrefabCatchmentProcessor, InstanceSerializer, JsonEntityIdSerializer, and InstanceEntityIdMapper.

image

Based on the result, I can tell that the it is somehow unexpectedly checking whether a parent container entity (SuperCat) belongs to a nested instance (Cat). Specifically, when the serializer is processing the SuperCat prefab, it would process the container entity and its nested instance Cat prefab. It is good there. But when it is processing the Cat instance's container entity, it does this:

  1. Checks if Cat container entity belongs to Cat instance - CORRECT (no issue)
  2. Checks if SuperCat container entity belongs to Cat instance - WRONG

Don't know why the second ResolveReferenceId is being called for the SuperCat container entity. The serialization code is very hard to debug... I think there is a bug here.

Any ideas? @srikappa-amzn @michabr @AMZN-daimini

from o3de.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.