Giter Site home page Giter Site logo

ysmdecryptor's Introduction

YSM Decryptor

这是一个Minecraft模组Yes Steve Model使用的.ysm文件格式的解密工具

解密算法出自ysmdumper项目,我仅仅只是将它用TypeScript重新实现了一遍

注意

由于Yes Steve Model1.2.0版本开始更新了加密算法,所以本项目目前只能解密1.1.5版本及更早版本导出的文件,新加密算法相对复杂,目前还没有办法解密

如何区分模型是那个版本导出的

使用记事本打开.ysm文件,如果文件的开头有类似这样的标注说明此文件是1.2.0版本导出的

YSGP
----------------------- [ Property ] -----------------------
<name> xxxxx
<authors> xxxxx
<license> xxxxx
<free> xxxxx
<hash> xxxxx

否则就是1.1.5版本及更早版本导出的文件

使用方法

安装依赖

npm install

pnpm install

打开src/main.ts,找到以下内容

YSMFileDecryptor("input/your_ysm_file.ysm")

将里面的input/your_ysm_file.ysm替换为你ysm文件的路径

最后运行

npm run dev

如果没有意外出现,那么在output文件夹下会有一个与你文件名称对应的文件夹出现,里面就是解密后的模型、贴图以及动画

最后

这个项目是我用来练手的,而且由于我的Java功底稀碎,这个项目用了整整一天才完成,使用TS重写完全是因为我比较熟悉Nodejs加上我觉得Java的环境搭建太麻烦

另外,这个项目目前只能解密本地的.ysm文件,如果你的模型是游戏服务器分发的则无法解密

ysmdecryptor's People

Contributors

wdfaesfaef avatar

Stargazers

 avatar Akemi Homura avatar  avatar BelovedYaoo avatar  avatar  avatar

Watchers

 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.