davidglaister
07 Jan 2006, 06:33
Hi,
I've posted this at the Avsim forum, but thought I would also post here hoping for a quick response.
I have just released my isle of wight scenery at avsim. Feedback has been very good, but I have had a bug reported.
When the GPS or map is displayed a CTD occurs. I think I have narrowed the problem down to two files created by SBuilder, these are:
“IOW_Solent_LWM2.BGL” and “IOW_Solent_LWM3.BGL”
I have have searched for a solution and the most likely fix I can find is this thread from a forum post from the PTSim forums:
==================================================
The answer is in the SCASM macro Area01x01.scm that you find in the Tools folder. Here it is:
; Area01X01Poly.scm macro
; used instead of AreaFill 1X1 to avoid crashes (?)
; %1 = type 0=water 1=land 2=flatten 3=transparent
; %2 = column 0 ... 31
; %3 = row 0 ... 31
; %4 = height if type=0 or =2
mif( <%1 == 2> )
LWMAreaDrawPoly( 1 2 %2 %3 )
melse
LWMAreaDrawPoly( 1 3 %2 %3 )
mifend
mif( <%1 == 1> )
LWMPoly( 4 1 %4 1 1 255 1 255 255 1 255 )
melse
LWMPoly( 4 0 %4 1 1 255 1 255 255 1 255 )
mifend
Just change %4 to -9999 in the 2 LWMPoly lines and then compile again. The first LWMPoly it will look like:
LWMPoly( 4 1 -9999 1 1 255 1 255 255 1 255 )
Attention: do not forget to replace the file when you are ready with this patch.
================================================== ==
Does anyone know if this would be the problem, and if so how do I fix it?
Thanks, David
I've posted this at the Avsim forum, but thought I would also post here hoping for a quick response.
I have just released my isle of wight scenery at avsim. Feedback has been very good, but I have had a bug reported.
When the GPS or map is displayed a CTD occurs. I think I have narrowed the problem down to two files created by SBuilder, these are:
“IOW_Solent_LWM2.BGL” and “IOW_Solent_LWM3.BGL”
I have have searched for a solution and the most likely fix I can find is this thread from a forum post from the PTSim forums:
==================================================
The answer is in the SCASM macro Area01x01.scm that you find in the Tools folder. Here it is:
; Area01X01Poly.scm macro
; used instead of AreaFill 1X1 to avoid crashes (?)
; %1 = type 0=water 1=land 2=flatten 3=transparent
; %2 = column 0 ... 31
; %3 = row 0 ... 31
; %4 = height if type=0 or =2
mif( <%1 == 2> )
LWMAreaDrawPoly( 1 2 %2 %3 )
melse
LWMAreaDrawPoly( 1 3 %2 %3 )
mifend
mif( <%1 == 1> )
LWMPoly( 4 1 %4 1 1 255 1 255 255 1 255 )
melse
LWMPoly( 4 0 %4 1 1 255 1 255 255 1 255 )
mifend
Just change %4 to -9999 in the 2 LWMPoly lines and then compile again. The first LWMPoly it will look like:
LWMPoly( 4 1 -9999 1 1 255 1 255 255 1 255 )
Attention: do not forget to replace the file when you are ready with this patch.
================================================== ==
Does anyone know if this would be the problem, and if so how do I fix it?
Thanks, David