Skip to content

Commit

Permalink
Star Wars Jedi: Fallen Order - mesh support
Browse files Browse the repository at this point in the history
  • Loading branch information
gildor2 committed Nov 20, 2019
1 parent 5e1f16c commit 1b199f2
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 1 deletion.
1 change: 1 addition & 0 deletions Tools/CompatTable/developers.ini
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ Raven Software=http://en.wikipedia.org/wiki/Raven_Software
Realtime Worlds=http://en.wikipedia.org/wiki/Realtime_Worlds
Red Thread Games=https://en.wikipedia.org/wiki/Red_Thread_Games
Reloaded Productions=http://en.wikipedia.org/wiki/K2_Network
Respawn Entertainment=https://en.wikipedia.org/wiki/Respawn_Entertainment
Robomodo=http://en.wikipedia.org/wiki/Robomodo
Roll7=http://en.wikipedia.org/wiki/Roll7
Rocksteady Studios=http://en.wikipedia.org/wiki/Rocksteady_studios
Expand Down
9 changes: 8 additions & 1 deletion Tools/CompatTable/table.ini
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,13 @@ Toys for Bob
https://en.wikipedia.org/wiki/Spyro_Reignited_Trilogy
https://www.gildor.org/smf/index.php/topic,6784.0.html
[Star Wars Jedi: Fallen Order]
Y Y Y Y UE4.21
Respawn Entertainment
https://en.wikipedia.org/wiki/Star_Wars_Jedi:_Fallen_Order
https://www.gildor.org/smf/index.php/topic,6870.0.html
; -game=jedi
[Terminator: Resistance]
Y Y Y Y UE4.22
Teyon
Expand Down Expand Up @@ -864,7 +871,7 @@ http://en.wikipedia.org/wiki/Abzu_(video_game)
https://www.gildor.org/smf/index.php/topic,3053.0.html

[Dead By Daylight]
Y Y Y Y UE4.21
Y Y Y Y UE4.22
Behaviour Interactive
http://en.wikipedia.org/wiki/Dead_by_Daylight
https://www.gildor.org/smf/index.php/topic,3129.0.html
Expand Down
3 changes: 3 additions & 0 deletions Unreal/GameDatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,9 @@ const GameInfo GListOfGames[] = {
# if KH3
G("Kingdom Hearts 3", kh3, GAME_KH3),
# endif
# if JEDI
G("Star Wars Jedi: Fallen Order", jedi, GAME_Jedi),
# endif
#endif // UNREAL4

// end marker
Expand Down
1 change: 1 addition & 0 deletions Unreal/GameDefines.h
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@
#define ASC_ONE 1 // Ascendant One
#define BORDERLANDS3 1 // Borderlands 3
#define KH3 1 // Kingdom Hearts 3
#define JEDI 1 // Star Wars Jedi: Fallen Order

#define SPECIAL_TAGS 1 // games with different PACKAGE_FILE_TAG

Expand Down
2 changes: 2 additions & 0 deletions Unreal/UnCore.h
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,8 @@ enum EGame
// 4.20
GAME_Dauntless = GAME_UE4(20)+1,
GAME_Borderlands3 = GAME_UE4(20)+2,
// 4.21
GAME_Jedi = GAME_UE4(21)+1,

GAME_ENGINE = 0xFFF0000 // mask for game engine
};
Expand Down
8 changes: 8 additions & 0 deletions Unreal/UnMesh4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,14 @@ struct FStaticMeshVertexBuffer4

if (!StripFlags.IsDataStrippedForServer())
{
#if JEDI
if (Ar.Game == GAME_Jedi)
{
int32 unk;
Ar << unk;
}
#endif // JEDI

GNumStaticUVSets = S.NumTexCoords;
GUseStaticFloatUVs = S.bUseFullPrecisionUVs;
if (Ar.Game < GAME_UE4(19))
Expand Down
5 changes: 5 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,11 @@ function tr4() { run1 "data/3/Tribes4" $*; }
function thief() { run1 "${steam[@]/%/Thief/ThiefGame/CookedPCNG}" $*; }
function ark() { run1 "${steam[@]/%/ARK/ShooterGame/Content}" -game=ark $*; }
function lawbr() { run1 "${steam[@]/%/LawBreakers/ShooterGame/Content/Paks}" -game=lawbr $*; }
function jfo()
{
CheckDir "${steam[@]/%/Jedi Fallen Order/SwGame/Content/Paks}" # "run1" doesn't work with $steam having multiple paths
run -game=ue4.21 $*
}

function rund() { run1 "data" $*; }

Expand Down

0 comments on commit 1b199f2

Please sign in to comment.