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

Calling SimObjects by GUID ...

Messages
25
I had success placing Fsx Simobjects with Simconnect AICreateSimulatedObject.

But when calling them by Guid following this thread:http://www.fsdeveloper.com/forum/showthread.php?t=4414 i have no results.


Replay :rolleyes:

First I open a new folder in Simobjects sub folder GroundVehicles : let's say My_New_truck with a sim.cfg .
In this folder I open two empty folders (Model and Texture)
Then I copied and pasted in the sim.cfg

[fltsim.0]
title=SceneContainer VEH_Air_PickupUS_Blue
model=
texture=
visual_model_guid={AAC710F6-68FB-4E7B-BF1D-458843B34C56}
ui_type=SceneryObject

[General]
category=SimpleObject

[contact_points]
destroy_on_impact=0

Then i call AICreateSimulatedObject(My_New_truck etc.....).
Well, no way to see it , always getting exception 22.
I tried several ways ( and others object and their GUID)changing the title category, ui_type and so on and naturally when directly calling VEH_Air_PickupUS_Blue... it appears!

Dont know where i'm wrong ( and i'm wrong i know:D).


Thanks in advance.
Rob


P.s. working with Acceleration Pack and SDK
 
Did you create empty 'model' and 'texture' folders for your dummy object like Arno did to solve his exception 22?

Daniel
 
Did you create empty 'model' and 'texture' folders for your dummy object like Arno did to solve his exception 22?

Daniel

Yep...i wrote it in my post.
It would be:
Folder [My_new_truck]
Subfolder Model (empty)/Texture(empty)
sim.cfg

Rob
 
:D:D:D

I knew it was a silly problem...but working with many sim.cfg opened i did not see that....... the
title=SceneContainer VEH_Air_PickupUS_Blue
must OBVIOUSLY be the same as the folder i call and it was not.

Now it's OK. Thanks for your patience.
Rob.

P.s.
If anyone before
MERRY CHRISTMAS to all virtual flying people.
 
Following my path and this thread ... i'm trying to show, with simconnect AICreateSimulatedObject, my own made simple Gmax objects like a cube , a sign, a cylinder ...no way.

Fsx hangs up always.

Anyone solved this or is not possible any way???
Rob
 
Hi,

It should work the same as with the default library objects. Just make sure that you put your new object in a library and call its GUID in the SimObject you create. After that you can place that SimObject with SimConnect.
 
Arno, thanks for your prompt reply.

Just make sure that you put your new object in a library and call its GUID in the SimObject you create. After that you can place that SimObject with SimConnect.

Sorry but there is something i dont understand.
When you say putting the object in a library and call its Guid... in simple words ... i put the mdl and the sim.cfg in a subfolder of Simobjects/Misc , just as i did before with the example of my previous post.
In the sim.cfg the line ---> visual_model_guid= shows the Guid of my own object.
Or is there something else i'm missing?
Thanks again.
Rob
 
Hi, sorry for recovering this post but I got another question regarding this stuff.

I created a library of some models. Works well if placed with Object Placer or Inst.Scen.

Now I created a simobject out of this and trying to call it via simconnect. But everytime I get a CTD.

Lib:

Code:
F5FD98164CCE0AE77CF560856E59530B ParkAutomat
880CC63C4D1CDD428BADB086088DB9B9 Bus_Tram_Stop

sim.cfg:

Code:
[fltsim.0]
title=TRANSPORTATION_LIB ParkAutomat
model=
texture=
visual_model_guid={F5FD9816-4CCE-0AE7-7CF5-60856E59530B}

[fltsim.1]
title=TRANSPORTATION_LIB Bus_Tram_Stop
model=
texture=
visual_model_guid={880CC63C-4D1C-DD42-8BAD-B086088DB9B9}

[General]
category=SimpleObject

I even tried with and without the ui_type thing -> no changes.

May somebody has an working example for this.

greez bergziege

ps.: using SP2
 
Back
Top