Hi,
There seems to be a bug in TVPackage in the latest release. I built a simple package app to pack my game files with the previous MTV3D65.dll, which worked well.
Using this code:
Dim TV3D As New TVEngine
Dim tPack As New TVPackage
Dim strFileSize As String = ""
Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
Dim i, iPak As Integer
Dim retBln As Boolean
TV3D.Init3DNoRender(Me.Handle)
'Dim strKey As String = GenerateKey()
'txtKey.Text = strKey
Me.Cursor = Cursors.WaitCursor
iPak = tPack.CreatePackage(Me.txtSrcDir_Pak.Text & "\" & Me.txtFile_Pak.Text)
tPack.SetArchivePassword(Me.txtKey_Pak.Text)
For i = 0 To ListBox2.Items.Count - 1
retBln= tPack.AddFile(Me.txtSrcDir_Pak.Text & "/" & ListBox2.Items(i), ListBox2.Items(i), iPak)
Next
tPack.ClosePackage(iPak)
Me.Cursor = Cursors.Default
End Sub
The latest release reads files packed with the previous release correctly.
11-11-2009 15:26:25 | PACKAGE_MANAGER : Opening Package 'Media\pakLand.tpak'.
11-11-2009 15:26:25 | PACKAGE_MANAGER : Protected File: grass2a.bmp (33/66614)
11-11-2009 15:26:25 | PACKAGE_MANAGER : Protected File: Thumbs.db (66676/127488)
11-11-2009 15:26:25 | PACKAGE_MANAGER : Protected File: TX1024-NEa.jpg (194198/382661)
11-11-2009 15:26:25 | PACKAGE_MANAGER : Protected File: TX1024-NWa.jpg (576893/382206)
11-11-2009 15:26:25 | PACKAGE_MANAGER : Protected File: TX1024-SEa.jpg (959133/272642)
11-11-2009 15:26:25 | PACKAGE_MANAGER : Protected File: TX1024-SWa.jpg (1231809/361947)
11-11-2009 15:26:25 | PACKAGE_MANAGER : Protected File: varna4096BW_8bbp.dds (1593796/16777344)
11-11-2009 15:26:25 | PACKAGE_MANAGER : Protected File: varna4096_NW_8bbp.dds (18371181/16777344)
11-11-2009 15:26:25 | PACKAGE_MANAGER : Protected File: varna4096_SE_8bbp.dds (35148566/16777344)
11-11-2009 15:26:25 | PACKAGE_MANAGER : Protected File: varna4096_SW_8bbp.dds (51925951/16777344)
11-11-2009 15:26:25 | PACKAGE_MANAGER : Protected File: VarnaWorking.dat (68703331/335940)
11-11-2009 15:26:25 | PACKAGE_MANAGER : End of Archive.
11-11-2009 15:26:25 | PACKAGE_MANAGER : Package opened successfully.
11-11-2009 15:26:25 | PACKAGE_MANAGER : Extracting encrypted file 'varna4096_SW_8bbp.dds' from package to memory stream.
11-11-2009 15:26:26 | TEXTURE MANAGER : Loading of '##PACKAGE:-1|varna4096_SW_8bbp.dds' successful 'gmap00' on index 15
11-11-2009 15:26:26 | PACKAGE_MANAGER : Cleaning up allocated memory.
11-11-2009 15:26:26 | PACKAGE_MANAGER : Extracting encrypted file 'varna4096_SE_8bbp.dds' from package to memory stream.
11-11-2009 15:26:27 | TEXTURE MANAGER : Loading of '##PACKAGE:-1|varna4096_SE_8bbp.dds' successful 'gmap10' on index 16
11-11-2009 15:26:27 | PACKAGE_MANAGER : Cleaning up allocated memory.
11-11-2009 15:26:27 | PACKAGE_MANAGER : Extracting encrypted file 'varna4096_NW_8bbp.dds' from package to memory stream.
11-11-2009 15:26:28 | TEXTURE MANAGER : Loading of '##PACKAGE:-1|varna4096_NW_8bbp.dds' successful 'gmap01' on index 17
11-11-2009 15:26:28 | PACKAGE_MANAGER : Unable to locate file in any open package 'varna4096_NE_8bbp.dds'.
11-11-2009 15:26:28 | TEXTURE MANAGER : Couldn't find the texture file ##PACKAGE:-1|varna4096_NE_8bbp.dds.
11-11-2009 15:26:28 | LANDSCAPE : Landscape object #0 has been initialized
11-11-2009 15:26:28 | PACKAGE_MANAGER : Cleaning up allocated memory.
11-11-2009 15:26:28 | PACKAGE_MANAGER : Extracting encrypted file 'VarnaWorking.dat' from package to memory stream.
11-11-2009 15:26:28 | LANDSCAPE : heightmap filename is a NULL ! Creating a empty terrain #0
11-11-2009 15:26:28 | LANDSCAPE : 16x16 Landscape successfully generated with 20736 vertices and 124416 indices in 0 milliseconds.
11-11-2009 15:26:28 | LANDSCAPE : Quadtree created for the landscape in 0 milliseconds.
11-11-2009 15:26:28 | LANDSCAPE : Quadtree created for the landscape in 0 milliseconds.
11-11-2009 15:26:28 | PACKAGE_MANAGER : Cleaning up allocated memory.
11-11-2009 15:26:28 | PACKAGE_MANAGER : Extracting encrypted file 'TX1024-NWa.jpg' from package to memory stream.
11-11-2009 15:26:29 | TEXTURE MANAGER : Loading of '##PACKAGE:-1|TX1024-NWa.jpg' successful 'LandNW' on index 18
11-11-2009 15:26:29 | PACKAGE_MANAGER : Cleaning up allocated memory.
11-11-2009 15:26:29 | PACKAGE_MANAGER : Extracting encrypted file 'TX1024-NEa.jpg' from package to memory stream.
11-11-2009 15:26:29 | TEXTURE MANAGER : Loading of '##PACKAGE:-1|TX1024-NEa.jpg' successful 'LandNE' on index 19
11-11-2009 15:26:29 | PACKAGE_MANAGER : Cleaning up allocated memory.
11-11-2009 15:26:29 | PACKAGE_MANAGER : Extracting encrypted file 'TX1024-SEa.jpg' from package to memory stream.
11-11-2009 15:26:29 | TEXTURE MANAGER : Loading of '##PACKAGE:-1|TX1024-SEa.jpg' successful 'LandSE' on index 20
11-11-2009 15:26:29 | PACKAGE_MANAGER : Cleaning up allocated memory.
11-11-2009 15:26:29 | PACKAGE_MANAGER : Extracting encrypted file 'TX1024-SWa.jpg' from package to memory stream.
11-11-2009 15:26:29 | TEXTURE MANAGER : Loading of '##PACKAGE:-1|TX1024-SWa.jpg' successful 'LandSW' on index 21
11-11-2009 15:26:29 | PACKAGE_MANAGER : Cleaning up allocated memory.
11-11-2009 15:26:29 | PACKAGE_MANAGER : Extracting encrypted file 'grass2a.bmp' from package to memory stream.
11-11-2009 15:26:29 | TEXTURE MANAGER : Loading of '##PACKAGE:-1|grass2a.bmp' successful 'LDetail' on index 22
11-11-2009 15:26:29 | PACKAGE_MANAGER : Closing package.
The latest release seems to pack files with some corruption in the header.
11-11-2009 15:26:41 | PACKAGE_MANAGER : Opening Package 'Media\pakBuildings.tpak'.
11-11-2009 15:26:41 | PACKAGE_MANAGER : Unknown header type in package (0) near 6.
11-11-2009 15:26:41 | PACKAGE_MANAGER : Unexpected end of file.
11-11-2009 15:26:41 | PACKAGE_MANAGER : Closing package.
11-11-2009 15:26:41 | PACKAGE_MANAGER : Unable to locate file in any open package 'RPGHouse1.jpg'.
11-11-2009 15:26:41 | TEXTURE MANAGER : Couldn't find the texture file ##PACKAGE:-1|RPGHouse1.jpg.
11-11-2009 15:26:41 | PACKAGE_MANAGER : Unable to locate file in any open package 'RPGHouse3.jpg'.
11-11-2009 15:26:41 | TEXTURE MANAGER : Couldn't find the texture file ##PACKAGE:-1|RPGHouse3.jpg.
11-11-2009 15:26:41 | PACKAGE_MANAGER : Unable to locate file in any open package 'house1.bmp'.
11-11-2009 15:26:41 | TEXTURE MANAGER : Couldn't find the texture file ##PACKAGE:-1|house1.bmp.
11-11-2009 15:26:41 | PACKAGE_MANAGER : Unable to locate file in any open package 'canopy.jpg'.
11-11-2009 15:26:41 | TEXTURE MANAGER : Couldn't find the texture file ##PACKAGE:-1|canopy.jpg.
11-11-2009 15:26:41 | PACKAGE_MANAGER : Unable to locate file in any open package 'U_6.bmp'.
11-11-2009 15:26:41 | TEXTURE MANAGER : Couldn't find the texture file ##PACKAGE:-1|U_6.bmp.
11-11-2009 15:26:41 | PACKAGE_MANAGER : Unable to locate file in any open package 'saltbox_tex.jpg'.
11-11-2009 15:26:41 | TEXTURE MANAGER : Couldn't find the texture file ##PACKAGE:-1|saltbox_tex.jpg.
11-11-2009 15:26:41 | PACKAGE_MANAGER : Unable to locate file in any open package 'LARGEHUT_512.jpg'.
11-11-2009 15:26:41 | TEXTURE MANAGER : Couldn't find the texture file ##PACKAGE:-1|LARGEHUT_512.jpg.
11-11-2009 15:26:41 | PACKAGE_MANAGER : Unable to locate file in any open package 'RPG_sHouse.x'.
I can't use the the previous MTV3D65.dll with the latest Nov 2009 DX9 due to a 'Attempted to read or write protected memory' presumably due to the latest dependencies. Has anyone else had this problem with the packager?
cheers.