{"id":15009245,"url":"https://github.com/asfdfdfd/renpy-live2d","last_synced_at":"2025-04-09T17:23:24.294Z","repository":{"id":51542190,"uuid":"144324296","full_name":"asfdfdfd/renpy-live2d","owner":"asfdfdfd","description":"Live2D module for RenPy","archived":false,"fork":false,"pushed_at":"2021-03-02T00:29:01.000Z","size":4275,"stargazers_count":83,"open_issues_count":5,"forks_count":13,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-03-23T19:22:55.954Z","etag":null,"topics":["gamedev","gamedevelopment","live2d","opengl","python","python2","python27","renpy"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/asfdfdfd.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-10T19:21:45.000Z","updated_at":"2024-12-18T11:01:01.000Z","dependencies_parsed_at":"2022-08-22T05:01:29.713Z","dependency_job_id":null,"html_url":"https://github.com/asfdfdfd/renpy-live2d","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asfdfdfd%2Frenpy-live2d","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asfdfdfd%2Frenpy-live2d/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asfdfdfd%2Frenpy-live2d/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asfdfdfd%2Frenpy-live2d/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asfdfdfd","download_url":"https://codeload.github.com/asfdfdfd/renpy-live2d/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248075376,"owners_count":21043574,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gamedev","gamedevelopment","live2d","opengl","python","python2","python27","renpy"],"created_at":"2024-09-24T19:24:00.159Z","updated_at":"2025-04-09T17:23:24.277Z","avatar_url":"https://github.com/asfdfdfd.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"DEPRECATED\n==========\n\nRenPy has native Live2D support now. `Use it. \u003chttps://www.renpy.org/doc/html/live2d.html\u003e`_\n\nIntroduction\n============\n\nThis is attempt to create Live2D module for RenPy. This is WIP and not production version. Project has no ETA. This source code is invitation to developers that are willing to help with development of module.\n\nThis module works only with OpenGL renderer.\n\nInstalling\n==========\n\nAs for now prebuild version of this module available only for macOS and Windows.\n\n1. Go to the `'release' section \u003chttps://github.com/asfdfdfd/renpy-live2d/releases\u003e`_ and download latest release.\n\n2. Extract files and place 'live2d' folder to the 'game' folder of your RenPy project.\n\n3. Download `Cubism Native SDK \u003chttps://live2d.github.io/index.html#native\u003e`_ and replace 'CubismSDK/Core' folder of this library with 'Core' folder from downloaded SDK.\n\n4. You are ready to go.\n\nUsage example\n=============\n\n.. code:: renpy\n\n    define h = Character(\"Hiyori\")\n\n    init python:\n        from live2d.displayable import Live2DDisplayable\n        from renpy.loader import transfn\n    \n        sprite_live2d = Live2DDisplayable()\n    \n    init:\n        image sprite_live2d = sprite_live2d\n    \n    label start:\n    \n        show sprite_live2d\n            \n        $ live2d_model_hiyori = sprite_live2d.scene.create_model(transfn(u'live2d_resources/Hiyori/'), u'Hiyori.model3.json')\n    \n        $ live2d_model_hiyori.start_random_motion(group = u\"Idle\", priority = 3)\n    \n        h \"You've created a new Ren'Py game.\"\n\n        $ live2d_model_hiyori.start_motion(group = u\"TapBody\", no = 0, priority = 3)\n\n        h \"Once you add a story, pictures, and music, you can release it to the world!\"\n\n        return\n\nBuilding\n========\n\nThis section is for those who wants to participate in extension development. If you do not want to participate in development and just want to use your Live2D models in RenPy — read 'Installing' section.\n\nmacOS\n-----\n\nExtensions for RenPy should be built with custmoized Python 2.7.10 version that is configured for RenPy. The most convenient way is to use pyenv.\n\n1. Install pyenv.\n\n.. code:: shell\n   \n    brew install pyenv\n   \nIf you want want to integrate pyenv into your shell read `'installation' section \u003chttps://github.com/pyenv/pyenv#installation\u003e`_ in pyenv manual. I assume that you want to use pyenv just to build module and do not want to make deep integration.\n\n2. Install python.\n\n.. code:: shell\n\n    PYTHON_CONFIGURE_OPTS=\"--enable-unicode=ucs4 --enable-shared\" pyenv install 2.7.10    \n\nIf it fails with error read `pyenv common build problems \u003chttps://github.com/pyenv/pyenv/wiki/common-build-problems\u003e`_.\n\nIf you need to have multiple Python 2.7.10 installs use `pyenv-alias plugin \u003chttps://github.com/s1341/pyenv-alias\u003e`_.\n\n3. Create folder to store python virtual environment. It will be mentioned as %TARGET_DIR%.\n    \n4. Create virtual environment and install required packages.\n\n.. code:: shell\n\n    cd %TARGET_DIR%\n    pyenv local 2.7.10\n    $(pyenv root)/versions/2.7.10/bin/pip install --upgrade pip\n    $(pyenv root)/versions/2.7.10/bin/pip install virtualenv\n    $(pyenv root)/versions/2.7.10/bin/virtualenv .\n    bin/pip install pyasn1==0.1.7 rsa==3.1.4 altgraph==0.12 macholib==1.7 cython==0.29.7\n                             \nNow you have special Python build that is suitable for building Live2D module for RenPy:\n\n1. Download `Cubism Native SDK \u003chttps://live2d.github.io/index.html#native\u003e`_ and replace 'CubismSDK/Core' folder of this library with 'Core' folder from downloaded SDK.\n\n2. Open console and go to the folder where you placed content of this repository\n\n3. Launch \n\n.. code:: shell\n\n  %TARGET_DIR%/bin/python setup.py build_ext --inplace\n      \n4. Module is ready. Now you could launch RenPy game.\n\nLinux\n-----\n\nShould be similar to macOS but i could not confirm.\n\nWindows\n-------\n\n1. Download and install `Microsoft Visual C++ Compiler for Python 2.7 \u003chttps://www.microsoft.com/en-us/download/details.aspx?id=44266\u003e`_\n\n2. Download and install x86 version of `Python 2.7.10  \u003chttps://www.python.org/ftp/python/2.7.10/python-2.7.10.msi\u003e`_\n\n3. Download `Cubism Native SDK \u003chttps://live2d.github.io/index.html#native\u003e`_ and replace 'CubismSDK/Core' folder of this library with 'Core' folder from downloaded SDK.\n\n4. Launch 'Visual C++ 2008 32-bit Command Prompt' from 'Start' menu and go to 'CubismSDK/Core/dll/windows/x86' folder.\n\n5. Launch\n\n.. code:: shell\n\n    dumpbin /EXPORTS Live2DCubismCore.dll \u003e Live2DCubismCore.exports\n\n6. Edit 'Live2DCubismCore.exports' to create 'Live2DCubismCore.def' file. Also you could get ready 'def' file `here \u003chttps://gist.github.com/asfdfdfd/e20835ed92bd245e258d8a1c1b2f77ac\u003e`_ but it may be a bit outdated so i recommend to create it by yourself.\n\n7. Launch\n    \n.. code:: shell\n\n    lib /def:Live2DCubismCore.def /out:Live2DCubismCore.lib\n\n8. Go to root module folder and launch\n\n.. code:: shell\n\n    %PATH_TO_PYTHON%\\python.exe setup.py build_ext --inplace --compiler=msvc\n        \n9. Module is ready. Now you could launch RenPy game.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasfdfdfd%2Frenpy-live2d","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasfdfdfd%2Frenpy-live2d","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasfdfdfd%2Frenpy-live2d/lists"}