Skip to content

Update licensee version for rocket league. Increase GLTF bounds precision. #330

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

Open
wants to merge 3 commits 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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build UEViewer

on:
push:
branches: [ master, main ]
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
pull_request:
branches: [ master, main ]
workflow_dispatch: # Allows manual triggering

jobs:
build-linux:
name: Build on Linux
runs-on: ubuntu-latest
strategy:
fail-fast: false

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for proper versioning

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential g++ gcc-multilib g++-multilib \
mesa-common-dev libgl1-mesa-dev libglu1-mesa-dev libgtk-3-dev \
libsdl2-dev libsdl2-2.0-0

- name: Build UEViewer
run: |
# Make sure build script is executable
chmod +x ./build.sh
./build.sh --64

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: umodel-linux
path: umodel*

4 changes: 2 additions & 2 deletions Exporters/ExportGLTF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,9 @@ static void ExportSection(GLTFExportContext& Context, const CBaseMeshLod& Lod, c
CVec3 Mins, Maxs;
ComputeBounds((CVec3*)PositionBuf.Data, numLocalVerts, sizeof(CVec3), Mins, Maxs);
char buf[256];
appSprintf(ARRAY_ARG(buf), "[ %g, %g, %g ]", VECTOR_ARG(Mins));
appSprintf(ARRAY_ARG(buf), "[ %.10g, %.10g, %.10g ]", VECTOR_ARG(Mins));
PositionBuf.BoundsMin = buf;
appSprintf(ARRAY_ARG(buf), "[ %g, %g, %g ]", VECTOR_ARG(Maxs));
appSprintf(ARRAY_ARG(buf), "[ %.10g, %.10g, %.10g ]", VECTOR_ARG(Maxs));
PositionBuf.BoundsMax = buf;

if (Lod.VertexColors)
Expand Down
2 changes: 1 addition & 1 deletion Unreal/GameDatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ void FArchive::DetectGame()
if (ArVer == 868 && ArLicenseeVer == 2) SET(GAME_Guilty);
#endif
#if ROCKET_LEAGUE
if (ArVer == 868 && (ArLicenseeVer >= 18 && ArLicenseeVer <= 22)) SET(GAME_RocketLeague);
if (ArVer == 868 && (ArLicenseeVer >= 18 && ArLicenseeVer <= 32)) SET(GAME_RocketLeague);
#endif
#if SPECIALFORCE2
if (ArVer == 904 && (ArLicenseeVer == 9 || ArLicenseeVer == 14)) SET(GAME_SpecialForce2);
Expand Down
2 changes: 1 addition & 1 deletion common.project
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ pop(INCLUDES)
pop(DEFINES)

# SDL2
!include $R/libs/SDL2/SDL2.project
# !include $R/libs/SDL2/SDL2.project

# oodle SDK support
!include $R/libs/oodle/oodle.project
Expand Down
Binary file modified umodel.exe
Binary file not shown.
Binary file added umodel_64
Binary file not shown.