News:

Do you need help?
Simutrans Wiki Manual can help you to play and extend Simutrans. In 9 languages.

DAT to CSV convertor

Started by Vladki, April 26, 2020, 09:49:36 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Vladki

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

prissi

I have updated the script to generate real csv with a freight entry as well.