I am having a problem with the shadowmap generator.

I keep getting this error
ERROR 1514
Invalid Pointer or Handle in blur!

Anybody fixed this and if so what do I need to change in that
part of the terrain script.

Many thanks......

P.S I am using v7.07.6 Pro of the latest beta.


EDIT: Ok I found the problem but still can't fix it.
It has to do with the filenaming part of the code.
Where it says shadow_fhandle_n=file_open_write(shadowmap_file_name);
I changed it to shadow_fhandle_n=file_open_write("terr_shadowmap_1.tga"); and it worked....

Hope that makes the problem solving easier.

EDIT_2: Ok I fixed the problem...

Where it says shadow_fhandle_n=file_open_write(shadowmap_file_name);
Should be around line 112..

Replace it with
shadow_fhandle_n=file_open_write(terr_shadowmap_tempstr1);

Also make sure you delete the (shadowmap_file_name) strings..
eg: function write_shadowmap_tga(shadowmap_file_name)
change it to function write_shadowmap_tga()...

Also in the part where it says write_shadowmap_tga(terr_shadowmap_tempstr1) in the blur function around line 234..
Change it to write_shadowmap_tga();

Thanks anyway people...



Windows XP SP3
Intel Dual Core CPU: E5200 @ 2.5GHz
4.00GB DDR3 Ram
ASUS P5G41T-M LX
PCIE x16 GeForce GTS 450 1Gb
SB Audigy 4
Spyware Doctor with AntiVirus