1.7.5- motorTorque and its forward compatibility issue

If you have problems installing or running Algodoo, have found a bug or need in-game help - this is it!

1.7.5- motorTorque and its forward compatibility issue

Postby tatt61880 » Sun Aug 15, 2010 7:08 am

The meaning of motorTorque is difference between v1.7.5 and pre-1.7.5 (i.e. v1.7.4 etc.).
This fact causes forward compatibility issue.

v1.7.5 re-calculate motorTorque and save the value into phn file.
When you opened the phn-file with v1.7.4(or earlier version), the motorTorque is NOT re-calculated (It should be! but it's not possible...).

This can be a troublesome issue for Algobox users.
The behavior of simulation is not correct with v1.7.4 or earlier, if the scene was created with v1.7.5!

[Solution]
I suggested one of the solution.

tatt61880 wrote:Image
Keep the current motor strength(=motorTorque) and add the variable for real motor torque, just similar with "mass and density".
And save current motorTorque into scene data and do not save realMotorTorque. (density is saved and mass is not saved).
"motorTorque" is not good name. However for forward compatibility, the name shouldn't be changed...


Maybe, "motor strength" should be renamed to "motor angular acceleration" or something.
Last edited by tatt61880 on Sun Sep 05, 2010 8:16 am, edited 2 times in total.
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).
User avatar
tatt61880
[Most Helpful Person 2010]
 
Posts: 1150
Joined: Mon Aug 31, 2009 5:45 pm
Location: Tokyo, Japan

Re: [v1.7.5]motorTorque and its forward compatibility issue

Postby Sonic » Sun Aug 15, 2010 7:24 am

We have motor torque now?
I do stuff and break things. You know how it is.
Image
User avatar
Sonic
 
Posts: 1467
Joined: Tue Sep 01, 2009 6:18 pm
Location: America!!!

Re: [v1.7.5]motorTorque and its forward compatibility issue

Postby tatt61880 » Sun Aug 15, 2010 7:34 am

Sonic wrote:We have motor torque now?

Thank you for your comment, Sonic. =)
I suggested the solution and created the picture before v1.7.5.
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).
User avatar
tatt61880
[Most Helpful Person 2010]
 
Posts: 1150
Joined: Mon Aug 31, 2009 5:45 pm
Location: Tokyo, Japan

Re: [v1.7.5]motorTorque and its forward compatibility issue

Postby Sonic » Sun Aug 15, 2010 8:58 pm

Oh. So we don't have motor torque. I was going to ask what the difference between strength and torque was.
I do stuff and break things. You know how it is.
Image
User avatar
Sonic
 
Posts: 1467
Joined: Tue Sep 01, 2009 6:18 pm
Location: America!!!

Re: [v1.7.5]motorTorque and its forward compatibility issue

Postby emilk » Mon Aug 16, 2010 9:38 am

1.7.5 have "motor torque" in Nm, 1.7.4 and earlier has "motor strength" with the actual unit rad/s^2, but displayed wrongly as Nm. Now, both are/where serialized under the name "motorTorque" which leads to forward compatibility issues, i.e. scenes made in 1.7.5 will have wrong motor strength in older version, but old scenes should work fine in new version.

That's not optimal, but Algodoo has only ever promised (to varying degree of success) backwards compatibility - NOT forward compatibility. The same issue exists for spring strength and polygon inertia, for instance. Basically, my stance on the issue is this: upgrading is free, and so if you open a scene an it says "made in a newer version of Algodoo", you can just upgrade and presto - problem solved! Having forward compatibility for everything will just be too much work, and leave to much extra code in both the Algodoo source, and also in the serialized files.
Emil Ernerfeldt, lead developer
emilk
 
Posts: 616
Joined: Mon Aug 31, 2009 11:01 am
Location: Umeå, Sweden

Re: [v1.7.5]motorTorque and its forward compatibility issue

Postby Sonic » Mon Aug 16, 2010 5:05 pm

That makes sense. Good solution, I guess.
I do stuff and break things. You know how it is.
Image
User avatar
Sonic
 
Posts: 1467
Joined: Tue Sep 01, 2009 6:18 pm
Location: America!!!

Re: [v1.7.5]motorTorque and its forward compatibility issue

Postby tatt61880 » Sun Aug 22, 2010 6:05 am

emilk wrote:Basically, my stance on the issue is this: upgrading is free, ...(snip)...


I believe your stance is correct.
I also prefer KISS design principle. ;)

However, upgrading is not free for Phun users, now. :s

Best regards,

/Tatt
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).
User avatar
tatt61880
[Most Helpful Person 2010]
 
Posts: 1150
Joined: Mon Aug 31, 2009 5:45 pm
Location: Tokyo, Japan


Return to Help / Bug reports

Who is online

Users browsing this forum: No registered users and 5 guests