rfobasic.freeforums.org
http://rfobasic.freeforums.org/

Shared Program Instructions (8/3/12)
http://rfobasic.freeforums.org/shared-program-instructions-8-3-12-t125.html
Page 1 of 6

Author:  BASIC [ Sat Jul 23, 2011 3:31 am ]
Post subject:  Shared Program Instructions (8/3/12)

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

Author:  jo_sprenger [ Sat Jul 23, 2011 4:25 am ]
Post subject:  Re: Shared Program Instructions (7/23/11)

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.

Author:  jo_sprenger [ Sat Jul 23, 2011 5:28 am ]
Post subject:  Re: Shared Program Instructions (7/23/11)

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

Author:  orpaz [ Sat Nov 26, 2011 9:31 am ]
Post subject:  Re: Shared Program Instructions (7/30/11)

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

Author:  BASIC [ Sat Nov 26, 2011 1:59 pm ]
Post subject:  Re: Shared Program Instructions (7/30/11)

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

Author:  DominicM [ Tue May 22, 2012 9:39 am ]
Post subject:  Re: Shared Program Instructions (7/30/11)

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

Author:  BASIC [ Tue May 22, 2012 3:46 pm ]
Post subject:  Re: Shared Program Instructions (7/30/11)

"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.

Author:  BASIC [ Thu Jun 14, 2012 12:30 pm ]
Post subject:  FTP site and Changes to this forum

I have asked tony_gr to rearrange the FTP site

I have asked technorobbo to rearrange this forum.

Author:  tony_gr [ Thu Jun 14, 2012 2:35 pm ]
Post subject:  Re: FTP site and Changes to this forum

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]

Author:  tony_gr [ Mon Jun 18, 2012 9:39 am ]
Post subject:  Re: FTP site and Changes to this forum

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

Page 1 of 6 All times are UTC - 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/