commit 8cb2c0c1bea1864d31064e1525470aefc515eb78 Author: Hartmut Seichter Date: Thu Jun 26 10:57:37 2025 +0200 initial checkin diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..f28239b --- /dev/null +++ b/.editorconfig @@ -0,0 +1,4 @@ +root = true + +[*] +charset = utf-8 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..8ad74f7 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Normalize EOL for all files that Git considers text files. +* text=auto eol=lf diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0af181c --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +# Godot 4+ specific ignores +.godot/ +/android/ diff --git a/Root.tscn b/Root.tscn new file mode 100644 index 0000000..5e5f57b --- /dev/null +++ b/Root.tscn @@ -0,0 +1,6 @@ +[gd_scene load_steps=2 format=3 uid="uid://bj5ykdjle10tt"] + +[ext_resource type="Script" uid="uid://ca5psnjx63ua8" path="res://uvrpn.gd" id="1_gxo8o"] + +[node name="Node3D" type="Node3D"] +script = ExtResource("1_gxo8o") diff --git a/icon.svg b/icon.svg new file mode 100644 index 0000000..9d8b7fa --- /dev/null +++ b/icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icon.svg.import b/icon.svg.import new file mode 100644 index 0000000..25183c1 --- /dev/null +++ b/icon.svg.import @@ -0,0 +1,37 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://cdprcmtx102rp" +path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://icon.svg" +dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +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/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 +svg/scale=1.0 +editor/scale_with_editor_scale=false +editor/convert_colors_with_editor_theme=false diff --git a/project.godot b/project.godot new file mode 100644 index 0000000..70fb73a --- /dev/null +++ b/project.godot @@ -0,0 +1,16 @@ +; Engine configuration file. +; It's best edited using the editor UI and not directly, +; since the parameters that go here are not all obvious. +; +; Format: +; [section] ; section goes between [] +; param=value ; assign values to parameters + +config_version=5 + +[application] + +config/name="uvrpn" +run/main_scene="uid://bj5ykdjle10tt" +config/features=PackedStringArray("4.4", "Forward Plus") +config/icon="res://icon.svg" diff --git a/uvrpn.gd b/uvrpn.gd new file mode 100644 index 0000000..a563f04 --- /dev/null +++ b/uvrpn.gd @@ -0,0 +1,19 @@ +extends Node + +@export var url : String = "localhost" +@export var port : int = 3883 + +var server : UDPServer = UDPServer.new() + +func _ready() -> void: + server.listen(3883) + +func _process(delta: float) -> void: + server.poll() + if server.is_connection_available(): + var peer = server.take_connection() + var packet = peer.get_packet() + print("Accepted peer: %s:%s" % [peer.get_packet_ip(), peer.get_packet_port()]) + print("Received data: %s" % [packet.get_string_from_utf8()]) + # Reply so it knows we received the message. + peer.put_packet(packet) diff --git a/uvrpn.gd.uid b/uvrpn.gd.uid new file mode 100644 index 0000000..9ba71af --- /dev/null +++ b/uvrpn.gd.uid @@ -0,0 +1 @@ +uid://ca5psnjx63ua8