? Nintendo Switch Discussion (Page 13) ● SmileBASIC Source Forums

Sign In

Register
*Usernames are case-sensitive
Forgot my password
[Help Wanted] SmileBASIC Documentation Project

Nintendo Switch Discussion

1 2 3 4 5 6 7 8 9 10 11 12 13 14
  • #241 ✎ 192 TheV360 Third Year My account is over 3 years old Website First Day Joined on the very first day of SmileBASIC Source Website Night Person I like the quiet night and sleep late. Express Yourself Noticed that PRINT has been renamed TPRINT. Are they trying to group more commands into "namespaces"? Either that or this is a different command entirely. Posted
  • #242 ✎ 931 Y_ack What I found interesting about the new screenshots is that they seem to imply that either or both 1) The editor is written in SmileBASIC 2) The screen can be split between the editor and a running program, not just multiple editor frames Posted
  • #243 ✎ 1619 12Me21 Head Admin Second Year My account is over 2 years old Website Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself Renaming PRINT to TPRINT was a good idea, but if ? doesn't still exist I'm quitting SB forever. EDIT: I looked more closely at the screenshot. It seems there are multiple text layers or something, since TPRINT, CLS, and LOCATE all take an extra argument. I bet PRINT still exists and TPRINT is just a version that uses the "layer" argument. Posted Edited by 12Me21
  • #244 ✎ 197 MZ952 Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Drawing I like to draw! Hobbies Reading I like to read books! Hobbies I always found it strange that the SB editor seemed to be written in SB. I wonder why they do that. Posted Edited by MZ952
  • #245 ✎ 931 Y_ack GUIDE.PRG IF ??? THEN '[...] '[line 445] '---FULL SCREEN DISPFULL '--- CLS #TXT:CLS #WIN:CLS #PRG SPHIDE SPKEY:SPHIDE SPKEY2:SPHIDE SPKEY3 LOCATE #WIN,OX,OY-2 TPRINT #WIN,"おしえて欲しいとを選んでください" '--- LOAD LIST VAR TX$=LOAD("TXT:"+DRV$+"LIST.TXT",FALSE) FILL LBL$,"" LC=0:I=0 LOOP C=INSTR(I,TX$,".") IF C==-1 THEN BREAK LBL$[LC*2+0]=MID$(TX$,I,C-I):I=C+1 C=INSTR(I,TX$,LF$) LBL$[LC*2+1]=MID$(TX$,I,C-I):I=C+1 INC LC ENDLOOP '--- SCRIPTMODE=1 FADER '--- ENDIF '--- SCREEN HEIGHT IF SCH==720 THEN W=7?:H=?2:DRY=2? ELSE W=?1:H=4:DRY=13 '--- CURSOR(WANPAKU) VAR VY=0,OLDCY=CSRY,OLDOY=CSROY IF BUTTON(0,#B_LUP ,1) THEN VY=-1 IF BUTTON(0,#B_LDOWN,1) THEN VY= 1 CSRY=CSRY+VY:VY=0 IF CSRY<0 THEN VY=-1:CSRY=0 IF CSRY>H-1 THEN VY= 1:CSRY=H-1 CSROY=CSROY+VY IF CSROY<0 THEN CSROY=0 IF CSROY>LC+H THEN CSROY=LC-H '--- IF CSRY!=OLDCY THEN PUTCSR OY,OLDCY,1 PUTCSR OY,CSRY,((MAINCNT() >> 3) MOD 5)+4 IF CSRY!=OLDCY || CSROY!=OLDOY THEN SCRIPTMODE=1:BEEP 9 '[/line 487] '[...] ENDIF '[line 561] '--- START! SCRIPTMODE=0 FADER CLS CMPSCORE=0 'スコアクリア PRGSKIP=0 '初回のプログラム表示をゆっくりにする GST=#GST_READ END ' ' PUT CURSOR(WANPAKU) ' DEF PUTCSR OY,Y,C VAR PG=#TXT Y=Y*3+OY IF C!=-1 THEN '--- PUT FACE WC=WINCOL[0] LOCATE PG,0,Y+0:PUTFACE 0,3,C,0,PG LOCATE PG,0,Y+1:PUTFACE 0,3,C,1,PG LOCATE PG,0,Y+2:PUTFACE 0,3,C,2,PG LOCATE PG,0,Y+3:PUTFACE 0,3,C,3,PG ELSE '--- CLEAR LOCATE PG,0,Y+0:TPRINT PG," "; LOCATE PG,0,Y+1:TPRINT PG," "; LOCATE PG,0,Y+2:TPRINT PG," "; LOCATE PG,0,Y+3:TPRINT PG," "; ENDIF END '-------------------------------------- ' PUT PROGRAM SOURCE '-------------------------------------- DEF GST_PUTPRG VAR X,Y,B=0,W=LEN(PRG$[PRGOY]) '--- DELAY IF PRGSKIP==0 THEN IF PRGWAIT>0 THEN DEC PRGWAIT:RETURN PRGWAIT=#PRGWAIT1 ENDIF '--- PUTALL? '[/line 602] '[...] END DEF ??? '[...] '[line 829] SCANMSG T$ OUT SX,SY 'ウィンドウ用のテキストスク '--- PUT WINDOW(&FACE) LOCATE #WIN OUT LX,LY IF CHR!=#CHR_INFO THEN WINSY=SY+2 ELSE ... PUTWIN DIR,SX+2,WINSY,CHR,TYPE IF SY==1 && CHR!=#CHR_INFO THEN INC ... '--- ウィンドウ表示サイズ分他のテキストリーンも改行 FOR I=0 TO WINSY-1 ENTER #TXT:ENTER #PRG NEXT '--- 新しいウィンドウ位置から文字の表示位置補正 LOCATE #WIN OUT LX,LY '座標取得 IF CHR!=#CHR_INFO THEN DEC WINSY 'テキ LOCATE #TXT,LX,LY-WINSY '--- 文字の表示ヘ MSGOX=0:MSGOY=0:MSGCNT=SY IF DIR THEN PRGTAB$=" "*(DW-(SX+7)) IF CHR==#CHR_INFO THEN PRGTABS$=" ..." '--- GST=#GST_???MSG END '---------------------------------------- ' CHECK COMMAND LINE '---------------------------------------- DEF CHKLINE(M$) VAR I,L,N VAR C$,W$ M$=ERASELF$(M$) '???P???$ '--- LOOP '--- GET WORD W$="":M$=SKIPSPC$(M$):L=LEN(M$) WHILE L>0 C$=LEFT$(M$,1) IF C$==" " THEN BREAK W$=W$+C$:DEC L M$=RIGHT$(M$,L) WEND IF W$=="" THEN BREAK IF LEFT$(M$,1)=="," THEN M$=RIGHT$(...) '[/line 871] '[...] ENDLOOP END Posted Edited by Y_ack
  • #246 ✎ 101 LohadL Amazing Contributor Someone thinks I'm an awesome person who has done so much for the community! Achievements Staff Pick "Your program is one of our favorites!" - Staff Achievements Pokemon Is Awesome! I love Pokemon! Express Yourself
    if ? doesn't still exist I'm quitting SB forever. It seems there are multiple text layers or something, since TPRINT, CLS, and LOCATE all take an extra argument. I bet PRINT still exists and TPRINT is just a version that uses the "layer" argument.
    Not sure if you're joking or not; I just don't see you leaving for something like that :p PRINT is still there, in one of the tutorial screenshots. Don't see why they would take away ? either. It may well be as you said, probably a simpler command to allow text on even graphic pages, without having to use PRINT and GPUTCHR separately. TPRINT #WIN,"おしえて欲しいことを選んでください" prints out the title of the window in the lesson list screenshot. And Y_ack you're too amazing. I can't make out that many lines of code even if I squint.
    Posted Edited by LohadL
  • #247 ✎ 1619 12Me21 Head Admin Second Year My account is over 2 years old Website Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself Named sprite variables! Also there's a TYPEOF function but I'm not sure how it works. (Wouldn't it just throw an error if you try to assign something other than a string to N$?)
    And Y_ack you're too amazing. I can't make out that many lines of code even if I squint.
    You just have to adjust the brightness/contrast and look at different screenshots to see the missing parts:
    Posted Edited by 12Me21
  • #248 ✎ 931 Y_ack Edit: If you missed it in the GUIDE.PRG listing above, MAINCNT() is now a builtin function.
    Named sprite variables! Also there's a TYPEOF function but I'm not sure how it works
    Also SPLAYER (not in pcmini version), the possibility that the OSK is an SB program, the suggestion that programs might be able to run on different layers (if you believe the prior assumption), and, if you're of the "all the constants shown are just expanded builtins" camp, builtin constants for UI and keyboard sprite IDs (the alternative being a better example of user-defined constants).
    in this screenshot there's also file paths of the format "#S/GUIDE/[PLG]\d\d.TXT", which reminds me that since this is based on pasocom mini/pistarter version, multilevel directory structures should be possible.
    And Y_ack you're too amazing. I can't make out that many lines of code even if I squint.
    Ehehe~
    Posted Edited by Y_ack
  • #249 ✎ 419 kenchic Avatar Taboo I didn't change my avatar for 180 days Website Third Year My account is over 3 years old Website osu! Is Awesome! I love osu! Express Yourself I can't help but speculate about SB4's builtin program sharing platform. With all the features they're showing off, it's pretty much guaranteed to be more than a key-based system... right? Posted Edited by kenchic
  • #250 ✎ 931 Y_ack Why would that be? What do the features shown have to do with the distribution system? The early top menu "screenshots" show otherwise, anyway. Posted
  • #251 ✎ 101 LohadL Amazing Contributor Someone thinks I'm an awesome person who has done so much for the community! Achievements Staff Pick "Your program is one of our favorites!" - Staff Achievements Pokemon Is Awesome! I love Pokemon! Express Yourself The distribution system is via public keys as usual, indeed. SB still needs to do self-policing, and monitoring public keys is the easiest method. If they don't catch naughty people uploading naughty programs, Nintendo will do the heavy-handed policing for them, i.e. taking SB off eshop. That would be bad. Posted
  • #252 ✎ 554 IAmRalsei Forum Leader Hidden Achievements First Year My account is over 1 year old Website Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Besides, it was already confirmed that SB4 and SB3 were sharing the same server. Posted Edited by IAmRalsei
  • #253 ✎ 419 kenchic Avatar Taboo I didn't change my avatar for 180 days Website Third Year My account is over 3 years old Website osu! Is Awesome! I love osu! Express Yourself Darn. Posted
  • #254 ✎ 8 BraveChampion48 Star Wars Is Awesome! I love Star Wars! Express Yourself Minecraft Is Awesome! I love Minecraft! Express Yourself Video Games I like to play video games! Hobbies @IAmRalsei Are you finished with the Bomberman project? It's been a while. -_- Posted
  • #255 ✎ 554 IAmRalsei Forum Leader Hidden Achievements First Year My account is over 1 year old Website Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength
    @IAmRalsei Are you finished with the Bomberman project? It's been a while. -_-
    No threadjacking. also, i was assuming i was going to recieve a public key for the sprites sent to me and was waiting for them to start development. Now, let's get back on topic.
    Posted Edited by IAmRalsei
  • #256 ✎ 10 Xenoslyce Video Games I like to play video games! Hobbies Night Person I like the quiet night and sleep late. Express Yourself Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Alright, hands on deck. We're going to have to make a PetitModem for 3DS to Switch, because I doubt they'll make a 3DS to Switch import system. Correct me if I'm wrong. Posted
  • #257 ✎ 302 spaceturtles Video Games I like to play video games! Hobbies Avatar Block I didn't change my avatar for 30 days. Website Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength
    Alright, hands on deck. We're going to have to make a PetitModem for 3DS to Switch, because I doubt they'll make a 3DS to Switch import system. Correct me if I'm wrong.
    That can be fixed if sboom allows switch sb to download with 3ds keys. Other than that and hopefully local multiplayer compatibilities a new version of pmodem for the switch does seem necessary and if the author(s) of the original pmodem have been paying attention and notice the switch, then it's likely they may care enough to do it
    Posted
  • #258 ✎ 1619 12Me21 Head Admin Second Year My account is over 2 years old Website Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself
    Alright, hands on deck. We're going to have to make a PetitModem for 3DS to Switch, because I doubt they'll make a 3DS to Switch import system. Correct me if I'm wrong.
    https://twitter.com/notohoho/status/1025922736512585728 Some interesting tweets, not sure how much of this is new info:
    • Although the Switch version isn't compatible with the 3DS/Wii U versions' code, they're considering letting you read 3DS/Wii U public keys to facilitate porting programs over. ...
    Also now that you can connect a USB keyboard, it should be pretty easy to just make some kind of keyboard emulator for file transfer. It might not be possible for a normal computer to emulate a USB slave device, though. But you could use an arduino (https://www.arduino.cc/reference/en/language/functions/usb/keyboard/) or something. For output you can just use audio or screenshots. I wonder if they'll even add microphone input support since I don't think the switch has a builtin microphone (it can get input through the headphone jack like the 3DS though)
    Posted Edited by 12Me21
  • #259 ✎ 554 IAmRalsei Forum Leader Hidden Achievements First Year My account is over 1 year old Website Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength
    Alright, hands on deck. We're going to have to make a PetitModem for 3DS to Switch, because I doubt they'll make a 3DS to Switch import system. Correct me if I'm wrong.
    https://twitter.com/notohoho/status/1025922736512585728 Some interesting tweets, not sure how much of this is new info:
    • Although the Switch version isn't compatible with the 3DS/Wii U versions' code, they're considering letting you read 3DS/Wii U public keys to facilitate porting programs over. ...
    Also now that you can connect a USB keyboard, it should be pretty easy to just make some kind of keyboard emulator for file transfer. It might not be possible for a normal computer to emulate a USB slave device, though. But you could use an arduino (https://www.arduino.cc/reference/en/language/functions/usb/keyboard/) or something. For output you can just use audio or screenshots. I wonder if they'll even add microphone input support since I don't think the switch has a builtin microphone (it can get input through the headphone jack like the 3DS though)
    The switch does indeed not have a builtin microphone and putting a microphone in the 3DS headphone jack does nothing and it's probably the same for switch.
    Posted
  • #260 ✎ 229 HTV04 Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Avatar Taboo I didn't change my avatar for 180 days Website Forum Contributor Hidden Achievements
    Putting a microphone in the 3DS headphone jack does nothing.
    Headphone-jack microphones do work on SmileBASIC for 3DS (as well as the built-in microphone). Just make sure the MIC tag on the keyboard is enabled (there should be a green bar next to it). If it’s black, type XON MIC in direct mode or at the beginning of whatever program you’re making.
    Posted Edited by HTV04
1 2 3 4 5 6 7 8 9 10 11 12 13 14