This project is a re-implementation of the old Star Wars Battlefront II (2005) game, utilizing the Unity game engine.
It does so by loading all assets and scripts from the original game files at runtime, providing a compatible API layer for the original, compiled Lua scripts.
This project aims for full compatibility with the vanilla game files, and as best as possible with custom maps.
Click image to view Video
git clone https://github.com/Ben1138/SWBF2Phoenix --recurse-submodules
. If your forgot to clone with submodules, do git submodule update --init --recursive
BuildAndCopyLibsWin.bat
(double click)UnityProject/Assets/Lib
:
LibSWBF2.dll
LibSWBF2.NET.dll
lua50-swbf2-x64.dll
UnityProject
directory to UnityHub and open it. This might take a while.Runtime/Scenes
and open PhxMainSceneGame Path String
to your Star Wars Battlefront II installation directory. E.g.: C:\Program Files (x86)\Steam\steamapps\common\Star Wars Battlefront II
Mission List Path
to empty!Windows
as Target Platform and x86_64
as Architecture.BUILD
directory, residing in the root of this repositorypacman
or apt
):
git gcc make cmake mono msbuild
git clone https://github.com/Ben1138/SWBF2Phoenix --recurse-submodules
. If your forgot to clone with submodules, do git submodule update --init --recursive
LibSWBF2.NET.dll
to not build. Run arch_mono_4.5_fix.sh
to fix that issueBuildAndCopyLibsUnix.sh
in your terminalUnityProject/Assets/Lib
:
libSWBF2.so
LibSWBF2.NET.dll
liblua50-swbf2-x64.so
UnityProject
directory to UnityHub and open it. This might take a while.Runtime/Scenes
and open PhxMainSceneGame Path String
to your Star Wars Battlefront II installation directory.Mission List Path
to empty!Linux
as Target Platform and x86_64
as Architecture.BUILD
directory, residing in the root of this repositoryThe Terrain has no shader and just appears in purple.
LVLImport/LVLImport/ConversionAssets
and open SWBFTerrainHDRP in ShaderGraphBlendTerrainLayers
. If it's None
, drag and drop BlendTerrainLayers.hlsl
(resides right next to SWBFTerrainHDRP.shadergraph
) into it.LVLImport/LVLImport/ConversionAssets/Resources
and select HDRPTerrain
Shader Graphs/SWBFTerrainHDRP
Please note that this re-implementation is neither developed by, nor endorsed by LucasArts, Lucasfilm Games or its parent company Disney.
This project does not distribute any original game files, neither full nor partial, and does not include any other Assets that might belong to the trade mark "Star Wars" in any way.