? SENDFILE ● SmileBASIC Source

Sign In

Register
*Usernames are case-sensitive
Forgot my password
💀

SENDFILE

Submitted
Updated
Author
MYCRAFTisbest
Public Key
EXEXY3Q4
Min. Compat.
All
Version
v0.61
Size
9212B(2410008B)
Rating
9 votes
Description VIDEO LINK(v0.35): https://youtu.be/BktF2LyUuqU Ever wanted to send an awesome game to your friend but you forgot the key? Ever wanted to test compatibility of your program on an O3DS vs N3DS or try to code multiplayer functionality? Tired of uploading programs just to create a key for your other systems? Miss the good old days of PTC when you could just do SENDFILE and RECVFILE? Well if any of those apply to you than you're in luck!

INTRODUCING SENDFILE FOR SB

Current Features: - Send a PRG / TXT to another 1 system - Send a GRP to another 1 system - Send a DAT file to another 1 system - Run as a standalone program - Use as a function library for use inside another program PLANNED: - Send a VAR to another system (maybe) - Send files to up to 3 other systems at a time (eventually) - Further Enhanced performance

ENJOY!

Instructions COPY SENDFILE into the folder with the data you want to send on the sending system. COPY SENDFILE into the folder with the data you want to receive on the receiving system. The HOST will always send the file and the GUEST will always receive it (in the standalone program, implementation can vary if you so desire). You may only send HOW TO SEND TO A SYSTEM WITHOUT SENDFILE: 1.Type the following code into the other system F$="'" MPSTART 2,"SF" WHILE !BUTTON() MPRECV OUT ID,A$ IF ID==MPHOST THEN INC F$,A$ INC N,1 MPSET 2,N ENDIF WEND SAVE "TXT:SENDFILE",F$ 2. Run the program you just wrote and select GUEST (NO) 3. Run the system containing SENDFILE, chose HOST (YES) [chose this on the other system] and then enter "SENDFILE" as the file 4. Wait for the 3DS without sendfile to show a MultiPlayer Disconnect message prompt and hit OK 5. Press any button on the 3DS that didn't have sendfile and say yes to saving the file. CONGRATS! Just load SENDFILE now and it should run perfectly!!! DAT files are assumed one dimensional. 2D, 3D, and 4D files do not work yet (and nether do 1D files, but they won't crash if you load them) For documentation of use and other instructions, see the comments at the top of the file. Notes CHANGELOG: v0.61 Now shows all files in current folder on top screen when being asked for a file Further improvements to overall program stability and other minor adjustments have been made to enhance the user experience v0.60 Added DAT file support (1 Dimensional only) Added proper buffer check(Prevents Crashing) Can now send SENDFILE to systems without the program (so long as the sender has it and follows instructions) Improved file type detection (will still ask for clarity in most cases) v0.35 RELEASE (Not compatible with any other version)
Categories
Keywords
  • send
  • file
  • sendfile
  • ptc
  • recvfile
  • receive
  • get
  • local
  • wireless
  • data
  • transfer
  • prg
  • grp
  • dat
  • petit
  • modem
  • wifi
24 Comment(s) ninjagnu ninjagnu Wow... I already wrote this so I could send my own files to my brothers ds. :P I didn't even know one of these existed until now. Joshuaham123 Joshuaham123 Wow this worked great wit my brother MYCRAFTisbest MYCRAFTisbest Good Page Hidden Achievements Video Games I like to play video games! Hobbies Deep Sleep Hidden Website Glad to hear it :) theaveragecoder theaveragecoder really good program!!!! now i gotta find someone with five nights a freddys sb... photonegativemickey photonegativemickey Beginner Programmer I'm just starting out! I'm still trying to grasp the basics. Programming Strength Avatar Block I didn't change my avatar for 30 days. Website RNG Hidden Easter Eggs You don't want that MYCRAFTisbest MYCRAFTisbest Good Page Hidden Achievements Video Games I like to play video games! Hobbies Deep Sleep Hidden Website I'm sure after 6 months he ether found someone or gave up hope. :D skyldgh skyldgh Video Games I like to play video games! Hobbies Beginner Programmer I'm just starting out! I'm still trying to grasp the basics. Programming Strength Bees Hidden Easter Eggs But Petit modem... my baby... :c ahavasandwich ahavasandwich Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself Pokemon Is Awesome! I love Pokemon! Express Yourself Minecraft Is Awesome! I love Minecraft! Express Yourself Hell yeah! This is way better than using the cloud. TheV360 TheV360 Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength First Day Joined on the very first day of SmileBASIC Source Website Night Person I like the quiet night and sleep late. Express Yourself This is a really good program. I just got SmileBASIC on my 2DS, and thanks to this, I could really quickly test out things. Before, I was copying by hand, but then I remembered I saw this. MYCRAFTisbest MYCRAFTisbest Good Page Hidden Achievements Video Games I like to play video games! Hobbies Deep Sleep Hidden Website Glad you found it useful. :) Guzzler Guzzler First Week Joined in the very first week of SmileBASIC Source Website Drawing I like to draw! Hobbies Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength I rate it 8/8. Totally gr8 m8. Can't w8 4 next upd8. I'd h8 2 see this not get upd8ed. I guess it's just f8. I just watched the video and contempl8ed it all. Well, I have to go to bed, wouldn't want to be l8 4 school. MYCRAFTisbest MYCRAFTisbest Good Page Hidden Achievements Video Games I like to play video games! Hobbies Deep Sleep Hidden Website Welp now it is upd8 m8, so no more must you w8. Isn't that gr8? I hope I wasn't l8, but in any case, you are now out of d8. Guzzler Guzzler First Week Joined in the very first week of SmileBASIC Source Website Drawing I like to draw! Hobbies Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength W8, you have the upd8? That's gr8! 16bitcoder 16bitcoder May I use a modified version of this in my good clone (to locally send / receive maps ) ? MYCRAFTisbest MYCRAFTisbest Good Page Hidden Achievements Video Games I like to play video games! Hobbies Deep Sleep Hidden Website It already works as a function library. Feel free to include it alongside your program for calling the functions. If you really feel to modify the program for whatever reason, I would greatly appreciate being properly credited. 16bitcoder 16bitcoder Dont worry, I'll put you in the credits... I just need to modify it so it only send prgs, (SO IT'LL ONLY SEND/GET MAPS LOCALLY) MYCRAFTisbest MYCRAFTisbest Good Page Hidden Achievements Video Games I like to play video games! Hobbies Deep Sleep Hidden Website It can already only send PRGs if you need it to actually. There are 3 functions, SENDFILE, RECIVFILE, and SENDRECV. The part of the code that has you choose the type of the file is SENDRECV which is an overarching type in case you want the choice. You simply want SENDFILE and RECVFILE. SENDFILE is uses as OTHERID,FILETYPE,FILENAME,FEEDBACK So if you wanted to send a PRG named PROG and have it beep while it sends, it would look like SENDFILE OID%,"PRG","PROG",1 For more documentation of use, simply see the comments at the top of the program. If for whatever reason, you still wish to modify it (perhaps to remove the amount of PRGs in the final project) then you may still do so, but the task you have requested is already an option you can set. 16bitcoder 16bitcoder Thanks, but the game will be launched on a later date since I'm busy this weekend :/ 16bitcoder 16bitcoder Could you by any chance allow users to sent .WAV? Like from the recorder and gj with this! MYCRAFTisbest MYCRAFTisbest Good Page Hidden Achievements Video Games I like to play video games! Hobbies Deep Sleep Hidden Website Yes. .WAV files are just DAT files. Most will be supported, but multi-dimensional arrays stored in DAT files will require knowing the exact size of each dimension to transfer. Just remember, the larger the file, the longer the send. GRPs are 2D DAT files, but I made a special case for them since I know they'll always be 2D 512x512 arrays of image data. Next update will support 1D DAT files. 16bitcoder 16bitcoder May I use a modified version of this in my good clone (to locally send / receive maps ) ? 12Me21 12Me21 Admin Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself Second Year My account is over 2 years old Website you can copy multi dimensional arrays into 1D arrays I think. DAT files are just a pain to work with. you can't view the contents easily, it's IMPOSSIBLE to figure out the size, etc. MYCRAFTisbest MYCRAFTisbest Good Page Hidden Achievements Video Games I like to play video games! Hobbies Deep Sleep Hidden Website Yes, you can only get the size of 1D dat files with LEN. Other's just do D1 * D2* ECT. for the size (which is useless). 12Me21 12Me21 Admin Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself Second Year My account is over 2 years old Website Well, people can always do something like this: http://petitcomputer.wikia.com/wiki/3%2B_Dimensional_Arrays