The International Simutrans Forum

 

Author Topic: DAT to CSV convertor  (Read 391 times)

0 Members and 1 Guest are viewing this topic.

Offline Vladki

  • Devotee
  • *
  • Posts: 3241
    • My addons, mostly roadsigns, pak128.cs
  • Languages: EN, CS
DAT to CSV convertor
« on: April 26, 2020, 09:49:36 PM »
This small awk script will parse dat files and write "space separated values" to standard output. You can then import that to your favorite spreadsheet program for further investigation. It is easier to overview, compare and balance the pakset then. It does not parse all options, but should be quite easy to add whatever you find important. Don't forget to specify space as separator when importing and decimal separator to be dot (i.e. english locales).

usage - linux command line:
Code: [Select]
awk -f dat2csv.txt simutrans-pak128.britain/trams/*.dat > trams.csv