Find the Best Demos and Examples

Check out this quick tour to find the best demos and examples for you, and to see how the Felgo SDK can help you to develop your next app or game!


OverviewFelgo 1 Support › Bug with EntityBase.toStoreProperties?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
  • #6120

    Felgo Team

    I was just trying to save additional properties with an entity using toStoreProperties: [“myProperty”]

    I was wondering why it was never or only sometimes saved, so i checked out EntityManager’s logs, which always said:

    WARNING: EntityManager: the entity does not have the property defined in toStoreProperties: undefined

    So the property name was always undefined?
    I also checked out the source code, where i found something strange:

    // toStoreProperties is a variant property array in EntityBase
    var toStoreProps = entity.toStoreProperties;
    console.debug("toStoreProperties = " + JSON.stringify(toStoreProps))
    for(var j=0; j<toStoreProps.length; j++) {
    var toStorePropertyName = toStoreProps[i];

    The for loop uses the variable “j” but the index for toStoreProps is “i”?

    (Using VPlay 1.5)

    Cheers, Chrisu


    Felgo Team

    Hi Chrisu,

    thanks a lot for digging into the source code – you have found a bug in this function which will be fixed with the next daily build!

    Should we send you a desktop build with the new library?

    Cheers, Chris


    Felgo Team

    Hey that’s awesome that you already fixed it 🙂

    Yes a new build would be cool!

Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.