Skip to content

Commit 56ae6ce

Browse files
Add lag test and update all core libraries
1 parent 8d550c8 commit 56ae6ce

14 files changed

+22
-12
lines changed

addons/inventory-system-demos/fps/player.tscn

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ raycast = NodePath("../Camera3D/RayCast3D")
4545
camera_3d = NodePath("../Camera3D")
4646

4747
[node name="InventoryHandler" parent="CharacterInventorySystem" index="0"]
48-
transaction_slot = null
4948
database = ExtResource("4_ljenf")
5049

5150
[node name="Inventory" parent="CharacterInventorySystem/InventoryHandler" index="0"]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
extends Node
2+
class_name LagTest
3+
4+
@export var actived := false
5+
6+
func _process(delta: float) -> void:
7+
if not actived:
8+
return
9+
if multiplayer.is_server():
10+
for i in 10000000:
11+
var a := 2 + 2

addons/inventory-system-demos/mp/mp_demo.tscn

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[gd_scene load_steps=25 format=3 uid="uid://bbqbopdyaknlx"]
1+
[gd_scene load_steps=26 format=3 uid="uid://bbqbopdyaknlx"]
22

33
[ext_resource type="Script" path="res://addons/inventory-system-demos/mp/mp_demo.gd" id="1_fcmcx"]
44
[ext_resource type="PackedScene" uid="uid://dnlxnu6jpej17" path="res://addons/inventory-system-demos/mp/mp_player.tscn" id="2_01e0j"]
@@ -13,6 +13,7 @@
1313
[ext_resource type="ItemDefinition" uid="uid://1g5wqbk7eo0d" path="res://addons/inventory-system-demos/base/items/helmet_labor.tres" id="11_6hyks"]
1414
[ext_resource type="ItemDefinition" uid="uid://dbxx0l6t8pihv" path="res://addons/inventory-system-demos/base/items/stone_axe.tres" id="13_v1ips"]
1515
[ext_resource type="ItemCategory" uid="uid://041ut5vu78mt" path="res://addons/inventory-system-demos/base/categories/burnables.tres" id="14_lpdsd"]
16+
[ext_resource type="Script" path="res://addons/inventory-system-demos/mp/lag_test.gd" id="15_7tjb2"]
1617
[ext_resource type="PackedScene" uid="uid://d2tpdnjwuur2j" path="res://addons/inventory-system-demos/mp/mp_shelf.tscn" id="15_lou51"]
1718
[ext_resource type="PackedScene" uid="uid://b7kev3be161jq" path="res://addons/inventory-system-demos/mp/mp_workbench.tscn" id="16_qnjnu"]
1819
[ext_resource type="PackedScene" uid="uid://ccgrlrqx2vvqf" path="res://addons/inventory-system-demos/mp/mp_campfire.tscn" id="17_qo5oj"]
@@ -138,6 +139,9 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 4.36572, 0.6775, 1.94776)
138139
spawn_path = NodePath("..")
139140
script = ExtResource("8_m78qf")
140141

142+
[node name="LagTest" type="Node" parent="."]
143+
script = ExtResource("15_7tjb2")
144+
141145
[connection signal="button_down" from="UI/Connect Panel/VBoxContainer/HostButton" to="." method="_on_host_button_button_down"]
142146
[connection signal="button_down" from="UI/Connect Panel/VBoxContainer/ConnectButton" to="." method="_on_connect_button_button_down"]
143147

addons/inventory-system-demos/mp/mp_player.tscn

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[gd_scene load_steps=17 format=3 uid="uid://dnlxnu6jpej17"]
1+
[gd_scene load_steps=16 format=3 uid="uid://dnlxnu6jpej17"]
22

33
[ext_resource type="PackedScene" uid="uid://bnr02xnvoiun5" path="res://addons/inventory-system-demos/fps/player.tscn" id="1_067pm"]
44
[ext_resource type="Script" path="res://addons/inventory-system/multiplayer/sync_inventory.gd" id="2_2ppxc"]
@@ -13,8 +13,6 @@
1313
[sub_resource type="BoxMesh" id="BoxMesh_d1alo"]
1414
size = Vector3(0.125, 0.125, 0.125)
1515

16-
[sub_resource type="Slot" id="Slot_tnbqy"]
17-
1816
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_tipcy"]
1917
shading_mode = 2
2018
diffuse_mode = 3
@@ -60,9 +58,6 @@ database = ExtResource("3_1eelt")
6058
script = ExtResource("3_lbhsf")
6159
drop_item_spawner_path = NodePath("../../DroppedItemSpawner")
6260

63-
[node name="InventoryHandler" parent="CharacterInventorySystem" index="0"]
64-
transaction_slot = SubResource("Slot_tnbqy")
65-
6661
[node name="SyncInventory" type="Node" parent="CharacterInventorySystem/InventoryHandler/Inventory" index="0" node_paths=PackedStringArray("inventory")]
6762
script = ExtResource("2_2ppxc")
6863
inventory = NodePath("..")
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)