Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial support for BtVS: Chaos Bleeds (Xbox) #33

Merged
merged 3 commits into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ _(Priority currently lies with Spyro and G-Force)_
| Game (EDB Version) | Textures <sup>[1]</sup> | Maps | Scripts | Entities | Animations | Particles | Spreadsheets |
| ---------------------------------------------- | ----------------------- | ---- | ------- | -------- | ---------- | --------- | ------------ |
| Sphinx and the Shadow of Set Demo Disc (156) | ✅/❌ | ❌ | ❌ | ✅/❌ | ❌ | ❌ | ✅/❌ |
| Buffy The Vampire Slayer: Chaos Bleeds (170) | ✅/❌ | ❌ | ❌ | ✅/❌ | ❌ | ❌ | ❔/❌ |
| Sphinx and the Cursed Mummy (182) | ✅/❌ | ❌ | ❌ | ✅/❌ | ❌ | ❌ | ✅/❌ |
| Spyro: A Hero's Tail (240) | ✅/❌ | ✅/❌ | ❌ | ✅/❌ | ❌ | ❌ | ✅/❌ |
| Robots (248) | ✅/❌ | ✅/❌ | ❌ | ✅/❌ | ❌ | ❌ | ✅/❌ |
Expand Down
2 changes: 1 addition & 1 deletion eurochef-edb/src/edb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ impl EdbFile {
));
}

if !(182..=263).contains(&version) {
if !(170..=263).contains(&version) {
return Err(crate::error::EurochefError::Unsupported(
crate::error::UnsupportedError::Version(version),
));
Expand Down
2 changes: 1 addition & 1 deletion eurochef-edb/src/entity_mesh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ impl BinRead for EXGeoMeshEntity {
});
} else {
match version {
252 | 250 | 251 | 240 | 221 => {
252 | 250 | 251 | 240 | 221 | 170 => {
let d = reader.read_type::<(EXVector3, u32, EXVector2)>(endian)?;
vertices.push(UXGeoMeshVertex {
pos: d.0,
Expand Down
3 changes: 2 additions & 1 deletion eurochef-edb/src/texture.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ pub struct EXGeoTexture {
pub clut_offset: Option<EXRelPtr>,

/// Certain platforms such as PC and PS2 calculate data size from other parameters.
/// Some games (e.g. Chaos Bleeds on Xbox) also seem to do this.
/// For general usage it is not recommended to rely on this field exlusively for data size.
#[brw(if(platform != Platform::Pc && platform != Platform::Ps2))]
#[brw(if(platform != Platform::Pc && platform != Platform::Ps2 && !(version == 170 && platform == Platform::Xbox)))]
pub data_size: Option<u32>,

#[br(count = image_count)]
Expand Down
Loading