Back to the Korax Forum Archives


Forum

Problem with Colored Decorations

Mon, 22 Dec 2008 11:40:00

Crimson Wizard

There are 2 problems with Colored Decor which makes it impossible to not only change their LIGHT colour dynamically, but also impossible for them to have ANY light anytime <!-- s:( --><img src="{SMILIES_PATH}/orc10.gif" alt=":(" title="Sad" /><!-- s:( -->. First of all, the light which is set for them (in vfxdefs.txt) is Static, which means that we cannot change light colour , at least in current Vavoom version) because static lights are stored as a separate objects (and maybe due to some more reasons). Secondly, I found out that static light is not created at all for the things with TID > 0 (don't know why), and they should have TID so that they could be translated by script. So, if we want to have light on them, either we should them have dynamic light (which will slow the game, plus only limited number of dynamic lights are shown at once), or we should solve those problems somehow... or we should design the maps with fixed colour set (blue/red) ......... PS. I made a colored decoration without static light, but with dynamic one and it woirked, and changed colour properly.
Mon, 22 Dec 2008 12:52:01

Crimson Wizard

Huh, I suddenly realized we can make it different. If the Teams which will be in game are determined always BEFORE loading the level and created before processing map things, then the static lights could be already set on map start, so this will nicely solve this problem <!-- s:) --><img src="{SMILIES_PATH}/orc2.gif" alt=":)" title="Smile" /><!-- s:) --> Only needs substitutions for some linespec methods again.... or maybe not. We'll see.
Mon, 22 Dec 2008 14:00:06

Firebrand

I think we can leave it with dynamic lights for now, it's not the best solutions, but it works as we want it to work now, we can release a patch that fixes this (and any other problem that is discovered by users) <!-- s;) --><img src="{SMILIES_PATH}/orc9.gif" alt=";)" title="Wink" /><!-- s;) -->.
Tue, 23 Dec 2008 11:40:25

Crimson Wizard

Made this <!-- s\:D/ --><img src="{SMILIES_PATH}/eusa_dance.gif" alt="\:D/" title="Dancing" /><!-- s\:D/ --> So we have a material for 1st patch already . This means that teams are always fixed now though, i.e. set before the match.
Tue, 23 Dec 2008 12:18:18

RambOrc

Regarding patch, Camper sent me a mail that he got a segmentation violation the first time he tried hitting a bot.

Back to the Korax Forum Archives