Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Evangelion Battlefields skeletal mesh loading #176

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions Unreal/GameDatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,9 @@ const GameInfo GListOfGames[] = {
# if DAUNTLESS
G("Dauntless", dauntless, GAME_Dauntless),
# endif
# if EVANGELION
G("Evangelion Battlefields", evangelion, GAME_Evangelion),
# endif
# if PARAGON
G("Paragon", paragon, GAME_Paragon),
# endif
Expand Down
1 change: 1 addition & 0 deletions Unreal/GameDefines.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@
#define KH3 1 // Kingdom Hearts 3
#define JEDI 1 // Star Wars Jedi: Fallen Order
#define SEAOFTHIEVES 1 // Sea of Thieves
#define EVANGELION 1 // Evangelion Battlefields

#define SPECIAL_TAGS 1 // games with different PACKAGE_FILE_TAG

Expand Down
1 change: 1 addition & 0 deletions Unreal/UnCore.h
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ enum EGame
GAME_Jedi = GAME_UE4(21)+1,
// 4.24
GAME_Dauntless = GAME_UE4(24)+1,
GAME_Evangelion = GAME_UE4(24)+2,

GAME_ENGINE = 0xFFF0000 // mask for game engine
};
Expand Down
9 changes: 9 additions & 0 deletions Unreal/UnrealMesh/UnMesh4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,15 @@ struct FSkelMeshSection4
if (Ar.Game == GAME_Paragon) return;
#endif

#if EVANGELION
if (Ar.Game == GAME_Evangelion)
{
int32 unk1;
Ar << unk1;
return;
}
#endif // EVANGELION

FDuplicatedVerticesBuffer DuplicatedVerticesBuffer;
Ar << DuplicatedVerticesBuffer;
Ar << S.bDisabled;
Expand Down
Binary file modified umodel.exe
Binary file not shown.