I just made the update but the error still occurs. It seems as if something in the class “EntitySelection” is not working properly as you can see in the last lines of the error message.
Furthermore, could our error have something to do with the “storing property…” of the EntityBaseDraggable as you can see it in the Log output?
Do you see any errors or missing/wrong properties in the code of our EntityBaseDraggable that is shown above?
Here again the error message:
BuildEntityButton: button MouseArea pressed, start dragging entity
EntityBaseDraggable: storing property active with value false
EntityBaseDraggable: storing property state with value
EntityBaseDraggable: storing property bodyType with value 2
EntityBaseDraggable: storing property implicitHeight with value 0
EntityBaseDraggable: storing property smooth with value false
EntityBaseDraggable: storing property width with value 32
EntityBaseDraggable: storing property visible with value false
EntityBaseDraggable: storing property clip with value false
EntityBaseDraggable: storing property bullet with value false
EntityBaseDraggable: storing property density with value 0
EntityBaseDraggable: storing property collidesWith with value 65535
EntityBaseDraggable: storing property groupIndex with value 0
EntityBaseDraggable: storing property focus with value false
EntityBaseDraggable: storing property baselineOffset with value 0
EntityBaseDraggable: storing property angularVelocity with value 0
EntityBaseDraggable: storing property collisionTestingOnlyMode with value false
EntityBaseDraggable: storing property fixedRotation with value false
EntityBaseDraggable: storing property scale with value 1
EntityBaseDraggable: storing property activeFocus with value false
EntityBaseDraggable: storing property categories with value 1
EntityBaseDraggable: storing property opacity with value 1
EntityBaseDraggable: storing property rotation with value 0
EntityBaseDraggable: storing property angularDamping with value 0
EntityBaseDraggable: storing property restitution with value 0
EntityBaseDraggable: storing property transformOrigin with value 4
EntityBaseDraggable: storing property sleepingAllowed with value true
EntityBaseDraggable: storing property objectName with value boxCollider
EntityBaseDraggable: storing property torque with value 0
EntityBaseDraggable: storing property friction with value 0.20000000298023224
EntityBaseDraggable: storing property x with value 0
EntityBaseDraggable: storing property enabled with value true
EntityBaseDraggable: storing property y with value 0
EntityBaseDraggable: storing property z with value 0
EntityBaseDraggable: storing property sensor with value false
EntityBaseDraggable: storing property height with value 32
EntityBaseDraggable: storing property implicitWidth with value 0
EntityBaseDraggable: storing property linearDamping with value 0
Box2DBody: calling sychronize after active got set to true
BuildEntityButton: entity got pressed: EntityBaseDraggable_QMLTYPE_76(0x111181c60, "file:///Users/philipp/CrazyElephant-build-desktop-Desktop_Qt_4_8_1_for_GCC__Qt_SDK__Debug/CrazyElephant.app/Contents/Resources/qml/entities/DraggableEntity.qml_96") , for creationType: file:///Users/philipp/CrazyElephant-build-desktop-Desktop_Qt_4_8_1_for_GCC__Qt_SDK__Debug/CrazyElephant.app/Contents/Resources/qml/entities/DraggableEntity.qml
pos of createdEntity: 79 6.5
Cocos2DWrapper: updateItemPositionAndRotationImmediately: parentPosOfTopLeft: QPointF(79, 6.5) EntityBaseDraggable_QMLTYPE_76 (this = 0x111181c60 , parent = 0x1042e1920 , geometry = QRectF(79,6.5 0x0) , z = 1 )
the position really changed, so call all children recursively
Cocos2DWrapper: callTransformForAllChildrenRecursively() for node 0x114eef8f0
Cocos2DWrapper: callTransformForAllChildrenRecursively() for node 0x114ef0480
Cocos2DWrapper: callTransformForAllChildrenRecursively() for node 0x114ef05d0
Cocos2DWrapper: callTransformForAllChildrenRecursively() for node 0x114eefb70
Cocos2DWrapper: callTransformForAllChildrenRecursively() for node 0x114eefcc0
entityReleased position: 387 155.5 snapped position: 384 160
EntityBaseDraggable: restoring property active to initial value false , current value: true of colliderComponent BoxCollider_QMLTYPE_27(0x111192650, "boxCollider")
EntityBaseDraggable: restoring property categories to initial value 1 , current value: 65535 of colliderComponent BoxCollider_QMLTYPE_27(0x111192650, "boxCollider")
EntityBaseDraggable: restoring property collisionTestingOnlyMode to initial value false , current value: true of colliderComponent BoxCollider_QMLTYPE_27(0x111192650, "boxCollider")
entity got released, create it at the position if allowed to build
DragEntity: no creationProperties were defined
EntityManager: createEntityFromUrl: file:///Users/philipp/CrazyElephant-build-desktop-Desktop_Qt_4_8_1_for_GCC__Qt_SDK__Debug/CrazyElephant.app/Contents/Resources/qml/entities/DraggableEntity.qml
VisualItemPropertyObserver componentComplete for item EntityBaseDraggable_QMLTYPE_76 (this = 0x1042d3720 , parent = 0x1042e1920 , geometry = QRectF(384,160 0x0) , z = 1 )
file::/qml/VPlay/core/EntitySelection.qml:15: Unable to assign [undefined] to QObject* target
file::/qml/VPlay/core/EntitySelection.qml:9: ReferenceError: Can't find variable: sprite
EntityManager: entity created with id file:///Users/philipp/CrazyElephant-build-desktop-Desktop_Qt_4_8_1_for_GCC__Qt_SDK__Debug/CrazyElephant.app/Contents/Resources/qml/entities/DraggableEntity.qml_99
GameWindow: creating cocos item in cocosWrapper triggered by JavaScript code explicitly: EntityBaseDraggable_QMLTYPE_76(0x1042d3720, "file:///Users/philipp/CrazyElephant-build-desktop-Desktop_Qt_4_8_1_for_GCC__Qt_SDK__Debug/CrazyElephant.app/Contents/Resources/qml/entities/DraggableEntity.qml_99")