EgoEngineModding / ego.nefsedit

NeFS archive editor for Ego Engine
MIT License
25 stars 9 forks source link

Explanation for Red and Blue lines? #16

Open mantazzo opened 4 years ago

mantazzo commented 4 years ago

Hey, I've opened a certain v1.6 .dat file and in the Debug View I'm seeing lots of certain lines being Red and Blue. Could you explain what does it mean and if anything can be done about that?

Also, if that's a repetitive question, sorry.

victorbush commented 4 years ago

The blue lines indicate the item is a directory. This is determined by the isDirectory flag in header part 6.

The red lines indicate the item is a duplicate entry. This is determined by the isDuplicate flag. The meaning of duplicate entries is not fully known at this time.

The coloring was just added for debugging/development to help those items stand out.

mantazzo commented 4 years ago

Hmm, interesting. However, I got the blue line on files too. screenshot Anything I can help there with, or try to help with at least? EDIT: Small update - I tried opening the .dat file using a different exe available, and a different part of the file is now available - with the previous exe the files above were shown like that, however with the different exe I used these became available, but now different files (which previously weren't shown as bad) became "bad". Just sharing, maybe this will be helpful.

victorbush commented 4 years ago

Can you provide more details on what file you are opening and how you are opening it (what game, header offsets, etc)? If files are being marked as a directory then some of the metadata may not be matching up correctly - potentially the offsets in the executable to the header parts aren't being found properly.

mantazzo commented 4 years ago

So the game I'm trying to look at is the F1 2020 Beta one, and while I understand it's a Beta, I think it should rather still work fine. I do try to open them using the "Custom" option, and I tried both the DX11 executable, and the DX12 executable - both give different results.