是否可以从 .smc 文件中提取游戏资源?

发布于 2024-11-18 13:42:48 字数 56 浏览 2 评论 0原文

是否可以从 .smc 文件中提取游戏资源?特别是艺术、音乐、精灵等。模拟器如何复制它所模拟的系统?

Is it possible rip game resources from a .smc file? Specifically art, music, sprites, etc. How does an emulator copy the system it emulates?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

诗笺 2024-11-25 13:42:48

从某种意义上说,这是可能的,因为信息都以某种方式存在。但 smc 文件基本上是一个带有嵌入式资源的编译程序,甚至没有标准编译器或标准格式来存储您可以启动的资源。

就图像数据而言,它很有可能采用 PPU 使用的调色板和平铺格式,尽管它也不太可能以某种方式进行压缩。但是调色板可能几乎不可能通过静态分析找到,并且图块地图可能是从关卡数据生成的,而不是显式存储在任何地方。您可能会更幸运地在模拟器中运行它并从 VRAM 中提取数据。

对于音乐来说,情况更加令人沮丧。 SNES 音频最类似于 MOD 文件:对乐器进行采样,然后各个样本经过音调调整和混合以生成输出声音。 SNES 提供硬件来解码乐器样本、操纵音调并将它们混合在一起,但没有高级程序(即没有相当于 mod 文件“跟踪器”的程序)来播放实际歌曲。因此,您也许能够以与查找图像图块数据相同的方式找到 BRR 编码的乐器样本,但歌曲数据在不同的游戏中可以并且将会采用完全不同的格式。同样,您最好的运气可能来自于将 APU 的状态提取为 SPC 文件 并正常工作与此。

至于您的其他问题,请参阅 模拟器如何工作以及它们是如何编写的? 以获得有关该主题的先前答案。

It's possible, in the sense that the information is all there in some manner. But an smc file is basically a compiled program with embedded resources, and there isn't even a standard compiler or standard format for storing the resources that you can start from.

And as far as image data goes, there is a good chance it will be in the palettized and tiled format used by the PPU, although it's also not unlikely that it will be compressed in some manner or another. But the palette will probably be almost impossible to find by static analysis, and the tile maps are probably generated from the level data rather than being explicitly stored anywhere. You may have better luck running it in an emulator and extracting the data from VRAM.

For music, the situation is even more discouraging. SNES audio is most akin to a MOD file: instruments are sampled, and then the individual samples are pitch-adjusted and mixed to generate the output sound. The SNES provides hardware to decode the instrument samples, manipulate the pitch, and mix them together, but no high-level program (i.e. no equivalent of a mod file "tracker") to play back actual songs. So you may be able to find the BRR-encoded instrument samples in the same manner you may be able to find the image tile data, but the song data can and will be formatted completely differently in different games. Again, your best luck may come from extracting the state of the APU as an SPC file and working with that.

As for your other question, see How do emulators work and how are they written? for a previous answer on that very topic.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文