summaryrefslogtreecommitdiff
path: root/client.gd
diff options
context:
space:
mode:
authorDaniel Weipert <git@mail.dweipert.de>2025-01-07 15:48:43 +0100
committerDaniel Weipert <git@mail.dweipert.de>2025-01-07 15:48:43 +0100
commitb75cc72c4e10bd652330b6d2bd99f3fd9129a3b3 (patch)
tree489cde2aa688273d232d66cd5d9e4251f2cea8c5 /client.gd
parent35b0f811f23f029110373798b19d9d0895d907f0 (diff)
rsw with gnd step 1HEADmain
Diffstat (limited to 'client.gd')
-rw-r--r--client.gd26
1 files changed, 16 insertions, 10 deletions
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")