Skip to main content

A Python library for creating Jujutsu Shenanigans movesets.

Project description

libjjs

A Python library for creating Jujutsu Shenanigans movesets.

On PyPI

How?

TL;DR, character codes are generated by compressing JSON through zstandard and base64-encoding it.

The way character codes are generated is by taking the original JSON and compressing it through zstandard and then base64-encoding it. This is very easy to reverse, and can be used to create custom movesets externally without the need for Roblox or JJS.

Let's try it out. This is a basic character featuring one attack, an instant Todo swap, and a nameless awakening that creates Heian Sukuna's "Dismantle Net":

KLUv/WCJA40PALZaVSYQq+oBsOM43sl9eKAChX7vhegbSNzqodFpbd8lezRGBFEAAAAAOEcASQBOAJ03z8REfJoIHQUUIeRA2Vminb3zQON2lp3zdsnO2YVSO28t+/FL7VA2wXS0d63UcQ0c7V2ZYJr2LXs+3rZnDRbsQLYkfW9XPzAxMA2IsvME+MdLjvPn/NmJYnonKuH8cf4U0NsZ07eeiHgUS6LDS3aeF2LwoPYf1L5LIoQRchZQ0zTweU9EPH+X7GxNGpkVFQ/XVSYUB4G3eSbKttYk1WmK2jujgGG4ZOeFrOrsEsdpYlRAT7NQLKCEAxHQExowS8NVJpiFgaPZaMzOjmmAw/drfcilEefF2FRTnSKHa5LMBUPRMO2CTS6U4OuU2hvAUjsdb/1E8VcQqTfPtOzMgUGTneuM7EedHULqFMkX26fVR9ysjLfTchkFAYOJJnVpNKn73pzUbQUsPCAwQmKUdHZDsOFRRQGDZJeg4u6FMgn9G4xiAPIHGdrNOg4s5CTYCMJiCAp+76pl4PKqVSgDF8iWuV4akML0PQhEMn2ZxDIoECGsfoU0I8XsfY4F7awNkGkx71XcGk5v2o65yPltaZAXHDe2ACCX8IZgO6luOUUiiHldxh0CwYHoazqecXAVjSR5gj3dmmrpkHIMI2aSyjgZ

Decoding this from base64 and decompressing it with zstandard gives us the original JSON, which is...

[
    {
        'ADD': False,
        'NAME': 'Attack',
        'K_NAME': 'SKILL',
        'KEY': 1,
        'DATA': '{"Line":[{"K_NAME":"SFX","ID":138158731526545},{"PREVIEW":[0,0.5606122289385115],"K_NAME":"ANIM","ANIM_USE":[1,5]},{"TIME":0.56,"K_NAME":"WAIT"},{"SIZE":"6, 6,
4","PREVIEW":[0,15],"POSITION":"0, 0, 3","DAMAGE":5,"K_NAME":"HITBOX"},{"ALT COLOR":"255, 0, 0","COLOR":"255, 0, 0","TIME":3,"K_NAME":"VISUAL","LAST HIT":0.5,"EFFECT":"Black
Flash"},{"PREVIEW":[0.5606122289385115,1.1348979268755233],"K_NAME":"ANIM","ANIM_USE":[1,5]}],"Req":[],"Prop":[]}',
        'COOLDOWN': 5
    },
    {
        'COOLDOWN': 0,
        'NAME': 'Quick Swap',
        'DATA': '{"Line":[{"SPEED":100,"K_NAME":"SPECIAL","SPEC":"Boogie Woogie","ENABLE
VARIANTS":false},{"VOLUME":1,"K_NAME":"SFX","ID":138158731526545,"CANCEL":true}],"Req":[],"Prop":[]}',
        'K_NAME': 'SPECIAL'
    },
    {
        'DURATION': 0,
        'NAME': '',
        'K_NAME': 'AWAKENING',
        'DELAY': 0,
        'DATA':
'{"Line":[{"K_NAME":"SPECIAL","SPEC":"Incantation"},{"K_NAME":"SPECIAL","SPEC":"Incantation"},{"K_NAME":"SPECIAL","SPEC":"Incantation"},{"K_NAME":"SPECIAL","SPEC":"Incantation"}],"Req":[],"
Prop":[]}'
    }
]

From this, we can modify this JSON to create custom moveset through scripts.

Usage

First, install the library using pip install libjjs.

Then, in a Python file, import the library and create a character.

import libjjs

character = libjjs.Character()

From here, you can create skills using character.create.skill().

character.create.skill(
    name="Super Cool Skill",
    cooldown=5,
)

Check out demo/demo.py for a full example.

Features

  • Support for all nodes, conditions and properties
  • Support for all 4 skill types
  • Exports as a JJS-valid character code
    • I recommend you paste it into JJS to check if it's working, then copy the character block's export
  • Branch support
  • Variable names for animations, easing styles/directions, effects, etc
  • Custom nodes
    • Domain node
  • Fake rigs
    • Fake rig animations

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

libjjs-1.1.0.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

libjjs-1.1.0-py3-none-any.whl (18.5 kB view details)

Uploaded Python 3

File details

Details for the file libjjs-1.1.0.tar.gz.

File metadata

  • Download URL: libjjs-1.1.0.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for libjjs-1.1.0.tar.gz
Algorithm Hash digest
SHA256 d6d65623a9398d083a4e39cb530cce4dc8892f8590cec28fe53c819266a3d21e
MD5 ac025d5bf8a9121a35d01a8b4544b70e
BLAKE2b-256 2a10eba0011a9d1325f1425d2951ddd03d758d9efce4052b7b46548c1eade62b

See more details on using hashes here.

Provenance

The following attestation bundles were made for libjjs-1.1.0.tar.gz:

Publisher: pypi-publish.yml on FormunaGit/libjjs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file libjjs-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: libjjs-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for libjjs-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a484039e80ee008032271aad58f0cfdfaa5341c92c3b76fae15bc7b2dd874f7a
MD5 bedc165e3a7bca5ca2506c3f3062f277
BLAKE2b-256 6a89453d5984366bb93eb08f28b358cf1d1e9bee8024438517109a1691deffe2

See more details on using hashes here.

Provenance

The following attestation bundles were made for libjjs-1.1.0-py3-none-any.whl:

Publisher: pypi-publish.yml on FormunaGit/libjjs

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page