Skip to content

Commit

Permalink
cfct/stpr formats
Browse files Browse the repository at this point in the history
  • Loading branch information
Nenkai committed Jan 14, 2025
1 parent bb49d75 commit 0804f6b
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/resources/formats/cfct.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
icon: material/camera-off
---

# :material-camera-off: CfCt - Camera Fade Table

`.cfct` controls entity fading parameters during photo mode.

This file is a [FlatBuffer](https://flatbuffers.dev/) file.

* [Flatbuffer Schema](https://github.com/Nenkai/GBFRDataTools/blob/master/GBFRDataTools.FlatBuffers/CfCt_CameraFadeTable.fbs)
32 changes: 32 additions & 0 deletions docs/resources/formats/stpr.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
icon: material/progress-download
---

# :material-progress-download: StPr - Streaming Prefetch

`.stpr` files are used to indicate which textures and entities should be preloaded within the specified [quest](../quest_ids.md).

This file is a [FlatBuffer](https://flatbuffers.dev/) file.

* [Flatbuffer Schema](https://github.com/Nenkai/GBFRDataTools/blob/master/GBFRDataTools.FlatBuffers/StPr_StreamingPrefetch.fbs)

---

## ObjectPreloadRequest

Contains the list of [entities/objects](../re/obj_id.md) that should be loaded.


---

## TexturePreloadRequest

Contains the list of granite textures that should be loaded. Their keys are hashes of granite texture files.

For instance:

```
XXHash64("a929045e256fa2e20c1785c65c09c2f540b09037bceba4df7769a9be95779bd7")
```

Is equal to hash `804BD56EE16E60A1`.
2 changes: 2 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,11 @@ nav:
- Placement Info: resources/quests_layouts/placement.md

- Formats:
.cfct - Camera Fade Table: resources/formats/cfct.md
.minfo - Model Info: resources/formats/minfo.md
.mmat - Material Info: resources/formats/mmat.md
.objread - Obj Read: resources/formats/objread.md
.stpr - Streaming Prefetch: resources/formats/stpr.md

- Reverse-Engineering:
API: resources/re/api.md
Expand Down

0 comments on commit 0804f6b

Please sign in to comment.