Commit Graph

19 Commits

Author SHA1 Message Date
Vaillant Jeremy 4d5db7bb61 Make Main, Settings, ChooseScene, and gameplay run in Godot 4.6
Catch-all commit for everything the --convert-3to4 tool missed during a
manual playtest of the game. All errors raised by clicking through Main
-> Puzzles -> level were fixed.

GDScript:
- PackedScene.instance() -> instantiate() (ChooseScene.gd)
- String(x) constructor doesn't exist -> str(x) (MBase, MScene,
  MLevel, Animation, Levels)
- 'x as int/String/bool' doesn't parse strings -> explicit
  int()/str()/bool(int()) (MScene, MLevel, MSetting)
- BaseButton.pressed (property) -> button_pressed; set_pressed() ->
  direct assignment (Settings.gd)
- AnimationPlayer.add_animation() removed -> go through
  AnimationLibrary (Levels.gd)
- PhysicsDirectSpaceState3D.intersect_ray(from, to, ...) ->
  PhysicsRayQueryParameters3D.create() (Levels.gd)
- @export with type-hint-in-comment ('# (String, ...)') -> explicit
  @export_enum (candle.gd)
- Get effective material with get_active_material() instead of
  get_surface_override_material(), with null guard (Levels.gd)
- get_node() -> get_node_or_null() so missing items from ahog.json
  (e.g. sm_super_dager in Home) don't crash (Levels.gd)

Scenes/resources:
- Remove 14 Tween nodes from WarCraft.tscn — Tween is no longer a
  Node in Godot 4. Rewrite Animation.start_dissolve to use
  create_tween().tween_method().
- Rename property material/N -> surface_material_override/N in every
  .tscn (10 files) — Godot 3 -> 4 rename that --convert-3to4 missed.
  Without this, MeshInstance3D.get_active_material(0) returned the
  glTF-imported StandardMaterial3D instead of the project's custom
  dissolve ShaderMaterial.

Shaders:
- One-shot scripts/migrate_shaders.gd walks every .material under
  assets/ and fixes Godot 3 -> 4 shader code in-place. Fixed 17
  materials: depth_draw_alpha_prepass -> depth_prepass_alpha,
  hint_color -> source_color, NORMALMAP -> NORMAL_MAP.

Result: Main, Settings, ChooseScene, and the WarCraft level all run
without script or shader errors. Remaining noise is non-blocking
(visual_shader graph in text_outline.material, baked lightmap binary
format from Godot 3, and empty animation tracks).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-16 19:40:03 +02:00
Vaillant Jeremy 770434482d Fix Setting.gd Vector2/Window API, re-import all assets for Godot 4
- apply_resolution: Vector2 strings -> Vector2i(int, int); use
  Window.content_scale_size instead of removed
  Viewport.set_size_2d_override variants.
- Re-import 162 assets to Godot 4 format (.godot/imported/ now,
  .stex -> .ctex, FontFile, CompressedTexture2D, etc.).
- Add .uid sidecars Godot 4 generates next to every script.
- Ignore .godot/ cache and android/ template directories.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-16 19:26:10 +02:00
stilobique-i7 f6a7e2e9ec Update rock floor, prepare all lod item but get only the last LOD meshes 2021-05-24 16:16:14 +02:00
stilobique-surface 24500ac039 Reduce polycount about the Rock Floor mesh 2021-05-18 12:09:33 +02:00
stilobique-surface 7825436628 Fix parchment paper lightmap and make a new baking 2021-05-13 23:49:53 +02:00
stilobique-surface 30ed3e41ab Update Warcraft scene props placement, and update building set
(cherry picked from commit a7ab52406857035daf5cae03380d18293e4fa87b)
2021-05-13 22:54:02 +02:00
stilobique-surface 6301d6f63f Clean files 2021-05-13 22:00:14 +02:00
stilobique-surface 92f1fc6f4f Solve conflict #2 2021-05-13 20:31:47 +02:00
VAILLANT Jeremy 0b3ef7e137 Fix shader 2021-05-12 14:49:59 +02:00
VAILLANT Jeremy 01f8b9de1b Re-import mesh 2021-05-12 13:07:28 +02:00
VAILLANT Jeremy 4e683884c0 Lightmap on Warcraft scene and basic light setup 2021-05-11 20:39:18 +02:00
VAILLANT Jeremy 2c00e2b2f3 fix materials props 2021-05-11 19:29:05 +02:00
VAILLANT Jeremy e613868c65 Calculate lightmap on lightmap scene test 2021-05-11 18:30:01 +02:00
stilobique-surface 47f205da04 Finish to setup lightmap scene and props 2021-05-11 17:29:08 +02:00
stilobique-surface 6d473b208d Update props "rock floor" 2021-05-11 16:28:10 +02:00
VAILLANT Jeremy 54833d8f78 Add method for quit war scene and back to main 2021-05-08 20:38:16 +02:00
stilobique-surface c3eaa2953f Fix texture on material "rock floor" 2021-05-08 15:47:34 +02:00
stilobique-surface ad960fb252 Add textures "rock floor" 2021-05-08 15:44:59 +02:00
stilobique-surface 120ee2e4a2 Add "rock floor" assets 2021-05-08 14:33:36 +02:00