LoginLogin
Nintendo shutting down 3DS + Wii U online services, see our post

Petit Converter (Translation) [SB4]

Root / Submissions / [.]

HTV04Created:
Download:4ZSD1EAD
Version:v0.7.7ESize:298.4 KB
(Screenshots are currently from original program.) Run SmileBASIC 3 programs on SmileBASIC 4! Petit Converter, by utrmagure, is a conversion tool for SmileBASIC 3 programs that allows them to run on SmileBASIC 4. Original program link: https://smilebasicsource.com/page?pid=1480 Quick note, there is a newer version by utrmagure available that's slightly more complicated to use as you have to set it as your Smile Tool. There's no GUI to translate, so I won't be updating this page until one becomes included with it. Here's the key: 44AAD23Q3

Instructions:

(Edited from original instructions by utrmagure.)

Converting programs

1. First run PETITC-ENG/MAIN.PRG. 2. Click or tap "Convert Program," or select with D-pad and press A button. 3. Choose a project that the file to convert is in. 4. Choose a file to convert. 5. You will now asked "Would you like to test the converted program in the current project?" If you test whether the converted program works, select "Yes." If you save the converted program, select "No" and go to step 9. Click left arrow button or press B button to return to the previous screen. 6. Choose converting options, and click OK. - Rotate Screen 90° Left - Rotate Screen 90° Right - No Antialiasing - High Antialiasing - New 3DS (Sets HARDWARE to 1) - Wii U (Sets HARDWARE to 2) - Upper Screen Only - Lower Screen Only 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 - Save to Clipboard - Save to SLOT ? "?" is from 1 to 5 12. The converted program has been saved in the current project!

Subprogram

By default, exported files are saved in the current project. Subprograms can write to another project; when Petit Converter is launched as a subprogram, exported files are saved automatically in the project that the original file is in, not the current project.

Oh handy. I'll have to play around with this some more, thanks. Unfortunately for me the MML parser is a lot stricter for SB4, so I have to rewrite them all before I can even compile.

Replying to:kantackistan
Oh handy. I'll have to play around with this some more, thanks. Unfortunately for me the MML parser is a lot stricter for SB4, so I have to rewrite them all before I can even compile.
Hey, quick warning. Unless you have the original project, this tool will throw some errors about missing files. I just released an emergency patch to fix this, so be sure to update your project.

Replying to:kantackistan
Oh handy. I'll have to play around with this some more, thanks. Unfortunately for me the MML parser is a lot stricter for SB4, so I have to rewrite them all before I can even compile.
There is PetitConverter ver0.8.3 which converts MML for SB4, though it's not posted here yet. http://wiki.hosiken.jp/petc4/?Toukou%2FPetitConverter

I'll have to check this out once I get SB4

Replying to:rando
I'll have to check this out once I get SB4
Wait just to make sure, does this convert SB3 to SB4?

Replying to:rando
I'll have to check this out once I get SB4
Yes. Not all programs work, though.

Replying to:kantackistan
Oh handy. I'll have to play around with this some more, thanks. Unfortunately for me the MML parser is a lot stricter for SB4, so I have to rewrite them all before I can even compile.
Well that sucks. Guess I'll be releasing another update... EDIT: O-or not... Because there's no GUI now.

Replying to:kantackistan
Oh handy. I'll have to play around with this some more, thanks. Unfortunately for me the MML parser is a lot stricter for SB4, so I have to rewrite them all before I can even compile.
It's all good, take your time and I'll play with it when it's ready. I need to go through and fix all the button codes anyway, those don't translate. And sprite attributes are totally different between versions. But I think those are the only real hurdles

Replying to:kantackistan
Oh handy. I'll have to play around with this some more, thanks. Unfortunately for me the MML parser is a lot stricter for SB4, so I have to rewrite them all before I can even compile.
You may want to check the latest version then (v0.8.3). It fixes a lot of bugs, including the ones you mentioned. There's no GUI to translate for it though, you just need to set MAIN.PRG as one of your Smile Tools and run it in an SB3 project.

Replying to:kantackistan
Oh handy. I'll have to play around with this some more, thanks. Unfortunately for me the MML parser is a lot stricter for SB4, so I have to rewrite them all before I can even compile.
No kidding? That's great, I'll check it out.

Hey uh

Oh yeah, I noticed that too. Nothing I can really do about that. The newer version (v0.8.3) also has this issue but you can try it anyway if you want.

Note for anyone who's downloaded this program: I have issued new keys for all of my published SB4 works. Please download this program again or you will no longer receive updates as the old keys are now invalid.

I'm thinking about trying something like this myself, after I get accustomed to SB4. Though I don't know how SB4 works yet, so I'm not sure how I'll do.

I'm the author of the original program. Thanks for the translation! I'm working on a new version (1.0.0) albeit slowly. And going to include an English translation.