Gildor's Forums

Author Topic: A Hat in Time  (Read 3424 times)
Gildor
Administrator
Hero Member
*****
Posts: 7693



View Profile WWW
Re: A Hat in Time
« Reply #15 on: February 03, 2020, 19:12 »

Just a few lines above ...
https://www.gildor.org/smf/index.php/topic,6228.msg31620.html#msg31620
Logged
MrSoup678
Newbie
*
Posts: 4


View Profile
Re: A Hat in Time
« Reply #16 on: February 11, 2020, 17:46 »

OK. In my free time I'm working on support for A Hat in Time.

I fixed the USkeletalMeshes and UAnimSets.

However I'm stumped at UStaticMesh.

Apparently FStaticMeshLODModel3 has some data appended to it.

It's not a problem when I have one LOD, but it crashes on multiple LOD.

Here's my question.

Where to find that struct in IDA?

PS: Size dif between serialized single LOD data and stopper is 133 B. Even then I'm not sure if that's variable.
Logged
Gildor
Administrator
Hero Member
*****
Posts: 7693



View Profile WWW
Re: A Hat in Time
« Reply #17 on: February 11, 2020, 17:51 »

Where to find that struct in IDA?
It's hard. The chain of findings is roughly this:

1. Find UStaticMesh constructor, it's linked to "StaticMesh" string with UClass::UClass.
2. Find class VMT (virtual method table).
3. Find Serialize method in VMT.
4. Recognize basic functions, e.g. TArray<UMaterialInterface> serializer, etc.
5. Compare code in IDA with e.g. UModel's UStaticMesh::Serialize code, find where LODs are serialized - in assembly.

And so on ...
Logged
MrSoup678
Newbie
*
Posts: 4


View Profile
Re: A Hat in Time
« Reply #18 on: February 11, 2020, 18:15 »

And unfortunately I'm not that versed in assembly.

I'll soon post what I have so far as fork.
Logged
MrSoup678
Newbie
*
Posts: 4


View Profile
Re: A Hat in Time
« Reply #19 on: February 11, 2020, 18:32 »

Got it: https://github.com/gildor2/UEViewer
Logged
09williamsad
Newbie
*
Posts: 14



View Profile WWW
Re: A Hat in Time
« Reply #20 on: May 23, 2020, 13:04 »

Which fork is yours?, that link is to the main github and there are 221 forks.
Logged

Loads of assets I have ripped/extracted tinyurl.com/09williamsad
Jump to:  

Powered by SMF | SMF © 2006-2009, Simple Machines LLC
Leviathan design by Bloc | XHTML | CSS