Oh I forgot you can't use 0 as ANY of the dimensions in sb4...
Anyway can't you just replace DIM A[0,0] with DIM A[0]?
LEN() will be the same
I think the only difference is that PUSH/POP won't throw an error
Petit Converter ver. 0.7.7 β (SB4)
Root / Submissions / [.]
utrmagureCreated:
Download:4NJA5X3WDVersion:0.7.7 βSize:
7. The test starts. if an error occurs, please report the bug.
8. When the program terminates or + button is pressed, you'll return to the tool. The dialog will appear; press はい (Yes) and go to step 6 if you test again, or press いいえ (No) to go next.
9. Click はい (Yes) to save the converted program, or click いいえ (No) to discard the program and return to the main menu.
10. Choose converting option as in step 6.
11. Choose how to save the converted program:
- ファイルに保存 (Save to file)
- クリップボードに書き出し (Export to clipboard)
- SLOT ?に書き出し (Export to SLOT ?)
"?" is from 1 to 5
12. The converted program has been saved in the current project!
OK. I will fix it.
Wait I just remembered, there is a reason to make an empty multidimensional array
DIM A[10,10] SAVE "DAT:A",A DIM B[0,0] LOAD "DAT:A",B
And LOAD that loads a number array will be replaced with LOADV of SB4, but with LOADV, the dimensions of the array stored in the file and the destination array must match. If a multi-dimensional array declaration is replaced with a one-dimensional array declaration, that causes an error.
DIM A[3,3] SAVEV "DAT:A.DAT",A DIM B[0] ' Assume replaced by DIM B[0,0] LOADV "DAT:A.DAT",B ' "Type mismatch"!
Can this be used as a good start when porting SB3 titles? (Sure a lot has to be improved from there)
Why r u asking this?
I don't have a Switch but in 6 months when I want to start developing SKKBAUI for Switch. Learning the syntax changes is No1 priority of courseReplying to:CyberYoshi64
Can this be used as a good start when porting SB3 titles? (Sure a lot has to be improved from there)
Why r u asking this?
I don't have a Switch but in 6 months when I want to start developing SKKBAUI for Switch. Learning the syntax changes is No1 priority of courseYes, you can upload an SB3 title in SB3, and someone can download it through SB4 and play it with Petit Converter on Switch!
Replying to:CyberYoshi64
Can this be used as a good start when porting SB3 titles? (Sure a lot has to be improved from there)
Why r u asking this?
I don't have a Switch but in 6 months when I want to start developing SKKBAUI for Switch. Learning the syntax changes is No1 priority of courseSure but I was talking about the port as the base, which works on SB4 to then turn it into a SB4-exclusive program.
Replying to:CyberYoshi64
Can this be used as a good start when porting SB3 titles? (Sure a lot has to be improved from there)
Why r u asking this?
I don't have a Switch but in 6 months when I want to start developing SKKBAUI for Switch. Learning the syntax changes is No1 priority of courseThat works too. You would have to convert it using the tool, then you can make additional changes manually if it doesn't work out-of-the-box.
Now we need the impossible, SB4 to SB3.