Skip to content

Cgameworld/NetworkDumpTools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Network Dump Tools

GitHub issues

Main Panel

Files this tool dumps:

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

Use:

  1. Open up the road editor and select a road to edit
  2. Select the Elevation (Basic, Elevated, etc), Mesh Type (Segment, Node) and Mesh Number (The index number of the mesh)
  3. Press the Dump Button
  4. If successful, the road files are dumped in the Cities_Skylines\Addons\Import folder
  5. Generate LOD images anytime afterwards by clicking "Make _lod.png Files" - this allows the lod images to be generated after editing the main textures

Options:

-Main Panel--

  1. Net Elevation - Select the elevation to dump (Basic, Elevated, etc)
  2. Mesh Type - Select the mesh type (Segment, Node)
  3. 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")
  4. 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
  5. 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-

  1. Only export the specific files you need - Filters are available to export the meshes only or the diffuse texture only

  2. Flip Textures - Flip Textures horizontally after exporting

    The default setting is true for the "Basic" elevation but false for the other elvations. 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)

  3. Custom File Prefix - Dump the mesh with a custom filename

  4. 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-

  1. View Mesh Points - View all the points of the mesh at the front end cross section (z=+32)
  2. Point Replacer - enter the existing position (value in the Pos table in the Mesh Points Window) and the new position. All of the (x) points that match the existing postion in the main mesh and in the lod are replaced with the new value entered.
  3. (From left to right) Resets entered values | Changes entering mode | Add Row | Delete Row

Changelog:

v1.1(WIP) -Added Road Extras section --Dump Pillars (supports monorail pylons too) --Dump Arrow Props -Added Bulk Exporting section

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 alls elevations
-Import Folder Shortcut now works cross platfrom -Fixed in-game loading problem -Fixed inaccurate output log when exporting meshes only

v1.0 Intial Release

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 an issue

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 postion 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

Contributions are encouraged