Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
kran27 committed Jan 8, 2025
2 parents d5face1 + 38ecfab commit d1cd8f2
Show file tree
Hide file tree
Showing 9 changed files with 1,687 additions and 1,684 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Various tools and code relating to reverse engineering Fallout Van Buren
### VBLauncher
The main thing. features include:
- Edit game and dgVoodoo settings
- Load mods [VERY WIP]
- Load mods with ModOrganizer 2 inspired UI (mostly functional)
- Edit game files [WIP]
- Extract game files from .grp (feature parity with ungrp, no other tools needed)
- Visual preview of game resources (models, textures, etc.) [WIP]
Expand Down
11 changes: 7 additions & 4 deletions VBLauncher/Classes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1730,7 +1730,7 @@ public struct rect
public int x2;
public int y2;
}

public struct fragment
{
public int width;
Expand All @@ -1751,7 +1751,7 @@ public struct obj

public string name = "";
public List<obj> objects = [];

public INT(byte[] b)
{
var ms = new MemoryStream();
Expand All @@ -1761,7 +1761,9 @@ public INT(byte[] b)

// TODO: implement two font logic (uncertain my ImHex pattern handles properly)
// var twofont = false;


// any reads not marked with a comment are unknown values that may be stored later (assumed type)

br.ReadBytes(7); // header, ignore
var revision = br.ReadByte() - 0x30; // 0x30 to convert ASCII to int
var name_length = br.ReadInt32();
Expand All @@ -1774,7 +1776,8 @@ public INT(byte[] b)
obj.magic = br.ReadInt32();
if (obj.magic == 1)
{
if (revision == 3) {
if (revision == 3)
{
// i have not researched this bit of data
br.ReadBytes(5);
var s1 = br.ReadInt32();
Expand Down
Loading

0 comments on commit d1cd8f2

Please sign in to comment.