# SpaghettiKart：基于反编译源码的《马力欧卡丁车 64》原生移植

> 基于沿用《马力欧卡丁车 64》反编译项目文件结构的源码，构建适用于 Windows、Linux、macOS 和 Switch 的原生移植，运行在 libultraship 重新实现的 N64 SDK 之上。随附的 Torch 提取器将使用者自备的美版 ROM 转换为素材归档，移植还增加了模组、自定义赛道和编辑器。README 未写明其上游反编译项目，也未发布一致性或还原度检查。

- 类型：案例
- 目标：游戏
- 类别：独立重建案例
- 关联：独立重建项目
- 来源复核于：2026-10-18
- 收录于：2026-10-18
- 原始资源：<https://github.com/HarbourMasters/SpaghettiKart>
- 一手来源：<https://github.com/HarbourMasters/SpaghettiKart/blob/5073d2e3636cdb2794f4c845ee3bdec5ac4718c4/README.md>
- 目录页面：<https://awesomerea.org/zh/resources/spaghettikart-mk64-port-case/>
- 记录 JSON：<https://awesomerea.org/resources/spaghettikart-mk64-port-case/record.json>
- 英文版：[English](https://awesomerea.org/resources/spaghettikart-mk64-port-case/index.md)

## 使用条件与局限

- **前提条件：**仅支持 SHA-1 为 579C48E211AE952530FFC8738709F078D5DD215E、采用 .z64 字节序的美版 ROM。随附的提取器将使用者自备的 ROM 转换为 mk64.o2r；README 声明 SpaghettiKart 不包含任何受版权保护的素材，Switch 版沿用 PC 发布版生成的归档。
- **前提条件：**源码构建需要子模块（libultraship、Torch、fast64 等）、CMake 3.16+ 和 Python 3。Windows 需使用带 v143 工具集的 Visual Studio 2022，并至少有 8 GB 内存；Linux 需 GCC 或 Clang，以及 SDL2、libzip、tinyxml2、spdlog、Boost 和 Ogg／Vorbis 等软件包。渲染后端包括 Windows 上的 DirectX 11、各平台通用的 OpenGL 以及 macOS 上的 Metal。
- **范围：**README 未写明上游项目，但源码树沿用了《马力欧卡丁车 64》反编译项目的 src/、赛道数据、提取脚本及进度工具结构；新增的 engine 和 port 目录加入了 C++ 系统、模组加载、自定义赛道以及尚未完成的 HM64 Labs 编辑器。1.0.0 “Bolognese Alfa”（2026 年 2 月）是最新稳定版；CI 夜间构建仅供试玩测试。
- **测试证据：**CI 编译 Windows、Linux 与 macOS 软件包，并打包项目自有的 spaghetti.o2r；未发布基于 ROM 的测试、一致性检查或游戏行为对比。FAQ 列出了若干限制，例如最多八名赛车手和八个可选角色、高清纹理支持有限且没有联机功能。
- **许可：**所审源码树没有顶层许可证文件，因此项目代码的再利用条款未予说明；libultraship 和 Torch 声明 MIT，任天堂内容另有权利约束。

## 一手来源

1. <https://github.com/HarbourMasters/SpaghettiKart/blob/5073d2e3636cdb2794f4c845ee3bdec5ac4718c4/README.md>
2. <https://github.com/HarbourMasters/SpaghettiKart/blob/5073d2e3636cdb2794f4c845ee3bdec5ac4718c4/docs/BUILDING.md>
3. <https://github.com/HarbourMasters/SpaghettiKart/blob/5073d2e3636cdb2794f4c845ee3bdec5ac4718c4/docs/faq.md>
4. <https://github.com/HarbourMasters/SpaghettiKart/blob/5073d2e3636cdb2794f4c845ee3bdec5ac4718c4/CMakeLists.txt>
5. <https://github.com/HarbourMasters/SpaghettiKart/blob/5073d2e3636cdb2794f4c845ee3bdec5ac4718c4/.gitmodules>
6. <https://github.com/HarbourMasters/SpaghettiKart/blob/5073d2e3636cdb2794f4c845ee3bdec5ac4718c4/.github/workflows/main.yml>
7. <https://github.com/HarbourMasters/SpaghettiKart/blob/5073d2e3636cdb2794f4c845ee3bdec5ac4718c4/.github/workflows/linux-compile.yml>
8. <https://github.com/Kenix3/libultraship/blob/60c9bb713ed0850da66559fc17c556d03da649cd/README.md>
9. <https://github.com/HarbourMasters/Torch/blob/2d474ddb8da8b213fbdbb49d0273ce31fa955f35/README.md>
10. <https://github.com/HarbourMasters/SpaghettiKart/releases/tag/1.0.0>

## 同分区更多条目：游戏

- [Starship：基于反编译的 Star Fox 64 PC 移植](https://awesomerea.org/zh/resources/starship-sf64-pc-port-case/index.md) · 案例
- [Super Mario Sunshine：基于 AI 辅助反编译的原生 PC 移植](https://awesomerea.org/zh/resources/sms-pc-port-case/index.md) · 案例
- [TH08 Web：基于重建源码的 WebAssembly 移植](https://awesomerea.org/zh/resources/th08-web-wasm-port-case/index.md) · 案例
- [TonyWasAProSkater：派生自一致性反编译的 THPS1 原生移植](https://awesomerea.org/zh/resources/thps1-decomp-native-port-case/index.md) · 案例
- [Vandal Hearts：基于一致性反编译的原生 PC 移植](https://awesomerea.org/zh/resources/vandal-hearts-pc-port-case/index.md) · 案例
- [Age of Empires Free Software Remake：基于原版数据的重新实现](https://awesomerea.org/zh/resources/aoe-free-software-remake-case/index.md) · 案例

## 关于此条目

说明已依据一手来源复核。
原创说明采用 MIT 许可；外部项目、论文与素材保留各自的权利和许可。
