Searching for simple method to add stock objects to scenery

  • I am building a HEMS mission generator. The actual custom missions work like a charm, but currently it is rather hard to spot the emergency site, because nothing is there.

    My idea is to place an already existing model for an ambulance or police car at the emergency site. I found some models in ...\Aerofly FS 4 Flight Simulator\scenery\xref\xref_vehicles and came up with a TSL file which looks like this:

    The coordinates are supposed to be on the Lüneburg airfield, but I cannot see the vehicles. The tm.log does not tell me anything about my file.

    So here is the question: can anyone point me to a simple solution to spawn vehicles in Aerofly FS4? I found multiple manuals, but most are meant for building new 3d objects as well, which is out of scope for my little project.

  • Go to Best Answer
  • It's not possible to spawn vehicles but you could just create scenery objects for this.

    Do you know any guides to get me started? Or is this one of the guides which require the SDK compiler?

  • This solution works:

    • The TSL file calls the TOC file.
    • The TOC file calls XREF and, if necessary, LIGHT.

    The TSL file contains the object "fallback" from FS 4, because without an object the TOC file is unfortunately not called. But I'm still checking whether it doesn't work without an object, because in the Hawaii project it partly also works without an object.

    By the way, the two vehicles have blue light on from dusk.


    EDIT:
    In the TOC file, the orientations of the XREF objects also work in FS 4 according to the FS 2 rules:
    - the orientation is entered with "+" counterclockwise and with "-" clockwise
    - many objects have the sky direction east as orientation 0

    Files

    Tschüss, Michael (🍎🚁)

    Configurations:

    - MacBook Pro (16", 2021); Chip: Apple M1 Max; actual macOS || Thrustmaster TCA AIRBUS EDITION: 1x Sidestick, 2x Quadrant, 2x Quadrant Add-On || Pro-Flight-Trainer PUMA X

    - iPad (12,9", 4th Generation, RAM: 6 GB); actual iOS || nimbus steelseries

    Edited once, last by ApfelFlieger (November 15, 2024 at 9:19 PM).

  • This is very beautiful, thanks a lot ApfelFlieger - you will be credited in the final tool.

    The missions generator now not only creates the missions, but also creates the POI files which have an ambulance and a police car waiting at every possible emergency site.

    Oh, I also found a property to make Aerofly fly over a given waypoint, so you will definitely pass the emergency site as well as the the hospital you need to fly to.

    I will do some test flights, and post some mission files as well as the tool itself.

    P.S.: Obviously I cheated in the screen shot, but I had to change the livery. ;)

  • Sadly I did not find a stock yacht / ship, but in some compiled files for Key West which I do not know how to handle. Does anyone know if / how ships are available for placement as POIs?

    (The HEMS generator might get some SAR missions as well ;))

  • Armitage November 22, 2024 at 2:39 AM

    Selected a post as the best answer.