Cities: Skylines

Cities: Skylines

221 ratings
Network Dump Tools
   
Award
Favorite
Favorited
Unfavorite
Mod
File Size
Posted
Updated
134.656 KB
25 Aug, 2019 @ 9:42pm
30 Sep, 2023 @ 10:08pm
5 Change Notes ( view )

Subscribe to download
Network Dump Tools

In 1 collection by Cgameworld
Cgameworld's Mods
7 items
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_Skylines\Addons\Import 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
Popular Discussions View All (9)
4
30 Mar, 2022 @ 9:07pm
NullReferenceException
Elesbaan
3
30 Sep, 2023 @ 10:16pm
Can't dump any kind of wire
Goose
1
1 Jun, 2021 @ 1:25pm
[BUG] Dumping Basic Mesh LOD created a 50 bytes (not kilobytes) file
shadowoner00013
95 Comments
Pineapple Brain 10 Aug, 2024 @ 8:19pm 
Unfortunately, this tool cannot dump speculars and normals apparently, so roads no longer shine, and don't have depth even reimport immediately.
It's still a good tool tho, for easy road extraction.
Appreciate your effort but I would extract items w modtools and open import folder w this tool :steamhappy:
Chamëleon TBN 2 Oct, 2023 @ 9:27am 
Wow! Thanks for the update!
Cgameworld  [author] 30 Sep, 2023 @ 10:16pm 
v.1.3 Update Released!

- Added new "Sort" and "Hide/Show Duplicate Points" buttons in the mesh points window
- Fixed error when dumping loaded networks
- Fixed error when dumping textureless networks
- Removed "TempInstance" prefix from dumped filenames
Covalence 24 Jun, 2023 @ 5:37pm 
Can confirm it's broken, it says it can't find the mesh when you try to dump it.
Señor Mustacho 25 Mar, 2023 @ 3:23am 
Seems to be broken after recent game update.
JP 6 Jan, 2023 @ 2:56am 
Still working well. Don't forget to set the scale to 100 on import!
Evil Dave of Canada 29 May, 2022 @ 4:26pm 
@Graf The person to ask that question to is Cylis. He created all the stand alone assets allowing people to no longer having to subscriber to Nextwork Extensions 2.
Graf 28 May, 2022 @ 4:54pm 
Is there a way to quickly copy props and lane values etc between normal, elevated, tunnel, and bridge in the normal road editor settings? I just simply want the same thing at all levels without copying everything over and over.
djbon2112 14 Apr, 2022 @ 11:42pm 
Also getting the same error as SanditeSpartan117 when trying to dump an existing custom road (though not that one).
SanditeSpartan117 27 Mar, 2022 @ 10:37pm 
I tried dumping the file of a workshop asset (BIG Urban Road) to create some bicycle lanes and I got this error saying it couldn't dump.
System.NullReferenceException: Object reference not set to an instance of an object
at RoadDumpTools.DumpProcessing.FindMesh (System.String networkName_init) [0x00000] in <filename unknown>:0
at RoadDumpTools.DumpProcessing.DumpNetworks (Boolean endPopup) [0x00000] in <filename unknown>:0