Hi all.
After searching the forum and didnt find what im looking for perhaps somebody can help. I created an mdl. file consisting of 1 effect i created to be used in a object. This for fs2004 and exported using Gmax. My effect is for groundlighting which i want to add a conditional display to only show at night. I have added this display to other mdl. files basically the Light_Nav ones with no problem. I converted the file to BGL. and displayed perfectly but when i tried to use MDL tweaker to add the code, the light stays on regardless of time. I went to manually edit the file and not really sure where exactly to put now that its not a LIGHT_ NAV object. I have tried several times but either i placed it wrong or its just not possible this way. Any help would be appriciated as usual. Here is the asm file i got from gmax when i exported it.
Dave
After searching the forum and didnt find what im looking for perhaps somebody can help. I created an mdl. file consisting of 1 effect i created to be used in a object. This for fs2004 and exported using Gmax. My effect is for groundlighting which i want to add a conditional display to only show at night. I have added this display to other mdl. files basically the Light_Nav ones with no problem. I converted the file to BGL. and displayed perfectly but when i tried to use MDL tweaker to add the code, the light stays on regardless of time. I went to manually edit the file and not really sure where exactly to put now that its not a LIGHT_ NAV object. I have tried several times but either i placed it wrong or its just not possible this way. Any help would be appriciated as usual. Here is the asm file i got from gmax when i exported it.
Code:
ground_top label BGLCODE
material_riff_start_ground label word
db 'M','A','T','E'
dd material_riff_end_ground - $ - 4
MATERIAL_LIST_BEGIN
MATERIAL_DEF 0.345098,0.560784,0.882353,1.000000, 0.345098,0.560784,0.882353, 0.000000,0.000000,0.000000, 0.000000,0.000000,0.000000, 0.000000 ; 0
MATERIAL_LIST_END
BGL_RETURN
material_riff_end_ground label word
bgl_riff_start_ground label BGLCODE
db 'B','G','L',' '
dd bgl_riff_end_ground - $ - 4
LOD_0_ground label BGLCODE
; NonAlpha
ground_NonAlpha label BGLCODE
BGL_CALL_32 ground_MasterScale_1 ; Node 1 - MasterScale
BGL_END
BGL_RETURN
ground_MasterScale_1 label BGLCODE
; Node 3 - RotateAroundX transform:
BGL_SET_MATRIX_INDIRECT 0
; Node 4 - attachpt_ground transform:
MATERIAL 0 ; <88,143,225,255>
BGL_RETURN
bgl_riff_end_ground label BGLCODE
;
; STATIC ANIMATION BLOCK
;
static_matrix_list_riff_start_ground label word
db 'T','R','A','N'
dd static_matrix_list_riff_end_ground - $ - 4
; Static matrix parameters for transform: 0
real4 1.000000, 0.000000, 0.000000, 0.000000
real4 0.000000, 0.000000, 1.000000, 0.000000
real4 0.000000, -1.000000, 0.000000, 0.000000
real4 0.000000, 0.000000, 0.000000, 1.000000
; Static matrix parameters for transform: 1
real4 1.000000, 0.000000, 0.000000, 0.000000
real4 0.000000, 0.000000, -1.000000, 0.000000
real4 0.000000, 1.000000, 0.000000, 0.000000
real4 0.176353, 0.411489, 0.000000, 1.000000
static_matrix_list_riff_end_ground label word
;
; ANIMATION PARAMETER BLOCK
;
animation_parameters_riff_start_ground label word
db 'A','N','I','P'
dd animation_parameters_riff_end_ground - $ - 4
animation_parameters_riff_end_ground label word
;
; ANIMATION COMMAND BLOCK
;
animation_commands_riff_start_ground label word
db 'A','N','I','C'
dd animation_commands_riff_end_ground - $ - 4
; Animation command for transform: 0 output index: 0
bgl_animation_command_start_ground_0 label BGLCODE
BGL_TRANSFORM_INDIRECT 0, 0
bgl_animation_command_end_ground_0 label BGLCODE
; Animation command for transform: 1 output index: 1
bgl_animation_command_start_ground_1 label BGLCODE
BGL_TRANSFORM_INDIRECT 1, 1
bgl_animation_command_end_ground_1 label BGLCODE
animation_commands_riff_end_ground label word
;
; SCENE GRAPH RIFF BLOCK
;
scene_graph_riff_start_ground label word
db 'S','C','E','N'
dd scene_graph_riff_end_ground - $ - 4
dw 2
bgl_scene_graph_entry_ground_0 label byte
BGL_SCENEGRAPH_ENTRY 0, 1, -1, bgl_animation_command_end_ground_0 - bgl_animation_command_start_ground_0, bgl_animation_command_start_ground_0 - bgl_scene_graph_entry_ground_0
bgl_scene_graph_entry_ground_1 label byte
BGL_SCENEGRAPH_ENTRY 1, -1, -1, bgl_animation_command_end_ground_1 - bgl_animation_command_start_ground_1, bgl_animation_command_start_ground_1 - bgl_scene_graph_entry_ground_1
scene_graph_riff_end_ground label word
attachpoint_riff_start_ground label word
db 'A','T','T','A'
dd attachpoint_riff_end_ground - $ - 4
dd 1 ; Attach point count
BGL_ATTACHPOINT_ENTRY 1, attachpoint_name_ground_0
attachpoint_name_ground_0 label byte
db 'a','t','t','a','c','h','p','t','_','g','r','o','u','n','d',0
attachpoint_riff_end_ground label word
attached_object_riff_start_ground label word
db 'A','T','T','O'
dd attached_object_riff_end_ground - $ - 4
db 0, 16, 4, 0, 4, 0, 121, 0, 105, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
db 0, 0, 0, 0, 0, 0, 0, 0, 102, 120, 95, 119, 105, 110, 100, 115, 111, 99, 107, 95
db 103, 114, 111, 117, 110, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
db 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
db 0, 0, 0, 0, 0, 0, 0, 0, 0, 97, 116, 116, 97, 99, 104, 112, 116, 95, 103, 114
db 111, 117, 110, 100, 0, 1, 16, 4, 0
attached_object_riff_end_ground label word
Dave
Last edited by a moderator:

