Jump to content
IGNORED

Loading basic program from the internet


martijnv

Recommended Posts

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?

Link to comment
Share on other sites

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 by _The Doctor__
Link to comment
Share on other sites

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 by _The Doctor__
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 by DjayBee
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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 by _The Doctor__
  • Like 3
Link to comment
Share on other sites

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 ?)

Link to comment
Share on other sites

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. :)

IMG_2338.jpeg

Edited by martijnv
Added extra LF comment
  • Like 5
Link to comment
Share on other sites

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. :)

IMG_2338.jpeg

Excellent! If your web server supports PUT, then SAVE and LIST"N: commands also work. :)

 

-Thom

  • Like 3
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...