# CBE Effects - Attempt to index local 'color' ( a nil value)

**URL:** <https://forums.solar2d.com/t/cbe-effects-attempt-to-index-local-color-a-nil-value/333593>\
**Category:** Gymbyl Coding\
**Created:** [May 8, 2015, 9:27pm UTC](https://forums.solar2d.com/t/cbe-effects-attempt-to-index-local-color-a-nil-value/333593 "2015-05-08T21:27:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ragraghav12](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/r/57b2e6/32.png) [@ragraghav12](https://forums.solar2d.com/u/ragraghav12)\
**Post date:** [May 8, 2015, 9:27pm UTC](https://forums.solar2d.com/t/cbe-effects-attempt-to-index-local-color-a-nil-value/333593/1 "2015-05-08T21:27:12Z")

</div>

I am getting a Runtime error with my game. Another problem is that the error pops up only some of the times otherwise the game runs perfectly fine.

The error is -

CBEffects\cbe\_core\vent\_core\core.lua : 206 :attempt to index local ‘color’ ( a nil value )

The game heavily relies on CBEffects. I cannot do without it. Please guide.

---

<div class="post-metadata">

**Author:** ![Caleb\_P](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/c/ee7513/32.png) [@Caleb\_P](https://forums.solar2d.com/u/Caleb_P)\
**Post date:** [May 28, 2015, 5:42pm UTC](https://forums.solar2d.com/t/cbe-effects-attempt-to-index-local-color-a-nil-value/333593/2 "2015-05-28T17:42:41Z")

</div>

Sorry for not responding sooner.

Can you give me some more information on this problem? Is it still occurring? How are you setting the color? In a custom manner (i.e. the ‘color’ parameter is a function)?

- Caleb

---

<div class="post-metadata">

**Author:** ![ragraghav12](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/r/57b2e6/32.png) [@ragraghav12](https://forums.solar2d.com/u/ragraghav12)\
**Post date:** [June 4, 2015, 1:22pm UTC](https://forums.solar2d.com/t/cbe-effects-attempt-to-index-local-color-a-nil-value/333593/3 "2015-06-04T13:22:19Z")

</div>

The problem is solved now Caleb.

Apparently I was trying to change the color values outside the vent declaration. That was the causing the weird behavior.&nbsp;

---

<div class="post-metadata">

**Author:** ![Caleb\_P](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/c/ee7513/32.png) [@Caleb\_P](https://forums.solar2d.com/u/Caleb_P)\
**Post date:** [May 28, 2015, 5:42pm UTC](https://forums.solar2d.com/t/cbe-effects-attempt-to-index-local-color-a-nil-value/333593/4 "2015-05-28T17:42:41Z")

</div>

Sorry for not responding sooner.

Can you give me some more information on this problem? Is it still occurring? How are you setting the color? In a custom manner (i.e. the ‘color’ parameter is a function)?

- Caleb

---

<div class="post-metadata">

**Author:** ![ragraghav12](https://forums.solar2d.com/letter_avatar_proxy/v4/letter/r/57b2e6/32.png) [@ragraghav12](https://forums.solar2d.com/u/ragraghav12)\
**Post date:** [June 4, 2015, 1:22pm UTC](https://forums.solar2d.com/t/cbe-effects-attempt-to-index-local-color-a-nil-value/333593/5 "2015-06-04T13:22:19Z")

</div>

The problem is solved now Caleb.

Apparently I was trying to change the color values outside the vent declaration. That was the causing the weird behavior.&nbsp;
