News:

Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.

Quickie program for adding loading_time to dat files

Started by skreyola, December 13, 2009, 08:34:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

skreyola

Here's a quick program that will read dat files, add an appropriate loading time for the number of cargo units, and output the modified version to stdout (for piping to an alternate file).
Here are the values I used for the loading times. Feel free to modify this as you wish. I give my permission for anyone to modify and redistribute it as they desire. It can be added to whatever addon site you like, but it is, of course, to be considered alpha software; I'm not responsible if it makes your computer, toaster, etc., explode or whatever.
'a': aircraft       (6000/50)
's': ships          (4000/50)
'p': passengers regardless of waytype (2500/50)
't': trains/trams (2000/50)
'm': monorail/mlm (1500/50)
'r': road transport (1000/50)
Discuss these values among yourselves.
Attached: program compiled for Linux 32-bit (zipped)
Attached: program c++ source code
--Skreyola
You can also help translate for your language with SimuTranslator.