# DSLuaDecompiler
This is a work in progress decompiler for Lua 5.0.2 and HavokScript. Specifically, it is designed and intended to decompile Lua files found in Dark Souls, Dark Souls 3, Bloodborne, and Sekiro. These scripts are primarily used to implement AI logic in the games. DS3, Bloodborne, and Sekiro also use HavokScript, a heavily modified version of Lua 5.1, to interface the game with the Havok behavior system and much of the character animation logic is in HavokScript. This decompiler will decompile a subset of Havokscript that is used in these games.
This decompiler is not yet complete and not usable by the end-user yet, but it is making rapid progress and is able to perfectly structure the control flows of many AI files in DS3 so far. It's also now able to decompile DS3's c0000.hks file, which is a massive HavokScript file that implements the majority of the player logic in DS3.
Some of the design decisions that differentiate this decompiler from other Lua decompilers are:
1. Designed to run without any debug information in the Lua file, as debug information is generally stripped in the games, but will use the information to assist in decompilation if available.
2. Uses Single-Static Analysis (SSA) for the majority of the data-flow analysis, type inference, and constant/expression propogation
3. Uses a control-flow graph (CFG) and structural analysis to recover high level control flow constructs (if/else, while, for, etc).
4. Will use Dark Souls specific research to automatically name and annotate decompiled files.
没有合适的资源?快使用搜索试试~ 我知道了~
DSLuaDecompiler:LuaHavokScript 反编译器用于 Dark SoulsBloodborneSekiro...
共36个文件
cs:27个
csproj:2个
gitattributes:1个
需积分: 49 6 下载量 39 浏览量
2021-05-31
00:33:41
上传
评论
收藏 79KB ZIP 举报
温馨提示
DSLua反编译器 这是 Lua 5.0.2 和 HavokScript 的正在进行的反编译器。 具体来说,它旨在反编译《黑暗之魂》、《黑暗之魂 3》、《血源》和《只狼》中的 Lua 文件。 这些脚本主要用于在游戏中实现 AI 逻辑。 DS3、Bloodborne 和 Sekiro 还使用 HavokScript,这是 Lua 5.1 的一个经过大量修改的版本,将游戏与 Havok 行为系统连接起来,并且大部分角色动画逻辑都在 HavokScript 中。 这个反编译器将反编译这些游戏中使用的 Havokscript 的一个子集。 这个反编译器尚未完成,最终用户还不能使用,但它正在快速进步,并且能够完美地构建 DS3 中许多 AI 文件的控制流。 现在,它也可以反编译DS3的c0000.hks文件,该文件是一个庞大的HavokScript文件,实现了DS3中大多数播放器逻辑。 将此反编
资源详情
资源评论
资源推荐
收起资源包目录
DSLuaDecompiler-master.zip (36个子文件)
DSLuaDecompiler-master
.gitignore 382B
README.md 2KB
LICENSE 1KB
.gitattributes 66B
LuaDecompilerCore
Annotations
ESDFunctions.cs 24KB
IR
Return.cs 3KB
Break.cs 284B
NumericFor.cs 1KB
Jump.cs 3KB
Label.cs 839B
Data.cs 591B
Identifier.cs 2KB
GenericFor.cs 1KB
SymbolTable.cs 3KB
PhiFunction.cs 2KB
PlaceholderInstruction.cs 549B
Continue.cs 290B
IInstruction.cs 2KB
Function.cs 149KB
IfStatement.cs 2KB
While.cs 1KB
Expression.cs 32KB
Assignment.cs 7KB
Utilities
BinaryReaderEx.cs 31KB
LuaDecompilerCore.csproj 137B
LuaFile.cs 18KB
CFG
AbstractGraph.cs 7KB
LoopType.cs 268B
BasicBlock.cs 10KB
AnalysisOpts.cs 192B
LuaDisassembler.cs 112KB
DSLuaDecompiler.sln 2KB
packages-microsoft-prod.deb 3KB
DSLuaDecompiler
DSLuaDecompiler.csproj 4KB
Properties
launchSettings.json 248B
Program.cs 3KB
共 36 条
- 1
火锅与理想
- 粉丝: 31
- 资源: 4569
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0