Hi everybody!I am posting this dev diary on behalf of @co_visa as he has caught a cold.Green Cities is going to be released tomorrow, and with it we are also happy to introduce a new completely free Asset Editor tool, the Road Editor. Today we’re going to take a quick look at its features and create our own custom road.First a few general words about roads and the editor. Cities Skylines’ network system is one versatile beast allowing for anything from elevated tram lines with hanging wires to castle walls and sunken canals, so when initially designing the editor we had to decide whether to create a simple easy to use tool for slightly modifying existing roads or to expose the system in its full extent. We chose the latter so prepare for a lot more knobs and switches than what you might be used to. The good news is that most of the placeable network objects will be available as templates, so you can always check out how the existing objects are set up. Detailed instructions on road modding will also be added to the community wiki upon release.Here is an overview of the new editor. On the right side you can see the main panel, and on its left side two side panels that were opened just to make this all look overly scary and exciting.Most of the roads in Cities: Skylines consist of five variations: theterrain level road, the slightlyversion, the, theleading from terrain to underground, and the underground. The variations can be selected from the main panel’s tab strip. The main panel also contains sub menus for editing the general properties, lanes and models of the selected variation.The road’s 3D models are divided intoand. Segments are used for the continuous parts of the road, and nodes for intersections, road endings, and transitions from road type to another. Both are usually modeled as straight road stubs, and if everything is set up right the game will automatically take care of bending and smoothly combining them. The segments and nodes can also contain additional conditions to control when each model is drawn into the screen. You might for example want to use a different segment model when a road segment contains a bus stop, or leave out the overhead bridge wires when a bridge takes a sharp turn.Lanes can be set up to allow different vehicle types or pedestrians, and they also contain the road’s propping. The props can also be set up with conditions, for instance to use proper turn signs before intersections.So without further ado, let’s make our own custom road. I’ve already started by selecting the Six-Lane Road as our template, removing all lanes, segments, and nodes, and placing down our road to marvel at the blue error color. I have prepared a 3D model of a single straight 64 * 64 units block of road, which we’re going to import as a segment by creating a new segment and clicking thebutton on the segment’s side panel.Not quite there yet. Our custom model is way wider than our template so next we need to set up its dimensions in thesub menu. Our road is 64 units wide in total, with 5 units wide and 0.3 units high pavements on both sides. Correctis – among other things – needed to determine where the terrain ends and the road starts to prevent overlapping as seen in the picture, so we’ll set that to 32.is needed so that the game can smoothly combine our road’s pavement to other road types with differing pavement widths, so we’ll set that to 5. Since the pavements were set to 0 level along vertical axis in our model, our road is actually a bit sunken so we’ll set theto -0.3 to act as the base height. Theis already set correctly to 64.Magic! Because our model was originally created using a grid-like layout, it contains a lot of “free” vertices the game can now move around. We also imported the same model as a node, but this time without the road markings in the texture. I’ll just leave it to your imagination what happens when those start bending all over the place. Due to the hasty texturing you can now also see faint seams on the intersection where our road’s node models meet Two-Lane Road’s.The remaining step is to configure the lanes and their propping. 2 pedestrian lanes on the sides and 16 car lanes. The model was thrown together quite hastily and the lane markings weren’t separated with a uniform distance so I’m temporarily attaching a prop to each lane to see where they are while tweaking their positions. After the lane configuration is done we’ll throw in some street lamps to pedestrian lanes and call it a day.Our quick example is now done and working quite nicely. The inner lanes rarely saw any action unless I created some artificial congestion, but to fix that we’d need to completely rethink our design to be a little less ridiculous. Next we would also need to configure our other elevations and any properties such as speed limits and prices, but let’s leave that for another time.Beyond what was shown here, any objects like train tracks, tram tracks, quays, canals, monorails etc. are also available for editing. We’ve added a multitude of different shaders in the editor which will enable you to create anything from shiny tracks to wires that sway on the wind. More info on modeling and shaders will be added to the community wiki. The existing road pillars have been made available as building templates so we could import one with a custom model, save it, and use it in our road’s elevated and bridge variations. In the end all the elevations and pillars will be saved into one package so there will be no need to subscribe to any external dependencies when looking for new roads.Stay tuned for tomorrow’s release, and happy modding!EDIT: Fixed my Finglish grammar