Skip to content

Commit c0d6893

Browse files
authored
bump to Godot 4.3 (#484)
* strike 1 * fix * fix VR * fix snapshots and animations * fix mobile * fix scene snapshot
1 parent 465a8f7 commit c0d6893

File tree

153 files changed

+834
-212
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

153 files changed

+834
-212
lines changed

.github/actions/import-assets/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ runs:
99
uses: actions/cache@v3
1010
with:
1111
path: godot/.godot
12-
key: ${{ runner.os }}-godot-assets-cache
12+
key: ${{ runner.os }}-godot-assets-cache-4.3-bump
1313

1414
# Step 2: Run the command that generates/uses the assets
1515
- name: Import assets
@@ -21,4 +21,4 @@ runs:
2121
uses: actions/cache@v3
2222
with:
2323
path: godot/.godot
24-
key: ${{ runner.os }}-godot-assets-cache
24+
key: ${{ runner.os }}-godot-assets-cache-4.3-bump

.github/workflows/android_builds.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: bigrunner
1313
container:
1414
# image generated at: https://github.com/decentraland/godot-docker-builder
15-
image: docker://kuruk/dcl-godot-android-builder:4.2
15+
image: quay.io/decentraland/dcl-godot-android-builder:02ee2c576f49c1397710a6b90098549725bad4a5
1616
volumes:
1717
- /home/user/.cache/devgodot:/github/home/.cache/devgodot
1818
steps:

.github/workflows/docker_build_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,5 +80,5 @@ jobs:
8080
with:
8181
name: docker-snapshots
8282
path: |
83-
${{ github.workspace }}/avatar-output/**/*
83+
${{ github.workspace }}/avatars-output/**/*
8484
${{ github.workspace }}/scenes-output/**/*

.vscode/launch.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"type": "cppvsdbg",
3434
"request": "launch",
3535
"program": "${workspaceFolder}/.bin/godot/godot4_bin",
36-
"args": ["--path", "${workspaceFolder}/godot", "--test"],
36+
"args": ["--path", "${workspaceFolder}/godot", "--test-runner"],
3737
"stopAtEntry": false,
3838
"cwd": "${workspaceRoot}/godot",
3939
"environment": [
@@ -100,7 +100,7 @@
100100
"type": "cppdbg",
101101
"request": "launch",
102102
"program": "${workspaceFolder}/.bin/godot/godot4_bin",
103-
"args": ["--path", "${workspaceFolder}/godot", "--test"],
103+
"args": ["--path", "${workspaceFolder}/godot", "--test-runner"],
104104
"stopAtEntry": false,
105105
"cwd": "${workspaceRoot}/godot",
106106
"environment": [],

build-android-apk.sh

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@ EXPLORER_PATH=$(pwd)
77
if [ ! -d ${EXPLORER_PATH}/godot/android/ ]
88
then
99
echo "Checkout godot android template"
10-
git clone https://github.com/decentraland/godot-explorer-android-template ${EXPLORER_PATH}/godot/android
10+
git clone -b bump-4.3 https://github.com/decentraland/godot-explorer-android-template ${EXPLORER_PATH}/godot/android
11+
fi
12+
13+
# temp workaround: check if JAVA_HOME is not set
14+
if [ -z "$JAVA_HOME" ]; then
15+
export JAVA_HOME="/usr/lib/jvm/java-17-openjdk-amd64"
1116
fi
1217

1318
echo "Build for Linux x86_64"
@@ -18,7 +23,7 @@ cargo run -- run --only-build
1823
echo "Link export templates"
1924
mkdir -p ${HOME}/.local/share/godot/export_templates/
2025
cd ${HOME}/.local/share/godot/export_templates/
21-
ln -sf ${EXPLORER_PATH}/.bin/godot/templates/templates/ 4.2.1.stable
26+
ln -sf ${EXPLORER_PATH}/.bin/godot/templates/templates/ 4.3.stable
2227

2328
set -e
2429

@@ -46,7 +51,25 @@ cd ${EXPLORER_PATH}/godot/
4651

4752
# Build the .aab without x86_64 architecture
4853
echo "Export Godot android.apk"
49-
${EXPLORER_PATH}/.bin/godot/godot4_bin -e --headless --export-debug Android ${EXPLORER_PATH}/android.apk || true
54+
55+
# Define the command to be executed
56+
COMMAND="${EXPLORER_PATH}/.bin/godot/godot4_bin -e --headless --export-debug Android ${EXPLORER_PATH}/android.apk"
57+
58+
# Try executing the command
59+
if ! $COMMAND; then
60+
echo "First attempt failed, retrying in 5 seconds..."
61+
sleep 5 # Wait for 5 seconds before retrying
62+
63+
# Retry executing the command
64+
if ! $COMMAND; then
65+
echo "Second attempt failed."
66+
else
67+
echo "Second attempt succeeded."
68+
fi
69+
else
70+
echo "First attempt succeeded."
71+
fi
72+
5073
${EXPLORER_PATH}/.bin/godot/godot4_bin -e --headless --export-debug Quest ${EXPLORER_PATH}/meta-quest.apk || true
5174

5275

godot/addons/godot-xr-tools/hands/model/Hand_Glove_L.gltf.import

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ nodes/root_type="Node3D"
1717
nodes/root_name="Scene Root"
1818
nodes/apply_root_scale=true
1919
nodes/root_scale=1.0
20+
nodes/import_as_skeleton_bones=false
2021
meshes/ensure_tangents=true
2122
meshes/generate_lods=true
2223
meshes/create_shadow_meshes=true
@@ -28,6 +29,7 @@ animation/import=true
2829
animation/fps=30
2930
animation/trimming=false
3031
animation/remove_immutable_tracks=true
32+
animation/import_rest_as_RESET=false
3133
import_script/path=""
3234
_subresources={}
3335
gltf/naming_version=0

godot/addons/godot-xr-tools/hands/model/Hand_Glove_R.gltf.import

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ nodes/root_type="Node3D"
1717
nodes/root_name="Scene Root"
1818
nodes/apply_root_scale=true
1919
nodes/root_scale=1.0
20+
nodes/import_as_skeleton_bones=false
2021
meshes/ensure_tangents=true
2122
meshes/generate_lods=true
2223
meshes/create_shadow_meshes=true
@@ -28,6 +29,7 @@ animation/import=true
2829
animation/fps=30
2930
animation/trimming=false
3031
animation/remove_immutable_tracks=true
32+
animation/import_rest_as_RESET=false
3133
import_script/path=""
3234
_subresources={}
3335
gltf/naming_version=0

godot/addons/godot-xr-tools/hands/model/Hand_Glove_low_L.gltf.import

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ nodes/root_type="Node3D"
1717
nodes/root_name="Scene Root"
1818
nodes/apply_root_scale=true
1919
nodes/root_scale=1.0
20+
nodes/import_as_skeleton_bones=false
2021
meshes/ensure_tangents=true
2122
meshes/generate_lods=true
2223
meshes/create_shadow_meshes=true
@@ -28,6 +29,7 @@ animation/import=true
2829
animation/fps=30
2930
animation/trimming=false
3031
animation/remove_immutable_tracks=true
32+
animation/import_rest_as_RESET=false
3133
import_script/path=""
3234
_subresources={}
3335
gltf/naming_version=0

godot/addons/godot-xr-tools/hands/model/Hand_Glove_low_R.gltf.import

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ nodes/root_type="Node3D"
1717
nodes/root_name="Scene Root"
1818
nodes/apply_root_scale=true
1919
nodes/root_scale=1.0
20+
nodes/import_as_skeleton_bones=false
2021
meshes/ensure_tangents=true
2122
meshes/generate_lods=true
2223
meshes/create_shadow_meshes=true
@@ -28,6 +29,7 @@ animation/import=true
2829
animation/fps=30
2930
animation/trimming=false
3031
animation/remove_immutable_tracks=true
32+
animation/import_rest_as_RESET=false
3133
import_script/path=""
3234
_subresources={}
3335
gltf/naming_version=0

godot/addons/godot-xr-tools/hands/model/Hand_Nails_L.gltf.import

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ nodes/root_type="Node3D"
1717
nodes/root_name="Scene Root"
1818
nodes/apply_root_scale=true
1919
nodes/root_scale=1.0
20+
nodes/import_as_skeleton_bones=false
2021
meshes/ensure_tangents=true
2122
meshes/generate_lods=true
2223
meshes/create_shadow_meshes=true
@@ -28,6 +29,7 @@ animation/import=true
2829
animation/fps=30
2930
animation/trimming=false
3031
animation/remove_immutable_tracks=true
32+
animation/import_rest_as_RESET=false
3133
import_script/path=""
3234
_subresources={}
3335
gltf/naming_version=0

0 commit comments

Comments
 (0)