repo
stringclasses
350 values
file_path
stringlengths
29
200
language
stringclasses
2 values
file_type
stringclasses
4 values
code
stringlengths
2
1.01M
tokens
int64
2
598k
boydev-1444/lunaux-decompiler
boydev-1444-lunaux-decompiler-ca01444/Tests/Disassembly/FunctionMultiReturn.luau
luau
.luau
# Luau version: 11 (0x000000B) # Types version: 3 (0x0000003) # Magic key: 1 (0x0000001) # Main function id: 1 (0x0000001) # Total functions: 2 (0x0000001) # Constants [3] (0x0000003) [0x0000000] : goto minmax on line 1 : type 6 [0x0000006] [0x0000001] : "print" : type 3 [0x0000003] ...
1,351
boydev-1444/lunaux-decompiler
boydev-1444-lunaux-decompiler-ca01444/Tests/Disassembly/GenericForLoop.luau
luau
.luau
# Luau version: 11 (0x000000B) # Types version: 3 (0x0000003) # Magic key: 1 (0x0000001) # Main function id: 0 (0x0000000) # Total functions: 1 (0x0000000) # Constants [6] (0x0000006) [0x0000000] : "print" : type 3 [0x0000003] [0x0000001] : print : type 4 [0x0000004] ...
960
boydev-1444/lunaux-decompiler
boydev-1444-lunaux-decompiler-ca01444/Tests/Disassembly/GuardClauses.luau
luau
.luau
# Luau version: 9 (0x0000009) # Types version: 3 (0x0000003) # Magic key: 1 (0x0000001) # Main function id: 2 (0x0000002) # Total functions: 3 (0x0000002) # Constants [7] (0x0000007) [0x0000000] : goto cached on line 1 : type 6 [0x0000006] [0x0000001] : goto damage on line 14 : type 6 [0x0000006] ...
2,438
boydev-1444/lunaux-decompiler
boydev-1444-lunaux-decompiler-ca01444/Tests/Disassembly/LoopScopedLocals.luau
luau
.luau
# Luau version: 9 (0x0000009) # Types version: 3 (0x0000003) # Magic key: 1 (0x0000001) # Main function id: 1 (0x0000001) # Total functions: 2 (0x0000001) # Constants [1] (0x0000001) [0x0000000] : goto accumulate on line 1 : type 6 [0x0000006] # BLOCK 0 [ENTRY] (B0) | PC 0 -> 2 [00000] [00000] [0x0000041] ...
1,582
boydev-1444/lunaux-decompiler
boydev-1444-lunaux-decompiler-ca01444/Tests/Disassembly/MethodDefinitions.luau
luau
.luau
# Luau version: 9 (0x0000009) # Types version: 3 (0x0000003) # Magic key: 1 (0x0000001) # Main function id: 4 (0x0000004) # Total functions: 5 (0x0000004) # Constants [13] (0x000000D) [0x0000000] : goto setup on line 3 : type 6 [0x0000006] [0x0000001] : "setup" : type 3 [0x0000003] ...
2,566
boydev-1444/lunaux-decompiler
boydev-1444-lunaux-decompiler-ca01444/Tests/Disassembly/NestedConditions.luau
luau
.luau
# Luau version: 9 (0x0000009) # Types version: 3 (0x0000003) # Magic key: 1 (0x0000001) # Main function id: 1 (0x0000001) # Total functions: 2 (0x0000001) # Constants [1] (0x0000001) [0x0000000] : goto scan on line 1 : type 6 [0x0000006] # BLOCK 0 [ENTRY] (B0) | PC 0 -> 2 [00000] [00000] [0x0000041] ...
1,379
boydev-1444/lunaux-decompiler
boydev-1444-lunaux-decompiler-ca01444/Tests/Disassembly/NestedLoops.luau
luau
.luau
# Luau version: 11 (0x000000B) # Types version: 3 (0x0000003) # Magic key: 1 (0x0000001) # Main function id: 0 (0x0000000) # Total functions: 1 (0x0000000) # Constants [3] (0x0000003) [0x0000000] : 2 : type 2 [0x0000002] [0x0000001] : "print" : type 3 [0x0000003] ...
939
boydev-1444/lunaux-decompiler
boydev-1444-lunaux-decompiler-ca01444/Tests/Disassembly/NumericForLoop.luau
luau
.luau
# Luau version: 11 (0x000000B) # Types version: 3 (0x0000003) # Magic key: 1 (0x0000001) # Main function id: 0 (0x0000000) # Total functions: 1 (0x0000000) # Constants [8] (0x0000008) [0x0000000] : "print" : type 3 [0x0000003] [0x0000001] : print : type 4 [0x0000004] ...
1,288
boydev-1444/lunaux-decompiler
boydev-1444-lunaux-decompiler-ca01444/Tests/Disassembly/RecursiveFunction.luau
luau
.luau
# Luau version: 11 (0x000000B) # Types version: 3 (0x0000003) # Magic key: 1 (0x0000001) # Main function id: 2 (0x0000002) # Total functions: 3 (0x0000002) # Constants [4] (0x0000004) [0x0000000] : goto factorial on line 1 : type 6 [0x0000006] [0x0000001] : goto fibonacci on line 1 : type 6 [0x0000006] ...
1,832
boydev-1444/lunaux-decompiler
boydev-1444-lunaux-decompiler-ca01444/Tests/Disassembly/Repeat.luau
luau
.luau
# Luau version: 11 (0x000000B) # Types version: 3 (0x0000003) # Magic key: 1 (0x0000001) # Main function id: 0 (0x0000000) # Total functions: 1 (0x0000000) # Constants [8] (0x0000008) [0x0000000] : "print" : type 3 [0x0000003] [0x0000001] : print : type 4 [0x0000004] ...
821
boydev-1444/lunaux-decompiler
boydev-1444-lunaux-decompiler-ca01444/Tests/Disassembly/RepeatBreakContinue.luau
luau
.luau
# Luau version: 9 (0x0000009) # Types version: 3 (0x0000003) # Magic key: 1 (0x0000001) # Main function id: 1 (0x0000001) # Total functions: 2 (0x0000001) # Constants [1] (0x0000001) [0x0000000] : goto poll on line 1 : type 6 [0x0000006] # BLOCK 0 [ENTRY] (B0) | PC 0 -> 2 [00000] [00000] [0x0000041] ...
1,822
boydev-1444/lunaux-decompiler
boydev-1444-lunaux-decompiler-ca01444/Tests/Disassembly/TernaryChains.luau
luau
.luau
# Luau version: 9 (0x0000009) # Types version: 3 (0x0000003) # Magic key: 1 (0x0000001) # Main function id: 3 (0x0000003) # Total functions: 4 (0x0000003) # Constants [5] (0x0000005) [0x0000000] : goto grade on line 1 : type 6 [0x0000006] [0x0000001] : goto pick on line 5 : type 6 [0x0000006] ...
2,607
boydev-1444/lunaux-decompiler
boydev-1444-lunaux-decompiler-ca01444/Tests/Disassembly/WhIleCondition.luau
luau
.luau
# Luau version: 11 (0x000000B) # Types version: 3 (0x0000003) # Magic key: 1 (0x0000001) # Main function id: 0 (0x0000000) # Total functions: 1 (0x0000000) # Constants [7] (0x0000007) [0x0000000] : "print" : type 3 [0x0000003] [0x0000001] : print : type 4 [0x0000004] ...
837
boydev-1444/lunaux-decompiler
boydev-1444-lunaux-decompiler-ca01444/Tests/Disassembly/WhileTrue.luau
luau
.luau
# Luau version: 11 (0x000000B) # Types version: 3 (0x0000003) # Magic key: 1 (0x0000001) # Main function id: 0 (0x0000000) # Total functions: 1 (0x0000000) # Constants [3] (0x0000003) [0x0000000] : "print" : type 3 [0x0000003] [0x0000001] : print : type 4 [0x0000004] ...
420
thegalaxydev/Aloha
thegalaxydev-Aloha-51c1eac/Aloha/Classes/Color3.luau
luau
.luau
-- thegalaxydev --[=[ @class Color3 The Color3 data type describes a color using red, green, and blue components in the range of 0 to 1. ]=] local Color3 = {} Color3.__index = Color3 export type Color3 = typeof(Color3) & { R: number, G: number, B: number, } --[=[ Creates a new Color3. @param r number @param...
1,134
thegalaxydev/Aloha
thegalaxydev-Aloha-51c1eac/Aloha/Classes/DiscordWebSocket.luau
luau
.luau
--[=[ @class DiscordWebSocket Class to spawn sharded websockets for Discord. ]=] local DiscordWebSocket = {} DiscordWebSocket.__index = DiscordWebSocket local Event = require("./Event") local Bot = require("../Lib/Bot") local Task = require("../Util/Task") local Client = require("../Lib/Client") local Misc = require(...
1,707
thegalaxydev/Aloha
thegalaxydev-Aloha-51c1eac/Aloha/Classes/Embed.luau
luau
.luau
--[=[ @class Embed Class to create Discord embeds. ]=] local Embed = {} local Color3 = require("Color3") type Color3 = Color3.Color3 local DiscordTypes = require("../Lib/DiscordTypes") export type Embed = { setTitle: (title: string) -> Embed, setDescription: (description: string) -> Embed, setUrl: (url: string) ...
1,598
thegalaxydev/Aloha
thegalaxydev-Aloha-51c1eac/Aloha/Classes/Event.luau
luau
.luau
--[=[ @class Event Class to create events. ]=] local Event = {} Event.__index = Event Event.__class = "Event" export type Event<T...> = { Callbacks : {[(T...)->any]: any}; Waiting : {thread}; Connect : (Event<T...>, func : (T...)->any) -> Connection, Fire : (Event<T...>, T...) -> nil, Wait : (Event<T...>, numb...
507
thegalaxydev/Aloha
thegalaxydev-Aloha-51c1eac/Aloha/Classes/LinkedList.luau
luau
.luau
--[=[ @class LinkedList A linked list implementation. ]=] local LinkedList = {} LinkedList.__index = function(self, key) if type(key) == "number" then local current = self.Head for _ = 1, key - 1 do if not current then return nil end current = current.Next end return current end return LinkedList[key] ...
1,514
thegalaxydev/Aloha
thegalaxydev-Aloha-51c1eac/Aloha/Classes/Snowflake.luau
luau
.luau
--[=[ @class Snowflake A utility class for decoding and encoding Discord snowflakes. ]=] local Snowflake = {} export type Snowflake = { id: string, timestamp: string, workerId: string, processId: string, increment: string, } local bit64 = require('Bit64') --[=[ @private @param id string -- The snowflake ID...
429
thegalaxydev/Aloha
thegalaxydev-Aloha-51c1eac/Aloha/Classes/Sweeper.luau
luau
.luau
--[=[ @class Sweeper A utility class for managing cleanup of objects and resources. Fork of Janitor by howmanysmall. ]=] local Bot = require("../Lib/Bot") local Task = require("../Util/Task") local Sweeper = {} Sweeper.__index = Sweeper export type Sweeper = typeof(Sweeper) & { RemoveNoClean: (index: any) -...
683
thegalaxydev/Aloha
thegalaxydev-Aloha-51c1eac/Aloha/Classes/Timer.luau
luau
.luau
--[=[ @class Timer A utility class for managing timed callbacks. ]=] local Timer = {} Timer.__index = Timer export type Timer = typeof(Timer) --[=[ @param time number -- The total time to run in seconds @param interval number -- The interval between callbacks in seconds @param interval_callback ((...
472
thegalaxydev/Aloha
thegalaxydev-Aloha-51c1eac/Aloha/Classes/Vector3.luau
luau
.luau
local Vector3 = {} Vector3.__index = Vector3 export type Vector3 = { X: number, Y: number, Z: number, Zero: () -> Vector3, One: () -> Vector3, } function Vector3.new(x: number, y: number, z: number) : Vector3 local self = setmetatable({}, { __index = Vector3, __tostring = function(self) return string.for...
397
thegalaxydev/Aloha
thegalaxydev-Aloha-51c1eac/Aloha/Lib/Bot.luau
luau
.luau
--[=[ @class Bot The main Bot class that handles Discord gateway connections and core functionality. ]=] local Bot = {} local process = require("@lune/process") local DiscordTypes = require("./DiscordTypes") type WebSocket = { Close: () -> (), Next: () -> (any), Send: (data: string) -> () } --[=[ @prop DISCORD...
1,481
thegalaxydev/Aloha
thegalaxydev-Aloha-51c1eac/Aloha/Lib/Components.luau
luau
.luau
--[=[ @class Components Module for handling Discord components. ]=] local Components = {} local DiscordTypes = require("./DiscordTypes") local Objects = require("../Classes/Objects") local Event = require("../Classes/Event") local Enum = require("./Enum") local Network = require("./Network") type InteractionEvent = Ev...
274
thegalaxydev/Aloha
thegalaxydev-Aloha-51c1eac/Aloha/Lib/Debug.luau
luau
.luau
--[=[ @class Debug Handles debug functionality and user permissions for debugging ]=] local Debug = {} local Objects = require("../Classes/Objects") --[=[ @prop AllowedUsers {string} @within Debug List of user IDs that are allowed to use debug functionality ]=] Debug.AllowedUsers = {} --[=[ @f...
176
thegalaxydev/Aloha
thegalaxydev-Aloha-51c1eac/Aloha/Util/Cache.luau
luau
.luau
local LinkedList = require("../Classes/LinkedList") local Cache = { Channels = {}, Guilds = {}, Users = LinkedList.new(), Members = LinkedList.new(), Messages = LinkedList.new() } return Cache
44
thegalaxydev/Aloha
thegalaxydev-Aloha-51c1eac/Aloha/Util/Mutex.luau
luau
.luau
--[=[ @class Mutex A mutex (mutual exclusion) implementation for coroutine synchronization. Based on SinisterRectus's implementation in Discordia. ]=] local Task = require("../Util/Task") local Mutex = {} Mutex.__index = Mutex Mutex.__len = function(self) return self.Length end local LinkedList = require("....
468
thegalaxydev/Aloha
thegalaxydev-Aloha-51c1eac/Aloha/Util/Task.luau
luau
.luau
local Task = {} local Event = require("../Classes/Event") local task = require("@lune/task") function Task.Cancel(thread: thread) task.cancel(thread) end function Task.Delay<T...>(duration: number, functionOrThread: ((T...) -> ...any) | thread, ...: T...) : thread print("[Task] Delaying for ", duration, " seconds")...
186
thegalaxydev/Aloha
thegalaxydev-Aloha-51c1eac/init.luau
luau
.luau
return require("./Aloha")
7
Zyn-ic/Stoway
Zyn-ic-Stoway-ed64b7e/docs/templates/server-operation-template.luau
luau
.luau
-- Stoway Server Operation Template -- Copy this file to src/server/StowayServerV1_2/Operations/{{OperationName}}.luau -- See docs/guides/add-server-features.html for complete instructions --// ═══════════════════════════════════════════════════════════════════════════ --// {{OperationName}}.luau --// Description: [Ad...
1,257
Zyn-ic/Stoway
Zyn-ic-Stoway-ed64b7e/src/client/StowayClientv1_2/CoreState/InventoryStore.luau
luau
.luau
-- src/client/Inventory/InventoryStore.luau local ReplicatedStorage = game:GetService("ReplicatedStorage") local Fusion = require(ReplicatedStorage.Packages.fusion) local Settings = require(ReplicatedStorage.Shared.Settings) local Types = require(ReplicatedStorage.Shared.Types) local Scope = Fusion.scoped(Fusion) loca...
1,896
Zyn-ic/Stoway
Zyn-ic-Stoway-ed64b7e/src/client/StowayClientv1_2/DragFunctions/DragHandler.luau
luau
.luau
local UserInputService = game:GetService("UserInputService") local GuiService = game:GetService("GuiService") local ReplicatedStorage = game:GetService("ReplicatedStorage") local RunService = game:GetService("RunService") local InventoryController = require(script.Parent.Parent.Operations.InventoryController) local Inv...
3,208
Zyn-ic/Stoway
Zyn-ic-Stoway-ed64b7e/src/client/StowayClientv1_2/Hook/HookManager.luau
luau
.luau
-- src/client/StowayClientV1_2/Hooks/HookManager.luau -- UI-specific hook system - each UI skin provides its own hooks local HookManager = {} HookManager.__index = HookManager --// Available hook types local HOOK_TYPES = { OnSlotClick = "OnSlotClick", OnSlotHover = "OnSlotHover", OnDragStart = "OnDragStart", OnDr...
653
Zyn-ic/Stoway
Zyn-ic-Stoway-ed64b7e/src/client/StowayClientv1_2/Input/ConsoleDropUI.luau
luau
.luau
local Players = game:GetService("Players") local GuiService = game:GetService("GuiService") local ConsoleDropUI = {} local container = nil local currentAmount = 1 local maxAmount = 1 local dropMenuTemplate = nil -- References local numberIndicator = nil local titleLabel = nil local decreaseButton = nil local increase...
2,964
Zyn-ic/Stoway
Zyn-ic-Stoway-ed64b7e/src/client/StowayClientv1_2/Input/ConsoleModeManager.luau
luau
.luau
local GuiService = game:GetService("GuiService") local ReplicatedStorage = game:GetService("ReplicatedStorage") local SelectionManager = require(script.Parent.SelectionManager) local InputManager = require(script.Parent.InputManager) local IllusionIAS = require(ReplicatedStorage.Packages.IllusionIAS) local Binds = req...
1,237
Zyn-ic/Stoway
Zyn-ic-Stoway-ed64b7e/src/client/StowayClientv1_2/Input/InputManager.luau
luau
.luau
-- src/client/StowayClientv1_2/Input/InputManager.luau local ReplicatedStorage = game:GetService("ReplicatedStorage") local IllusionIAS = require(ReplicatedStorage.Packages.IllusionIAS) local Binds = require(ReplicatedStorage.Shared.Binds) local Settings = require(ReplicatedStorage.Shared.Settings) local InputManager ...
923
Zyn-ic/Stoway
Zyn-ic-Stoway-ed64b7e/src/client/StowayClientv1_2/Input/InteractionManager.luau
luau
.luau
local UserInputService = game:GetService("UserInputService") local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local InventoryStore = require(script.Parent.Parent.CoreState.InventoryStore) local InventoryController = require(script.Parent.Parent.Operations.Invent...
1,604
Zyn-ic/Stoway
Zyn-ic-Stoway-ed64b7e/src/client/StowayClientv1_2/Input/SelectionManager.luau
luau
.luau
local GuiService = game:GetService("GuiService") local ReplicatedStorage = game:GetService("ReplicatedStorage") local InputManager = require(script.Parent.InputManager) local InventoryController = require(script.Parent.Parent.Operations.InventoryController) local InventoryStore = require(script.Parent.Parent.CoreState....
2,412
Zyn-ic/Stoway
Zyn-ic-Stoway-ed64b7e/src/client/StowayClientv1_2/NetworkFunctions/NetworkHandler.luau
luau
.luau
-- src/client/StowayClientV1_2/NetworkFunctions/NetworkHandler.luau -- Centralized Network Gateway for Inventory System V1.2 -- This module handles all server communication (incoming & outgoing) local ReplicatedStorage = game:GetService("ReplicatedStorage") local NetworkHandler = {} -- Remotes local Remotes = Replic...
286
Zyn-ic/Stoway
Zyn-ic-Stoway-ed64b7e/src/client/StowayClientv1_2/Operations/InventoryController.luau
luau
.luau
-- src/client/Inventory/InventoryController.luau local ReplicatedStorage = game:GetService("ReplicatedStorage") local Store = require(script.Parent.Parent.CoreState.InventoryStore) local NetworkHandler = require(script.Parent.Parent.NetworkFunctions.NetworkHandler) local Fusion = require(ReplicatedStorage.Packages.fus...
2,903
Zyn-ic/Stoway
Zyn-ic-Stoway-ed64b7e/src/client/StowayClientv1_2/SlotCreation/SlotFactory.luau
luau
.luau
-- src/client/Inventory/Components/SlotFactory.luau local ReplicatedStorage = game:GetService("ReplicatedStorage") local InventoryController = require(script.Parent.Parent.Operations.InventoryController) local RarityValues = require(ReplicatedStorage.Shared.RarityValues) local Settings = require(ReplicatedStorage.Share...
2,222
Zyn-ic/Stoway
Zyn-ic-Stoway-ed64b7e/src/client/StowayClientv1_2/init.luau
luau
.luau
-- src/client/StowayClientV1_2/ClientInventoryService.luau --modules local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local StarterGui = game:GetService("StarterGui") local UserInputService = game:GetService("UserInputService") local ClientInventoryService = {} ...
4,091
Zyn-ic/Stoway
Zyn-ic-Stoway-ed64b7e/src/client/init.client.luau
luau
.luau
-- src/client/init.client.luau require(script.StowayClientv1_2).Init()
21
Zyn-ic/Stoway
Zyn-ic-Stoway-ed64b7e/src/server/StowayServerV1_2/Core/InventoryState.luau
luau
.luau
-- src/server/StowayServerV1.2/Core/InventoryState.luau -- Pure data container for player inventory state -- Includes per-player settings (defaults from Config, modifiable at runtime) local ReplicatedStorage = game:GetService("ReplicatedStorage") local InventoryState = {} InventoryState.__index = InventoryState local...
614
Zyn-ic/Stoway
Zyn-ic-Stoway-ed64b7e/src/server/StowayServerV1_2/Core/LimitChecker.luau
luau
.luau
-- src/server/StowayServerV1.2/Core/LimitChecker.luau -- Pre-operation validation for inventory weight/limit (Amount-based) -- Uses state.Settings (per-player) instead of global Settings -- Limit = 0 means INFINITE (no weight checking) local LimitChecker = {} local SlotManager = require(script.Parent.SlotManager) --...
464
Zyn-ic/Stoway
Zyn-ic-Stoway-ed64b7e/src/server/StowayServerV1_2/Core/SlotManager.luau
luau
.luau
-- src/server/StowayServerV1.2/Core/SlotManager.luau -- Single source of truth for slot-level operations (Static Hotbar / Dynamic Storage) -- Uses state.Settings (per-player) instead of global Settings local SlotManager = {} local ReplicatedStorage = game:GetService("ReplicatedStorage") local Settings = require(Replic...
1,002
Zyn-ic/Stoway
Zyn-ic-Stoway-ed64b7e/src/server/StowayServerV1_2/Debug/ChatCommands.luau
luau
.luau
-- src/server/StowayServerV1.2/Debug/ChatCommands.luau -- Debug chat commands for testing the inventory system local ChatCommands = {} function ChatCommands.Register(player: Player, InventoryService: any) player.Chatted:Connect(function(msg) local args = string.split(msg, " ") local cmd = string.lower(args[1]) ...
3,488
Zyn-ic/Stoway
Zyn-ic-Stoway-ed64b7e/src/server/StowayServerV1_2/Operations/AddOperation.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local AddOperation = {} local Settings = require(ReplicatedStorage.Shared.Settings) local SlotManager = require(script.Parent.Parent.Core.SlotManager) local LimitChecker = require(script.Parent.Parent.Core.LimitChecker) local StackChecker = require(script.P...
1,877
Zyn-ic/Stoway
Zyn-ic-Stoway-ed64b7e/src/server/StowayServerV1_2/Operations/DropOperation.luau
luau
.luau
-- src/server/StowayServerV1.2/Operations/DropOperation.luau -- Handles Drop logic: If equipped → Unequip → Remove from inventory → Spawn in world local DropOperation = {} local SlotManager = require(script.Parent.Parent.Core.SlotManager) local RemoveOperation = require(script.Parent.RemoveOperation) local EquipOpera...
588
Zyn-ic/Stoway
Zyn-ic-Stoway-ed64b7e/src/server/StowayServerV1_2/Operations/RemoveOperation.luau
luau
.luau
-- src/server/StowayServerV1.2/Operations/RemoveOperation.luau -- Handles full Remove logic flow: Validate → Reduce/Destroy → Shift if Storage local RemoveOperation = {} local SlotManager = require(script.Parent.Parent.Core.SlotManager) local LimitChecker = require(script.Parent.Parent.Core.LimitChecker) export type...
821
Zyn-ic/Stoway
Zyn-ic-Stoway-ed64b7e/src/server/StowayServerV1_2/Operations/SwapOperation.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") -- src/server/StowayServerV1.2/Operations/SwapOperation.luau -- Handles full Swap logic flow: Validate → Execute (preserve equipped) → Return delta -- Uses state.Settings (per-player) for bounds checking local SwapOperation = {} local Settings = require(R...
974
Zyn-ic/Stoway
Zyn-ic-Stoway-ed64b7e/src/server/StowayServerV1_2/Replication/Replicator.luau
luau
.luau
-- src/server/StowayServerV1.2/Replication/Replicator.luau -- Centralized delta replication dispatcher local Replicator = {} local ReplicatedStorage = game:GetService("ReplicatedStorage") local Actions = require(script.Parent.Actions) -- Remote setup local RemotesFolder = ReplicatedStorage:FindFirstChild("Remotes") ...
738
Zyn-ic/Stoway
Zyn-ic-Stoway-ed64b7e/src/server/StowayServerV1_2/Utils/MetadataParser.luau
luau
.luau
-- src/server/StowayServerV1.2/Utils/MetadataParser.luau -- Parses metadata from Tool attributes -- Note: "Amount" is extracted separately and excluded from metadata local MetadataParser = {} local ServerStorage = game:GetService("ServerStorage") local ToolStorage = ServerStorage:FindFirstChild("Tools") :: Folder? ...
568
Zyn-ic/Stoway
Zyn-ic-Stoway-ed64b7e/src/server/StowayServerV1_2/Utils/StackChecker.luau
luau
.luau
-- src/server/StowayServerV1.2/Utils/StackChecker.luau -- Validates if items can stack and attempts stacking -- Uses state.Settings for CanStack and MaxStackSize (per-player) -- Uses global Settings.Stacking for item-level rules (RequiredFields, Blacklist) local StackChecker = {} local ReplicatedStorage = game:GetServ...
635
Zyn-ic/Stoway
Zyn-ic-Stoway-ed64b7e/src/server/StowayServerV1_2/Utils/UUID.luau
luau
.luau
-- src/server/StowayServerV1.2/Utils/UUID.luau -- UUID generation utility local UUID = {} local HttpService = game:GetService("HttpService") function UUID.Generate(): string return HttpService:GenerateGUID(false) end return UUID
57
Zyn-ic/Stoway
Zyn-ic-Stoway-ed64b7e/src/server/init.server.luau
luau
.luau
-- ServerScriptService/init.server.luau --// Stoway V1 Initialization -- We are transitioning to the new V1 architecture. -- The old StowayServer code is replaced by this single service entry point. local InventoryService = require(script["StowayServerV1_2"]) InventoryService.Init() print("Stoway Inventory System V...
77
Zyn-ic/Stoway
Zyn-ic-Stoway-ed64b7e/src/shared/Binds.luau
luau
.luau
-- ReplicatedStorage/Shared/Binds.lua local Binds = {} -- Helper function to apply binds to an action -- Usage: Binds.ApplyToAction(action, Binds.Global.InventoryActions.Swap) -- Or: Binds.ApplyToAction(action, Binds.Global.InventoryActions.Swap, "Console") -- Console only function Binds.ApplyToAction(action, bindC...
1,026
Zyn-ic/Stoway
Zyn-ic-Stoway-ed64b7e/src/shared/RarityValues.luau
luau
.luau
local rarities = {} rarities.rarityColors = { ["godly"] = Color3.new(0.933333, 0.92549, 0.435294), ["lengendary"] = Color3.new(0.639216, 0.278431, 0.278431), ["rare"] = Color3.new(0.372549, 0.607843, 0.721569), ["uncommon"] = Color3.new(0.588235, 0.72549, 0.509804), ["common"] = Color3.new(0.4, 0.4...
302
Zyn-ic/Stoway
Zyn-ic-Stoway-ed64b7e/src/shared/Settings.luau
luau
.luau
-- src/server/StowayServerV1.2/Config/Settings.luau -- Configuration for the Inventory System V1.2 local Settings = {} --// Types export type HotbarType = "Static" | "Dynamic" --// Hotbar Settings Settings.Hotbar = { Type = "Static" :: HotbarType, -- Static: fixed slots with holes, Dynamic: packed array (perplayer ...
534
Zyn-ic/Stoway
Zyn-ic-Stoway-ed64b7e/src/shared/Types.luau
luau
.luau
-- ReplicatedStorage/Shared/Types.lua local Types = {} Types.HotbarType = { Static = "Static", Dynamic = "Dynamic" } Types.CarryingType = { Inventory = "Inventory", Backpack = "Backpack" } Types.SortingType = {Name = "Name", Rarity = "Rarity", ItemType = "ItemType", SearchBar = "SearchBar"} export type ItemData = { ...
179
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/DefaultData.luau
luau
.luau
return { -- Adds to default data. Examples: -- Points = 25 -- Adds "Points" to data and defaults to 25 -- Adds "Coins" to data and defaults to 0 Coins = 0, -- Example table for default data Inventory = { Pills = {}, -- [itemId] = {itemName = string, quantity = number} Elixirs = {}, -- [itemId] = {itemName...
206
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Client/Cache.luau
luau
.luau
--!strict export type CacheModule = { GetFromValueCache: (key: string) -> any?, SetInValueCache: (key: string, value: any) -> (), GetFromNestedCache: (path: string) -> any?, SetInNestedCache: (path: string, value: any) -> (), ClearAllCaches: () -> (), CleanupCache: () -> (), InvalidateForMutationPath: (path: {a...
927
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Client/Connection.luau
luau
.luau
--!strict export type ConnectionModule = { AddConnection: (connection: any) -> (), ScheduleCleanup: () -> (), } local function CreateConnectionModule(): ConnectionModule local activeConnections: {any} = {} local connectionCleanupScheduled = false local function ScheduleCleanup(): () if connectionCleanupSchedu...
197
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Client/Leaderboard.luau
luau
.luau
--!strict export type LeaderboardInfo = { rank: number?, score: number?, statName: string, } export type LeaderboardEntry = { userId: number, score: number, rank: number, } local Leaderboard = {} local function ToLeaderboardInfo(statName: string, statData: any): LeaderboardInfo? if typeof(statData) ~= "table...
493
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Client/PathCache.luau
luau
.luau
--!strict export type PathCacheModule = { GetPathKeys: (path: string) -> {string}, ClearCache: () -> (), } local function CreatePathCache(maxPathCacheSize: number): PathCacheModule local pathCache: {[string]: {string}} = {} local function GetPathKeys(path: string): {string} local cached = pathCache[path] if ...
274
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Client/Validation.luau
luau
.luau
--!strict local Validation = {} function Validation.ValidateReplica(replica: any?): boolean return replica ~= nil and replica:IsActive() end function Validation.WaitForData( dataReady: () -> boolean, validateReplica: (replica: any?) -> boolean, getReplica: () -> any?, readyEvent: BindableEvent? ): boolean if d...
169
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Server/Array.luau
luau
.luau
--!strict local Array = {} function Array.AddToArray(replica: any, pathKeys: {string}, item: any): (boolean, string?) local success, result = pcall(replica.TableInsert, replica, pathKeys, item) if not success then return false, result end return success, nil end function Array.RemoveFromArray(replica: any, pa...
206
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Server/Batch.luau
luau
.luau
--!strict export type BatchOperation = { path: string, value: any, } export type BatchModule = { ScheduleBatchOperation: (player: Player, operation: BatchOperation) -> (), ProcessBatchOperations: (player: Player) -> (), FlushBatch: (player: Player) -> (), ClearPlayerBatch: (player: Player) -> (), } local funct...
1,066
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Server/DataUtils.luau
luau
.luau
--!strict local DataUtils = {} local INT32_MAX = 2147483647 local INT32_MIN = -2147483648 local DEFAULT_RUNTIME_NON_PERSISTENT_ROOTS = { "session", "_LeaderboardRanks", "_Leaderboards", "_Leaderboard", } local DEFAULT_SERVER_ONLY_ROOTS = { "Server", } function DataUtils.GetAppropriateValueType(value: number): s...
2,047
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Server/DataWipe.luau
luau
.luau
--!strict local Players = game:GetService("Players") local DataUtils = require(script.Parent.DataUtils) local Utils = require(script.Parent.Parent.Shared.Utils) local DataWipe = {} function DataWipe.WipePlayerData( player: Player, config: any, getProfile: (player: Player) -> any?, getReplica: (player: Player) ->...
879
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Server/Dict.luau
luau
.luau
--!strict local Dict = {} local function getParentAndDictSlot(replicaData: any, pathKeys: {string}): (any?, string?) if #pathKeys == 0 then return nil, nil end local current = replicaData for i = 1, #pathKeys - 1 do local k = pathKeys[i] if typeof(current) ~= "table" then return nil, nil end current...
423
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Server/Leaderboard.luau
luau
.luau
--!strict local Players = game:GetService("Players") local DataStoreService = game:GetService("DataStoreService") local DataUtils = require(script.Parent.DataUtils) export type LeaderboardEntry = { userId: number, score: number, rank: number, } export type LeaderboardModule = { InitializeLeaderboards: () -> (), ...
3,267
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Server/Leaderstats.luau
luau
.luau
--!strict local Leaderstats = {} local INT32_MAX = 2147483647 local INT32_MIN = -2147483648 local function GetAppropriateValueType(value: number): string if value % 1 ~= 0 then return "NumberValue" elseif value > INT32_MAX or value < INT32_MIN then return "NumberValue" else return "IntValue" end end funct...
955
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Server/LegacyMigration.luau
luau
.luau
--!strict local DataStoreService = game:GetService("DataStoreService") local DataUtils = require(script.Parent.DataUtils) local LegacyMigration = {} export type MigrationResult = { applied: boolean, legacyFound: boolean, markerWritten: boolean, keyUsed: string?, strategy: string, markerPath: string, continuo...
2,906
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Server/OfflineData.luau
luau
.luau
--!strict local Players = game:GetService("Players") local DataUtils = require(script.Parent.DataUtils) local OfflineData = {} function OfflineData.GetOfflineData( userId: number, config: any, profileStore: any, getAllForPlayer: (player: Player) -> any? ): any? if not userId or userId == 0 then warn("[PlayerS...
788
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Server/Validation.luau
luau
.luau
--!strict local Players = game:GetService("Players") local Validation = {} function Validation.ValidatePlayer(player: Player): boolean return player and player.Parent == Players end function Validation.ValidateReplica(replica: any?): boolean return replica ~= nil and replica:IsActive() end function Validation.Va...
84
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Shared/OfflineDataRemote.luau
luau
.luau
--!strict local RunService = game:GetService("RunService") local RemoteRegistry = require(script.Parent.RemoteRegistry) local REMOTE_NAME = "GetOfflineData" local cachedRemote: RemoteFunction? local function _EnsureRemote(): RemoteFunction if cachedRemote then return cachedRemote end local resolvedRemote = Re...
210
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Shared/PathCache.luau
luau
.luau
--!strict export type PathCacheModule = { GetPathKeys: (path: string) -> {string}, ClearCache: () -> (), } local function CreatePathCache(maxCacheSize: number): PathCacheModule local pathCache: {[string]: {string}} = {} local pathCacheSize: number = 0 local function GetPathKeys(path: string): {string} local c...
270
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Shared/RemoteRegistry.luau
luau
.luau
--!strict local RunService = game:GetService("RunService") local PLAYER_STATE_ROOT = script.Parent.Parent.Parent local REMOTES_FOLDER_NAME = "Remotes" local WAIT_TIMEOUT_SECONDS = 30 local cachedRemotes: {[string]: Instance} = {} local function _EnsureRemotesFolderServer(): Folder local existingFolder = PLAYER_STA...
770
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Shared/Remotes/GetOfflineDataRemote.luau
luau
.luau
--!strict local Registry = require(script.Parent.Registry) local REMOTE_NAME = "GetOfflineData" local OfflineDataRemote = {} function OfflineDataRemote.SetupServer(playerState: any): () Registry.BindRemoteFunction(REMOTE_NAME, function(player: Player, userId: unknown): any? if typeof(userId) ~= "number" then ...
122
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Shared/Remotes/Registry.luau
luau
.luau
--!strict local RunService = game:GetService("RunService") local PLAYER_STATE_ROOT = script.Parent.Parent.Parent.Parent local REMOTES_FOLDER_NAME = "Remotes" local WAIT_TIMEOUT_SECONDS = 30 local cachedRemotes: {[string]: Instance} = {} local function _EnsureRemotesFolderServer(): Folder local existingFolder = PLA...
879
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Internal/Shared/Utils.luau
luau
.luau
--!strict local Utils = {} function Utils.DeepClone(value: any): any local copy = {} for key, entry in value do copy[key] = if typeof(entry) == "table" then Utils.DeepClone(entry) else entry end return copy end return Utils
62
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/PlayerStateClient.luau
luau
.luau
--!strict --[[ PlayerStateClient - Client-side player data access Documentation: https://playerstate.netlify.app/api/client/ --]] local RunService = game:GetService("RunService") local dataReadyEvent = Instance.new("BindableEvent") local sharedReadyEvent = Instance.new("BindableEvent") local IS_CLIENT = RunServ...
4,528
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/PlayerStateConfig.luau
luau
.luau
--[[ PlayerStateConfig - Configuration settings for PlayerState system Documentation: https://playerstate.netlify.app/setup.html#playerstateconfig-module --]] -- Libraries local DefaultData = require(script.Parent.DefaultData) local Config = { Server = { Profile = { -- Unique key for ProfileStore data ident...
1,104
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/PlayerStateServer.luau
luau
.luau
--!strict --[[ PlayerStateServer - Server-side player data access Documentation: https://playerstate.netlify.app/api/server/ --]] local Players = game:GetService("Players") local RunService = game:GetService("RunService") local IS_SERVER = RunService:IsServer() if not IS_SERVER then error("[PlayerStateServer] Th...
11,602
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Replica/RateLimit.luau
luau
.luau
--!strict --[[ MAD STUDIO -[RateLimit]--------------------------------------- Can be used to prevent RemoteEvent spamming; Player references are automatically removed as they leave Functions: RateLimit.New(rate, is_full_wait) --> [RateLimit] rate [number] -- Events per second allowed; Excessive ev...
787
bellaouzo/PlayerState
bellaouzo-PlayerState-4c508c5/src/Replica/Remote.luau
luau
.luau
--[[ MAD STUDIO -[Remote]--------------------------------------- Remote event setup utility; Prevents duplicate RemoteEvent names server-side Functions: Remote.New(name [string], is_unreliable [bool]) --> [RemoteEvent] -- Calling this with the same name server-side twice will throw an error --]] ----- P...
1,030
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/entity/add_component.luau
luau
.luau
local pebble = require(script.Parent.Parent.Parent.Parent.Parent.pebble) local vide = require(script.Parent.Parent.Parent.Parent.Parent.vide) local query_parser = require(script.Parent.Parent.Parent.Parent.server.query_parser) local create = vide.create local source = vide.source local show = vide.show type props = {...
701
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/entity/editor.luau
luau
.luau
local pebble = require(script.Parent.Parent.Parent.Parent.Parent.pebble) local vide = require(script.Parent.Parent.Parent.Parent.Parent.vide) local create = vide.create local show = vide.show type props = { components: () -> {[string]: string}, changes: vide.Source<{[string]: string}>, editing: vide.Source<false |...
723
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/entity/init.luau
luau
.luau
local RunService = game:GetService("RunService") local vide = require(script.Parent.Parent.Parent.Parent.vide) local loop = require(script.Parent.Parent.Parent.modules.loop) local widget = require(script.widget) local source = vide.source local cleanup = vide.cleanup local overview_entity = { class_name = "app" :: ...
347
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/entity/systems/obtain_entity_data.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.Parent.Parent.Parent.vide) local queue = require(script.Parent.Parent.Parent.Parent.Parent.modules.queue) local remotes = require(script.Parent.Parent.Parent.Parent.Parent.modules.remotes) local effect = vide.effect local cleanup = vide.cleanup local batch = vide.batch ...
464
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/entity/widget.luau
luau
.luau
local RunService = game:GetService("RunService") local UserInputService = game:GetService("UserInputService") local pebble = require(script.Parent.Parent.Parent.Parent.Parent.pebble) local vide = require(script.Parent.Parent.Parent.Parent.Parent.vide) local add_component = require(script.Parent.add_component) local ed...
2,273
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/home/init.luau
luau
.luau
local RunService = game:GetService("RunService") local vide = require(script.Parent.Parent.Parent.Parent.vide) local loop = require(script.Parent.Parent.Parent.modules.loop) local widget = require(script.widget) local cleanup = vide.cleanup local home = { class_name = "app" :: "app", name = "Home" } function home...
159
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/home/widget.luau
luau
.luau
local Players = game:GetService("Players") local pebble = require(script.Parent.Parent.Parent.Parent.Parent.pebble) local vide = require(script.Parent.Parent.Parent.Parent.Parent.vide) local spawn_app = require(script.Parent.Parent.Parent.spawn_app) local overview_scheduler = require(script.Parent.Parent.overview_sche...
1,146
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/overview_scheduler/init.luau
luau
.luau
local RunService = game:GetService("RunService") local vide = require(script.Parent.Parent.Parent.Parent.vide) local loop = require(script.Parent.Parent.Parent.modules.loop) local remotes = require(script.Parent.Parent.Parent.modules.remotes) local widget = require(script.widget) local source = vide.source local clea...
339
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/overview_scheduler/stack_bar.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.Parent.Parent.vide) local create = vide.create local indexes = vide.indexes local derive = vide.derive type stack_bar = { values: () -> {{value: number, color: Color3}}, selected: (number) -> () } return function(props: stack_bar) local total = derive(function() ...
236
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/overview_scheduler/systems/get_scheduler_data.luau
luau
.luau
local vide = require(script.Parent.Parent.Parent.Parent.Parent.Parent.vide) local queue = require(script.Parent.Parent.Parent.Parent.Parent.modules.queue) local remotes = require(script.Parent.Parent.Parent.Parent.Parent.modules.remotes) local types = require(script.Parent.Parent.Parent.Parent.Parent.modules.types) lo...
685
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/overview_scheduler/widget.luau
luau
.luau
local pebble = require(script.Parent.Parent.Parent.Parent.Parent.pebble) local vide = require(script.Parent.Parent.Parent.Parent.Parent.vide) local convert_units = require(script.Parent.Parent.Parent.Parent.modules.convert_units) local types = require(script.Parent.Parent.Parent.Parent.modules.types) local spawn_app = ...
2,513
ItipatS/RPGJECS
ItipatS-RPGJECS-12e7a6c/Packages/_Index/alicesaidhi_jabby@0.2.2/jabby/src/client/apps/registry/init.luau
luau
.luau
local ContextActionService = game:GetService("ContextActionService") local RunService = game:GetService("RunService") local vide = require(script.Parent.Parent.Parent.Parent.vide) local loop = require(script.Parent.Parent.Parent.modules.loop) local spawn_app = require(script.Parent.Parent.spawn_app) local entity_widge...
799