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

Place lights

Hi Ali,
I also created lights with gmax: with gmax I created a mdl, then I created a bgl (object library) with LibraryCreatorXML
therefore, you should also have a bgl, from which you extract the guid
that guid must be insert in the file autogen.xml with the procedure described in msdn tutorial
 
Maybe it's me, but just open the xml in notepad and copy paste some entries around is not really hard is it?

For the future it might be nice to add a feature to scenproc to help with the tweaking.
 
Hi
let me explain what i do:
1-create light with gmax
2-save as mdl
3-open it with model convertor x and set option for bright light just in night and convert textures to dds.
4-save as bgl in model convertor x.
5-now i have my model in bgl and textures.copy bgl in add on scenery; scenery and copy textures in add on scenery; texture.
my question is: i have the guid of my model. i added this guide instead of new class in default.xml and i add this guid in scenepro for street light but any change in fsx? i tried SprightlyOldMan's way but no change.
can anyone explain true Procedures of adding one object to default.xml with PICTURE???
 
it is described in the ESP page SOM pointed you to initially
its the same tutorial we all run; i can tell you this upfront
don't use the library object GUID scenproc generates for you;
its not autogen GUID and will not become one just because you plugged it in default xml
you need to use a separate AGN GUID; dont use your object GUID in default.xml

Arno you don't count; you can fart rainbows and make it look easy :D
 
hi.
as i understood we should have two guid for one object.
<CLASS>
<NAME>my light</NAME>
<GUID>?</GUID>
<WIDTH>?</WIDTH>
<DEPTH>?</DEPTH>
<LIBRARYOBJECT>
<NAME>my light</NAME>
<GUID>?GUID>
</LIBRARYOBJECT>
</CLASS>
this is the base of adding class to default. hpw should i fill it?
 
The first guid is the new guid of the autogen class. The second one is the guid of your mdl object.
 
You assign a new random guid for the first one. Just use an (online) generator to get one.
 
hello again.
i generated guid for first one with this site: http://www.guidgen.com/
and i added my guid to that class:
<CLASS>
<NAME>light orange</NAME>
<GUID>b8f53129-d93e-4b1b-bd5e-b31d371eb229</GUID>
<WIDTH>8</WIDTH>
<DEPTH>8</DEPTH>
<LIBRARYOBJECT>
<NAME>light orange</NAME>
<GUID>661197ec-abe0-47d9-8d12-dd13a1806b00</GUID>
</LIBRARYOBJECT>
</CLASS>
and my text in sceneproc is this:
#
IMPORTOGR|C:\Users\Ali\Desktop\tb.shp|*|*|NOREPROJ
#
PLACEPOINTSALONGLINE|FTYPE=LINE;FROMFILE=tb.shp|SINGLE|30;30|5;5|5|light orange|light orange|hdg
#
SPLITGRID|AGN
#
CREATEAGNLIBOBJ|FTYPE=POINT|661197ec-abe0-47d9-8d12-dd13a1806b00|0|0|8;8
#
EXPORTAGN|FSX|C:\Users\Ali\Desktop\New folder3
**********but but but there is no change in my flight sim.now what is my problem????????
please help me!!!!!!
 
Hi
in my default.xml guid is without char "-"


<CLASS>
<NAME>light_b</NAME>
<GUID>10ca7aa545334476538407b8a4898385</GUID>
<WIDTH>6</WIDTH>
<DEPTH>6</DEPTH>
<LIBRARYOBJECT>
<NAME>light_b</NAME>
<GUID>f9e8ee50401f76260acc14aa922651f7</GUID>
</LIBRARYOBJECT>
</CLASS>

Also you have to make sure you entered the class in the right region (where you have placed your lights)

example:

<REGION>
<CODE>D</CODE>


At last, in scenproc i use first guid, not second

PLACEPOINTSALONGLINE|highway=residential|SINGLE|120;120|5;5|60|ROADTYPE|LightRes|hroad
CREATEAGNLIBOBJ|ROADTYPE=LightRes|{10ca7aa5-4476-4533-b807-8453858389a4}|hroad|0|6;6


;)
 
i putted that in region j and i got that guid but there isnt any change. note: i copy my bgl object to addon scenery and textures.
 
Hi
i do not use a single bgl object, but a bgl library with 3 objects (3 colored lights)
bgl is in folder $FSX-P3D$\scenery\global\scenery
texture in folder $FSX-P3D$\scenery\global\texture

make sure you entered GUID 661197ec-abe0-47d9-8d12-dd13a1806b00 in your bgl (you can check it with ModelConverterX)

:)
 
hello. NO RESULT.

<CLASS>
<NAME>light orange</NAME>
<GUID>b8f53129-d93e-4b1b-bd5e-b31d371eb229</GUID>
<WIDTH>8</WIDTH>
<DEPTH>8</DEPTH>
<LIBRARYOBJECT>
<NAME>light orange</NAME>
<GUID>661197ec-abe0-47d9-8d12-dd13a1806b00</GUID>
</LIBRARYOBJECT>
</CLASS>
i will be crazy for this. i dont know where is my problem.i can add orbx light to my scene but i cant add my light object. i copy my bgl object to global scenery and copy that texture to global texture.in sceneproc the program can show my light GUID automatically and add that but no change in fsx.HELPPPPP
 
I did not know this
What problems could occur?

i haven't tried it yet or more to say i haven't found out the hard way
it just doesn't look right to me that the class and the object have the same name; even though they have a different GUID

FYI, the SDK calls for a converted GUID format for AGN class objects
it is an older format and described in the second table; third section; with a link to a GUID converter script here -
https://msdn.microsoft.com/en-us/library/cc526979.aspx#EditingtheDefaultXMLfilebyhand
 
It's a FS2004 style guid indeed. Scenproc can convert between the formats, so in your script you can use both. But the xml file needs the old format afaik.
 
Back
Top