Closed Soreepeong closed 1 year ago
I'm actually working on terrain export right now, and fixing stuff while at it; do you want to check out back later when I'm reasonably done enough?
That sounds good. I'd like to package up all the changes into a new release in the near future, but want to see if all the non Sonic models work with the new export format as well.
I think it works for what's implemented. The rest seems to be about shader-specific implementations that probably can't be exported very well, so I'd consider this the extent of automation I would do.
Let me know if you're good with this as is and I'll get it merged. Thanks!
Yeah, I think I'm done with it for the time being. If I touch it again, then it will belong in another PR!
This is working great for other game models. Once again, thank you a TON for this patch!
Good to hear! I guess there are a lot of games that are tied to this specific version of terrain related files?
IPackFileSystem
, and implementedRealFileSystem
for passthrough andWiiuStreamPackFileSystem
for Rise of Lyric.ReadByte
intoReadCryInt
.Usage
This will take everything in the game's root content directory, and assume whatever's in wiiu.stream file also exists in the game root content directory. If multiple files of same name exists, the most recently discovered one takes place.
This currently has a memory leak (converted 2542 files, and it takes 28GB RAM.) Probably need to fix it.AddingGC.Collect(int.MaxValue, GCCollectionMode.Forced, true, true);
"fixes" it. GC must be running on extremely lazy mode. Good enough!