start: fehlender Import-Cache blockiert den Start nicht mehr
Ohne game/.godot/ (gitignored) sind die globalen class_name (Dice, Auftrag, Charakter) unbekannt: effect_runner.gd, game_state.gd und main.gd scheitern beim Parsen, die Autoloads starten nicht. spielen.sh importiert deshalb einmalig vor dem Start und startet dann. Die beiden Font-Atlas-.import-Dateien tragen jetzt importer="skip", wie font8_10_atlas.png schon vorher — die Texturseite eines Bitmap-Fonts wird nicht als eigene Textur importiert. Godot setzt das beim ersten Import ohnehin so, damit ist ein frischer Klon danach sauber.
This commit is contained in:
parent
a6ebc87600
commit
c75ddf1d10
3 changed files with 14 additions and 76 deletions
|
|
@ -1,40 +1,3 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://bo5r2v50k7kj4"
|
||||
path="res://.godot/imported/pirataone_36_atlas.png-188e09c7f60b65132246d51ecefb5674.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/font/pirataone_36_atlas.png"
|
||||
dest_files=["res://.godot/imported/pirataone_36_atlas.png-188e09c7f60b65132246d51ecefb5674.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
importer="skip"
|
||||
|
|
|
|||
|
|
@ -1,40 +1,3 @@
|
|||
[remap]
|
||||
|
||||
importer="texture"
|
||||
type="CompressedTexture2D"
|
||||
uid="uid://c5wk8c6lhd0xe"
|
||||
path="res://.godot/imported/pressstart2p_24_atlas.png-9b7d5da784680c1985808bde5fdf9235.ctex"
|
||||
metadata={
|
||||
"vram_texture": false
|
||||
}
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://assets/font/pressstart2p_24_atlas.png"
|
||||
dest_files=["res://.godot/imported/pressstart2p_24_atlas.png-9b7d5da784680c1985808bde5fdf9235.ctex"]
|
||||
|
||||
[params]
|
||||
|
||||
compress/mode=0
|
||||
compress/high_quality=false
|
||||
compress/lossy_quality=0.7
|
||||
compress/uastc_level=0
|
||||
compress/rdo_quality_loss=0.0
|
||||
compress/hdr_compression=1
|
||||
compress/normal_map=0
|
||||
compress/channel_pack=0
|
||||
mipmaps/generate=false
|
||||
mipmaps/limit=-1
|
||||
roughness/mode=0
|
||||
roughness/src_normal=""
|
||||
process/channel_remap/red=0
|
||||
process/channel_remap/green=1
|
||||
process/channel_remap/blue=2
|
||||
process/channel_remap/alpha=3
|
||||
process/fix_alpha_border=true
|
||||
process/premult_alpha=false
|
||||
process/normal_map_invert_y=false
|
||||
process/hdr_as_srgb=false
|
||||
process/hdr_clamp_exposure=false
|
||||
process/size_limit=0
|
||||
detect_3d/compress_to=1
|
||||
importer="skip"
|
||||
|
|
|
|||
12
spielen.sh
12
spielen.sh
|
|
@ -15,4 +15,16 @@ else
|
|||
echo "Godot nicht gefunden. Setze GODOT=/pfad/zu/godot" >&2
|
||||
exit 1
|
||||
fi
|
||||
# Frischer Klon / neue Maschine: ohne .godot/ fehlt der Cache der globalen
|
||||
# class_name (Dice, Auftrag, Charakter …) — die Skripte scheitern dann schon
|
||||
# beim Parsen. Einmal importieren, dann starten.
|
||||
if [ ! -f "$HIER/game/.godot/global_script_class_cache.cfg" ]; then
|
||||
echo "Erster Start: importiere Assets …" >&2
|
||||
IMPORT_LOG="${TMPDIR:-/tmp}/taloria-import.log"
|
||||
"$GODOT" --headless --path "$HIER/game" --import >"$IMPORT_LOG" 2>&1 || {
|
||||
echo "Import fehlgeschlagen — siehe $IMPORT_LOG" >&2
|
||||
exit 1
|
||||
}
|
||||
fi
|
||||
|
||||
exec "$GODOT" --path "$HIER/game" "$@"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue