Nightmare
Nightmare
Rroblox-ts
Created by Nightmare on 4/20/2025 in #help
I am so confused about the type, it should be "string" but it says it can't be any
already deleted lol
18 replies
Rroblox-ts
Created by Nightmare on 4/20/2025 in #help
I am so confused about the type, it should be "string" but it says it can't be any
nope
18 replies
Rroblox-ts
Created by Nightmare on 4/20/2025 in #help
I am so confused about the type, it should be "string" but it says it can't be any
but i still wonder where the error is
18 replies
Rroblox-ts
Created by Nightmare on 4/20/2025 in #help
I am so confused about the type, it should be "string" but it says it can't be any
I discovered i don't need it
18 replies
Rroblox-ts
Created by Nightmare on 4/20/2025 in #help
I am so confused about the type, it should be "string" but it says it can't be any
well
18 replies
Rroblox-ts
Created by Nightmare on 4/20/2025 in #help
I am so confused about the type, it should be "string" but it says it can't be any
Just created hash of position
18 replies
Rroblox-ts
Created by Nightmare on 4/20/2025 in #help
I am so confused about the type, it should be "string" but it says it can't be any
kinda fixed by using diffrent algorithm but i still wonder why is that error there
18 replies
Rroblox-ts
Created by Nightmare on 4/20/2025 in #help
I am so confused about the type, it should be "string" but it says it can't be any
like there is no way that it gets any other type of data than string
18 replies
Rroblox-ts
Created by Nightmare on 4/20/2025 in #help
I am so confused about the type, it should be "string" but it says it can't be any
Using values of type `any` is not supported! Use `unknown` instead.eslintroblox-ts/no-any
(alias) Crc32(Data: string): number
import Crc32
Using values of type `any` is not supported! Use `unknown` instead.eslintroblox-ts/no-any
(alias) Crc32(Data: string): number
import Crc32
18 replies
Rroblox-ts
Created by Nightmare on 4/16/2025 in #help
tables cannot be cyclic
fixed -> I am not sending class but just it's ID
8 replies
Rroblox-ts
Created by Nightmare on 4/16/2025 in #help
tables cannot be cyclic
this is whole server side of handling it
8 replies
Rroblox-ts
Created by Nightmare on 4/16/2025 in #help
tables cannot be cyclic
import { Functions } from "server/network";
import { Item } from "shared/types/items/Item";
import { ItemData } from "shared/types/items/Item";
import { getInventoryFromID } from "server/logic/inventory/inventoryLogic";
import { Inventory } from "server/logic/inventory/inventoryDatabase";

Functions.pickUp.setCallback(async (requestingPlayer, slot, itemClass: new () => Item): Promise<boolean> => {
const playerID: number = requestingPlayer.UserId;
const playerInventory: Inventory | undefined = getInventoryFromID(playerID);
if (playerInventory) {
return playerInventory.pickItem(slot, itemClass);
}
return false;
});

Functions.dropItem.setCallback(async (requestingPlayer, slot): Promise<boolean> => {
const playerID: number = requestingPlayer.UserId;
const playerInventory: Inventory | undefined = getInventoryFromID(playerID);
if (playerInventory) {
return playerInventory.dropItem(slot);
}
return false;
});

Functions.useItem.setCallback(async (requestingPlayer, slot): Promise<boolean> => {
const playerID: number = requestingPlayer.UserId;
const playerInventory: Inventory | undefined = getInventoryFromID(playerID);
if (playerInventory) {
return playerInventory.useItem(slot);
}
return false;
});

Functions.getItemsInfo.setCallback(async (requestingPlayer): Promise<ItemData[]> => {
print("wa wa");
const playerID: number = requestingPlayer.UserId;
const playerInventory: Inventory | undefined = getInventoryFromID(playerID);
if (playerInventory) {
print("wa");
return playerInventory.getSlotItems();
}
return [];
});
import { Functions } from "server/network";
import { Item } from "shared/types/items/Item";
import { ItemData } from "shared/types/items/Item";
import { getInventoryFromID } from "server/logic/inventory/inventoryLogic";
import { Inventory } from "server/logic/inventory/inventoryDatabase";

Functions.pickUp.setCallback(async (requestingPlayer, slot, itemClass: new () => Item): Promise<boolean> => {
const playerID: number = requestingPlayer.UserId;
const playerInventory: Inventory | undefined = getInventoryFromID(playerID);
if (playerInventory) {
return playerInventory.pickItem(slot, itemClass);
}
return false;
});

Functions.dropItem.setCallback(async (requestingPlayer, slot): Promise<boolean> => {
const playerID: number = requestingPlayer.UserId;
const playerInventory: Inventory | undefined = getInventoryFromID(playerID);
if (playerInventory) {
return playerInventory.dropItem(slot);
}
return false;
});

Functions.useItem.setCallback(async (requestingPlayer, slot): Promise<boolean> => {
const playerID: number = requestingPlayer.UserId;
const playerInventory: Inventory | undefined = getInventoryFromID(playerID);
if (playerInventory) {
return playerInventory.useItem(slot);
}
return false;
});

Functions.getItemsInfo.setCallback(async (requestingPlayer): Promise<ItemData[]> => {
print("wa wa");
const playerID: number = requestingPlayer.UserId;
const playerInventory: Inventory | undefined = getInventoryFromID(playerID);
if (playerInventory) {
print("wa");
return playerInventory.getSlotItems();
}
return [];
});
8 replies
Rroblox-ts
Created by Nightmare on 4/16/2025 in #help
tables cannot be cyclic
but like
8 replies
Rroblox-ts
Created by Nightmare on 4/16/2025 in #help
tables cannot be cyclic
maybe it have something to do with remote events when I look on it
8 replies
Rroblox-ts
Created by Nightmare on 4/16/2025 in #help
tables cannot be cyclic
uh
8 replies
Rroblox-ts
Created by Nightmare on 4/16/2025 in #help
tables cannot be cyclic
whole error
17:54:47.618 Unhandled Promise rejection:

-- Promise.Error(ExecutionError) --
tables cannot be cyclic
ReplicatedStorage.rbxts_include.node_modules.@flamework.networking.out.event.createEvent:49 function fireServer
ReplicatedStorage.rbxts_include.node_modules.@flamework.networking.out.function.createFunctionSender:89 function invokeServer
ReplicatedStorage.rbxts_include.node_modules.@flamework.networking.out.functions.createClientMethod:15 function invokeWithTimeout
ReplicatedStorage.rbxts_include.node_modules.@flamework.networking.out.functions.createClientMethod:9 function invoke
Players.Nightmare_pogg.PlayerScripts.TS.logic.InventoryHandler:79 function pickItem
Players.Nightmare_pogg.PlayerScripts.TS.logic.InventoryHandler:56
ReplicatedStorage.rbxts_include.Promise:172 function runExecutor
ReplicatedStorage.rbxts_include.Promise:181

Promise created at:

Players.Nightmare_pogg.PlayerScripts.TS.logic.InventoryHandler:34 function DropOrEquipPressed
Players.Nightmare_pogg.PlayerScripts.TS.logic.InventoryHandler:25


Players.Nightmare_pogg.PlayerScripts.TS.logic.InventoryHandler:34 function DropOrEquipPressed
Players.Nightmare_pogg.PlayerScripts.TS.logic.InventoryHandler:25
17:54:47.618 Unhandled Promise rejection:

-- Promise.Error(ExecutionError) --
tables cannot be cyclic
ReplicatedStorage.rbxts_include.node_modules.@flamework.networking.out.event.createEvent:49 function fireServer
ReplicatedStorage.rbxts_include.node_modules.@flamework.networking.out.function.createFunctionSender:89 function invokeServer
ReplicatedStorage.rbxts_include.node_modules.@flamework.networking.out.functions.createClientMethod:15 function invokeWithTimeout
ReplicatedStorage.rbxts_include.node_modules.@flamework.networking.out.functions.createClientMethod:9 function invoke
Players.Nightmare_pogg.PlayerScripts.TS.logic.InventoryHandler:79 function pickItem
Players.Nightmare_pogg.PlayerScripts.TS.logic.InventoryHandler:56
ReplicatedStorage.rbxts_include.Promise:172 function runExecutor
ReplicatedStorage.rbxts_include.Promise:181

Promise created at:

Players.Nightmare_pogg.PlayerScripts.TS.logic.InventoryHandler:34 function DropOrEquipPressed
Players.Nightmare_pogg.PlayerScripts.TS.logic.InventoryHandler:25


Players.Nightmare_pogg.PlayerScripts.TS.logic.InventoryHandler:34 function DropOrEquipPressed
Players.Nightmare_pogg.PlayerScripts.TS.logic.InventoryHandler:25
8 replies
Rroblox-ts
Created by Nightmare on 4/15/2025 in #help
Asphalt can't upload asset
thank uuu
7 replies
Rroblox-ts
Created by Nightmare on 4/15/2025 in #help
Asphalt can't upload asset
thank you
7 replies
Rroblox-ts
Created by Nightmare on 4/15/2025 in #help
Asphalt can't upload asset
nightmare@ArchLinux ~/G/project-2 (inv-sys-new-arch)> asphalt --version
asphalt 1.0.0-pre.5
nightmare@ArchLinux ~/G/project-2 (inv-sys-new-arch)> asphalt --version
asphalt 1.0.0-pre.5
7 replies
Rroblox-ts
Created by Nightmare on 4/12/2025 in #help
[SOLVED] Confused about OOP
oh okey cool
48 replies