[DiscordArchive] isn't that mostly a good habit?
[DiscordArchive] isn't that mostly a good habit?
Archived author: MaxtorCoder • Posted: 2019-05-22T14:22:12.806000+00:00
Original source
I always get confused by the way CASC hashes it's files XD
Archived author: MaxtorCoder • Posted: 2019-05-22T14:22:59.757000+00:00
Original source
And I BADLY need to put CASC loading into threading
Archived author: A2 • Posted: 2019-05-22T14:23:09.362000+00:00
Original source
![[Image: unknown.png?ex=690caf4d&is=690b5dcd&hm=1...167a2069d&]](https://cdn.discordapp.com/attachments/408013572430626817/580762581019525172/unknown.png?ex=690caf4d&is=690b5dcd&hm=11dd52d6fabd202a44ede81e45c835bfd6bc2559702a06269133402167a2069d&)
Archived author: MaxtorCoder • Posted: 2019-05-22T14:23:37.716000+00:00
Original source
```
FileNotFoundException: 8A3271866FEF06AB
CASCLib.CASCHandler.OpenFile (System.UInt64 hash) (at Assets/Data/CascLib/CASCHandler.cs:137)
M2.ParseM2_Root (System.UInt64 hash, Assets.Data.WoW_Format_Parsers.M2.M2_Data+M2Data m2Data, Assets.Data.WoW_Format_Parsers.M2.M2Texture m2Tex) (at Assets/Data/WoW Format Parsers/M2/M2.cs:109)
M2.Load (System.UInt64 Hash, System.Int32 uniqueID, UnityEngine.Vector3 position, UnityEngine.Quaternion rotation, UnityEngine.Vector3 scale) (at Assets/Data/WoW Format Parsers/M2/M2.cs:80)
UnityEngine.Debug:LogException(Exception)
M2:Load(UInt64, Int32, Vector3, Quaternion, Vector3) (at Assets/Data/WoW Format Parsers/M2/M2.cs:95)
DevTools:ReadDB2(String) (at Assets/UI/DevTools.cs:23)
UnityEngine.EventSystems.EventSystem:Update()
``` ...............................
Archived author: MaxtorCoder • Posted: 2019-05-22T14:23:39.785000+00:00
Original source
<a:REEE:562416793176768523>
Archived author: MaxtorCoder • Posted: 2019-05-22T14:24:02.128000+00:00
Original source
WHY IS IT NOT FOUND WHILE IT IS LITERALLY RIGHT THERE?!?!?!
Archived author: MaxtorCoder • Posted: 2019-05-22T14:24:11.068000+00:00
Original source
https://gyazo.com/f792ce51e769f844a0186afa95d7aede
[Embed: Gyazo]
https://gyazo.com/f792ce51e769f844a0186afa95d7aede
Archived author: MaxtorCoder • Posted: 2019-05-22T14:24:14.855000+00:00
Original source
Grrrrrrr
Archived author: Kaev • Posted: 2019-05-22T14:24:55.803000+00:00
Original source
Show the OpenFile function
Archived author: MaxtorCoder • Posted: 2019-05-22T14:25:05.155000+00:00
Original source
```cs
public override Stream OpenFile(ulong hash)
{
if (GetEncodingEntry(hash, out EncodingEntry encInfo))
return OpenFile(encInfo.Key);
if (CASCConfig.ThrowOnFileNotFound)
Debug.Log($"File not found: {hash:X16}");
return null;
}
```