• 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.

Further Question re: Gmax and Lights

Messages
25
Country
canada
Good Morning All,

I finally got my single light working.

Now I would like to make an array of lights in GMAX. I have used the Array command as listed in the GMAX Bible, but the resulting object will not export to an MDL file.

My plan is make an array of lights ( a single line) which would then be placeable on the edge of a floating runway scenery object.

So, my question; Why no export? Second question: Is there another way to do this without individually placing each light.

Cheers and thanks,

John
 
Hi hcornea,

Thank you very much for this! I will check this out. As with much of what we are doing with GMAX and FSX, it seems to be test, retest and test again.

Cheers,

John /Avroman
 
Hi Everyone,

I have tried NickW's script for attaching multiple objects but on export from GMAX received the following error;

ERROR: Failed to process part XML for part: frm-attachpt_RedLight0, this part will lose all custom attributes!
ERROR: Verify the attached XML data block in the modelling package!
ERROR: System.Xml.XmlException: '

Here is the original script (Thanks for this! NickW!)
strAttachNumber = 0
for obj in $box* do
(
obj.name = ("attachpt_RedLight" + (strAttachNumber as
string))
strBufferText = ("FSXML = <?xml version=\"1.0\"
encoding=\"ISO-8859-1\" ?> <FSMakeMdlData
version=\"9.0\"><Attachpoint name=\"attachpt_RedLight" +
(strAttachNumber as string) + "\"> <AttachedObject> <Effect
effectName=\"fx_navwhih\" effectParams=\"\"/>
</AttachedObject> </Attachpoint></FSMakeMdlData>")
setUserPropBuffer obj strBufferText
strAttachNumber += 1
)

I constructed a box (Box01) of .5m by .5m by .5m, converted it to an editable mesh, (should I make a clone??) then made an array of 100 boxes 1.0 meters apart. I then copied and pasted the script into the NEW Maxscript box and ran Evaluate All. When you press "H" you get attachpt_0-99. On export the export fails.

Where am I going wrong? I am trying to make a scenery object array of runway lights.

Cheers and thanks,

Avroman
 
Hi Again,

A brief addendum - it should be "attachpt_Redlight0", to 99 in the array once done.

Cheers,
Avroman
 
Hi Everyone,

Hey, totally cool, I just discovered Page two of Nick W.'s post that has been "stickied" to this forum ( "a little reading is a dangerous thing...") and the wiki article on lights on aprons here;

http://www.fsdeveloper.com/wiki/index.php?title=Apron_lighting_using_effects_and_GMax

I am going to have a look at this and see if I can squeeze it for some knowledge and information....I think the principles look the same- rather than placing the lights on a terrestrial apron as a scenery object, my aim is to place them at the side of an airborne carrier based runway.

Cheers,

John/Avroman
 
Back
Top