Command of the Week - Convert File (Week 31)

Index

  1. List (Basic)
  2. Symbols Along (Intermediate)
  3. Fractalise (Intermediate)
  4. Edit Text (Basic)
  5. Link with Map/File (Intermediate)
  6. Offset (Intermediate)
  7. Measuring Tools (Basic)
  8. Change like draw tool (Basic)
  9. Modifiers (Intermediate)
  10. File Paths (Intermediate)
  11. Complex Shapes [Combine Path] (Intermediate)
  12. Complex Shapes [Multipoly] (Intermediate)
  13. Break (Intermediate)
  14. Map Notes (Basic)
  15. Coordinates (Intermediate)
  16. Macros (Advanced)
  17. Search Files for Text (Basic)
  18. Text Justification (Basic)
  19. Mirrored Polygons (Intermediate)
  20. Managing Drawing Tools (Intermediate)
  21. Named Views (Basic)
  22. Symbol Lookup Sheets (Intermediate)
  23. Symbol Catalog Settings (Advanced)
  24. Symbol Catalog Filters (Advanced)
  25. Symbol Control Points (Advanced)
  26. Define Symbol (Intermediate)
  27. Curves (Basic)
  28. Selections (Intermediate)
  29. Sort Symbols in Map (Basic)
  30. Extract Properties (Basic)
  31. Convert File (Basic)
  32. Get Extents (Advanced)
  33. Quick Move (Basic)
  34. Menu Editing (Advanced)
  35. Trace (Basic)
  36. Array Copy (Intermediate)
  37. Explode (Basic)
  38. Clipboard Copy (Basic)
  39. Rename & Reorder (Intermediate)
  40. Drawtools Edit (Basic)
  41. Trims (Basic)
  42. Symbol Attributes (Intermediate)
  43. Fill Style Selection Mask (Basic)
  44. Browse Files (Basic)
  45. Node Editing (Intermediate)
  46. Automatic Sheet Selection (Basic)
  47. Scale (Basic)
  48. Text along a Curve (Basic)
  49. Shaded Polygons (Intermediate)
  50. Fill with Symbols (Intermediate)
  51. Global Sun (Basic)
  52. Symbols in Area (Intermediate)
CC3+ contains a huge amount of various commands and features. This series highlights a number of these. There won't be any special progression to this series, and the command will be selected from the entire range, from the simple basic commands, to more advanced features intended for the more advanced users. Feel free to use this topic to discuss the command presented.
This series is called the command of the week, but it could also explain a feature. The explanations will tend to explain the technical parts of the command, and is intended to highlight the basics (and complexities) of the command, and information about how to use it, but won't be a detailed tutorial. It is up to you to use it creatively in your maps.

Week 31 - Convert File

While files in CC3 format works fine in CC3+ too, there are some differences that causes them to not perform optimal, and that is the path names to the resources. CC3 used to keep all raster resources in the CC3 installation folder, which we usually refer to by the # symbol. In CC3+, everything is in the data directory instead, which we use @ to refer to, while # still refers to the installation directory. CC3+ has a fallback, so if it doesn't find the file it is looking for in the Installation (#) directory, it looks in the data directory (@) instead. However, this fallback doesn't work with the multi-resolution system CC3(+) employs, meaning that CC3+ will load these resources in one resolution only, which usually means that CC3+ will only load the highest resolution resources, hurting performance, or only the lowest level resources, causing a very low-quality look. For this reason, it is best to convert the map to CC3+ format.
The Convert File command also take care of converting absolute paths to relative ones where possible, which is also quite helpful.
Warning: Files converted to CC3+ format this way will not work in CC3 afterwards, as CC3 doesn't understand the @ reference, so don't convert old files you still want to use in CC3.
New files created in CC3+ doesn't normally need conversion, but some bugs in older unpatched symbol catalogs may have led to CC3+ maps with #-references, so sometimes it is helpful to run on existing CC3+ maps too.
For more about absolute and relative paths, and the #, @ and $ references, check the 'File Paths' command of the week entry.

Where to find it?

Command Line: CURFILECONVERT (Alias: FFIX)

How to use it?

Simply open up the map to convert, and type the command on the command line. This will bring up a window with a list of all the file paths that were converted in the map. This includes paths to symbol images, paths to bitmap fills and paths in hotspots and map notes. It converts all #-references to @-references, and changes absolute paths to relative paths, using @ and $, whatever is appropriate.

Related commands

You can also convert multiple files with the MULTIFILECONVERT (MFFIX) command. This command converts all the maps in a specified directory, including subdirectories.

Also, if you have old CC2 maps, these won't benefit much from this command, instead, use CC2 to CC3 conversion (LYRTOSHTD) in the File menu for this task. This moves entities to appropriate sheets based on their Layer and does most of the grunt work of bringing the old CC2 map into CC3+ state. Note that this doesn't update the style of the map, it will still be in the CC2 Pro vector style. The intent of the command is primarily to set up sheets correctly and place the entities on these sheets, enabling you to use effects and such in the map.

Missing resources

It is worth noting that this command doesn't magically find missing resources. If you have red X'es in your map before running this command, they will still be there afterwards.
Sign In or Register to comment.