Parser anomaly - bug or encoding glitch?
Moderators: winston, another_commander, Getafix
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
Re: Parser anomaly - bug or encoding glitch?
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.
- Reval
- ---- 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?
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.
- Reval
- ---- 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?
Well, I've never, as I recall, _ever_ seen any other encoding mentioned but Windows/DOS Ansi. It's a puzzle, all right.another_commander wrote: ↑Thu Nov 05, 2020 1:44 pmOK, 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.
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
- Reval
- ---- 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?
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.
../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.
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
Re: Parser anomaly - bug or encoding glitch?
I see this at the rightmost part of my N++ status bar:
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.
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.
- Reval
- ---- 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?
Ah right. No I don't see CR/LF in my version of n++ (version 5.9.. Just the Windows/DOS.
5.9.8 (why is PHPBB putting an emoticon in place of 'eight'???
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.
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
Re: Parser anomaly - bug or encoding glitch?
Do you have an "EOL Conversion" menu item under the Edit menu? That's another way to select the new line feed type.
- Reval
- ---- 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?
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.
- Reval
- ---- 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?
Yes, and 'Windows Format' is greyed, leaving mac and linux to choose from.another_commander wrote: ↑Thu Nov 05, 2020 2:04 pmDo you have an "EOL Conversion" menu item under the Edit menu? That's another way to select the new line feed type.
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
- Reval
- ---- 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?
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.
- Reval
- ---- 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?
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++.
(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.
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
Re: Parser anomaly - bug or encoding glitch?
No, this actually means that your files are already with Windows CR/LF EOL types, so you are good.
- Reval
- ---- 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?
Except that with all my originals (comments excised) the same situation applies in n++another_commander wrote: ↑Thu Nov 05, 2020 2:42 pmNo, this actually means that your files are already with Windows CR/LF EOL types, so you are good.
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
Re: Parser anomaly - bug or encoding glitch?
Well, damn. Best if you upgrade Notepad++.
- Reval
- ---- 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?
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.
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.