Giter VIP home page Giter VIP logo

Comments (6)

Traderain avatar Traderain commented on June 11, 2024

1a17282 does the basic parsing of Texture.cache but since #11 's texture converter is not fixed yet it can't be actually used.

from wolvenkit.

Traderain avatar Traderain commented on June 11, 2024

ae1f27a does the basic reading of sound.cache and texture.cache

from wolvenkit.

Traderain avatar Traderain commented on June 11, 2024

Shader and dep etc. cache is only binary data and the game can be asked to recompile those. So similarly to redcripts unless we find a really good reason to parse them it is unnecessary to research them.

EDIT: Aluigi was mistaken. Thy are actual archives but with weird files.

from wolvenkit.

Traderain avatar Traderain commented on June 11, 2024

Soundcache is implemented in 028803b.

from wolvenkit.

Traderain avatar Traderain commented on June 11, 2024

CollisionCache:

Int32    MW "CC3W"
Int32    Version 9
Int64     Unk
Int32    InfoOffset
Int32    NumberOfFiles
Int32    FileNameTableStartOffset
Int32    SizeOfNameTable
Int32    BufferSize
Int32    Fnv1A64Hash(NamesTable+InfoTable)

br.BaseStream.Seek(InfoOffset,SeekOrigin.Begin);
for(int i = 0; i < NumberOfFiles;i++)
{
    Int64    Unk1 //Maybe always null?
    Int64    NameOffset
    Int32    Offset
    Int32    Length
    Int64    Unknown2
    Int64    Unknown3
    Int64    Unknown4
    Int64    Unknown5
    Int64    Unknown6
    Int64    CompressionType
}

Files inside are convex meshes (.nxs) from PhysX:
https://github.com/H-uru/libhsplasma/blob/0dd7b9b0f309231d49147cc57b0173b7ad3e801d/core/PRP/Physics/plPXPhysical.cpp#L146

This is what reads the base file:
https://github.com/H-uru/libhsplasma/blob/0dd7b9b0f309231d49147cc57b0173b7ad3e801d/core/PRP/Physics/plGenericPhysical.cpp#L523
This helps with #5 .

from wolvenkit.

rfuzzo avatar rfuzzo commented on June 11, 2024

Collision.cache item:

NameOffset = br.ReadUInt64(),
Unk1 = br.ReadUInt64(),       //NULL?
PageOFfset = br.ReadUInt32(),
ZSize = br.ReadUInt32(),
Size = (long)br.ReadUInt64(),
Unk2= br.ReadBytes(16),    // Some hash or GUID
Unk3 = br.ReadBytes(16),     // Some hash or GUID
Comtype = br.ReadUInt64()

from wolvenkit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.