Page 4 of 5

Re: Christmas Fun

Posted: Wed Dec 28, 2022 7:13 pm
by Cristian
The code seems corrupted. Also in real QL, Qemulator, JM, Minerva... What am I doing wrong?
claus.gif

Re: Christmas Fun

Posted: Wed Dec 28, 2022 7:36 pm
by Andrew
Cristian wrote: Wed Dec 28, 2022 7:13 pm The code seems corrupted. Also in real QL, Qemulator, JM, Minerva... What am I doing wrong?claus.gif
You probably saved it on a DOS drive and edited it with an editor that saved it as a DOS file, with lines ending with CR LF (or maybe Macintosh - CR)
QDOS code is like unix code, each line should end only with LF
Because of that CR at the end of each line QDOS marks all lines as MISTake

Load the code in Notepad++ and from the bottom bar set it as Unix(LF) and save it.

Re: Christmas Fun

Posted: Wed Dec 28, 2022 7:46 pm
by Cristian
No I didn't. I opened the downloaded .zip file directly with Qemulator (I've always used this method for zipped files with success)

Re: Christmas Fun

Posted: Wed Dec 28, 2022 8:04 pm
by Andrew
Cristian wrote: Wed Dec 28, 2022 7:46 pm No I didn't. I opened the downloaded .zip file directly with Qemulator
That is strange - I created the zip file on QL, not in Windows
I checked now the last zip that I loaded - all lines end with 0A (LF)

Re: Christmas Fun

Posted: Wed Dec 28, 2022 8:10 pm
by Andrew
Mystery solved: you probaly downloaded the file Santa2.zip. That was not uploaded by me. That is the version that was edited and modified by bwinkel67.
And in that zip file the code was saved as a DOS file, each line ending with 0D 0A (CR LF)
Download the last Santa.zip version uploaded by me, in page 2 of this thread

Re: Christmas Fun

Posted: Wed Dec 28, 2022 8:16 pm
by Cristian
Thank you very Much Andrew.
So, a friendly "slap on the wrist" to bwinkel67 :)

Re: Christmas Fun

Posted: Wed Dec 28, 2022 8:27 pm
by Andrew
We all did that more than once :D And the fix is easy: just load the code in Notepad++, set it as Unix(LF) and save it again

Re: Christmas Fun

Posted: Thu Dec 29, 2022 8:58 am
by Derek_Stewart
Hi,

A silly question, why not write the basic programs in the QL emulator as Toolkit 2 ED is a really good screen editor?

Re: Christmas Fun

Posted: Thu Dec 29, 2022 9:05 am
by tofro
Derek_Stewart wrote: Thu Dec 29, 2022 8:58 am Hi,

A silly question, why not write the basic programs in the QL emulator as Toolkit 2 ED is a really good screen editor?
A simple answer, because ED can't convert CR/LF line endings to LF, which was the point of Andrew's proposal.

Re: Christmas Fun

Posted: Thu Dec 29, 2022 9:10 am
by Derek_Stewart
tofro wrote: Thu Dec 29, 2022 9:05 am
Derek_Stewart wrote: Thu Dec 29, 2022 8:58 am Hi,

A silly question, why not write the basic programs in the QL emulator as Toolkit 2 ED is a really good screen editor?
A simple answer, because ED can't convert CR/LF line endings to LF, which was the point of Andrew's proposal.
OK, good pint well made...

But if the program was written in the emulator and saved in a QL environment, this problem would not occurr.