2.0.1 entityID and geomID
7 posts • Page 1 of 1
2.0.1 entityID and geomID
I just noticed that on reloading (and maybe simply loading) a scene, all the geomID's and enityID's change. I don't think this makes Scene.entityByID very useful...
Cave Johnson wrote:Do you know who I am? I'm the man who's gonna burn your house down! With the lemons! I'm gonna get my engineers to invent a combustible lemon that burns your house down!
-
Matten - Posts: 435
- Joined: Mon Apr 05, 2010 2:03 pm
- Location: The Netherlands
Re: 2.0.1 entityID and geomID
Yeah.
And now I thought the randomness of the ID:s can cause non-deterministic/randomness of simulation.
i.e. Doesn't entityID/geomID affect to simulation?
And now I thought the randomness of the ID:s can cause non-deterministic/randomness of simulation.
i.e. Doesn't entityID/geomID affect to simulation?
NOTE: I'm not an Algoryx member.
Hi, Algodoo lovers. Have you read next topic? Featured scenes suggestions
To translators: English.cfg changelog will be useful (even for me).
Hi, Algodoo lovers. Have you read next topic? Featured scenes suggestions
To translators: English.cfg changelog will be useful (even for me).
-
tatt61880 - [Most Helpful Person 2010]
- Posts: 1150
- Joined: Mon Aug 31, 2009 5:45 pm
- Location: Tokyo, Japan
Re: 2.0.1 entityID and geomID
It's fine since you can read IDs via readable on the fly so no matter is it changed or not. Besides, entityID is not changing on undo.
Dream of Algodoo as game development engine...
-
Kilinich - [Best bug reporter 2010]
- Posts: 2098
- Joined: Mon Aug 31, 2009 8:27 pm
- Location: South Russia
Re: 2.0.1 entityID and geomID
But what if I want to for example have a spring that has a length based on the color of a box? (the spring can be connected to the box if that's easier)
Cave Johnson wrote:Do you know who I am? I'm the man who's gonna burn your house down! With the lemons! I'm gonna get my engineers to invent a combustible lemon that burns your house down!
-
Matten - Posts: 435
- Joined: Mon Apr 05, 2010 2:03 pm
- Location: The Netherlands
Re: 2.0.1 entityID and geomID
Kilinich wrote:It's fine since you can read IDs via readable on the fly so no matter is it changed or not. Besides, entityID is not changing on undo.
1. You need to use onCollide etc. when you get ID:s via readable, don't you? If ID:s is not changed, you can easily script deleting the entity, for example. Scene.RemoveEntity(Scene.entityByID(50))
2. I thought entityID is one of the cause of randomness. I believe there are many causes of randomness, and none of them should remain in the future.
NOTE: I'm not an Algoryx member.
Hi, Algodoo lovers. Have you read next topic? Featured scenes suggestions
To translators: English.cfg changelog will be useful (even for me).
Hi, Algodoo lovers. Have you read next topic? Featured scenes suggestions
To translators: English.cfg changelog will be useful (even for me).
-
tatt61880 - [Most Helpful Person 2010]
- Posts: 1150
- Joined: Mon Aug 31, 2009 5:45 pm
- Location: Tokyo, Japan
Re: 2.0.1 entityID and geomID
I've uploaded scene which reproduce this issue.
[scene]62556[/scene]
[scene]62556[/scene]
NOTE: I'm not an Algoryx member.
Hi, Algodoo lovers. Have you read next topic? Featured scenes suggestions
To translators: English.cfg changelog will be useful (even for me).
Hi, Algodoo lovers. Have you read next topic? Featured scenes suggestions
To translators: English.cfg changelog will be useful (even for me).
-
tatt61880 - [Most Helpful Person 2010]
- Posts: 1150
- Joined: Mon Aug 31, 2009 5:45 pm
- Location: Tokyo, Japan
Re: 2.0.1 entityID and geomID
[scene]62995[/scene]
Saving scene seems to change geomID's order.
I don't know the order affects calculating order or not, but I think this change is something to do with randomness issue.
I guess that C++'s map(hash table) changes the order.
NOTE: When you re-saved scene after reloading scene, this issue seems not to be occurred.
Saving scene seems to change geomID's order.
I don't know the order affects calculating order or not, but I think this change is something to do with randomness issue.
I guess that C++'s map(hash table) changes the order.
NOTE: When you re-saved scene after reloading scene, this issue seems not to be occurred.
NOTE: I'm not an Algoryx member.
Hi, Algodoo lovers. Have you read next topic? Featured scenes suggestions
To translators: English.cfg changelog will be useful (even for me).
Hi, Algodoo lovers. Have you read next topic? Featured scenes suggestions
To translators: English.cfg changelog will be useful (even for me).
-
tatt61880 - [Most Helpful Person 2010]
- Posts: 1150
- Joined: Mon Aug 31, 2009 5:45 pm
- Location: Tokyo, Japan
7 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 10 guests