Game Development Community

Bug in the script. File "player.cs"

by Alexey :) · in Torque 3D Beginner · 10/21/2009 (7:41 am) · 1 replies

is file "player.cs"

datablock PlayerData (DefaultPlayerData)
(
...
runForce = 4320 * 90;
..
)

run the project. go into the editor. we go in the datablock editor. bride on the field value "runForce". is equal to "388800" because "4320 * 90 = 388800" :) change the value to "388801". sohronyaem datablock. restart the projects and look there too. and that we see the? and we see the "34992090". why? Now open the file "player.cs" and videm "runForce = 388801 * 90;". That's it ladies and gentlemen :)

request to the developers T3D do so more or implement a full-fledged support to the editor:) because it nearly killed our artist, when he changed values.

PS
Not even going to apologize for my English.

#1
10/21/2009 (2:05 pm)
This is a restriction with the current implementation of PersistenceManager which does not work with fields that are initialized from expressions yet. If you look into the console.log, you'll probably see an error printed there that reads something like "expecting a ';' character".

A future iteration will probably remedy this.