1
我正在使用一個使用Haaf的遊戲引擎的程序,該引擎使用以.nsf格式保存的資源文件。這些文件實際上只是包含文件夾層次結構的zip文件和一個只包含每個文件信息的resources.nsr文件。Haaf的遊戲引擎中的資源文件
的resources.nsf文件具有文件夾和一個.nsr文件設置是這樣的:
|_resource.nsf
|_images
||-some .png files
|_sounds
||-some sound files
|-resource.nsr
的.nsr文件的格式如下:
;TEXTURES-------------------------------------
Texture background
{
filename = images\background.png
}
;---------------------------------------------
Texture a
{
filename = images\a.png
}
;---------------------------------------------
Texture b
{
filename = images\b.png
}
....more textures
;SPRITES--------------------------------------
Sprite backgroundSpr
{
texture = background
rect = 0, 0, 1024, 768
}
....more sprites
在圖像文件夾中我發現了一個thumbs.db文件,當我打開它時,第一行打印了Mac OS X.我假設這個zip文件來源於OS X系統。
我試過用7zip和windows壓縮來壓縮新的資源文件。 Haaf's game engine的網站建議使用pkzip,但現在花錢,所以我無法獲得它的副本。
有沒有一種方法可以重新打包我的資源文件並使其在Windows 7 x64下工作?