deathkiller / jazz2

🎮 · Jazz² Resurrection: Open-source reimplementation of Jazz Jackrabbit 2
https://deat.tk/jazz2/
GNU General Public License v3.0
492 stars 18 forks source link

Can't import Jazz 2 SE files ( Directory "Metadata" is missing!) #12

Closed Poomex closed 5 years ago

Poomex commented 5 years ago

I'm trying to import data from the original Jazz 2 SE installation folder on Debian 10, but I keep getting a "Directory "Metadata" is missing!" error. Here's the output of mono Import.exe /check "/home/poomex/.wine/drive_c/Games/Jazz2SE":

poomex@debian:~/Downloads/Jazz2$ mono Import.exe /check "/home/poomex/.wine/drive_c/Games/Jazz2SE" · Importing path "/home/poomex/.wine/drive_c/Games/Jazz2SE"... · Importing assets... · Reading compressed stream... · Detected Jazz Jackrabbit 2 (v1.20/1.23). · Importing animations... · Applying "Toaster PowerUp" palette fix. · Importing audio samples... · Downloading JJ2+ (3 MB)... · Extracting files... · Reading compressed stream... · Detected Jazz Jackrabbit 2 Plus extension. · Importing animations... · Recreating default palette... · Importing episodes... · Episode "monk" (#Funky@Monkeys) converted. · Episode "prince" (#Formerly@a@Prince) converted. · Episode "flash" (#Flashback) converted. · Episode "rescue" (#Jazz@in@Time) converted. · Episode "share" (#Shareware@Levels) converted. · Importing levels... · Level "sharetrs" converted. · Level "labrat3" converted. · Level "sharectf" converted with 2 warnings. · Level "share2" converted with 2 warnings. · Level "share3" converted with 2 warnings. · Level "sharect2" converted with 2 warnings. · Level "carrot1" converted with 1 warnings. · Level "castle1n" converted with 2 warnings. · Level "trainer" converted. · Level "share1" converted with 2 warnings. · Level "labrat2" converted. · Level "carrot1n" converted with 1 warnings. · Level "castle1" converted with 2 warnings. · Level "labrat1" converted. · Summary of unsupported events: · SCENERY_GEMSTOMP 10 · CTF_BASE 4 · CHESHIRE_2 2 · Importing music... · Importing tilesets... · Cleaning "Music" and "Tileset" directories... · Removed 0 files. · Cleaning "Animations" directory... · Removed 0 files. · Compressing content into ".\Content\Main.dz" file... · Adding new content... · Saving changes... · Removing unnecessary files... · Checking "Music" and "Tileset" directories for missing files... · "Music/boss1.j2b" is missing! · "Music/bonus2.j2b" is missing! · "Music/bonus3.j2b" is missing! · Checking "Animations" directory for missing files... · "Animations/_custom/noise.png" is missing! · "Animations/UI/font_medium.png.config" is missing! · "Animations/UI/font_small.png.config" is missing! · Directory "Metadata" is missing!

Then, when I try to run the game I get an error:

poomex@debian:~/Downloads/Jazz2$ mono Jazz2.exe Using 'DefaultAssemblyLoader' to load plugins. Environment Info: Current Directory: /home/poomex/Downloads/Jazz2 Command Line: /home/poomex/Downloads/Jazz2/Jazz2.exe Operating System: Unix 4.19.0.4 64 Bit OS: True 64 Bit Process: True CLR Version: 4.0.30319.42000 Processor Count: 16 Currently Loaded Assemblies: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Jazz2, Version=0.5.8.0, Culture=neutral, PublicKeyToken=null System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Plugin Base Directories: Extensions Available Assembly Paths: Extensions/GL21Backend.core.dll Extensions/OpenALSoft.x64.dll Extensions/OpenALSoft.x86.dll Extensions/OpenTKBackend.core.dll Assembly loaded: GL21Backend, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Assembly loaded: Anonymously Hosted DynamicMethods Assembly, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null Assembly loaded: OpenTKBackend, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null Loading auxiliary libraries... Assembly loaded: OpenTK, Version=1.2.1.0, Culture=neutral, PublicKeyToken=null Initializing OpenTK... Platform Backend: Default EnableHighResolution: True Active graphics backend: OpenGL 2.1 Assembly loaded: System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a Available display devices: First : 1920x1080 at 60 Hz, 32 bpp, pos [ 0, 0] (Primary) Available audio devices: Family 17h (Models 00h-0fh) HD Audio Controller Analog Stereo (Default) Ellesmere HDMI Audio [Radeon RX 470/480 / 570/580/590] Digital Stereo (HDMI) Current device: OpenAL Soft OpenAL Version: 1.1 ALSOFT 1.19.1 Vendor: OpenAL Community Renderer: OpenAL Soft Effects: True Initializing core plugins... DualityApp initialized Debug Mode: False Command line arguments: Window Specification: Buffers: 2 Samples: 0 ColorFormat: 24 (8880) AccumFormat: 0 (0000) Depth: 24 Stencil: 0 VSync: On SwapInterval: 1 OpenGL Version: 4.5 (Compatibility Profile) Mesa 18.3.4 Vendor: X.Org Renderer: Radeon RX 580 Series (POLARIS10, DRM 3.27.0, 4.19.0-4-amd64, LLVM 7.0.1) Shader Version: 4.50

Unhandled Exception: System.IO.FileNotFoundException: File "Shaders\Minimal.vert" was not found in CompressedContent at Jazz2.Storage.Content.CompressedContent.Duality.IO.IFileSystem.OpenFile (System.String path, Duality.IO.FileAccessMode mode) [0x0002b] in <9c18dce9feac4c568ebb9e89b289e6e2>:0 at Duality.IO.FileOp.Open (System.String path, Duality.IO.FileAccessMode mode) [0x00020] in <9c18dce9feac4c568ebb9e89b289e6e2>:0 at Duality.DefaultContent+<>cDisplayClass4_01[T].<InitType>b__0 (System.String name) [0x00032] in <9c18dce9feac4c568ebb9e89b289e6e2>:0 at Duality.DefaultContent.InitType[T] (System.Func2[T,TResult] resourceCreator) [0x0004b] in <9c18dce9feac4c568ebb9e89b289e6e2>:0 at Duality.DefaultContent.InitType[T] (System.String nameExt, System.Func2[T,TResult] resourceCreator) [0x00005] in <9c18dce9feac4c568ebb9e89b289e6e2>:0 at Duality.Resources.VertexShader.InitDefaultContent () [0x00000] in <9c18dce9feac4c568ebb9e89b289e6e2>:0 at Duality.DefaultContent.Init () [0x00008] in <9c18dce9feac4c568ebb9e89b289e6e2>:0 at Duality.DualityApp.InitPostWindow () [0x00000] in <9c18dce9feac4c568ebb9e89b289e6e2>:0 at Duality.DualityApp.OpenWindow (Duality.Backend.WindowOptions options) [0x0001d] in <9c18dce9feac4c568ebb9e89b289e6e2>:0 at Jazz2.Game.App.Main (System.String[] args) [0x00097] in <9c18dce9feac4c568ebb9e89b289e6e2>:0 [ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: File "Shaders\Minimal.vert" was not found in CompressedContent at Jazz2.Storage.Content.CompressedContent.Duality.IO.IFileSystem.OpenFile (System.String path, Duality.IO.FileAccessMode mode) [0x0002b] in <9c18dce9feac4c568ebb9e89b289e6e2>:0 at Duality.IO.FileOp.Open (System.String path, Duality.IO.FileAccessMode mode) [0x00020] in <9c18dce9feac4c568ebb9e89b289e6e2>:0 at Duality.DefaultContent+<>c__DisplayClass4_01[T].b0 (System.String name) [0x00032] in <9c18dce9feac4c568ebb9e89b289e6e2>:0 at Duality.DefaultContent.InitType[T] (System.Func2[T,TResult] resourceCreator) [0x0004b] in <9c18dce9feac4c568ebb9e89b289e6e2>:0 at Duality.DefaultContent.InitType[T] (System.String nameExt, System.Func2[T,TResult] resourceCreator) [0x00005] in <9c18dce9feac4c568ebb9e89b289e6e2>:0 at Duality.Resources.VertexShader.InitDefaultContent () [0x00000] in <9c18dce9feac4c568ebb9e89b289e6e2>:0 at Duality.DefaultContent.Init () [0x00008] in <9c18dce9feac4c568ebb9e89b289e6e2>:0 at Duality.DualityApp.InitPostWindow () [0x00000] in <9c18dce9feac4c568ebb9e89b289e6e2>:0 at Duality.DualityApp.OpenWindow (Duality.Backend.WindowOptions options) [0x0001d] in <9c18dce9feac4c568ebb9e89b289e6e2>:0 at Jazz2.Game.App.Main (System.String[] args) [0x00097] in <9c18dce9feac4c568ebb9e89b289e6e2>:0 AL lib: (EE) alc_cleanup: 1 device not closed

deathkiller commented 5 years ago

It seems that you deleted /Content/Main.dz file that was included in ZIP archive. You have to keep it (or download it again) and then import JJ2 files again, so new files will be merged.

Poomex commented 5 years ago

Thanks, you were right, apparently I deleted it, because extracting the archive again worked. However there now seems to be another unrelated issue so I'll post it separately.