LoginLogin
Might make SBS readonly: thread

SENDFILE

Root / Submissions / [.]

MYCRAFTisbestCreated:
Download:EXEXY3Q4
Version:v0.61Size:9212B(2410008B)
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)

Could you by any chance allow users to sent .WAV? Like from the recorder and gj with this!

Replying to:16bitcoder
Could you by any chance allow users to sent .WAV? Like from the recorder and gj with this!
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.

Replying to:16bitcoder
Could you by any chance allow users to sent .WAV? Like from the recorder and gj with this!
May I use a modified version of this in my good clone (to locally send / receive maps ) ?

May I use a modified version of this in my good clone (to locally send / receive maps ) ?

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.

Replying to:16bitcoder
May I use a modified version of this in my good clone (to locally send / receive maps ) ?
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.

Replying to:Guzzler
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.
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.

Replying to:16bitcoder
May I use a modified version of this in my good clone (to locally send / receive maps ) ?
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)

Replying to:16bitcoder
May I use a modified version of this in my good clone (to locally send / receive maps ) ?
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.

Replying to:Guzzler
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.
W8, you have the upd8? That's gr8!

Replying to:16bitcoder
May I use a modified version of this in my good clone (to locally send / receive maps ) ?
Thanks, but the game will be launched on a later date since I'm busy this weekend :/

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.

Replying to:16bitcoder
Could you by any chance allow users to sent .WAV? Like from the recorder and gj with this!
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.

Replying to:16bitcoder
Could you by any chance allow users to sent .WAV? Like from the recorder and gj with this!
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).

Replying to:TheV360
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.
Glad you found it useful. :)

Replying to:16bitcoder
Could you by any chance allow users to sent .WAV? Like from the recorder and gj with this!
Well, people can always do something like this: http://petitcomputer.wikia.com/wiki/3%2B_Dimensional_Arrays

Hell yeah! This is way better than using the cloud.

But Petit modem... my baby... :c

really good program!!!! now i gotta find someone with five nights a freddys sb...

Wow this worked great wit my brother