Eric Walch wrote:Very weird. A few weeks ago I changed quite a bit in the structure of this script and re-uploaded it as version 1.2.2 . The version you now have. This version should now even work well in combination with the ones you mention. Both my syntax checkers said it was a valid plist and I even played the mission twice before uploading.
I am on a mac. It would be interesting if other window users have a similar problems with this file. Never had it before but the "script.plist" could contain a hidden character that only affects windows and not mac?
You have C++-style comments in that file. You have Mac-specific line endings, i.e. CR as opposed to CRLF or LF. Evidently, GNUstep on Windows isn't coping with this.
Here, nano recognises the line ending type correctly, but joe doesn't; it thinks that the file's content is a single, 19K-long line. (I've not checked other text editors.)
The following incantation¹, uttered in the presence of GNU grep and findutils, will fix the problem (so long as MacOS handles plain LF line endings without problems, which AFAIK is indeed the case):
Code: Select all
grep -PlrIZ '\r(?!\n|$)' AddOns | xargs -0r sed -i -e 's/\r/\n/g'
Various files here show Mac line endings, though in some cases not exclusively so. (Those which contain XML are fine, but should really be fixed anyway.)
Executive Spaceways v2.2.oxp/Models/strelka.dat
Executive Spaceways v2.2.oxp/Models/trident.dat
Executive Spaceways v2.2.oxp/Models/gemini.dat
RandomHits275.oxp/AIs/randomhitsshieldnodeAI.plist
Saleza v2.oxp/Models/bellatrixturret.dat
Saleza v2.oxp/Models/bellatrix.dat
Saleza v2.oxp/Config/shipyard.plist
caduceus.oxp/Config/shipdata.plist
ionics-1.2.2.oxp/Config/script.plist
hammer.oxp/Config/shipdata.plist
hammer.oxp/Config/shipyard.plist
thargoid_wars 4.3.oxp/Config/missiontext.plist
¹ Candles, chalk markings, specialised clothing and sacrifices are not required. This is not a hardware problem.