Page 1 of 1

How to fix Green lighting bug on imported machines #UPDATED#

Posted: Mon Mar 24, 2008 12:52 pm
by neodos
Hi,

Many of you that have imported mach tags from single player maps to multiplayer maps had this bug:


In this tutorial i show you how to fix this, it's really simple and there is no need to nullout lightmaps as we have seen many mods with this problem, the only solution that was found in the past was to null out lightmap which basicaly made the shaders look wreid, in fact ugly because the reflections and bumpmaps lightning looks sharp without the lightmap.


In this example i am using the base gate from containement, i couldn't recreate the bug, i don't know why, so it took a mod from Ragdoll at halomods and i'll use it because it's a perfect example of this bug ( sorry :XD: )

The mod:
http://forums.halomods.com/viewtopic.ph ... 71&t=62506

The bug:
Image

As you can see the lighting is green, sometimes it's completly dark and everysingle object that is over it will take that lighting, there is how to fix this.


To fix this we are going to null out two reflexives on the mode tag, GREAT thanks to XZodia for the plugin, so we now just have to edit 4 values instead of removing it on the chunk cloner :p

Get the plugin that is attached to this thread.

Go to the machine's model:

mode - scenarios\objects\multi\containment\base_gate\base_gate

Set to 0 these values:
Image

Clic Save

Now sign map and test you should now get normal lighting for machines and object that goes over it.


Before fixing the bug:
Image

Bug fixed:
Image

Re: How to fix the Green lighting bug on imported machines tags

Posted: Mon Mar 24, 2008 3:22 pm
by neodos
Thanks :wink:

Re: How to fix the Green lighting bug on imported machines tags

Posted: Mon Mar 24, 2008 3:54 pm
by XZodia
neodos you could make this a lot easier by writing a special plugin for it, change the reflexive into 2 int's (chunk count and pointer)
then all you have to do is set the chunk count to 0

Re: How to fix Green lighting bug on imported machines #UPDATED#

Posted: Mon Mar 24, 2008 4:39 pm
by neodos
Updated, thank you XZodia for the plugin and the idea, it's indeed much more simple now :D

Re: How to fix Green lighting bug on imported machines #UPDATED#

Posted: Mon Mar 24, 2008 5:54 pm
by Yamagushi
Very nice Neodos <3 lol

Re: How to fix Green lighting bug on imported machines #UPDATED#

Posted: Mon Mar 24, 2008 11:35 pm
by NotZachary82
another great tutorial from neodos.

nice research too ;)