The International Simutrans Forum

PakSets and Customization => General Resources and Tools => Tools => Topic started by: Vladki on April 26, 2020, 09:49:36 PM

Title: DAT to CSV convertor
Post by: Vladki 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:

awk -f dat2csv.txt simutrans-pak128.britain/trams/*.dat > trams.csv
Title: Re: DAT to CSV convertor
Post by: prissi on April 07, 2024, 02:00:44 PM
I have updated the script to generate real csv with a freight entry as well.