Page 1 of 1

Error in conversion

Posted: Sat Jul 24, 2010 3:52 pm
by code red
I was converting a map I created to bf1942 SW demo although I got an error I have never seen.

Code: Select all

Error loading: Shaders/FlareShader vertex shader
current confile:BF942/levels/Hellendoorn/Init/SkyandSun.con
I would like some help/imput on how to fix this error. thankyou

Re: Error in conversion

Posted: Sat Jul 24, 2010 6:35 pm
by Apache Thunder
Is this for BFV? BFV does not have the flare shader (nor can it be added back since it doesn't load a shaders rfa anymore). It pertains to the TSun LensFlare present on all vanilla BF42 maps. The LensFlares have no effect ingame anyway. To fix that error, remove all the coding that refers to the "TSun" object. It should then solve your missing flare shader error. None of the BFV maps use the LensFlare object in the skyandSun con files like BF42 did. Thus if you add one back like from a converted map from BF42, you will get that error. Look at an existing BFV map to know what you won't need in the con file after you port it.

Re: Error in conversion

Posted: Sat Jul 24, 2010 7:02 pm
by code red
No it is not for bfV it is a conversion from bf1942 vanilla to bf1942 SW demo.. I created a custom map and am now tryiing to convert it into the demo. I tried your advice though and instead of getting an error the game simple closes.

Re: Error in conversion

Posted: Sat Jul 24, 2010 7:21 pm
by Apache Thunder
Since I don't work with the demo I can't help further on this. What you can try is making sure you didn't corrupt the shaders.rfa. Even BF42 demos should have the flare shader.