Jump to content

Sign in to follow this  
HiFlyer

Released: AFS2 Cultivation/Scenery editor

Recommended Posts

From Aerofly user Nabeel https://www.aerofly.com/community/f...vation-scenery-editor/&postID=71902#post71902

I've been working on a small side project this week as I've had some spare time and my goal was to create a scenery/cultivation editor for AFS2 with emphasis on easy to use (as I know it can be very difficult modifying/adding cultivation in the right places).

This does require you to have some knowledge on how to load cultivation (you'll need to have an airport .tsc file that refers to the cultivation file).

Here are the current features:

  • - Add buildings, plants and lights,
  • - Buildings are color scaled depending on type (residential, commercial or industrial),
  • - An indication of floors on the buildings when in 3D mode,
  • - Modify any property by right clicking > edit properties (i.e. floors, light color, plant group),
  • - Set default properties through the settings cogwheel, I've put in some sensible defaults for now.
  • - Ability to move, transform and rotate buildings.
  • - Ability to delete any model.
  • - Visualize buildings in 3D (can be toggled on/off).
  • - Tooltip information (can be toggled on/off).
  • - Multiple layers of raster tile sources (Google, Bing, OSM and CartoDB - use Bing sparingly as it uses an API key for map load requests).
  • - Load and save files as .TOC.

Hotkeys for adding a model (they will be highlighted if selected):

  • - Q for building,
  • - W for plant
  • - E for light
  • - D for zooming out
  • - F for zooming in
  • - Escape to cancel all current actions (drawing, editing, etc).
  •  

When in draw mode (either through the toolbar on the left or the hotkeys):

  • - Plant and Light models are created by just double clicking anywhere
  • - Building is created by clicking once to start the rectangle and then clicking again to finish
  • - If you made a mistake you can right click and delete/edit.
  • - AFS2 only supports rectangular buildings, so make sure they look somewhat rectangular, (they'll end up being rectangular anyhow).
  • - Hold right mouse to shift your view at an angle

There's no mass selection, state save and so on right now. Every time you refresh you'll be placed near London (loading a .toc file will take the center of the cultivation data present and put you there).

You are able to load any .toc file or alternatively just add buildings, plants and lights and save from scratch. If you want to give it a test run, I suggest loading the scenery by drassaud (such as Autogen Switzerland South Beta 0.1.0 and opening ch/places/Autogen ch South/fl_8-8 46-1_00.toc) or you can use myexample.toc and load that (just a few buildings, plants and lights).

Anyhow, without further ado, here's the link: AFS2 Cultivation Editor. The editor itself runs locally so it will depend on your resources (CPU/GPU) to process and render. Moreover I've only tested this on the latest Google Chrome (Firefox was a bit sluggish and I had issues zooming, other browsers untested).

Looking forward to feedback! I can extend this to parse and work with .tsc files as well and add support for other things such as airports, xrefs, parking positions, runways, helipads, etc.

Edit:

I've added zoom functionality via keybinds (D and F) as well as a zoom slider as Firefox doesn't seem to want to zoom via scroll wheel.

12126-editor-ss-jpg

  • Like 1

Just Flight Beta Tester
 
We are all connected..... To each other, biologically...... To the Earth, chemically...... To the rest of the Universe atomically.
 
Devons rig
Intel Core i7 8700K @ 5.0GHz / 32.0GB G.SKILL TridentZ Series Dual-Channel Ram / ZOTAC GAMING GeForce® RTX 2080 Ti Triple Fan / Sound Blaster Z / Oculus Rift VR Headset / Klipsch® Promedia 2.1 Computer Speakers / ASUS ROG SWIFT PG279Q ‑ 27" IPS LED Monitor ‑ QHD / 2x Samsung SSD 850 EVO 500GB / 1x Samsung SSD 860 EVO 1000GB / 5 other regular hd's with up to 10 terabyte capacity each / Windows 10 Pro 64-bit / Gigabyte Z370 AORUS Gaming 5 Motherboard

Share this post


Link to post
Share on other sites

Bonjour,

Veuillez m'excuser...

Je ne parle pas anglais et je ne sais pas l'écrire non plus !

Alors je vous passe ce message avec une traduction Google.

J'aimerai avoir une précision utile pour moi, s'il vous plait.

Une fois le fichier .toc généré, dans quelle dossier dois je le mettre pour qu'il soit opérationnel dans AFS2

Je fonctionne sous W10 avec une version DVD pour AFS2 et pas "Steam"

Merci pour votre réponse

Lucien Fleury

Hello,

Please excuse me...

I don't speak English and I can't write it either!

So I'll send you this message with a Google translation.

I would like to have a useful clarification for me, please.

Once the .toc file is generated, in which folder should I put it so that it is operational in AFS2

I work under W10 with a DVD version for AFS2 and not "Steam"

thank you for your reply

Lucien Fleury

Share this post


Link to post
Share on other sites

 

Ce n'est probablement pas le meilleur endroit pour obtenir une réponse. Veuillez essayer ici: https://www.aerofly.com/community/forum/


Just Flight Beta Tester
 
We are all connected..... To each other, biologically...... To the Earth, chemically...... To the rest of the Universe atomically.
 
Devons rig
Intel Core i7 8700K @ 5.0GHz / 32.0GB G.SKILL TridentZ Series Dual-Channel Ram / ZOTAC GAMING GeForce® RTX 2080 Ti Triple Fan / Sound Blaster Z / Oculus Rift VR Headset / Klipsch® Promedia 2.1 Computer Speakers / ASUS ROG SWIFT PG279Q ‑ 27" IPS LED Monitor ‑ QHD / 2x Samsung SSD 850 EVO 500GB / 1x Samsung SSD 860 EVO 1000GB / 5 other regular hd's with up to 10 terabyte capacity each / Windows 10 Pro 64-bit / Gigabyte Z370 AORUS Gaming 5 Motherboard

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  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
  • Donation Goals

    AVSIM's 2020 Fundraising Goal

    Donate to our annual general fundraising goal. This donation keeps our doors open and providing you service 24 x 7 x 365. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. We reset this goal every new year for the following year's goal.


    34%
    $8,535.00 of $25,000.00 Donate Now
×
×
  • Create New...