• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FSX Wigwags light

Messages
115
Country
denmark
well is it posible to get distance limitation in to the asm code as mdl tweaker dosent want to open my mdl light

update got it working whit mdl tweaker but dont make any sence as it is the same file i moved to another folder af then it opened it
 
Last edited:
Messages
115
Country
denmark
can any one tel me where the easy way is to give a offset or somthing like that i have tryed some of the of the asm codes found here but if it was posible to place 1 in the left glas and whit a ofset place it in the right glas it should go flash side by side as the other i have tryeid dont seems to be easy to place as it always shows it wrong.


isent it something whit the cordinates below here is where it place it but what is what?

BGL_LIGHT LIGHT_BEACON, 0.655, 0.725, 0.021, 20, 0.60, 0.40, 070FFF21Ah, 0.000000, 0.000000, 1.000000 ; source poly num = 370
nolgt_2 label BGLCODE
 
Last edited:
Messages
115
Country
denmark
have found a way but what about timing as it is a bit to slow the flashing? about 2 sec want it the half 1 sec
 
Last edited:

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
32,858
Country
netherlands
What's the way you found then? If we don't know how you made them, it is hard to advice how to change the timing.
 
Messages
115
Country
denmark
What's the way you found then? If we don't know how you made them, it is hard to advice how to change the timing.

well i just folowed http://www.fsdeveloper.com/forum/showthread.php?t=2122



IFMSK nolgt_1, 0282h, 0F0F0h
;white light
BGL_LIGHT LIGHT_BEACON, -0.701, 0.725, 0.021, 20, 0.60, 0.40, 0FFFFEEA6h, 0.000000, 0.000000, 1.000000 ; source poly num = 299
BGL_JUMP_32 nolgt_2
nolgt_1 label BGLCODE
;red light
BGL_LIGHT LIGHT_BEACON, 0.655, 0.725, 0.021, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 370
nolgt_2 label BGLCODE
 
Messages
115
Country
denmark
all from the asm file is here:

db 'R','I','F','F' ; RIFF file identifier
dd bgl_data_end - $ - 4 ; size of RIFF data
db 'M','D','L','9' ; file identifire (FS9 model)

db 'M','D','L','H'
dd visual_model_header_end - $ - 4
dd visual_model_header_end - $ - 4
dd 0
dd 0
dd 2
dd 0
dd 0
dd 156
db 'F','S','8','0'
dd 2304
visual_model_header_end label dword

db 'I','S','F','T'
dd ver_end - $ - 4
db "BGLC_9",0
ver_end label word

bounding_box_riff_start label word
db 'B','B','O','X'
dd bounding_box_riff_end - $ - 4
real4 -100.000, -100.000, -100.000
real4 100.000, 100.000, 100.000
bounding_box_riff_end label word


model_outside label BGLCODE
model_shadow label BGLCODE
model_inside label BGLCODE
exterior_riff_start_0 label BGLCODE
db 'E','X','T','E'
dd exterior_riff_end_0 - $ - 4
LOD_0L label BGLCODE

LIGHT_NAV_beta_top label BGLCODE

bgl_riff_start_LIGHT_NAV_beta label BGLCODE
db 'B','G','L',' '
dd bgl_riff_end_LIGHT_NAV_beta - $ - 4
LOD_0_LIGHT_NAV_beta label BGLCODE

; Alpha
LIGHT_NAV_beta_Alpha label BGLCODE
BGL_CALL_32 LIGHT_NAV_beta_MasterScale_1 ; Node 1 - MasterScale
BGL_END
BGL_RETURN


LIGHT_NAV_beta_MasterScale_1 label BGLCODE
IFMSK nolgt_1, 0282h, 0AAAAh

;white light
BGL_LIGHT LIGHT_BEACON, -0.701, 0.725, 0.021, 20, 0.60, 0.40, 070FFF21Ah, 0.000000, 0.000000, 1.000000 ; source poly num = 299
BGL_JUMP_32 nolgt_2
nolgt_1 label BGLCODE
;red light
BGL_LIGHT LIGHT_BEACON, 0.655, 0.725, 0.021, 20, 0.60, 0.40, 070FFF21Ah, 0.000000, 0.000000, 1.000000 ; source poly num = 370
nolgt_2 label BGLCODE

BGL_RETURN

bgl_riff_end_LIGHT_NAV_beta label BGLCODE
exterior_riff_end_0 label BGLCODE


shadow_riff_start_0 label BGLCODE
db 'S','H','A','D'
dd shadow_riff_end_0 - $ - 4
SHADOW_0L label BGLCODE

Kill_Shadow_top label BGLCODE
bgl_riff_start_Kill_Shadow label BGLCODE
db 'B','G','L',' '
dd bgl_riff_end_Kill_Shadow - $ - 4

LOD_0_Kill_Shadow label BGLCODE
BGL_END
BGL_RETURN

bgl_riff_end_Kill_Shadow label BGLCODE
shadow_riff_end_0 label BGLCODE


bgl_data_end label BGLCODE

And the problem is that it is a bit fast but thats ok for now. Is there any way to get the same effect of the light when close to it and at distance as it gets bigger the light it self when you se it from a distance as it should be small at bothe stages as it then fits the object as now it dosent lookes nice as at distance. as my effect file looks better but effects the light there fore i made this light like the runway and taxi light.
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
32,858
Country
netherlands
Hi,

For the BGL_LIGHT command FS automatically increases the size at the distance, there is not much you can do about it. Some people change the halo.bmp texture to get a better size, but that affect all lights in the world.

About the rate of blinking, that is controlled by this line:

Code:
IFMSK nolgt_1, 0282h, 0F0F0h

I think if you change it to this line it should be half slower:

Code:
IFMSK nolgt_1, 0282h, 0FF00h
 
Messages
115
Country
denmark
yes ok but what about the effect file as it seems to work the best way if i just was abel to stop the flashing of the rwy light and taxi light. it would be nice do you know what there is causing the problem and more important to remove it. as it seems to bee if you look at the bgl light it shows and the 4star effect or what i should cal it flashes then the effect does it here is a pre wiew of the effect file:

[Library Effect]
Lifetime=1
[Library Effect]
Lifetime=1
Version=2.00
Radius=-1
Priority=0

[Properties]

[Emitter.0]
Lifetime=0.00, 0.00
Delay=0.00, 0.00
Bounce=0.00
Light=1
No Interpolate=1
Rate=0.50, 0.50
X Emitter Velocity=0.00, 0.00
Y Emitter Velocity=0.00, 0.00
Z Emitter Velocity=0.00, 0.00
Drag=0.00, 0.00
X Particle Velocity=0.00, 0.00
Y Particle Velocity=0.00, 0.00
Z Particle Velocity=0.00, 0.00
X Rotation=0.00, 0.00
Y Rotation=0.00, 0.00
Z Rotation=0.00, 0.00
X Offset=0.00, 0.00
Y Offset=0.05, 0.05
Z Offset=0.05, 0.05
Pitch=0.00, 0.00
Bank=0.00, 0.00
Heading=0.00, 0.00

[Particle.0]
Lifetime=0.50, 0.50
Type=19
X Scale=6.00, 6.00
Y Scale=6.00, 6.00
Z Scale=0.00, 0.00
X Scale Rate=0.00, 0.00
Y Scale Rate=0.00, 0.00
Z Scale Rate=0.00, 0.00
Drag=0.00, 0.00
Color Rate=0.00, 0.00
X Offset=0.00, 0.00
Y Offset=0.00, 0.00
Z Offset=0.00, 0.00
Fade In=0.00, 0.00
Fade Out=0.00, 0.00
Rotation=0.00, 0.00
Static=1
Face=0, 0, 0

[ParticleAttributes.0]
Blend Mode=0
Bounce=0.00
Color Start=255, 204, 0, 255
Color End=30, 18, 0, 0
Jitter Distance=0.00
Jitter Time=0.00
uv1=0.00, 0.00
uv2=0.00, 0.00
X Scale Goal=0.00
Y Scale Goal=0.00
Z Scale Goal=0.00
Extrude Length=0.00
Extrude Pitch Max=0.00
Extrude Heading Max=0.00

[Emitter.1]
Lifetime=0.00, 0.00
Delay=0.00, 0.00
Bounce=0.00
No Interpolate=1
Rate=0.50, 0.50
X Emitter Velocity=0.00, 0.00
Y Emitter Velocity=0.00, 0.00
Z Emitter Velocity=0.00, 0.00
Drag=0.00, 0.00
X Particle Velocity=0.00, 0.00
Y Particle Velocity=0.00, 0.00
Z Particle Velocity=0.00, 0.00
X Rotation=0.00, 0.00
Y Rotation=0.00, 0.00
Z Rotation=0.00, 0.00
X Offset=0.00, 0.00
Y Offset=0.00, 0.00
Z Offset=0.00, 0.00
Pitch=0.00, 0.00
Bank=0.00, 0.00
Heading=0.00, 0.00

[Particle.1]
Lifetime=0.50, 0.50
Type=19
X Scale=1.50, 1.50
Y Scale=1.50, 1.50
Z Scale=0.00, 0.00
X Scale Rate=0.00, 0.00
Y Scale Rate=0.00, 0.00
Z Scale Rate=0.00, 0.00
Drag=0.00, 0.00
Color Rate=0.80, 0.80
X Offset=0.00, 0.00
Y Offset=0.00, 0.00
Z Offset=0.00, 0.00
Fade In=0.00, 0.00
Fade Out=0.00, 0.00
Rotation=0.00, 0.00
Static=1
Face=1, 1, 1

[ParticleAttributes.1]
Blend Mode=2
Texture=fx_2.bmp
Bounce=0.00
Color Start=255, 204, 0, 255
Color End=0, 0, 0, 0
Jitter Distance=0.00
Jitter Time=0.00
uv1=0.00, 0.00
uv2=0.50, 0.50
X Scale Goal=0.00
Y Scale Goal=0.00
Z Scale Goal=0.00
Extrude Length=0.00
Extrude Pitch Max=0.00
Extrude Heading Max=0.00
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
32,858
Country
netherlands
Sorry, but I don't understand what you are saying at all. Are you using an effect or are you tweaking ASM code? And do you want the light to flash or not?
 
Messages
115
Country
denmark
sorry. well it is becaus i startet whit a effect and it seemed to effect the other light light (runway and taxi light) createt whit an asm code like the one to the wigwag lights asm code you have seen here then to an mdl and the light seems to flash the star effect or what you call it. on the rwy light and taxi light as it does on the effect so when the effect flash the rwy light also do. dont know what conection they hawe as rwy light is mdl light and wigwag was effect.
 
Top