Coder Social home page Coder Social logo

sb3tosb2's Introduction

SB3 to SB2 Converter

A simple Python 3 program that converts .sb3 files to .sb2 files

Requirements

  • Python 3 (preferably 3.6.2 or later)

Installation

Download and extract the ZIP file and move the sb3tosb2.py file to wherever you want.

Usage

  1. Run sb3tosb2.py with Python
  2. Select the SB3 file to open
  3. Either select the SB2 file to save to or type in a new file name
  4. Click OK to exit

Usage (command line)

  1. Open the terminal or command prompt and navigate to the directory of the sb3tosb2.py file.
  2. Enter the following command: python sb3tosb2.py [unordered options] sb3path sb2path
    Options are not necessary.
  3. If an error is given, make sure you entered a valid sb3 file.

Arguments

Options should be separated by a space.
List of options:

  • -h: Displays the program arguments and list of options
  • -c: This enables compatibility mode. Workarounds for the following blocks will be added to sprites:
    • costume [number v]
    • set drag mode [ v]
    • <[] contains []?> (may result in performance loss)
    • (item # of [] in [ v]) (may result in performance loss)
    • pen color blocks (including HSV and shade blocks)
    • timer blocks
  • -j: Automatically enables compatibility mode and adds an unlimited join workaround (may result in significant performance loss)
  • -l: Automatically enables compatibility mode and adds custom blocks to automatically limit list length to 200,000 (may result in performance loss)
  • -p: Tries to insert blocks to fill the screen when the pen size is set to a value greater than 255

Known Issues

  • MP3 audio files cannot be converted
  • Compatibility mode changes variable monitor labels
  • Compatibility mode allows ([ v] of [ v]) to access only variables (not attributes like x position, backdrop #, etc.)
  • Dragging in projects converted with compatibility mode does not have the same pen behavior as in 3.0
  • Unlimited join does not check case when checking string equality

sb3tosb2's People

Contributors

rexscratch avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.