Parser anomaly - bug or encoding glitch?

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6682
Joined: Wed Feb 28, 2007 7:54 am

Re: Parser anomaly - bug or encoding glitch?

Post by another_commander »

OK, then whenever you see Macintosh (CR) or any other type of encoding with (CR) only, make sure to flip it to Windows (CR LF) by right clicking in that area in Notepad++ and selecting that newline feed type.
User avatar
Reval
---- E L I T E ----
---- E L I T E ----
Posts: 402
Joined: Thu Oct 29, 2020 3:14 am
Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.

Re: Parser anomaly - bug or encoding glitch?

Post by Reval »

Oh but wait - it just hit me: no mention in the log of FE Ships being loaded... and that's where your amended overrides file is. I guess I'll have to start a Jameson to check if the Station environs contain any ships with the 'FE' suffix...
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
User avatar
Reval
---- E L I T E ----
---- E L I T E ----
Posts: 402
Joined: Thu Oct 29, 2020 3:14 am
Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.

Re: Parser anomaly - bug or encoding glitch?

Post by Reval »

another_commander wrote: Thu Nov 05, 2020 1:44 pm
OK, then whenever you see Macintosh (CR) or any other type of encoding with (CR) only, make sure to flip it to Windows (CR LF) by right clicking in that area in Notepad++ and selecting that newline feed type.
Well, I've never, as I recall, _ever_ seen any other encoding mentioned but Windows/DOS Ansi. It's a puzzle, all right.
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
User avatar
Reval
---- E L I T E ----
---- E L I T E ----
Posts: 402
Joined: Thu Oct 29, 2020 3:14 am
Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.

Re: Parser anomaly - bug or encoding glitch?

Post by Reval »

Sorry, sorry... pulled an all-niter on this one...

../AddOns/FE_Ships.oxp
../AddOns/FE_Ships_Player.oxp
08:21:56.234 [shipData.load.begin]: Loading ship data.
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6682
Joined: Wed Feb 28, 2007 7:54 am

Re: Parser anomaly - bug or encoding glitch?

Post by another_commander »

I see this at the rightmost part of my N++ status bar:

Image

That Windows (CR/LF) is what you want to see for any file you are editing for Oolite on Windows, at least on WinXP. On my Win10 your original "faulty" file worked just fine.
User avatar
Reval
---- E L I T E ----
---- E L I T E ----
Posts: 402
Joined: Thu Oct 29, 2020 3:14 am
Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.

Re: Parser anomaly - bug or encoding glitch?

Post by Reval »

Ah right. No I don't see CR/LF in my version of n++ (version 5.9.8). Just the Windows/DOS.

5.9.8 (why is PHPBB putting an emoticon in place of 'eight'???
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6682
Joined: Wed Feb 28, 2007 7:54 am

Re: Parser anomaly - bug or encoding glitch?

Post by another_commander »

Do you have an "EOL Conversion" menu item under the Edit menu? That's another way to select the new line feed type.
User avatar
Reval
---- E L I T E ----
---- E L I T E ----
Posts: 402
Joined: Thu Oct 29, 2020 3:14 am
Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.

Re: Parser anomaly - bug or encoding glitch?

Post by Reval »

If the worst comes to the worst, I can live with 'no comments' anyway: TAB renders the blocks pretty clear (at least for my modest purposes here).
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
User avatar
Reval
---- E L I T E ----
---- E L I T E ----
Posts: 402
Joined: Thu Oct 29, 2020 3:14 am
Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.

Re: Parser anomaly - bug or encoding glitch?

Post by Reval »

another_commander wrote: Thu Nov 05, 2020 2:04 pm
Do you have an "EOL Conversion" menu item under the Edit menu? That's another way to select the new line feed type.
Yes, and 'Windows Format' is greyed, leaving mac and linux to choose from.
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
User avatar
Reval
---- E L I T E ----
---- E L I T E ----
Posts: 402
Joined: Thu Oct 29, 2020 3:14 am
Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.

Re: Parser anomaly - bug or encoding glitch?

Post by Reval »

Anyway, great tip, another_commander :) One lives and learns... Thanks so much for all your help.
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
User avatar
Reval
---- E L I T E ----
---- E L I T E ----
Posts: 402
Joined: Thu Oct 29, 2020 3:14 am
Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.

Re: Parser anomaly - bug or encoding glitch?

Post by Reval »

Just a footnote: On all my other .plists (ie. my originals) the same Edit menu condition applies - Windows greyed (presumably selected?), leaving just linux and mac to choose from. I guess this is bad, right?

(I think I need to upgrade n++)

Edit: But, as I mentioned, same applies on our Win7 lappy - and that has the 64-bit (presumably new) version of n++.
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6682
Joined: Wed Feb 28, 2007 7:54 am

Re: Parser anomaly - bug or encoding glitch?

Post by another_commander »

No, this actually means that your files are already with Windows CR/LF EOL types, so you are good.
User avatar
Reval
---- E L I T E ----
---- E L I T E ----
Posts: 402
Joined: Thu Oct 29, 2020 3:14 am
Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.

Re: Parser anomaly - bug or encoding glitch?

Post by Reval »

another_commander wrote: Thu Nov 05, 2020 2:42 pm
No, this actually means that your files are already with Windows CR/LF EOL types, so you are good.
Except that with all my originals (comments excised) the same situation applies in n++ :?
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 6682
Joined: Wed Feb 28, 2007 7:54 am

Re: Parser anomaly - bug or encoding glitch?

Post by another_commander »

Well, damn. Best if you upgrade Notepad++.
User avatar
Reval
---- E L I T E ----
---- E L I T E ----
Posts: 402
Joined: Thu Oct 29, 2020 3:14 am
Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.

Re: Parser anomaly - bug or encoding glitch?

Post by Reval »

Yep. I'll give that a go. The fact that the menu entry is greyed, not ticked, seems a little ominous, no?

But there remains the indisputable fact that latest version on Win7 threw out the same error, when I tried to make a ship there.
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
Post Reply