Forums

OverviewV-Play 1 Support › Bug with EntityBase.toStoreProperties?

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

    Christian
    V-Play Team

    Hi,
    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

    #6123

    Christian
    V-Play 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

    #6145

    Christian
    V-Play 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.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support