Skip to content

Commit 17165c5

Browse files
committed
Fix Sec file formats and Version Update
1 parent d4f5c6f commit 17165c5

File tree

5 files changed

+39
-34
lines changed

5 files changed

+39
-34
lines changed

ResourceFileEditor/Properties/AssemblyInfo.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212
using System.Reflection;
1313

1414
[assembly: System.Reflection.AssemblyCompanyAttribute("https://github.com/MadDeCoDeR")]
15-
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
15+
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
1616
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © 2025 MadDeCoDeR")]
1717
[assembly: System.Reflection.AssemblyDescriptionAttribute("This is a file manager for DOOM 3 BFG Edition/DOOM 3 (2019) .resources files. It " +
1818
"allows you to see, extract, delete, preview and edit the files inside .resources" +
1919
" files. Also it allows you to create and edit .resource files.")]
20-
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.6")]
21-
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.216.636-Development+42facfa9318f07113d79b1be18f25139b56ab3fb")]
20+
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.7")]
21+
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.216.673+d4f5c6f59489a9582654b4b4189b54e914a9a390")]
2222
[assembly: System.Reflection.AssemblyProductAttribute("BFG Resource File Manager")]
2323
[assembly: System.Reflection.AssemblyTitleAttribute("ResourceFileEditor")]
24-
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.6")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.7")]
2525
[assembly: System.Reflection.AssemblyMetadataAttribute("RepositoryUrl", "https://github.com/MadDeCoDeR/BFG-Resource-File-Manager")]
2626
[assembly: System.Resources.NeutralResourcesLanguageAttribute("en-US")]
2727
[assembly: System.Runtime.Versioning.TargetPlatformAttribute("Windows7.0")]

ResourceFileEditor/ResourceFileEditor.csproj

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,21 @@
55
<OutputType>WinExe</OutputType>
66
<UseWindowsForms>true</UseWindowsForms>
77
<PlatformTarget>AnyCPU</PlatformTarget>
8-
<AssemblyVersion>1.0.6</AssemblyVersion>
9-
<FileVersion>1.0.6</FileVersion>
8+
<AssemblyVersion>1.0.7</AssemblyVersion>
9+
<FileVersion>1.0.7</FileVersion>
1010
<TargetFrameworks>net8.0-windows</TargetFrameworks>
1111
<UseWPF>True</UseWPF>
12+
<SignAssembly>False</SignAssembly>
1213
</PropertyGroup>
1314
<PropertyGroup Condition="'$(Configuration)'=='Release'">
1415
<DebugType>none</DebugType>
1516
</PropertyGroup>
1617
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0-windows|AnyCPU'">
1718
<TreatWarningsAsErrors>True</TreatWarningsAsErrors>
19+
<IsPublishable>False</IsPublishable>
20+
</PropertyGroup>
21+
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-windows|AnyCPU'">
22+
<IsPublishable>False</IsPublishable>
1823
</PropertyGroup>
1924
<ItemGroup>
2025
<Compile Update="ManagerUi.cs">

ResourceFileEditor/specs.bimage.txt

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
DOOM 3 BFG Edition .bimage specification
22

3-
|Byte |Size |Swaped|Description |
3+
|Byte |Size |Swaped|Description |
44
|-----------|:------------------:|:----:|-----------------------------------------:|
5-
|0x0 |8 | Yes |Timestamp |
6-
|0x8 |4 | Yes |The file's "magic" identifier (BIM10) |
7-
|0x12 |4 | Yes |Texture Type |
8-
|0x16 |4 | Yes |Texture Format |
9-
|0x20 |4 | Yes |Color Format |
10-
|0x24 |4 | Yes |Texture Width |
11-
|0x28 |4 | Yes |Texture Height |
12-
|0x32 |4 | Yes |Number of Levels |
5+
|0x0 |8 | Yes |Timestamp |
6+
|0x8 |4 | Yes |The file's "magic" identifier (BIM10) |
7+
|0x12 |4 | Yes |Texture Type |
8+
|0x16 |4 | Yes |Texture Format |
9+
|0x20 |4 | Yes |Color Format |
10+
|0x24 |4 | Yes |Texture Width |
11+
|0x28 |4 | Yes |Texture Height |
12+
|0x32 |4 | Yes |Number of Levels |
1313

1414

1515
For each Level data are using the following specification
1616
|Byte |Size |Swaped|Description |
1717
|-----------------|:-------------:|:----:|------------------------------:|
1818
|0x0 |4 | Yes |Level |
19-
|0x4 |4 | Yes |Z-index |
20-
|0x8 |4 | Yes |Image Width |
21-
|0x12 |4 | Yes |Image Height |
22-
|0x16 |4 | Yes |Image Data Size(datasize) |
23-
|0x20 |datasize | No* |Image Data |
19+
|0x4 |4 | Yes |Z-index |
20+
|0x8 |4 | Yes |Image Width |
21+
|0x12 |4 | Yes |Image Height |
22+
|0x16 |4 | Yes |Image Data Size(datasize) |
23+
|0x20 |datasize | No* |Image Data |
2424

2525
On both tables if swaped is 'Yes' it means that the first half and last half of bytes are switched between them.
2626

ResourceFileEditor/specs.idwav.txt

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
DOOM 3 BFG Edition .idwav specification
22

3-
|Byte |Size |Swaped|Description |
3+
|Byte |Size |Swaped|Description |
44
|-----------|:------------------:|:----:|-------------------------------------------------------------------------------------------------------------:|
5-
|0x0 |4 | Yes |The file's "magic" identifier (0x6D7A7274) |
6-
|0x4 |8 | Yes |Timestamp |
7-
|0x12 |1 | No |loaded flag (must be true) |
8-
|0x13 |4 | Yes |xma2's loopBegin shortcut |
9-
|0x17 |4 | Yes |length of the audio |
10-
|0x21 |WAVEFORMATEX Length | No |WAVEFORMATEX chunk (check https://docs.microsoft.com/en-us/windows/win32/api/mmeapi/ns-mmeapi-waveformatex) |
11-
|chunk size |4 | Yes |Amplitudes array length |
12-
|prev + 4 |amplitude num | No |Amplitudes array |
13-
|prev + amps|4 | Yes |Total buffer Size |
14-
|prev + 4 |4 | Yes |Buffer array length |
5+
|0x0 |4 | Yes |The file's "magic" identifier (0x6D7A7274) |
6+
|0x4 |8 | Yes |Timestamp |
7+
|0x12 |1 | No |loaded flag (must be true) |
8+
|0x13 |4 | Yes |xma2's loopBegin shortcut |
9+
|0x17 |4 | Yes |length of the audio |
10+
|0x21 |WAVEFORMATEX Length | No |WAVEFORMATEX chunk (check https://docs.microsoft.com/en-us/windows/win32/api/mmeapi/ns-mmeapi-waveformatex) |
11+
|chunk size |4 | Yes |Amplitudes array length |
12+
|prev + 4 |amplitude num | No |Amplitudes array |
13+
|prev + amps|4 | Yes |Total buffer Size |
14+
|prev + 4 |4 | Yes |Buffer array length |
1515

1616
Unlike amplitudes which is a byte array, the buffer array have entries of the following format
1717
|Byte |Size |Swaped|Description |
1818
|-----------------|:-------------:|:----:|-------------------------------------------------:|
1919
|0x0 |4 | Yes |Number of Buffer samples |
20-
|0x4 |4 | Yes |Buffer Size |
21-
|0x8 |buffer size | No |Buffer Data |
20+
|0x4 |4 | Yes |Buffer Size |
21+
|0x8 |buffer size | No |Buffer Data |
2222

2323
On both tables if swaped is 'Yes' it means that the first half and last half of bytes are switched between them.
2424

ResourceFileEditor/specs.resources.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
|0x8 |4 | Yes |The byte length of the Table of Contents (tocsize) |
88
|tocoffset |4 | Yes |The number of files inside the resource file |
99
|tocoffset+4|tocsize-4| No |Table of Contents |
10-
|tocsize-4 |4 | No |Dummy value (just a zero) |
10+
|tocsize-4 |4 | No |Dummy value (just a zero) |
1111

1212
Each Table of Contents entry is consist of the following
1313

0 commit comments

Comments
 (0)