Network Dump Tools

If you liked this item, please rate it up on Steam Workshop page.

Author: Cgameworld

Last revision: 1 Oct, 2023 at 05:08 UTC (3)

File size: 131.07 KB

On Steam Workshop

Description:

This mod for the road editor makes editing networks easier and faster by simplifying the dumping process.

Use

Open up the road editor and select a network to edit
Select the Elevation (Basic, Elevated, etc), Mesh Type (Segment, Node) and Mesh Number (The index number of the mesh)
Press the Dump Network Button

Files this tool dumps:

_d.png
_a.png
_p.png
_r.png
.obj
_lod.obj

If successful, the road files are dumped in the Cities_SkylinesAddonsImport folder
Generate LOD images anytime afterwards by clicking "Make _lod.png Files"

Options

Main Panel:

  • Net Elevation – Select the elevation to dump (Basic, Elevated, etc)
  • Mesh Type – Select the mesh type (Segment, Node)
  • Dump Mesh # – The index of the mesh in the Segment/Node area in the vanilla Road Properties panel (First mesh in the list is "1")
  • Dump Network – Dumps Network in Import Folder – Only the relevant files are exported, If a network uses the default texture for a certain map type it is not exported
  • Make _lod.png Files – Generates LOD images of the related textures (_d,_p, etc) for the last dumped mesh. If no mesh was dumped in the session, the files that match the custom file prefix (in export customization) will be used. For now, when elevations other than basic are selected the main mesh replaces the lod mesh.

Export Customization

  • Only export the specific files you need – Filters are available to export the meshes only or the diffuse texture only
  • Flip Textures – Flip Textures horizontally after exporting
      The default setting is true for the "Basic" elevation but false for the other elevations. This option compensates for the dumped meshes being mirrored. When the texture isn’t symmetrical, this feature needs to be disabled (i.e. elevated roads, Industries DLC roads, certain custom roads, other network types)
  • Export NetInfo XML – Exports an XML file containing configurable properties of the network. Only works with the "Export All" option. Enable if using VictoriaCity’s (upcoming) RoadImporter mod
  • Skip Default Textures – Skips exporting texture files that are the same as the default texture, enabled on default
  • Dump with LOD PNGs – Dumps meshes and generate lod pngs at the same time
  • Custom File Prefix – Dump the mesh with a custom filename
  • Remove Added Suffixes – Removes the added descriptors at the end of dumped file names such as ("Elevated" or "_mesh2 Tunnel _node")
      Caution: Each new export regardless of elevation/mesh type will overwrite the previous file with the same name.

Mesh Resizing

  • View Mesh Points
      View all the points of the mesh at the front end cross section (z=+32)
  • Point Replacer – enter the existing position (value in the Pos table in the Mesh Points Window) and the new position. Works the best with ground level roads. With elevated roads edges have many points making the tool less useful
      All of the (x) points that match the existing position in the main mesh and in the lod are replaced with the new value entered.

    (From left to right) Resets entered values | Changes entering mode | Add Row | Delete Row

Road Extras

  • Dumped items here need to be reimported separately before use on a road
  • Dump Pillars
      Dumps all pillar buildings in the network from all found elevations
  • Dump Arrow Props
      Dumps all lane arrow decals used in the road

Bulk Exporting

  • Dump All in Mesh Type
      Dumps all available mesh #’s for given selection
  • Dump All in Elevation
      Dumps all segment and node meshes for selected elevation
  • Dump All
      Dumps all meshes contained in the network across all elevations
  • Dump Selected – standard export – called ”Dump Network” when panel is closed

FAQ

Q: When reimporting a dumped road the texture is completely mismatched with the road
A: Try unchecking the Flip Textures Option under Export Customization

Q: ModTools can dump networks as well, why would I use this?
A: This mod has some extra features, mainly file customization on export and mesh resizing

Q: I got an error/something is not working
A: Post the error message and the steps leading up to the problem as a workshop comment or issue on GitHub

Q: Point Replacer/View Mesh Points is not working!
A: This part of the mod requires the right sequence of events for it to work, namely pressing "View Mesh Points" button first and then entering the new position values. It’s currently a bit buggy in general, though fixing it would require a rewrite of that part of the mod.

Q: Elevated parts of networks from the workshop are not dumping!
A: Instead of opening workshop roads with "New", use "Load" from the main menu

Q: The slope elevation is not dumping!
A: Try dumping the second mesh since the first item is meshless

Acknowledgements

Thanks to boformer for the modding tutorials [community.simtropolis.com] on Simtropolis, Elektrix for answering several questions I had during development and the many mod authors on the workshop that have open-sourced their mods on GitHub.

Source Code [github.com]

If you like this be sure to leave an upvote! Thanks

Download
Revisions:

Old revisions of this mod are available below. Click the link to download.