From 9a1ff1e24c60775cc90c9da1c5dae432e6367484 Mon Sep 17 00:00:00 2001 From: FrostSource Date: Tue, 1 Apr 2025 21:31:51 +1300 Subject: [PATCH 01/19] Fix buttons firing when registered Buttons that were held down when registered were firing instantly --- scripts/vscripts/alyxlib/controls/input.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/vscripts/alyxlib/controls/input.lua b/scripts/vscripts/alyxlib/controls/input.lua index 5a13faf..00826fc 100644 --- a/scripts/vscripts/alyxlib/controls/input.lua +++ b/scripts/vscripts/alyxlib/controls/input.lua @@ -305,8 +305,8 @@ function Input:ListenToButton(kind, hand, button, presses, callback, context) kind = kind, multiple_press_count = 0, - press_time = -1, - release_time = 0, + press_time = vlua.select(kind == "press", 0, -1), + release_time = vlua.select(kind == "release", 0, -1), prev_press_time = 0, } From 0981f9bdba306f51a10b411c40888adaee75e6b6 Mon Sep 17 00:00:00 2001 From: FrostSource Date: Tue, 1 Apr 2025 21:32:20 +1300 Subject: [PATCH 02/19] Add IsFakeVREnabled --- scripts/vscripts/alyxlib/globals.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/vscripts/alyxlib/globals.lua b/scripts/vscripts/alyxlib/globals.lua index a4a54ab..f9c14d0 100644 --- a/scripts/vscripts/alyxlib/globals.lua +++ b/scripts/vscripts/alyxlib/globals.lua @@ -261,6 +261,14 @@ function IsVREnabled() return GlobalSys:CommandLineCheck('-vr') end +--- +---Gets if the game was started with `+vr_enable_fake_vr 1`. +--- +---@return boolean +function IsFakeVREnabled() + return GlobalSys:CommandLineInt("+vr_enable_fake_vr", 0) == 1 +end + --- ---Prints all arguments with spaces between instead of tabs. --- From bf5342bd9becd1e8fd143047fd9f5ed26fa6b8cd Mon Sep 17 00:00:00 2001 From: FrostSource Date: Tue, 1 Apr 2025 21:32:56 +1300 Subject: [PATCH 03/19] Handle nil ents on EntStr --- scripts/vscripts/alyxlib/debug/common.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/vscripts/alyxlib/debug/common.lua b/scripts/vscripts/alyxlib/debug/common.lua index 4549c9d..352ae55 100644 --- a/scripts/vscripts/alyxlib/debug/common.lua +++ b/scripts/vscripts/alyxlib/debug/common.lua @@ -792,6 +792,10 @@ end ---@param ent EntityHandle ---@return string function Debug.EntStr(ent) + if ent == nil then + return "[nil, nil]" + end + return "[" .. ent:GetClassname() .. ", " .. ent:GetName() .. "]" end From 02caba490d5e1e7b5f16d401a1f54552678a65c7 Mon Sep 17 00:00:00 2001 From: FrostSource Date: Tue, 1 Apr 2025 21:34:50 +1300 Subject: [PATCH 04/19] Add missing debug newline --- scripts/vscripts/alyxlib/debug/controller.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/vscripts/alyxlib/debug/controller.lua b/scripts/vscripts/alyxlib/debug/controller.lua index 86d78fa..6f33622 100644 --- a/scripts/vscripts/alyxlib/debug/controller.lua +++ b/scripts/vscripts/alyxlib/debug/controller.lua @@ -46,6 +46,7 @@ Convars:RegisterCommand("alyxlib_start_print_controller_button_presses", functio if buttonsPressed[h][i] ~= nil then buttonsPressed[h][i] = nil Msg(desc .. " controller: [".. i .."] " .. Input:GetButtonDescription(i) .. " Released\n") + msgPrinted = true end end end From 4f64d6d5b9beec4446c3c7beef567291ac960599 Mon Sep 17 00:00:00 2001 From: FrostSource Date: Tue, 1 Apr 2025 21:36:02 +1300 Subject: [PATCH 05/19] Improve info display for ent_find_by_address --- scripts/vscripts/alyxlib/debug/commands.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/vscripts/alyxlib/debug/commands.lua b/scripts/vscripts/alyxlib/debug/commands.lua index 6db7061..19b3661 100644 --- a/scripts/vscripts/alyxlib/debug/commands.lua +++ b/scripts/vscripts/alyxlib/debug/commands.lua @@ -455,11 +455,11 @@ RegisterAlyxLibCommand("ent_find_by_address", function (_, tblpart, colon, hash) local foundEnt = Debug.FindEntityByHandleString(tblpart, colon, hash) if foundEnt then - Msg("Info for " .. tostring(foundEnt).."\n") - Msg("\tClassname" .. foundEnt:GetClassname().."\n") - Msg("\tName" .. foundEnt:GetName().."\n") - Msg("\tParent" .. foundEnt:GetMoveParent().."\n") - Msg("\tModel" .. foundEnt:GetModelName()) + Msg("Info for " .. tostring(foundEnt) .."\n") + Msg("\tClassname: " .. foundEnt:GetClassname() .."\n") + Msg("\tName: " .. foundEnt:GetName().."\n") + Msg("\tParent: " .. (tostring(foundEnt:GetMoveParent() or "[none]")) .."\n") + Msg("\tModel: " .. foundEnt:GetModelName()) else Msg("Could not find any entity matching '" .. hash .. "'") end From cf49f7399eac942c8011143a52de8b7d18ce970e Mon Sep 17 00:00:00 2001 From: FrostSource Date: Sun, 6 Apr 2025 20:18:46 +1200 Subject: [PATCH 06/19] Add custom data for PlayerEventWeaponSwitch --- scripts/vscripts/alyxlib/player/events.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/scripts/vscripts/alyxlib/player/events.lua b/scripts/vscripts/alyxlib/player/events.lua index ed7046f..78cf0f0 100644 --- a/scripts/vscripts/alyxlib/player/events.lua +++ b/scripts/vscripts/alyxlib/player/events.lua @@ -648,6 +648,8 @@ end ListenToGameEvent("player_drop_resin_in_backpack", listenEventPlayerDropResinInBackpack, nil) ---@class PlayerEventWeaponSwitch : GameEventWeaponSwitch +---@field item EntityHandle|nil # The handle of the weapon being switched to or nil if no weapon. +---@field item_class string # Classname of the entity that was switched to. ---Track weapon equipped ---@param data GameEventWeaponSwitch @@ -658,10 +660,13 @@ local function listenEventWeaponSwitch(data) Player.PreviouslyEquipped = Player.CurrentlyEquipped + ---@type EntityHandle + local weaponHandle = nil + if data.item == "hand_use_controller" then Player.CurrentlyEquipped = PLAYER_WEAPON_HAND else - local weaponHandle = Entities:FindBestMatching("", data.item, Player.PrimaryHand:GetPalmPosition(), 64) + weaponHandle = Entities:FindBestMatching("", data.item, Player.PrimaryHand:GetPalmPosition(), 64) if data.item == "hlvr_weapon_energygun" then Player.CurrentlyEquipped = PLAYER_WEAPON_ENERGYGUN Player.Items.weapons.energygun = weaponHandle @@ -689,6 +694,9 @@ local function listenEventWeaponSwitch(data) savePlayerData() -- Registered callback + local newdata = vlua.clone(data)--[[@as PlayerEventWeaponSwitch]] + newdata.item = weaponHandle + newdata.item_class = data.item eventCallback(data.game_event_name, data) end ListenToGameEvent("weapon_switch", listenEventWeaponSwitch, nil) From 2af55126f6e5a2384659920a9c462fbcbb1bbe1a Mon Sep 17 00:00:00 2001 From: FrostSource Date: Sun, 6 Apr 2025 21:56:56 +1200 Subject: [PATCH 07/19] Fix incorrect data sent --- scripts/vscripts/alyxlib/player/events.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/vscripts/alyxlib/player/events.lua b/scripts/vscripts/alyxlib/player/events.lua index 78cf0f0..f71ab6c 100644 --- a/scripts/vscripts/alyxlib/player/events.lua +++ b/scripts/vscripts/alyxlib/player/events.lua @@ -697,7 +697,7 @@ local function listenEventWeaponSwitch(data) local newdata = vlua.clone(data)--[[@as PlayerEventWeaponSwitch]] newdata.item = weaponHandle newdata.item_class = data.item - eventCallback(data.game_event_name, data) + eventCallback(data.game_event_name, newdata) end ListenToGameEvent("weapon_switch", listenEventWeaponSwitch, nil) From b85b4380ba74e313f79b852f98c9ba60ea7313b6 Mon Sep 17 00:00:00 2001 From: FrostSource Date: Mon, 7 Apr 2025 16:39:07 +1200 Subject: [PATCH 08/19] Add missing Debug.GetSourceLine --- scripts/vscripts/alyxlib/debug/common.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/vscripts/alyxlib/debug/common.lua b/scripts/vscripts/alyxlib/debug/common.lua index 352ae55..9858617 100644 --- a/scripts/vscripts/alyxlib/debug/common.lua +++ b/scripts/vscripts/alyxlib/debug/common.lua @@ -895,4 +895,13 @@ function Debug.ToOrdinalString(n) return n .. (suffixes[lastDigit] or "th") end +--- +---Get the script name and line number of a function or traceback level. +--- +---@param f integer|function # Level or function +---@return string +function Debug.GetSourceLine(f) + return debug.getinfo(f, "S").short_src..":"..tostring(debug.getinfo(f, "l").currentline) +end + return Debug.version \ No newline at end of file From 53248c4a2a0079287715bb0baa51afeda1d6bd75 Mon Sep 17 00:00:00 2001 From: FrostSource Date: Mon, 7 Apr 2025 16:40:21 +1200 Subject: [PATCH 09/19] Set primary held item to weapon on weapon switch --- scripts/vscripts/alyxlib/player/events.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/vscripts/alyxlib/player/events.lua b/scripts/vscripts/alyxlib/player/events.lua index f71ab6c..0c6058a 100644 --- a/scripts/vscripts/alyxlib/player/events.lua +++ b/scripts/vscripts/alyxlib/player/events.lua @@ -691,6 +691,8 @@ local function listenEventWeaponSwitch(data) Player:UpdateWeaponsExistence() + Player.PrimaryHand.ItemHeld = weaponHandle + savePlayerData() -- Registered callback From 96f6fb55f2ee33adea54fbed186adcfe9e2e8d3b Mon Sep 17 00:00:00 2001 From: FrostSource Date: Mon, 7 Apr 2025 16:40:54 +1200 Subject: [PATCH 10/19] Save more player data --- scripts/vscripts/alyxlib/player/events.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/scripts/vscripts/alyxlib/player/events.lua b/scripts/vscripts/alyxlib/player/events.lua index 0c6058a..e16ab7a 100644 --- a/scripts/vscripts/alyxlib/player/events.lua +++ b/scripts/vscripts/alyxlib/player/events.lua @@ -107,6 +107,10 @@ local player_weapon_to_ammotype = --- local function savePlayerData() Storage.SaveTable(Player, "PlayerItems", Player.Items) + + -- Weapons aren't re-equipped on load so we need to save this + Storage.SaveString(Player, "PlayerCurrentlyEquipped", Player.CurrentlyEquipped) + if Player and Player.LeftHand then Storage.SaveEntity(Player, "LeftWristItem", Player.LeftHand.WristItem) end @@ -117,6 +121,15 @@ end local function loadPlayerData() Player.Items = Storage.LoadTable(Player, "PlayerItems", Player.Items) + + Player.CurrentlyEquipped = Storage.LoadString(Player, "PlayerCurrentlyEquipped", Player.CurrentlyEquipped) + + if Player and Player.LeftHand then + Player.LeftHand.WristItem = Storage.LoadEntity(Player, "LeftWristItem", Player.LeftHand.WristItem) + end + if Player and Player.RightHand then + Player.RightHand.WristItem = Storage.LoadEntity(Player, "RightWristItem", Player.RightHand.WristItem) + end end ---Callback logic for every player event. From 7d0ca5bd8389b333142e7ab5df6f439408a1de9b Mon Sep 17 00:00:00 2001 From: FrostSource Date: Tue, 10 Jun 2025 01:53:36 +1200 Subject: [PATCH 11/19] Check weapon validity on update --- scripts/vscripts/alyxlib/player/core.lua | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/scripts/vscripts/alyxlib/player/core.lua b/scripts/vscripts/alyxlib/player/core.lua index 37ae577..5876e26 100644 --- a/scripts/vscripts/alyxlib/player/core.lua +++ b/scripts/vscripts/alyxlib/player/core.lua @@ -957,11 +957,16 @@ function CBasePlayer:UpdateWeaponsExistence() end end - for i = #weapons.genericpistols, 1, -1 do - local generic = weapons.genericpistols[i] - local swt = Entities:FindByName(nil, "wpnswitch_" .. generic:GetName()) - if not swt then - table.remove(weapons.genericpistols, i) + if #weapons.genericpistols > 0 then + for i = #weapons.genericpistols, 1, -1 do + local generic = weapons.genericpistols[i] + -- Server change seems to destroy weapons before this is run + if IsValidEntity(generic) then + local swt = Entities:FindByName(nil, "wpnswitch_" .. generic:GetName()) + if not swt then + table.remove(weapons.genericpistols, i) + end + end end end end From ab496cd157b2356b9eb378a3db8f4ee2ed2fec98 Mon Sep 17 00:00:00 2001 From: FrostSource Date: Tue, 10 Jun 2025 01:57:31 +1200 Subject: [PATCH 12/19] Add GetAttachmentNameForward --- scripts/vscripts/alyxlib/extensions/entity.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/vscripts/alyxlib/extensions/entity.lua b/scripts/vscripts/alyxlib/extensions/entity.lua index 90c93dc..56baaf3 100644 --- a/scripts/vscripts/alyxlib/extensions/entity.lua +++ b/scripts/vscripts/alyxlib/extensions/entity.lua @@ -443,4 +443,13 @@ function CBaseAnimating:GetAttachmentNameAngles(name) return self:GetAttachmentAngles(self:ScriptLookupAttachment(name)) end +--- +---Gets the forward vector of a named attachment. +--- +---@param name string +---@return Vector +function CBaseAnimating:GetAttachmentNameForward(name) + return self:GetAttachmentForward(self:ScriptLookupAttachment(name)) +end + return version \ No newline at end of file From f1a2266662fa77b1a3c035c82eea95740f4f9a4f Mon Sep 17 00:00:00 2001 From: FrostSource Date: Tue, 10 Jun 2025 01:58:00 +1200 Subject: [PATCH 13/19] Check null in Debug.EntStr --- scripts/vscripts/alyxlib/debug/common.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/vscripts/alyxlib/debug/common.lua b/scripts/vscripts/alyxlib/debug/common.lua index 9858617..c624e36 100644 --- a/scripts/vscripts/alyxlib/debug/common.lua +++ b/scripts/vscripts/alyxlib/debug/common.lua @@ -796,6 +796,10 @@ function Debug.EntStr(ent) return "[nil, nil]" end + if ent:IsNull() then + return "[invalid, invalid]" + end + return "[" .. ent:GetClassname() .. ", " .. ent:GetName() .. "]" end From 07f8dfef3cc8c2030bff7ee6192ad67fbdbf80d7 Mon Sep 17 00:00:00 2001 From: FrostSource Date: Tue, 10 Jun 2025 01:58:39 +1200 Subject: [PATCH 14/19] Check hand validity in haptics --- scripts/vscripts/alyxlib/controls/haptics.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/vscripts/alyxlib/controls/haptics.lua b/scripts/vscripts/alyxlib/controls/haptics.lua index 1e734e0..a684089 100644 --- a/scripts/vscripts/alyxlib/controls/haptics.lua +++ b/scripts/vscripts/alyxlib/controls/haptics.lua @@ -39,6 +39,11 @@ function HapticSequenceClass:Fire(hand) hand = Entities:GetLocalPlayer():GetHMDAvatar():GetVRHand(hand) end + if not IsValidEntity(hand) then + warn("Invalid hand entity for haptic sequence!") + return + end + local ref = { increment = 0, prevTime = Time(), From 574b10c925dcdc99521c22f17955855f1a4613c5 Mon Sep 17 00:00:00 2001 From: FrostSource Date: Tue, 10 Jun 2025 02:07:21 +1200 Subject: [PATCH 15/19] Check entity validity in thinks Entity can be null in some cases of destruction while code is still running. --- scripts/vscripts/alyxlib/class.lua | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/vscripts/alyxlib/class.lua b/scripts/vscripts/alyxlib/class.lua index 41579f9..8a91d11 100644 --- a/scripts/vscripts/alyxlib/class.lua +++ b/scripts/vscripts/alyxlib/class.lua @@ -469,15 +469,19 @@ end ---Resume the entity think function. ---@luadoc-ignore function EntityClass:ResumeThink() - self:SetContextThink("__EntityThink", function() return self:Think() end, 0) - self.IsThinking = true + if not self:IsNull() then + self:SetContextThink("__EntityThink", function() return self:Think() end, 0) + self.IsThinking = true + end end ---Pause the entity think function. ---@luadoc-ignore function EntityClass:PauseThink() - self:SetContextThink("__EntityThink", nil, 0) - self.IsThinking = false + if not self:IsNull() then + self:SetContextThink("__EntityThink", nil, 0) + self.IsThinking = false + end end ---Define a function to redirected to `output` on spawn. From ef75ebadacc61113e40fcef7f67eeba3c1db01a6 Mon Sep 17 00:00:00 2001 From: FrostSource Date: Tue, 10 Jun 2025 12:52:59 +1200 Subject: [PATCH 16/19] Add GetChild function --- .../vscripts/alyxlib/extensions/entity.lua | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/scripts/vscripts/alyxlib/extensions/entity.lua b/scripts/vscripts/alyxlib/extensions/entity.lua index 56baaf3..b2d5619 100644 --- a/scripts/vscripts/alyxlib/extensions/entity.lua +++ b/scripts/vscripts/alyxlib/extensions/entity.lua @@ -45,6 +45,52 @@ function CBaseEntity:GetTopChildren() return children end +--- +---Get the first child in the hierarchy that has targetname or classname. +--- +---@param name string # The name or classname to look for, supports wildcard '*' +---@return EntityHandle? +function CBaseEntity:GetChild(name) + local usePattern = name:find("%*") ~= nil + local pattern + + ---@TODO Consider moving wildcard logic to a utility function + if usePattern then + -- Escape pattern special characters, then replace '*' with '.*' + pattern = "^" .. name + :gsub("([%^%$%(%)%%%.%[%]%+%-%?])", "%%%1") + :gsub("%*", ".*") .. "$" + end + + local child = self:FirstMoveChild() + while IsValidEntity(child) do + local childName = child:GetName() + local className = child:GetClassname() + + local match = false + if usePattern then + match = childName:match(pattern) or className:match(pattern) + else + match = childName == name or className == name + end + + if match then + return child + end + + -- Check children recursively + local result = child:GetChild(name) + if result then + return result + end + + child = child:NextMovePeer() + end + + return nil +end + + --- ---Send an input to this entity. --- From c99b62a895f3523929df6ee9c9366ce1f3920b1f Mon Sep 17 00:00:00 2001 From: FrostSource Date: Tue, 10 Jun 2025 12:53:11 +1200 Subject: [PATCH 17/19] Add alias for Debug.EntStr as entstr --- scripts/vscripts/alyxlib/debug/common.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/vscripts/alyxlib/debug/common.lua b/scripts/vscripts/alyxlib/debug/common.lua index c624e36..f878861 100644 --- a/scripts/vscripts/alyxlib/debug/common.lua +++ b/scripts/vscripts/alyxlib/debug/common.lua @@ -803,6 +803,9 @@ function Debug.EntStr(ent) return "[" .. ent:GetClassname() .. ", " .. ent:GetName() .. "]" end +---@diagnostic disable-next-line: lowercase-global +entstr = Debug.EntStr + --- ---Dumps a list of convars and their values to the console. --- From 67e6ef5578b9f38b129972f347d15c48af096eb9 Mon Sep 17 00:00:00 2001 From: FrostSource Date: Tue, 10 Jun 2025 16:33:15 +1200 Subject: [PATCH 18/19] Update version numbers --- scripts/vscripts/alyxlib/class.lua | 4 ++-- scripts/vscripts/alyxlib/controls/haptics.lua | 4 ++-- scripts/vscripts/alyxlib/controls/input.lua | 4 ++-- scripts/vscripts/alyxlib/debug/commands.lua | 4 ++-- scripts/vscripts/alyxlib/debug/common.lua | 4 ++-- scripts/vscripts/alyxlib/debug/controller.lua | 4 ++-- scripts/vscripts/alyxlib/extensions/entity.lua | 4 ++-- scripts/vscripts/alyxlib/globals.lua | 4 ++-- scripts/vscripts/alyxlib/player/core.lua | 4 ++-- scripts/vscripts/alyxlib/player/events.lua | 4 ++-- 10 files changed, 20 insertions(+), 20 deletions(-) diff --git a/scripts/vscripts/alyxlib/class.lua b/scripts/vscripts/alyxlib/class.lua index 8a91d11..2ddbd3d 100644 --- a/scripts/vscripts/alyxlib/class.lua +++ b/scripts/vscripts/alyxlib/class.lua @@ -1,5 +1,5 @@ --[[ - v2.3.0 + v2.3.1 https://github.com/FrostSource/alyxlib If not using `vscripts/alyxlib/core.lua`, load this file at game start using the following line: @@ -74,7 +74,7 @@ end ``` ]] -local version = "v2.3.0" +local version = "v2.3.1" require "alyxlib.storage" require "alyxlib.globals" diff --git a/scripts/vscripts/alyxlib/controls/haptics.lua b/scripts/vscripts/alyxlib/controls/haptics.lua index a684089..31022b5 100644 --- a/scripts/vscripts/alyxlib/controls/haptics.lua +++ b/scripts/vscripts/alyxlib/controls/haptics.lua @@ -1,5 +1,5 @@ --[[ - v1.0.1 + v1.0.2 https://github.com/FrostSource/alyxlib Haptic sequences allow for more complex vibrations than the one-shot pulses that the base API provides. @@ -28,7 +28,7 @@ local HapticSequenceClass = { pulseWidth_us = 0, } HapticSequenceClass.__index = HapticSequenceClass -HapticSequenceClass.version = "v1.0.1" +HapticSequenceClass.version = "v1.0.2" --- ---Start the haptic sequence on a given hand. diff --git a/scripts/vscripts/alyxlib/controls/input.lua b/scripts/vscripts/alyxlib/controls/input.lua index 00826fc..3a6d7d5 100644 --- a/scripts/vscripts/alyxlib/controls/input.lua +++ b/scripts/vscripts/alyxlib/controls/input.lua @@ -1,5 +1,5 @@ --[[ - v4.0.1 + v4.0.2 https://github.com/FrostSource/alyxlib Simplifies the tracking of digital action presses/releases and analog values. @@ -15,7 +15,7 @@ ---@class Input Input = {} Input.__index = Input -Input.version = "v4.0.1" +Input.version = "v4.0.2" --- ---If the input system should start automatically on player spawn. diff --git a/scripts/vscripts/alyxlib/debug/commands.lua b/scripts/vscripts/alyxlib/debug/commands.lua index 19b3661..fe7a812 100644 --- a/scripts/vscripts/alyxlib/debug/commands.lua +++ b/scripts/vscripts/alyxlib/debug/commands.lua @@ -1,5 +1,5 @@ --[[ - v1.1.0 + v1.1.1 https://github.com/FrostSource/alyxlib If not using `vscripts/alyxlib/init.lua`, load this file at game start using the following line: @@ -7,7 +7,7 @@ require "alyxlib.debug.commands" ]] -local version = "v1.1.0" +local version = "v1.1.1" local alyxlibCommands = {} diff --git a/scripts/vscripts/alyxlib/debug/common.lua b/scripts/vscripts/alyxlib/debug/common.lua index f878861..bb61c5a 100644 --- a/scripts/vscripts/alyxlib/debug/common.lua +++ b/scripts/vscripts/alyxlib/debug/common.lua @@ -1,5 +1,5 @@ --[[ - v2.1.0 + v2.2.0 https://github.com/FrostSource/alyxlib Debug utility functions. @@ -13,7 +13,7 @@ require "alyxlib.extensions.entity" require "alyxlib.math.common" Debug = {} -Debug.version = "v2.1.0" +Debug.version = "v2.2.0" --- ---Finds the first entity whose name, class or model matches `pattern`. diff --git a/scripts/vscripts/alyxlib/debug/controller.lua b/scripts/vscripts/alyxlib/debug/controller.lua index 6f33622..580ef58 100644 --- a/scripts/vscripts/alyxlib/debug/controller.lua +++ b/scripts/vscripts/alyxlib/debug/controller.lua @@ -1,5 +1,5 @@ --[[ - v1.0.1 + v1.0.2 https://github.com/FrostSource/alyxlib Allows quick debugging of VR controllers. @@ -11,7 +11,7 @@ -- Used for button descriptions require "alyxlib.controls.input" -local version = "v1.0.1" +local version = "v1.0.2" Convars:RegisterCommand("alyxlib_start_print_controller_button_presses", function (_) diff --git a/scripts/vscripts/alyxlib/extensions/entity.lua b/scripts/vscripts/alyxlib/extensions/entity.lua index b2d5619..c94ea6b 100644 --- a/scripts/vscripts/alyxlib/extensions/entity.lua +++ b/scripts/vscripts/alyxlib/extensions/entity.lua @@ -1,5 +1,5 @@ --[[ - v2.6.1 + v2.7.0 https://github.com/FrostSource/alyxlib Provides base entity extension methods. @@ -9,7 +9,7 @@ require "alyxlib.extensions.entity" ]] -local version = "v2.6.1" +local version = "v2.7.0" --- ---Get the entities parented to this entity. Including children of children. diff --git a/scripts/vscripts/alyxlib/globals.lua b/scripts/vscripts/alyxlib/globals.lua index f9c14d0..c7acdaa 100644 --- a/scripts/vscripts/alyxlib/globals.lua +++ b/scripts/vscripts/alyxlib/globals.lua @@ -1,5 +1,5 @@ --[[ - v2.6.0 + v2.7.0 https://github.com/FrostSource/alyxlib Provides common global functions used throughout extravaganza libraries. @@ -14,7 +14,7 @@ -- These are expected by globals require 'alyxlib.utils.common' -local _version = "v2.6.0" +local _version = "v2.7.0" --- ---A registered AlyxLib addon. diff --git a/scripts/vscripts/alyxlib/player/core.lua b/scripts/vscripts/alyxlib/player/core.lua index 5876e26..a043d74 100644 --- a/scripts/vscripts/alyxlib/player/core.lua +++ b/scripts/vscripts/alyxlib/player/core.lua @@ -1,5 +1,5 @@ --[[ - v4.2.0 + v4.2.1 https://github.com/FrostSource/alyxlib Player script allows for more advanced player manipulation and easier @@ -100,7 +100,7 @@ require "alyxlib.globals" require "alyxlib.extensions.entity" require "alyxlib.storage" -local version = "v4.2.0" +local version = "v4.2.1" ----------------------------- -- Class extension members -- diff --git a/scripts/vscripts/alyxlib/player/events.lua b/scripts/vscripts/alyxlib/player/events.lua index e16ab7a..86c21c5 100644 --- a/scripts/vscripts/alyxlib/player/events.lua +++ b/scripts/vscripts/alyxlib/player/events.lua @@ -1,11 +1,11 @@ --[[ - v2.1.3 + v2.2.0 https://github.com/FrostSource/alyxlib ]] -local version = "v2.1.3" +local version = "v2.2.0" ---@class __PlayerRegisteredEventData ---@field callback function From 4f6068377affe19726497a219fc641face10fe34 Mon Sep 17 00:00:00 2001 From: FrostSource Date: Tue, 10 Jun 2025 16:33:46 +1200 Subject: [PATCH 19/19] Add check_lua_versions.sh to .gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 7067ef5..39a0086 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ __pycache__ /test_release/ __test* *.bak +check_lua_versions.sh