Discuss Scratch

Barta_cze
Scratcher
1 post

SB3 to SB2 Converter (working)

It worked even for a more complicated project! Even converted a 3.0 block i accidentally left in!
Meralkli
Scratcher
10 posts

SB3 to SB2 Converter (working)

move (33) steps
sonic923
Scratcher
10 posts

SB3 to SB2 Converter (working)

Hey M8 can you do this for me my brain hurts trying to do thus plz and thanks
amywu2017
Scratcher
90 posts

SB3 to SB2 Converter (working)

.sb3 files are useless that .sb2 files are better because scratch 2 startup very quickly
You can ONLY open in app for scratch 3
when green flag clicked
say [This is the blocks for Scratch 2]

Last edited by amywu2017 (July 30, 2019 05:38:10)

SAnABros
Scratcher
1 post

SB3 to SB2 Converter (working)

-Rex- I did your project in exe format, I think it will be better for people who do not want to download python just because of one application, here is the link → https://github.com/SAnABros/SB3-to-SB2
coolguy73921
Scratcher
23 posts

SB3 to SB2 Converter (working)

-Rex- wrote:

I've just finished writing an SB3 to SB2 converter in Python 3, which can be found here: https://github.com/RexScratch/sb3tosb2

If you find any bugs or issues, please tell me. This is also the first time I've written something like this, so I'd appreciate feedback on how to improve the code.
But how do u use it (is it flash, exe file, html web thing?)
EDIT: ohh its python

Last edited by coolguy73921 (Aug. 13, 2019 08:43:42)

lucasherogaming
Scratcher
8 posts

SB3 to SB2 Converter (working)

i'm trying to find a converter
game_pr0grammer
Scratcher
500+ posts

SB3 to SB2 Converter (working)

can you do .sb3 to .xml for snap
AnalogSquare
Scratcher
3 posts

SB3 to SB2 Converter (working)

I tried to convert one of my projects using this and found that most of the music didn't convert. Everything else converted successfully. I am confused as to why it would be doing this.
AnalogSquare
Scratcher
3 posts

SB3 to SB2 Converter (working)

Nevermind, I figured out the issue! It should work flawlessly after my fixes, I'll post an update when that is.
AnalogSquare
Scratcher
3 posts

SB3 to SB2 Converter (working)

It works the way I wanted it to. I just had to convert the music into the .wav format from .mp3
LG1313xD
Scratcher
1 post

SB3 to SB2 Converter (working)

not working
abc_tp
Scratcher
3 posts

SB3 to SB2 Converter (working)

IkatSethi wrote:

I get the following error when trying to convert

Traceback (most recent call last):
File “C:\installables\sb3tosb2-master\sb3tosb2-master\sb3tosb2.py”, line 2856, in <module>
result = ProjectConverter().convertProject(sb3path, sb2path, gui=gui, replace=gui, compatibility=(c or j or l), unlimitedJoin=j, limitedLists=l, penFillScreen=p)
File “C:\installables\sb3tosb2-master\sb3tosb2-master\sb3tosb2.py”, line 2730, in convertProject
sprite = self.convertTarget(target, targetsDone, maxLen)
File “C:\installables\sb3tosb2-master\sb3tosb2-master\sb3tosb2.py”, line 1728, in convertTarget
self.addCostume©
File “C:\installables\sb3tosb2-master\sb3tosb2-master\sb3tosb2.py”, line 1481, in addCostume
md5ext = c
KeyError: ‘md5ext’


How to resolve


I have the same problem!
The problem is caused by, in some case, there is no “md5ext” key. This key contain the file name of the Costume!
File name of the Costume, can also get from these 2 keys: ‘assetId’, ‘dataFormat’!

I just do the following, then solve the problem:

In function 【def addCostume(self, c):】
1. replace the code line 【md5ext = c['md5ext']】with【md5ext = c['assetId']+'.'+c['dataFormat']】
2. replace the code line 【f = self.zfsb3.open(c['md5ext'], ‘r’)】with【f = self.zfsb3.open(c['assetId']+'.'+c['dataFormat'], ‘r’)】

Sorry that, I don't know, how to show “Open bracket”, “Closed bracket” here.
So, I just replace “Open bracket”, “Closed bracket”, with it's Chinese counterparts “[”, “]”!

Last edited by abc_tp (Aug. 30, 2019 05:09:07)

Finn123Corp_Inc
Scratcher
55 posts

SB3 to SB2 Converter (working)

Cool about sb3tosb2 thing! Can you please tell me what does each module do there?
CaroomPlayer85
New Scratcher
12 posts

SB3 to SB2 Converter (working)

SimpleScratch wrote:

:-)
Just tried it on simple project and it worked

https://scratch.mit.edu/projects/287498438

Minor issue - script wasn't visible in scripting area until I'd done a right-click cleanup

WELL DONE

I want to make an Sb3 to Sb2 ca you explain the method that you follow please in order to see the steps
im new with python and a little with scratch i have a project on the net and a Rpis with a 7 In screen and
i want to be able to make it portable

Thanks!!
OXApps
Scratcher
12 posts

SB3 to SB2 Converter (working)

wow now i need to download more programs to run this tf
OXApps
Scratcher
12 posts

SB3 to SB2 Converter (working)

It's not working, it isnt saving anything. The cmd window just closes and thats it.
abc_tp
Scratcher
3 posts

SB3 to SB2 Converter (working)

OXApps wrote:

It's not working, it isnt saving anything. The cmd window just closes and thats it.


try this (I am using win7、win10 OS. and python-374.):


Create a run01.bat file, have the following 3 code lines:

set py3_exe=“D:\python-374\C_Users_user_AppData_Local_Programs_Python_Python37-32\python.exe”
%py3_exe% sb3tosb2.py -c xy.sb3 xy.sb2
pause


where,
set py3_exe=“D:\python-374\C_Users_user_AppData_Local_Programs_Python_Python37-32\python.exe”
should be changed to your python executable path.

xy.sb3 is your .sb3 file name.

xy.sb2 is .sb2 file name you wanted.


Put files “sb3tosb2.py”, “xy.sb3” , “run01.bat” in the same folder.

Execute run01.bat file, and, see what the error message is!
OXApps
Scratcher
12 posts

SB3 to SB2 Converter (working)

abc_tp wrote:

IkatSethi wrote:

I get the following error when trying to convert

Traceback (most recent call last):
File “C:\installables\sb3tosb2-master\sb3tosb2-master\sb3tosb2.py”, line 2856, in <module>
result = ProjectConverter().convertProject(sb3path, sb2path, gui=gui, replace=gui, compatibility=(c or j or l), unlimitedJoin=j, limitedLists=l, penFillScreen=p)
File “C:\installables\sb3tosb2-master\sb3tosb2-master\sb3tosb2.py”, line 2730, in convertProject
sprite = self.convertTarget(target, targetsDone, maxLen)
File “C:\installables\sb3tosb2-master\sb3tosb2-master\sb3tosb2.py”, line 1728, in convertTarget
self.addCostume©
File “C:\installables\sb3tosb2-master\sb3tosb2-master\sb3tosb2.py”, line 1481, in addCostume
md5ext = c
KeyError: ‘md5ext’


How to resolve


I have the same problem!
The problem is caused by, in some case, there is no “md5ext” key. This key contain the file name of the Costume!
File name of the Costume, can also get from these 2 keys: ‘assetId’, ‘dataFormat’!

I just do the following, then solve the problem:

In function 【def addCostume(self, c):】
1. replace the code line 【md5ext = c['md5ext']】with【md5ext = c['assetId']+'.'+c['dataFormat']】
2. replace the code line 【f = self.zfsb3.open(c['md5ext'], ‘r’)】with【f = self.zfsb3.open(c['assetId']+'.'+c['dataFormat'], ‘r’)】

Sorry that, I don't know, how to show “Open bracket”, “Closed bracket” here.
So, I just replace “Open bracket”, “Closed bracket”, with it's Chinese counterparts “[”, “]”!

Dude then the python file doesnt even open.
OXApps
Scratcher
12 posts

SB3 to SB2 Converter (working)

SAnABros wrote:

-Rex- I did your project in exe format, I think it will be better for people who do not want to download python just because of one application, here is the link → https://github.com/SAnABros/SB3-to-SB2

Omg thanks your program works for some reason

Powered by DjangoBB