The International Simutrans Forum

Simutrans Extended => Simutrans-Extended paksets => Pak128.Britain-Ex => Topic started by: neroden on April 28, 2023, 05:43:29 PM

Title: Script for automatically cleaning up the ends of .dat files
Post by: neroden on April 28, 2023, 05:43:29 PM
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
Title: Re: Script for automatically cleaning up the ends of .dat files
Post by: jamespetts on May 05, 2023, 11:03:12 PM
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?
Title: Re: Script for automatically cleaning up the ends of .dat files
Post by: neroden on May 06, 2023, 11:46:33 AM
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.
Title: Re: Script for automatically cleaning up the ends of .dat files
Post by: jamespetts on May 08, 2023, 11:13:22 AM
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.