From e403abb2a721572f53af6c0c7cdb57bc7a1acf1a Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Thu, 4 Jun 2026 10:38:38 +0200 Subject: next commit --- extractor/gnd_format.gd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'extractor/gnd_format.gd') diff --git a/extractor/gnd_format.gd b/extractor/gnd_format.gd index c49bce6..d71cd63 100644 --- a/extractor/gnd_format.gd +++ b/extractor/gnd_format.gd @@ -91,7 +91,7 @@ static func from_bytes(bytes: ByteStream) -> GNDFormat: gnd_format.texture_paths = [] for _n in gnd_format.texture_count: gnd_format.texture_paths.append( - bytes.get_string_from_ro(gnd_format.texture_path_length) + bytes.get_string_from_ro(gnd_format.texture_path_length) # TODO: EUC-KR string is empty and converts to ascii instead. that's wrong. ) gnd_format.light_map_slice_count = bytes.decode_s32() @@ -176,10 +176,10 @@ func convert(data_path: String) -> GridMap: var mesh: ArrayMesh = cube[surface_type].mesh var material := StandardMaterial3D.new() material.albedo_texture = load( - "%s/data/texture/%s" % [ + ("%s/data/texture/%s" % [ data_path, texture_paths[cube[surface_type].surface.texture_index] - ] + ]).replace(".bmp", ".png") ) mesh.surface_set_material(0, material) -- cgit v1.2.3