martijnv Posted November 18, 2021 Share Posted November 18, 2021 Hi all, I've placed a basic file on github here: https://raw.githubusercontent.com/mveken/Atari-Basic/main/http.bas When I try to load this with the N: device in basic: RUN"N:https://raw.githubusercontent.com/mveken/Atari-Basic/main/http.bas" I get an error: ERROR- 21,NOT SAVE FILE I hoped this would work based on this video: Anybody any clue what is going wrong? Quote Link to comment Share on other sites More sharing options...
_The Doctor__ Posted November 18, 2021 Share Posted November 18, 2021 (edited) This depends on whether the file is stored as listed basic and should have an .LST extender or as stored as tokenized basic and was saved with a .BAS extender... you should try to store it both ways and see which one works. These quick videos never seem to explain what REALLY is being used or done to create such files and if they were saved or listed, so it's left to the end user to experiment and figure it out. I think your program is not tokenized so it must be loaded using ENTER command, if you want you can then SAVE it... and then it should work in the way you wish. Edited November 18, 2021 by _The Doctor__ Quote Link to comment Share on other sites More sharing options...
martijnv Posted November 18, 2021 Author Share Posted November 18, 2021 I copied the basic program on the internet and just saved it as plain text, but I guess that doesn't work. It's not working with ENTER either. I'll try some more tomorrow. Quote Link to comment Share on other sites More sharing options...
_The Doctor__ Posted November 18, 2021 Share Posted November 18, 2021 ah, then you might also need to translate end of line chars, you know.. line feed, return. etc... I think the fujinet can do that on the fly, and there are a number of utilities to do that for you as well Quote Link to comment Share on other sites More sharing options...
tschak909 Posted November 18, 2021 Share Posted November 18, 2021 Going to the link shows a 404. -Thom Quote Link to comment Share on other sites More sharing options...
tschak909 Posted November 18, 2021 Share Posted November 18, 2021 as a tip. please keep a debug monitor window open when debugging code that uses N:. it will feed you a lot of useful info. You can use the fujinet flasher to do this. -Thom Quote Link to comment Share on other sites More sharing options...
_The Doctor__ Posted November 19, 2021 Share Posted November 19, 2021 (edited) 1 hour ago, tschak909 said: Going to the link shows a 404. -Thom it showed the program 2 and a half hours ago... so it was there then but is not now, it was a plain text listing. I'd say he could have cut and pasted it into altira then saved it... copied the file to where he wanted it and used the N: device to load it. Edited November 19, 2021 by _The Doctor__ Quote Link to comment Share on other sites More sharing options...
tschak909 Posted November 19, 2021 Share Posted November 19, 2021 ENTER can be used for that. In order for it to work, you may have to use the set translation XIO to set the appropriate line endings. -Thom Quote Link to comment Share on other sites More sharing options...
martijnv Posted November 19, 2021 Author Share Posted November 19, 2021 8 hours ago, tschak909 said: Going to the link shows a 404. -Thom Sorry, I renamed the file to see if that would work: https://raw.githubusercontent.com/mveken/Atari-Basic/main/HTTP.LST Thanks for all the tips guys, I will try to see if I can figure it out! Quote Link to comment Share on other sites More sharing options...
+DjayBee Posted November 19, 2021 Share Posted November 19, 2021 It's not about the name but the format of the file. Try the following ... ENTER"N:https://raw.githubusercontent.com/mveken/Atari-Basic/main/HTTP.LST" RUN ... in the hope that the text file is in Atari format (EOL = $9B) instead of Linux or Windows format (EOL=$0D or =$0C$0D). If it is not then please change its format beforehand. Quote Link to comment Share on other sites More sharing options...
martijnv Posted November 19, 2021 Author Share Posted November 19, 2021 4 hours ago, DjayBee said: ... in the hope that the text file is in Atari format (EOL = $9B) instead of Linux or Windows format (EOL=$0D or =$0C$0D). Yes, I think that will be at least part of the issue. Think here maybe a solution: https://www.patreon.com/posts/fujinet-eol-in-n-36121369 but I have to figure out how to that in basic. Quote Link to comment Share on other sites More sharing options...
+DjayBee Posted November 19, 2021 Share Posted November 19, 2021 (edited) 13 hours ago, _The Doctor__ said: I'd say he could have cut and pasted it into altira then saved it... copied the file to where he wanted it and used the N: device to load it. This would be a solution for the EOL problem. You really can copy/paste to Altirra's window (running BASIC). Then save the file to a disk image and call Altirra's disk explorer to extract the saved file back to your PC. Edited November 19, 2021 by DjayBee Quote Link to comment Share on other sites More sharing options...
tschak909 Posted November 19, 2021 Share Posted November 19, 2021 GUYS! GOD DAMN IT! YOU CAN TELL FUJINET TO DO THIS ON THE FLY! https://github.com/FujiNetWIFI/fujinet-platformio/wiki/N%3A-SIO-Command-'T'---Set-Translation This can be done either with the NTRANS command from fnc-tools, or by issuing the following command in BASIC: XIO ASC('T'),#1,0,3,"N:":REM CR/LF XIO ASC('T'),#1,0,0,"N:":REM ATARI -Thom Quote Link to comment Share on other sites More sharing options...
+DjayBee Posted November 19, 2021 Share Posted November 19, 2021 This is way too fancy for an old man like me. ? Quote Link to comment Share on other sites More sharing options...
martijnv Posted November 19, 2021 Author Share Posted November 19, 2021 38 minutes ago, tschak909 said: GUYS! GOD DAMN IT! YOU CAN TELL FUJINET TO DO THIS ON THE FLY! https://github.com/FujiNetWIFI/fujinet-platformio/wiki/N%3A-SIO-Command-'T'---Set-Translation This can be done either with the NTRANS command from fnc-tools, or by issuing the following command in BASIC: XIO ASC('T'),#1,0,3,"N:":REM CR/LF XIO ASC('T'),#1,0,0,"N:":REM ATARI -Thom Yes, that's really awesome! Will try this tonight, thanks Thom! Quote Link to comment Share on other sites More sharing options...
_The Doctor__ Posted November 19, 2021 Share Posted November 19, 2021 (edited) I mentioned the FujiNet could possibly do it on the fly in post what, #4? Most people don't know the nuts and bolts of all things fujinet like the folks who coded it, so why the swearing? A multitude of solutions are presented so the end use can choose what he wants to do... and even if he used another device, he could still get the job done. That's a good thing! I suite of plain English on the Atari menu driven tools will surely come along over time so be happy. On a side note. I am surprised that it's moving to other platforms before all the issues are resolved... maybe the hope is other platform users will fix the stuff up and then it will be backported for the Atari. Edited November 19, 2021 by _The Doctor__ 3 Quote Link to comment Share on other sites More sharing options...
tschak909 Posted November 19, 2021 Share Posted November 19, 2021 (edited) deleted. Do not want to rail-road a topic. Apologies. Edited November 19, 2021 by tschak909 Quote Link to comment Share on other sites More sharing options...
tschak909 Posted November 19, 2021 Share Posted November 19, 2021 (edited) deleted. Do not want to rail-road a topic. apologies. Edited November 19, 2021 by tschak909 Quote Link to comment Share on other sites More sharing options...
martijnv Posted November 19, 2021 Author Share Posted November 19, 2021 I appreciate all the help from everybody. I read the capitals as a humorous cry-out, so no offense there. And it's amazing to see the amount of functionality in the Fujinet, I also really appreciate the amount of time that has been put in there by the people behind it. Unfortunately I had to work till late today, so I did not yet have time to try to see if the XIO command solves it. But it's the first thing tomorrow (after breakfast ?) Quote Link to comment Share on other sites More sharing options...
martijnv Posted November 20, 2021 Author Share Posted November 20, 2021 (edited) Yes, I've got it working, this is really cool. The XIO command did the trick. I've created the file on my Mac so I needed the LF conversion. The get it to work smoothly it needs a blank line at the end of the program. So now next I will try this: https://marketplace.visualstudio.com/items?itemName=chunkypixel.atari-dev-studio Write Atari Basic code in Visual Studio Code push it to Github and run straight on the Atari. Edited November 20, 2021 by martijnv Added extra LF comment 5 Quote Link to comment Share on other sites More sharing options...
tschak909 Posted November 20, 2021 Share Posted November 20, 2021 6 hours ago, martijnv said: Yes, I've got it working, this is really cool. The XIO command did the trick. I've created the file on my Mac so I needed the LF conversion. The get it to work smoothly it needs a blank line at the end of the program. So now next I will try this: https://marketplace.visualstudio.com/items?itemName=chunkypixel.atari-dev-studio Write Atari Basic code in Visual Studio Code push it to Github and run straight on the Atari. Excellent! If your web server supports PUT, then SAVE and LIST"N: commands also work. -Thom 3 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.