# Asking for help: changing animatedlights/particles/cubemitter

**URL:** <https://discourse.stonehearth.net/t/asking-for-help-changing-animatedlights-particles-cubemitter/14384>\
**Category:** Modding\
**Created:** [July 10, 2015, 4:10pm UTC](https://discourse.stonehearth.net/t/asking-for-help-changing-animatedlights-particles-cubemitter/14384 "2015-07-10T16:10:50Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chabonit](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/chabonit/32/54838_2.png) [@Chabonit](https://discourse.stonehearth.net/u/Chabonit)\
**Post date:** [July 10, 2015, 4:10pm UTC](https://discourse.stonehearth.net/t/asking-for-help-changing-animatedlights-particles-cubemitter/14384/1 "2015-07-10T16:10:50Z")

</div>

For some days now i try to change the behavior or just the color of light sources.  
The difficulty is that every change in the cubemitter json or the ambientlight json comes to an end in always the same error

rpc | received reply with unknown call id '2657’  
2015-Jul-10 17:57:13.926399 | client | 0 | renderer.renderer | failed to load render resource /particles/lamp/firefly\_lamp.cubemitter.json  
2015-Jul-10 17:57:13.926399 | client | 2 | horde.general | Resource ‘/particles/lamp/firefly\_lamp.cubemitter.json’ of type 1007: No data loaded (file not found?)  
2015-Jul-10 17:57:13.926399 | client | 0 | app | Assertion Failed: false(…\source\client\renderer\renderer.cpp:1980)  
2015-Jul-10 17:57:14.401426 | server | 1 | simulation.remote\_client | started buffering client updates. (seq:7821 ack:7811)  
2015-Jul-10 17:57:26.570122 | client | 0 | sysinfo | Memory Stats: Fatal Exception

Thats just an example of the try in which i tried to rename the cubemitter file without changing anything else

It`s not the file paths i use so where is the renderer reference pointing towards these files ?  
Is there a guide to solve this ? or is it just impossible (now) ?

---

<div class="post-metadata">

**Author:** ![Relyss](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/relyss/32/41785_2.png) [@Relyss](https://discourse.stonehearth.net/u/Relyss)\
**Post date:** [July 10, 2015, 4:24pm UTC](https://discourse.stonehearth.net/t/asking-for-help-changing-animatedlights-particles-cubemitter/14384/2 "2015-07-10T16:24:20Z")

</div>

You can currently add your own particle effects to the game. But they must have valid values. Like this…  
/uploads/stonehearth/original/2X/8/8d420199f92f6b892f7060ba7480e8c57fb8e775.gif

What exactly were you trying to achieve?  
Which file and where did you rename it?

---

<div class="post-metadata">

**Author:** ![Chabonit](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/chabonit/32/54838_2.png) [@Chabonit](https://discourse.stonehearth.net/u/Chabonit)\
**Post date:** [July 10, 2015, 4:52pm UTC](https://discourse.stonehearth.net/t/asking-for-help-changing-animatedlights-particles-cubemitter/14384/3 "2015-07-10T16:52:26Z")

</div>

![](https://us1.discourse-cdn.com/flex022/uploads/stonehearth/original/3X/8/f/8f9d43d532b72833ee8289c38b4e5a2698ae07fe.png)  
(original from lamp\_effect\_wall)(working)  
i tried to change this into  
“cubemitter”: “particles/lamp/firefly\_lamp.cubemitter.json”,  
and rename the file and changed the path to pinpoint towards my file  
so just renaming and no changes to the values

---

<div class="post-metadata">

**Author:** ![Relyss](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/relyss/32/41785_2.png) [@Relyss](https://discourse.stonehearth.net/u/Relyss)\
**Post date:** [July 10, 2015, 5:04pm UTC](https://discourse.stonehearth.net/t/asking-for-help-changing-animatedlights-particles-cubemitter/14384/4 "2015-07-10T17:04:53Z")

</div>

Your cubemitter path there, should be something like this:

```
"cubemitter": "/sample_mod/data/horde/particles/water/puddle.cubemitter.json",

```

So the path should be the full path to your cubemitter file:

/your\_mod\_name/data/horde/particles/any\_folder\_if\_you\_have/cubemmiter.json

Did you specify it like this? I’m not sure if you have to have specifically the data/horde/particles structure into your mod, but just in case, it’s better to follow the stonehearth folder structure when modding.

---

<div class="post-metadata">

**Author:** ![Chabonit](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/chabonit/32/54838_2.png) [@Chabonit](https://discourse.stonehearth.net/u/Chabonit)\
**Post date:** [July 10, 2015, 5:19pm UTC](https://discourse.stonehearth.net/t/asking-for-help-changing-animatedlights-particles-cubemitter/14384/5 "2015-07-10T17:19:00Z")

</div>

ok, got it working but again i`m totally confused by writing paths.  
Sometimes i must write them in full length sometimes short is enough (same folder i know) sometimes half the lenght is enough  
plz plz someone explain the rules of writing paths to me (i did it at least a thousand times wrong)

differences between  
"file()"  
"my\_mod:path1:path2"  
“my\_mod/folder1/folder2/folder”  
“my\_mod/folder1/folder2/folder3/file.json(.qb, .png and so on)”

Big thanks to you Relyss, maybe i come back later with new problems…  
critters ? 🙂

and i always follow the original folder structure not confusing myself

---

<div class="post-metadata">

**Author:** ![Relyss](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/relyss/32/41785_2.png) [@Relyss](https://discourse.stonehearth.net/u/Relyss)\
**Post date:** [July 10, 2015, 5:30pm UTC](https://discourse.stonehearth.net/t/asking-for-help-changing-animatedlights-particles-cubemitter/14384/6 "2015-07-10T17:30:55Z")

</div>

Let’s see…

## **“file(entities/whatever/my\_entity)”** equals to **"my\_mod/entities/whatever/my\_entity/my\_entity.json"** but if you want to use file() to shorten any other extension than json, you’ll have to write the full path including the name and extension of the file: **“file(entities/whatever/my\_entity/my\_entity.png)”**

**my\_mod:path1:path2** is an uri. It’s used to reference some part of your mod inside other files, and mostly used in the manifest (although in your mod manifest you don’t need to put “my\_mod” before “path1:path2”). “path1:path2” doesn’t need to be folder names, they could be whatever, especially in the aliases section of the manifest, but it’s more convenient to use your folder structure anyway 😄

Inside some json files, when referencing something from your mod (especially icons) you’ll have to write the full path too, beginning with forward slash ( “/my\_mod/entities/my\_entity/my\_icon.png”) or else the game will fail to load it.

---

<div class="post-metadata">

**Author:** ![Chabonit](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/chabonit/32/54838_2.png) [@Chabonit](https://discourse.stonehearth.net/u/Chabonit)\
**Post date:** [July 10, 2015, 6:37pm UTC](https://discourse.stonehearth.net/t/asking-for-help-changing-animatedlights-particles-cubemitter/14384/7 "2015-07-10T18:37:06Z")

</div>

Here it is with help from you Relyss  
 ![](https://us1.discourse-cdn.com/flex022/uploads/stonehearth/original/3X/a/c/acba4f5072265577590609e2818574ebae3a24cd.png)  
some bottles with greenish fireflies trapped in them for a warm light

a little introduction in “animal\_crafting” from my druid\_mod

---

<div class="post-metadata">

**Author:** ![sdee](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/sdee/32/65441_2.png) [@sdee](https://discourse.stonehearth.net/u/sdee)\
**Post date:** [July 10, 2015, 6:39pm UTC](https://discourse.stonehearth.net/t/asking-for-help-changing-animatedlights-particles-cubemitter/14384/8 "2015-07-10T18:39:14Z")

</div>

Beautiful! 😃 thanks for sharing!

---

<div class="post-metadata">

**Author:** ![not\_owen\_wilson](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/not_owen_wilson/32/43503_2.png) [@not\_owen\_wilson](https://discourse.stonehearth.net/u/not_owen_wilson)\
**Post date:** [July 10, 2015, 6:48pm UTC](https://discourse.stonehearth.net/t/asking-for-help-changing-animatedlights-particles-cubemitter/14384/9 "2015-07-10T18:48:15Z")

</div>

Psst, @Relyss: a little while ago, I added acceleration to the cubemitter, and told no-one 🙂 It looks just like velocity, e.g.:

```
   {
    "name": "waterfall",
    "duration": 20,
    "particle": {
        "speed": {
            "start": {
                "kind": "CONSTANT",
                "values": [0]
            },
            "over_lifetime": {
                "kind": "CONSTANT",
                "values": [
                    [0]
                ]
            }
        },
        "lifetime": {
            "start": {
                "kind": "RANDOM_BETWEEN",
                "values": [1.1, 1.2]
            }
        },
        "acceleration": {
            "over_lifetime_y": {
                "kind": "CONSTANT",
                "values": [-0.3]
            }
        },
        "velocity": {
            "over_lifetime_z": {
                "kind": "CONSTANT",
                "values": [5.0]
            }
        }
    },
    "emission": {
        "rate": {
            "kind": "CONSTANT",
            "values": [20]
        },
        "origin": {
            "surface": "RECTANGLE",
            "values": [3.0, 3.0]
        },
        "angle": {
            "kind": "CONSTANT",
            "values": [0]
        }
    }
}
```

---

<div class="post-metadata">

**Author:** ![Relyss](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/relyss/32/41785_2.png) [@Relyss](https://discourse.stonehearth.net/u/Relyss)\
**Post date:** [July 11, 2015, 9:36am UTC](https://discourse.stonehearth.net/t/asking-for-help-changing-animatedlights-particles-cubemitter/14384/10 "2015-07-11T09:36:01Z")

</div>

> [@not\_owen\_wilson](#):
>
> I added acceleration to the cubemitter

Yay! 😄 That looks easier to plan, I was always confused between the “speed” and “velocity” attributes 😅

* * *

@Chabonit, it looks really pretty! 😃

---

<div class="post-metadata">

**Author:** ![Chabonit](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/chabonit/32/54838_2.png) [@Chabonit](https://discourse.stonehearth.net/u/Chabonit)\
**Post date:** [July 26, 2015, 5:16pm UTC](https://discourse.stonehearth.net/t/asking-for-help-changing-animatedlights-particles-cubemitter/14384/11 "2015-07-26T17:16:18Z")

</div>

What must i do to have a cubemitter which is always on ?

I changed all the values and got a cubemitter to do what i wanted him to do but …only at night which is worthless until it`s a bone spitting cubemitter …

---

<div class="post-metadata">

**Author:** ![Relyss](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/relyss/32/41785_2.png) [@Relyss](https://discourse.stonehearth.net/u/Relyss)\
**Post date:** [July 26, 2015, 8:21pm UTC](https://discourse.stonehearth.net/t/asking-for-help-changing-animatedlights-particles-cubemitter/14384/12 "2015-07-26T20:21:44Z")

</div>

Inside the components section of your entity json file, add this section:

```
"effect_list" : {
     "effects" : [
        "/your_mod/data/effects/your_effect/your_effect.json"
     ]  
  }

```

“your\_effect” being the effect that points to your cubemitter. (Adjust the path if needed and make sure that the json doesn’t have typos or syntax errors).

---

<div class="post-metadata">

**Author:** ![Chabonit](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.stonehearth.net/chabonit/32/54838_2.png) [@Chabonit](https://discourse.stonehearth.net/u/Chabonit)\
**Post date:** [July 27, 2015, 2:55am UTC](https://discourse.stonehearth.net/t/asking-for-help-changing-animatedlights-particles-cubemitter/14384/13 "2015-07-27T02:55:24Z")

</div>

working. Thanks Relyss
