News:

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

Script for automatically cleaning up the ends of .dat files

Started by neroden, April 28, 2023, 05:43:29 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

neroden

This relates to two things:
-- the old issue where Simutranslator expects .dat files to *end* in a row of dashes (a terminator, not just a separator)
-- files which don't have a terminating newline, which can cause trouble in various tools.

I added a script (fix-dat-endings.sh) to deal with all of this, and then I ran it.

Pull request at:

https://github.com/jamespetts/simutrans-pak128.britain/pull/147

jamespetts

Quote from: neroden on April 28, 2023, 05:43:29 PMThis relates to two things:
-- the old issue where Simutranslator expects .dat files to *end* in a row of dashes (a terminator, not just a separator)
-- files which don't have a terminating newline, which can cause trouble in various tools.

I added a script (fix-dat-endings.sh) to deal with all of this, and then I ran it.

Pull request at:

https://github.com/jamespetts/simutrans-pak128.britain/pull/147
Thank you for this. Can I check whether this merges with the ex-15 branch without errors?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

neroden

Is there an ex-15 branch for pak128-britain?  Huh.  OK...

One trivial merge conflict, fixed and merged. The ex-15 version is now on the dat-terminators-merge-to-ex-15 branch.

jamespetts

Quote from: neroden on May 06, 2023, 11:46:33 AMIs there an ex-15 branch for pak128-britain?  Huh.  OK...

One trivial merge conflict, fixed and merged. The ex-15 version is now on the dat-terminators-merge-to-ex-15 branch.
Thank you - now merged.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.