Switch to full style
Do you have a BASIC! program that you would like to share? Post it the the FTP server and tell us about it here.
Post a reply

Shared Program Instructions (8/3/12)

Sat Jul 23, 2011 3:31 am

Shared programs should be uploaded to the BASIC! program library via FTP.

There are many free FTP clients available on the Android Market. Download one of these and you can FTP your programs directly from your Android Device.

The URL is ftp.laughton.com.
The user name is: basic
The password is: basic

Other settings:

port = 21
protocol = FTP (not SCP or SFTP)
no encryption

The filenames that you upload should have the the ".bas" extension.
Once you have uploaded the file, you can announce it here.
Give the description of program and its file name here in this forum.

You can now upload programs directly from BASIC! using BASIC!'s FTP commands.

Code:
ftp.open "ftp.laughton.com",21,"basic","basic"
ftp.put "../source/name.bas","name.bas"
ftp.close


Downloading programs

You can explore the programs in the FTP directory from your browser:
http://laughton.com/basic/programs/

The following program can be used to download these programs to your Android device. The example assumes that there is an uploaded program named "bounce.bas" (which there is).

Code:
filename$="bounce.bas"
source_path$ = "http://laughton.com/basic/programs/"
dest_path$ = "../source/"

byte.open R, FN, source_path$+filename$
byte.copy FN, dest_path$ + filename$
byte.close
end


Alternatively, you can download programs using BASIC!s FTP commands although this method is probably slower than the above method.

Code:
ftp.open "ftp.laughton.com",21,"basic","basic"
ftp.get "name.base","../source/name.bas"
ftp.close


Another easy way to download/upload files from/to the FTP Server is using the program RFO FTP Store
Details on this program can be found here: http://rfobasic.freeforums.org/rfo-basic-ftp-store-v1-4-t871.html

Directory Structure of the FTP Server

Latest Directory Structure is:

Imageapplications
Imagebeta-test
Imagedocumentation
Imagegames
Imagehtml
Imagelibraries
Imageother
Imagetools
Imageutilities
readme_BrokenLink-Error.txt
readme_Uploading.txt



readme_Uploading.txt:
Do not place any programs on the root of the ftp server!
Use the appropriate folder to place your program.
Optionally add a readme file, a screenshot and the .apk.
Don't forget to put a link to your program inside your post.


readme_BrokenLink-Error.txt:
Broken links/other problems should be reported to user: tony_gr
Login in rfobasic.freeforums.org, and send a Private Messagge (PM) from the user control panel.
Last edited by jMarc on Sat Oct 10, 2015 12:09 pm, edited 12 times in total.
Reason: Corrected link.

Re: Shared Program Instructions (7/23/11)

Sat Jul 23, 2011 4:25 am

Using FTP on laughton.com is a great idea!
I will test in the evening...
Oliver

UPDATE:
Yes, very nice. I have updated my samples "Pointy Labyrinth" and
one player mode of "Rock Paper Scissors" with download links.

Re: Shared Program Instructions (7/23/11)

Sat Jul 23, 2011 5:28 am

Thinking about a little Download Helper like

! rem dl helper

input "Type the filename to download (with .bas)", filename$,".bas"

byte.open R , rf, "http://laughton.com/basic/programs/" + filename$
byte.copy rf, "../source/" + filename$

print "File should be installed. Please load via menu..."

pause 1000

end

Re: Shared Program Instructions (7/30/11)

Sat Nov 26, 2011 9:31 am

hi. im interes to add in may proggram sum textbos
wat is the wey todo ?

Re: Shared Program Instructions (7/30/11)

Sat Nov 26, 2011 1:59 pm

Orpaz, the details for uploading programs are in the first post of this thread.

Re: Shared Program Instructions (7/30/11)

Tue May 22, 2012 9:39 am

is it possible to download the lot using ftp? I only see an incoming directory :(

Re: Shared Program Instructions (7/30/11)

Tue May 22, 2012 3:46 pm

"download the lot"

You mean download each and every file with one command?

I don't think you can do that, but try dload_helper_plus2a.bas

It makes downloading easy.

FTP site and Changes to this forum

Thu Jun 14, 2012 12:30 pm

I have asked tony_gr to rearrange the FTP site

I have asked technorobbo to rearrange this forum.

Re: FTP site and Changes to this forum

Thu Jun 14, 2012 2:35 pm

First of all, to all users that have posted a shared program:
- If this is not running with the actual RFO BASIC! Version, please
do the necessary modifications.
- If you have a program that -for some reason- isn't useful any more, please delete it.
- If you have a program that requires more than one file, please place it in a new directory.
- If you want, write a readme for your prog, upload a screenshot, and optionally the .apk.
(this will be very useful when we'll create a Basic app store :mrgreen: )
You may PM me for your ideas!

[Antonis]

Re: FTP site and Changes to this forum

Mon Jun 18, 2012 9:39 am

The new ftp structure is up and running!
The new structure will coexist with the old one
for some days till i correct the links to the programs.
The new structure is:

[applications]
[beta-test]
[documentation]
[games]
[html]
[other]
[tools]
[utilities]
readme_BrokenLink-Error.txt
readme_Uploading.txt

From now on you should be posting your programs using
the new ftp structure. Actually contains all programs
posted in this forum, and more.

** Programs not located in these folders will soon be deleted! **

* Some programs posted had only a listing inside the post.
I've created the .bas files and inserted them into the
appropriate directory.
* Many programs didn't work, coz the rnd command has
been changed. I edited those programs.
* I added a readme file for all programs.
This one contains the Url of the topic of the program post.
* Added some screenshots.

readme_Uploading.txt
Do not place any programs on the root of the ftp server!
Use the appropriate folder to place your program.
Optionally add a readme file, a screenshot and the .apk.
Don't forget to put a link to your program inside your post.


readme_BrokenLink-Error.txt
Broken links/other problems should be reported to user: tony_gr
Login in rfobasic.freeforums.org, and send a Private Messagge (PM) from the user control panel.
Post a reply