Closed jspjutNV closed 3 years ago
Looking a bit more at this problem, it seems related to changes from #316 which caused the default experiment to be JSON formatted as well as something the scene fields, specifically the spawnPosition
which needs to be specified as a Point3()
.
I tried removing the spawnPosition
lines and ran into a secondary issue that the mouse no longer controls the player aim, but I didn't root cause that issue.
Scene
has some parameters that appear to always serialize to Any due to NaN
values not being compared correctly in the Scene::toAny()
we should correct this by checking w/ isnan()
directly.
We need a solution for dealing with JSON vs Any incompatibility for types like Vector2
/Vector3
and Point2
/Point3
. These are the issues that keep JSON files from loading as valid configs currently. We could move towards Array
s (which work fine) or avoid JSON input for now, but we should certainly update and document as needed.
Vector[X]
, Point[X]
, and Color[X]
serialization issues w/ JSON described above.
Steps to reproduce:
FirstPersonScience.exe
.You can work around this issue by
FirstPersonScience.exe
until the crashstartupconfig.Any
and changejsonAnyOutput
tofalse
experimentconfig.Any
that was generatedFirstPersonScience.exe
again.