Sign in to follow this  
Guest Webapache3000

nightlights turn off in gmax

Recommended Posts

Hi there,on my new building are many new lights called: light_nav & light_strobe.All Ok, the lights are working at night, but also at day.How can i tell Gmax to switch of the lights on day?Or do I need another compiler?Thanks in frontOlli

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Hi arno,thanks that's what i'm looking for.So now, yet there is another problem.After i compile my Gmax model with MakeMDL and keeping the *.asm files, i get two files:fernsehturm.asmfernsehturm_0.asmNext, I edit the fernsehturm_0.asm file (the bigger one) and going to the "fernsehturm_Alpha" section where the commands for the lights are.Here is the Part of this:-------------------------------------------------------------------; Alphafernsehturm_Alpha label BGLCODE IFMSK nolgt_1, beacnt, 00002h BGL_LIGHT LIGHT_STROBE, 0.000, 561.542, 0.000, 40, 0.60, 0.40, 0FFFFFFFFh, 0.000000, 0.000000, 1.000000 ; source poly num = 3056 nolgt_1 label BGLCODE IFMSK nolgt_2, beacnt, 00002h BGL_LIGHT LIGHT_STROBE, 0.000, 561.542, 0.114, 40, 0.60, 0.40, 0FFFFFFFFh, 0.000000, 0.000000, 1.000000 ; source poly num = 3057 nolgt_2 label BGLCODE IFMSK nolgt_3, beacnt, 00002h BGL_LIGHT LIGHT_STROBE, 0.000, 561.542, -0.114, 40, 0.60, 0.40, 0FFFFFFFFh, 0.000000, 0.000000, 1.000000 ; source poly num = 3058 nolgt_3 label BGLCODE BGL_LIGHT LIGHT_NAV, 0.000, 497.847, 2.093, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3059 BGL_LIGHT LIGHT_NAV, 1.600, 497.847, -1.114, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3060 BGL_LIGHT LIGHT_NAV, -1.729, 497.847, -0.864, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3061 BGL_LIGHT LIGHT_NAV, -0.400, 497.847, 2.087, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3062 BGL_LIGHT LIGHT_NAV, 1.796, 497.847, -0.762, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3063 BGL_LIGHT LIGHT_NAV, -1.525, 497.847, -1.210, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3064 BGL_LIGHT LIGHT_NAV, -0.800, 497.847, 2.070, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3065 BGL_LIGHT LIGHT_NAV, 1.983, 497.847, -0.405, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3066 BGL_LIGHT LIGHT_NAV, -1.311, 497.847, -1.551, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3067 IFMSK nolgt_13, beacnt, 00002h BGL_LIGHT LIGHT_STROBE, 12.719, 324.834, -8.222, 40, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3068 nolgt_13 label BGLCODE IFMSK nolgt_14, beacnt, 00002h BGL_LIGHT LIGHT_STROBE, -11.261, 324.745, -10.678, 40, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3069 nolgt_14 label BGLCODE IFMSK nolgt_15, beacnt, 00002h BGL_LIGHT LIGHT_STROBE, 1.233, 324.745, 15.681, 40, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3070 nolgt_15 label BGLCODE IFMSK nolgt_16, beacnt, 00002h BGL_LIGHT LIGHT_STROBE, 12.915, 324.834, -7.870, 40, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3071 nolgt_16 label BGLCODE IFMSK nolgt_17, beacnt, 00002h BGL_LIGHT LIGHT_STROBE, -10.673, 324.745, -11.673, 40, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3072 nolgt_17 label BGLCODE IFMSK nolgt_18, beacnt, 00002h BGL_LIGHT LIGHT_STROBE, 0.082, 324.745, 15.634, 40, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3073 nolgt_18 label BGLCODE IFMSK nolgt_19, beacnt, 00002h BGL_LIGHT LIGHT_STROBE, 13.102, 324.834, -7.513, 40, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3074 nolgt_19 label BGLCODE IFMSK nolgt_20, beacnt, 00002h BGL_LIGHT LIGHT_STROBE, -10.060, 324.745, -12.653, 40, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3075 nolgt_20 label BGLCODE BGL_LIGHT LIGHT_NAV, 0.000, 560.588, 0.114, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3076 BGL_LIGHT LIGHT_NAV, 0.000, 560.588, -0.114, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3077 BGL_LIGHT LIGHT_NAV, 0.000, 560.588, 0.000, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3078 IFMSK nolgt_24, beacnt, 00002h BGL_LIGHT LIGHT_STROBE, -1.202, 324.745, 15.634, 40, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3079 nolgt_24 label BGLCODE BGL_LIGHT LIGHT_NAV, 6.957, 405.709, -3.007, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3080 BGL_LIGHT LIGHT_NAV, 0.120, 405.709, 7.859, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3081 BGL_LIGHT LIGHT_NAV, 6.211, 405.709, -4.348, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3082 BGL_LIGHT LIGHT_NAV, -6.460, 405.709, -3.396, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3083 BGL_LIGHT LIGHT_NAV, -1.403, 405.709, 7.836, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3084 BGL_LIGHT LIGHT_NAV, -4.871, 405.709, -6.010, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3085 BGL_LIGHT LIGHT_NAV, -5.683, 405.709, -4.714, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3086 BGL_LIGHT LIGHT_NAV, -2.926, 405.709, 7.772, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3087 BGL_LIGHT LIGHT_NAV, 7.668, 405.709, -1.647, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3088 IFMSK nolgt_34, beacnt, 00002h BGL_LIGHT LIGHT_STROBE, 6.957, 409.254, -3.007, 40, 0.60, 0.40, 0FFFFFFFFh, 0.000000, 0.000000, 1.000000 ; source poly num = 3089 nolgt_34 label BGLCODE IFMSK nolgt_35, beacnt, 00002h BGL_LIGHT LIGHT_STROBE, 0.120, 409.254, 7.859, 40, 0.60, 0.40, 0FFFFFFFFh, 0.000000, 0.000000, 1.000000 ; source poly num = 3090 nolgt_35 label BGLCODE IFMSK nolgt_36, beacnt, 00002h BGL_LIGHT LIGHT_STROBE, 6.211, 409.254, -4.348, 40, 0.60, 0.40, 0FFFFFFFFh, 0.000000, 0.000000, 1.000000 ; source poly num = 3091 nolgt_36 label BGLCODE IFMSK nolgt_37, beacnt, 00002h BGL_LIGHT LIGHT_STROBE, -6.460, 409.254, -3.396, 40, 0.60, 0.40, 0FFFFFFFFh, 0.000000, 0.000000, 1.000000 ; source poly num = 3092 nolgt_37 label BGLCODE IFMSK nolgt_38, beacnt, 00002h BGL_LIGHT LIGHT_STROBE, -1.403, 409.254, 7.836, 40, 0.60, 0.40, 0FFFFFFFFh, 0.000000, 0.000000, 1.000000 ; source poly num = 3093 nolgt_38 label BGLCODE IFMSK nolgt_39, beacnt, 00002h BGL_LIGHT LIGHT_STROBE, -4.871, 409.254, -6.010, 40, 0.60, 0.40, 0FFFFFFFFh, 0.000000, 0.000000, 1.000000 ; source poly num = 3094 nolgt_39 label BGLCODE IFMSK nolgt_40, beacnt, 00002h BGL_LIGHT LIGHT_STROBE, -5.683, 409.254, -4.714, 40, 0.60, 0.40, 0FFFFFFFFh, 0.000000, 0.000000, 1.000000 ; source poly num = 3095 nolgt_40 label BGLCODE IFMSK nolgt_41, beacnt, 00002h BGL_LIGHT LIGHT_STROBE, -2.926, 409.254, 7.772, 40, 0.60, 0.40, 0FFFFFFFFh, 0.000000, 0.000000, 1.000000 ; source poly num = 3096 nolgt_41 label BGLCODE IFMSK nolgt_42, beacnt, 00002h BGL_LIGHT LIGHT_STROBE, 7.668, 409.254, -1.647, 40, 0.60, 0.40, 0FFFFFFFFh, 0.000000, 0.000000, 1.000000 ; source poly num = 3097 nolgt_42 label BGLCODE BGL_LIGHT LIGHT_NAV, -10.073, 190.109, 0.766, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3098 BGL_LIGHT LIGHT_NAV, -10.066, 190.109, 0.007, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3099 BGL_LIGHT LIGHT_NAV, -10.038, 190.109, -0.751, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3100 BGL_LIGHT LIGHT_NAV, -5.122, 190.109, -8.803, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3101 BGL_LIGHT LIGHT_NAV, -4.452, 190.109, -9.158, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3102 BGL_LIGHT LIGHT_NAV, -5.783, 190.109, -8.429, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3103 BGL_LIGHT LIGHT_NAV, 5.733, 190.109, -8.400, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3104 BGL_LIGHT LIGHT_NAV, 4.437, 190.109, -9.188, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3105 BGL_LIGHT LIGHT_NAV, 5.090, 190.109, -8.802, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3106 BGL_LIGHT LIGHT_NAV, 10.147, 190.109, 0.775, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3107 BGL_LIGHT LIGHT_NAV, 10.182, 190.109, -0.742, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3108 BGL_LIGHT LIGHT_NAV, 10.175, 190.109, 0.017, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3109 BGL_LIGHT LIGHT_NAV, 4.504, 190.109, 9.094, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3110 BGL_LIGHT LIGHT_NAV, 5.766, 190.109, 8.252, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3111 BGL_LIGHT LIGHT_NAV, 5.141, 190.109, 8.681, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3112 BGL_LIGHT LIGHT_NAV, -5.680, 190.109, 8.279, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3113 BGL_LIGHT LIGHT_NAV, -4.383, 190.109, 9.067, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3114 BGL_LIGHT LIGHT_NAV, -5.036, 190.109, 8.681, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3115 BGL_LIGHT LIGHT_NAV, -12.890, 59.538, 0.989, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3116 BGL_LIGHT LIGHT_NAV, -12.881, 59.538, 0.019, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3117 BGL_LIGHT LIGHT_NAV, -12.846, 59.538, -0.951, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3118 BGL_LIGHT LIGHT_NAV, -6.559, 59.538, -11.247, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3119 BGL_LIGHT LIGHT_NAV, -5.701, 59.538, -11.702, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3120 BGL_LIGHT LIGHT_NAV, -7.403, 59.538, -10.770, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3121 BGL_LIGHT LIGHT_NAV, 7.324, 59.538, -10.732, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3122 BGL_LIGHT LIGHT_NAV, 5.665, 59.538, -11.740, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3123 BGL_LIGHT LIGHT_NAV, 6.501, 59.538, -11.247, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3124 BGL_LIGHT LIGHT_NAV, 12.969, 59.538, 1.002, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3125 BGL_LIGHT LIGHT_NAV, 13.013, 59.538, -0.939, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3126 BGL_LIGHT LIGHT_NAV, 13.003, 59.538, 0.032, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3127 BGL_LIGHT LIGHT_NAV, 5.751, 59.538, 11.640, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3128 BGL_LIGHT LIGHT_NAV, 7.366, 59.538, 10.563, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3129 BGL_LIGHT LIGHT_NAV, 6.566, 59.538, 11.112, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3130 BGL_LIGHT LIGHT_NAV, -7.272, 59.538, 10.597, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3131 BGL_LIGHT LIGHT_NAV, -5.614, 59.538, 11.605, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3132 BGL_LIGHT LIGHT_NAV, -6.449, 59.538, 11.112, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3133 BGL_LIGHT LIGHT_NAV, 20.965, 299.704, -36.305, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3140 BGL_LIGHT LIGHT_NAV, -41.740, 299.704, 0.143, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3141 BGL_LIGHT LIGHT_NAV, -21.286, 299.704, -36.306, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3142 BGL_LIGHT LIGHT_NAV, -20.932, 299.704, 36.032, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3143 BGL_LIGHT LIGHT_NAV, 42.002, 299.704, 0.184, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3144 BGL_LIGHT LIGHT_NAV, 21.174, 299.704, 36.032, 20, 0.60, 0.40, 0FFFF0000h, 0.000000, 0.000000, 1.000000 ; source poly num = 3145 BGL_END BGL_RETURN------------------------------------------------------------------On top of the code I type:; AlphaIFIN1 fernsehturm_Alpha, 028Ch, 2, 4fernsehturm_Alpha label BGLCODE IFMSK nolgt_1, beacnt, 00002h BGL_LIGHT LIGHT_STROBE, 0.000, 561.542, 0.000, 40, 0.60, 0.40,...------------------------------------------------------------------But all of my lights still burning at day, night, dusk and dawn.If i try to make a:IFIN1 fernsehturm_Alpha, 028Ch, 2section, the lights still off for the completed time.I compile the file with the BGLC compiler that is inside the FS2002 SDK / version 8.So now, doo i make trash or what is the problem?ThanksOlli

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this