From b75cc72c4e10bd652330b6d2bd99f3fd9129a3b3 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Tue, 7 Jan 2025 15:48:43 +0100 Subject: rsw with gnd step 1 --- client.gd | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) (limited to 'client.gd') diff --git a/client.gd b/client.gd index d553d3e..31264a6 100644 --- a/client.gd +++ b/client.gd @@ -32,16 +32,22 @@ func _ready() -> void: #FileAccess.get_file_as_bytes("res://client_data/data/int_land02.gnd") #) #) - #RSWFormat.from_bytes( - #ByteStream.from_bytes( - #FileAccess.get_file_as_bytes("res://client_data/data/int_land02.rsw") - ##FileAccess.get_file_as_bytes("res://client_data/data/pay_dun00.rsw") - #) - #) - RSMFormat.from_bytes( + var rsw = RSWFormat.from_bytes( ByteStream.from_bytes( - #FileAccess.get_file_as_bytes("res://client_data/data/model/prontera/chair_01.rsm") - FileAccess.get_file_as_bytes("res://client_data/data/model/izlude/iz_academy.rsm") - # TODO: find newer version rsm to test + #FileAccess.get_file_as_bytes("res://client_data/data/int_land02.rsw") + FileAccess.get_file_as_bytes("res://client_data/data/pay_dun00.rsw") ) ) + #RSMFormat.from_bytes( + #ByteStream.from_bytes( + ##FileAccess.get_file_as_bytes("res://client_data/data/model/prontera/chair_01.rsm") + #FileAccess.get_file_as_bytes("res://client_data/data/model/izlude/iz_academy.rsm") + ## TODO: not parseable + ##FileAccess.get_file_as_bytes("res://client_data/data/model/graywolf/bridge_e_01.rsm2") + #) + #) + + #var scene_root := rsw.convert("pay_dun00", "res://client_data") + #var scene := PackedScene.new() + #scene.pack(scene_root) + #ResourceSaver.save(scene, "res://extractor/test/pay_dun00.tscn") -- cgit v1.2.3