LeeWangyeol / kuda

Automatically exported from code.google.com/p/kuda
GNU General Public License v2.0
0 stars 0 forks source link

particle systems lose name after project save/re-load #117

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Create a particle system, name and save it  (I used the smoke stack template)

Save your project to a file

re-start the World Editor

Load that project

The particle system no longer has a name.

Original issue reported on code.google.com by scott.kr...@gmail.com on 2 Sep 2011 at 11:47

GoogleCodeExporter commented 8 years ago
a previous save had this:
"id": 617,
"type": "hemi.effect.Emitter",
"props": [{
  "name": "name",
  "val": "greenSmoke"

Whereas now a saved particle system looks like this:
"id": 64,
"type": "hemi.effect.Emitter",
"props": [{
   "name": "state",
   "val": 0

Original comment by scott.kr...@gmail.com on 2 Sep 2011 at 11:57

GoogleCodeExporter commented 8 years ago
Interestingly,  this behavior is linked to the values input for the particle 
system.  Use the following values and you'll see this behavior with the name 
disappearing.  (don't copy/paste this in, as this system is already missing its 
name prop.

        {
        "id": 64,
        "type": "hemi.effect.Emitter",
        "props": [{
            "name": "state",
            "val": 0
        }, {
            "name": "colorRamp",
            "val": [0.26, 0.91, 0.27, 0.5, 0, 0, 0, 0]
        }, {
            "name": "params",
            "val": {
                "numParticles": 30,
                "position": [0.194, 1.706, -4.334],
                "positionRange": [0, 0, 0],
                "timeRange": 0.5,
                "lifeTime": 1,
                "startSize": 0.03,
                "startSizeRange": 0,
                "endSize": 0.2,
                "endSizeRange": 0,
                "velocity": [0.11, 0.16, -0.15],
                "velocityRange": [0.02, 0.02, 0.02],
                "acceleration": [0, -0.02, 0],
                "spinSpeedRange": 4,
                "accelerationRange": [0, 0, 0]
            }
        }, {
            "name": "setup",
            "arg": []
        }

Original comment by scott.kr...@gmail.com on 3 Sep 2011 at 1:18

GoogleCodeExporter commented 8 years ago
Another way to reproduce the same effect is change the "Select State" to 
"Select State" and save.

Original comment by jpywt...@gmail.com on 7 Sep 2011 at 12:37

GoogleCodeExporter commented 8 years ago
I cannot reproduce the described behavior except by my earlier comment. It 
appears somehow the name vanished in the json and the state property key was 
elevated to the name value. Lowering the priority for now.

Original comment by jpywt...@gmail.com on 7 Sep 2011 at 12:52

GoogleCodeExporter commented 8 years ago
This needs review to see if it is still valid for Kuda2. These need to be 
retested and opened as needed. On hold for now until that happens. Commend as 
needed.

Original comment by jpywt...@gmail.com on 1 Mar 2012 at 10:40

GoogleCodeExporter commented 8 years ago
Fixed in Kuda2 update.

Original comment by jpywt...@gmail.com on 1 Mar 2012 at 11:24

GoogleCodeExporter commented 8 years ago

Original comment by jpywt...@gmail.com on 17 Apr 2012 at 10:26