#plugins-dev-chat

1 messages Β· Page 65 of 1

hearty shard
#

well idk if labapi has the event '

celest thorn
#

i think this is the way the game does it

hearty shard
#

wait

celest thorn
hearty shard
#

what effect

celest thorn
#

because then the game does this

celest thorn
hearty shard
#

animation without animation?

celest thorn
hearty shard
#

patch UsableItem thing

celest thorn
#

i think i can do is just ev.IsAllowed = false

#

and send the packet manually to Auth

#

because if it works im setting a value on my custom items

unique crane
#

Did u make issue about it

icy knoll
celest thorn
unique crane
hearty shard
#

which should be possible

celest thorn
#

what im trying now to do is replicate but im doing all manually to send the packet

upper vapor
#

just send the UsableMessage or whatever

celest thorn
#

but now big problem

#

the animation remains stuck Trolley

upper vapor
#

current item to none

celest thorn
#

but how do i get the time for the animation

upper vapor
#

usable.usetime

celest thorn
#

but i wanna try a theory

#

to bug this game more

#

if my client crashes is not my fault

upper vapor
celest thorn
unique crane
#

Yipeee

hearty shard
#

actually

#

@unique crane heyyy

#

bestiee

#

do you know how to do the base call

#

from prefix patch

unique crane
#

Uhhhh

#

No

hearty shard
#

oh...

upper vapor
#

you don't prefix

restive turret
#

Get the base and rhe .ctor

#

@hearty shard
Harmony.MethodInvoker.GetHandler(
AccessTools.Method(typeof(ClassYouViewingRightNow), "ClasChanged")
);

#

Have fun

hearty shard
#

GetHandler gets the base and invokes it?

upper vapor
#

why can't you just write a transpiler shrug

#

and call your own logic

restive turret
#

Not really what u wanted but atleast you can call the base

random scaffold
#

Room.Doors why it can contain null door

plain gazelle
#

Im trying to do
player.Inventory.ServerRemoveItem(player.Inventory.CurItem.SerialNumber)
but the function wants an ItemPickupBase from me, what does this mean?
I just want to delete an item from a players inventory. Dont drop it, just completely delete it

#

Oh i think its just player.RemoveItem(player.CurrentItem);

grand flower
#

that or pass null for the second argument

random scaffold
#

how get players from argument like 3.8.32.54.

restive turret
#

Check how the game does it like duh

celest thorn
#

Hi guys

random scaffold
#

why

#

Server.AmmoLimits[item.Key]

#

have wrong limit by default

#

but config

#

has

#
limit_ammo12ga: 350
limit_ammo556x45: 350
limit_ammo44cal: 350
limit_ammo762x39: 350
limit_ammo9x19: 350
upper vapor
#

ProcessPlayerIdsOrNamesList maybe

celest thorn
#

hiii

upper vapor
spare zodiac
#

can I somehow get what objects are drawn for player?

#

basically all objects the player sees?

upper vapor
#

why exactly do yo need that

spare zodiac
upper vapor
#

why not use navmesh

#

or run a client, get a low res screenshot every x frames, and simulate input given by the AI

spare zodiac
#

navmesh? I need even players it sees

upper vapor
#

Player.ReadyList

#

VisionInformation

spare zodiac
#

Axwabo could you do smth for me?

spare zodiac
upper vapor
#

it checks if you can see another player

#

NW uses it for all player vision based stuff

#

e.g. 096, 173, 1344

#

also, VisionInformation includes much more info than a simple raycast

spare zodiac
upper vapor
spare zodiac
#

I'll load the picture in 1-3 business days give me a minute

celest thorn
upper vapor
#

meh

celest thorn
#

but never actually sponsored it

#

enough lol

upper vapor
#

wha

celest thorn
#

DebugLines

upper vapor
#

that's

#

they wanna know all gameobjects the pΕ‘layer can see

celest thorn
#

lol

#

i interpreted it in a different type of drawn

upper vapor
#

fake rendering on the server

#

πŸ₯Ά

#

-# or real rendering? d_rock

celest thorn
#

oh talking about fake rendering

upper vapor
#

imagine

celest thorn
#

I semi have that?

spare zodiac
#

and in which way did they implement this?

celest thorn
#

like its not perfect

celest thorn
#

etc...

upper vapor
celest thorn
#

but its not determinalistic

spare zodiac
#

so is there way to get objects that player sees?

celest thorn
#

VisionInformation.GetVisionInformation()

upper vapor
#

i think it's a horrible way to do this on the server

celest thorn
#

Same

spare zodiac
upper vapor
#

to get all "gameobjects" you'd need a view frustrum and some way to check the objects in that frustrum
order by depth
etc

#

recreating a rendering pipeline on the server sounds

#

shit

#

xd

celest thorn
spare zodiac
# upper vapor .

source is player
source cam is players camera position
target vector3 is gameobjects position

celest thorn
#

(and its all client side)

#

the prim is clientside

upper vapor
#

the video stopped halfway 😭

upper vapor
celest thorn
#

Im bored

#

client side physics too

upper vapor
celest thorn
#

Next thing recreating lovely models / physics dummies

#

Why?

#

because why not

#

Btw source engine physics is really really really strange

#

they do alot of calculation

#

but on unity they can be done with just 3/4 lines

celest thorn
#

next thing 3D models (im too bored to do that)

spare zodiac
#

is there even a plugin who used visual information?

celest thorn
#

nope

#

never actually seen in use outside of sl assembly

spare zodiac
celest thorn
#

Ok i now understand

#

As you can see the method is used for example in the effect That gives danger the Shrek stuff

celest thorn
#

if a toy for making portals (like camera poiting and mirroring a position) would be added

#

i would do it INSTANTLY

#

like

unique crane
#

Thats not gonna happen

#

rendering another camera like

celest thorn
unique crane
#

nuh uh

celest thorn
#

;(

#

thats so sad

#

But i wanna remake gmod

hearty shard
#

david bully

celest thorn
#

Physics

#

is there

#

the guns are here

#

the optimization are here

#

so

unique crane
#

You should absolutely not make alt account as a bot

#

and absolutely not use that for image rendering

spare zodiac
#

so I can just put position of gameObject and check if it sees it and I can do this for all approximate 15000 objects

unique crane
#

and surely not send that as image toy as a portal image

celest thorn
#

asf

#

Wait....

#

wait....

#

The server has a cam

unique crane
#

But there is no graphics on the server

celest thorn
#

and i remember someone rendering frames with it

#

hmmmm

unique crane
#

its all stripped

celest thorn
#

but something exist

upper vapor
#

i tried rn

spare zodiac
upper vapor
#

sl doesn't even start

unique crane
#

No

celest thorn
#

Im honestly tempted to recreate half life 1

#

on SL

#

or even 3D doom

#

by loading wads

spare zodiac
#

wouldn't just setting position and rotation of player camera be enough?

spare zodiac
#

Are we talking about the reflection from portals or the gmod's camera object?

celest thorn
#

like its a portal

#

In computer-generated imagery and real-time 3D computer graphics, portal rendering is an algorithm for visibility determination. For example, consider a 3D computer game environment, which may contain many polygons, only a few of which may be visible on screen at a given time. By determining which polygons are currently not visible, and not rend...

spare zodiac
spare zodiac
#

I would love portal effect to exist so door teleporters could be more realistic with sound going through also trust this will be epic

celest thorn
spare zodiac
#

possibly setting the players camera's position and rotation would be cool

#

third person is reaaaaal!!!

celest thorn
#
Half-Life Wiki

The Physgun, or Physics Gun, is a weapon cut from Half-Life 2, first seen at E3, 2003. It can be found in the playable Half-Life 2 Beta. It is the predecessor to the Gravity Gun. The Physgun model...

#

hmmm :3

unique crane
#

Physgun would be easy

restive turret
#

So David, when GameCameraToySteamHappy

unique crane
#

Nop

celest thorn
restive turret
#

Wdym nop

unique crane
#

Like you can suggest it

#

but how would it work?

celest thorn
#

I think it would be a mess thinking how sl works

#

so its a bad idea

#

especially for the culling

restive turret
#

Idk how would it work

unique crane
#

Best I can do is camera with NxM resolution and like 5 fps

spare zodiac
#

#removeCulling

celest thorn
#

WAIT if you add stuff like this

#

we can do omegle on SL

icy knoll
unique crane
hearty shard
celest thorn
#

I have alot of ideas

#

from optimizations

#

to even recreating stuff

restive turret
#

MeshToy

celest thorn
#

and that would be fantastic

restive turret
#

Or TextureToy

celest thorn
#

Custom Character Toy

spare zodiac
#

you should add picture toy with us being able to input pixels into it and it would show

celest thorn
#

Destroy Your Computer Toy

restive turret
#

Setting an already existing texture/mesh into the parent

hearty shard
#

#killslejm

spare zodiac
celest thorn
unique crane
#

I think it would be better to finish up missing stuff from labapi

#

than adding new and new toys

#

even tho they are cool

limber silo
#

thats the plan

restive turret
icy knoll
#

:3

unique crane
#

Many has been merged recently

celest thorn
hearty shard
#

david

#

can we have

unique crane
hearty shard
#

BrainrotToy

celest thorn
#

it doesn't exist

unique crane
hearty shard
#

zero ur brainrot

#

im asking for u to be added

limber silo
#

We have merged over 30 prs in less than 20 days

icy knoll
unique crane
#

Yeah its fineeee

celest thorn
unique crane
#

I dont blame u or anything

celest thorn
#

Wait how does QA work?

#

like you give them a branch?

spare zodiac
#

david you are wrong!!! add mesh toys from existing meshes in game rn!!

restive turret
unique crane
#

Make post it on QA channel

celest thorn
unique crane
#

They download the depots yea

restive turret
celest thorn
#

Crazy cool

unique crane
#

No not branch

restive turret
#

You cant push to public via api

unique crane
#

just depot

icy knoll
#

if it was a branch it would fucking suck lemme tell u that rn

celest thorn
#

OH

#

I KNOW UNDERSTAND

#

Now i see why on steamdb there are constantly depots being changed

#

lol

restive turret
unique crane
#

Yeah thats why

celest thorn
#
restive turret
#

You pushing into a qa branch

celest thorn
#

Like you can see constantly updates

#

even hours apart

#

from each others

restive turret
#

I know how steamworks

unique crane
#

Yeah u download depots based on manifest ids

restive turret
celest thorn
#

ok so we can "spy" on nw Trolley

restive turret
#

Not really

celest thorn
#

yea its not really spying

#

if its a working day or not lol

restive turret
#

2 month ago steam removed the branch seen by public

celest thorn
#

sadly

restive turret
#

You only see public branches, and password opened one

celest thorn
#

i have the public qa one

#

because i tested it and contributed to it lol

#

with my amazing video

restive turret
#

I had the Patreon beta one

celest thorn
#

still amazing

upper vapor
#

zero you might be delulu

celest thorn
celest thorn
#

wtf is delulu?

upper vapor
#

delusional

hearty shard
celest thorn
limber silo
#

but steam limits them

#

the good thing about branches is they are really easy to use

#

compared to manifest ids

restive turret
#

Well

#

Ye if you know how to use manifest ids

#

I remember it needs what branch it has

limber silo
#

To use manifest ids you need the steam depot downloader

#

while with branches you can just put them in the app

restive turret
#

DD can do it.
Usually like
depotdownloader -app appid -depot depotid -branch qa_testing2 -manifest manifestid -qa -dir "Lel"

icy knoll
restive turret
#

If you already know the depotid no

#

*manifest

icy knoll
#

u can password protect

unique crane
#

^

restive turret
celest thorn
#

so in theory

limber silo
#

it wont work just with the manifest id

celest thorn
#

if we have just this we could download them :3

restive turret
#

If you have the encrypted manifestId yes you need the password

celest thorn
#

so sad no internal leaks ;( (im joking i don't wanna have a lawsuit under my doorbell :3)

restive turret
#

I can download PayDay 3 manifests that are not public by only the manifestid and branch name

restive turret
unique crane
restive turret
celest thorn
unique crane
#

Send me tutorial how

#

I want to do that

celest thorn
#

LOL

unique crane
#

Wait can you like download early versions,

#

?

restive turret
#

You need something called "WebToken"

celest thorn
#

I think yea because if its internal testing branch

celest thorn
#

idk why i feel like it is

restive turret
#

That's why you not see me doing anything with it lol

#

I respect them, i just see what they do thats all

#

I love seeing dev builds, funny and entertain me

celest thorn
#

because from a build to another probably doesn't change much

restive turret
#

Check the changelog on pd3 too then

unique crane
#

PD3 changelog be like: errm added something

#

The actual changes: 10 A4 pages

#

Never understood why they do that

celest thorn
#

I've seen alot of companies do that

#

an update every 20 years

limber silo
#

Steam won't let you download them at all

#

If you dont have the license in your account or provide a valid license

#

To the depot downloader

#

if I gave you rn a manifest id you wouldn't be able to use it

restive turret
#

Btw its either webapi key or access token.
If you have permission you can request a specific webapi key with that tied of the app

restive turret
limber silo
#

those builds need a custom license

#

like the patreon one

restive turret
#

I had patreon one but didn't had any dlc

unique crane
celest thorn
#

You have it?

unique crane
#

peak game

#

but there aint much to do

celest thorn
#

Im going to cry

#

Im going to cry

#

I FOUND SOMEONE ELSE WHO HAS IT

unique crane
#

Yea

restive turret
#

But ye, you need a valid steam account that "owns" the game

unique crane
#

You found the other person who bought it

icy knoll
#

i have bonelab too... bought it because my friend was on vr tho and i had like no games for them to play LOL

celest thorn
#

in multiplayer

limber silo
#
celest thorn
#

but the problem i always find fucking british children stabbing each others

unique crane
#

Peak VR game is still Walking Dead Saint and Sinners

celest thorn
#

Half life ALYX

#

PEAK

#

Idc

unique crane
#

Crashed for me a lot ):

#

But I finished it

celest thorn
#

nah for me it Was smooth

#

asf

restive turret
#

For example depot 859211

#

Ye than you need access for that depot yes.

unique crane
#

Might be oculus 2 moment

celest thorn
unique crane
#

And I used cable

#

to connect

celest thorn
#

I used steamvr

#

because i don't spend my liver to buy the cable

unique crane
#

I just bought normal USB cable

#

3m

#

Works fine

celest thorn
#

nah i know it sucks with normal cable

#

and i prefer steam alot

unique crane
#

Pavlov VR also peak

restive turret
#

BUT if you push to one depot that is contains with the basic license (700331) then you dont need to own that package/license

celest thorn
#

and it wasn't that fun

#

chinese people were too weak probably

unique crane
#

I only like some gamemodes

#

Like normal CSGO gamemode is boring

#

but custom ones

celest thorn
#

nah cs is peak

restive turret
#

Idk what depots does SL's gitlab bot uses to push update so

celest thorn
#

btw when SCP:SL VR

unique crane
#

PD2 is also peak vr

#

U have so many advantages

celest thorn
#

I played lethal company in vr

#

and i need to say i cried

#

and on fallout 4 vr

#

im never touching those game in vr ever again

restive turret
#

I was gonna say have you played "just dance" in vr

celest thorn
spare zodiac
celest thorn
#

why not

#

but without that impossible

#

lol

spare zodiac
upper vapor
celest thorn
#

or it would suck

restive turret
#

Oh the name would be
Beat Saber

celest thorn
celest thorn
upper vapor
spare zodiac
spare zodiac
#

it was just the skeleton made with moving

celest thorn
upper vapor
#

???

celest thorn
#

so it sucks ass

spare zodiac
celest thorn
unique crane
#

White Knuckle VR would be pretty cardio

celest thorn
#

not like stare at my desktop

#

lol

celest thorn
#

bonelab parkour map

#

those are like training and pain neck

#

lol

restive turret
unique crane
#

Boring

celest thorn
#

fr

restive turret
#

:(

celest thorn
#

Beat saber sucks

restive turret
#

That was my first game on vr

#

Only had like 30min

celest thorn
#

But we can all agree on one thing

#

VRChat got worse

restive turret
#

Ye

#

That's worst than any game

celest thorn
#

i remember when i got it it wasn't that bad

celest thorn
restive turret
#

I don't even have it

celest thorn
upper vapor
#

eh

celest thorn
#

Moderation wise yes

#

community yes

#

development idk

#

you cannot even mod vrchat so

upper vapor
#

tfym you can't mod vrchat

celest thorn
#

But this game in vr

upper vapor
#

officially, no, but there are 3rd party solutions

celest thorn
#

would be crazy

unique crane
#

@celest thorn Which triangle tho

celest thorn
unique crane
upper vapor
#

90deg triangle

celest thorn
#

like a 2d triangle

unique crane
#

Yeah but like...

#

Right angled

upper vapor
#

doesn't matter tbh

celest thorn
#

yea

upper vapor
#

it's rotatable

unique crane
#

Me on my way to do custom enum for primitive types just to add triangle to it

unique crane
#

I mean

celest thorn
#

why nw is cooking

unique crane
#

I will have to do that

upper vapor
#

at this point just make meshtoy 😭

unique crane
#

If its gonna be in primitiveobject

celest thorn
unique crane
#

No

celest thorn
#

sad

upper vapor
#

please don't break avery single map loader

#

or make a separate TriangleToy

#

it's gonna have horrible performance though

celest thorn
#

meshes

#

imagine that

#

you can create goku

#

tposing on sl

upper vapor
#

you can create meshes already

celest thorn
#

because using algo is almost impossible

#

and they look like shit

upper vapor
#

using what

#

convert the mesh to quads in blender

#

wherever possible

#

oh wait that doesn't create perfect quads

celest thorn
#

perfect pr

unique crane
#

Expectations: you can turn valve in HCZ

#

Reality: cube

upper vapor
celest thorn
#

you can make an empty gameobject and attach an entire house

unique crane
#

The sphere

celest thorn
#

imagine throwing a house at someone

upper vapor
celest thorn
spare zodiac
#

would it be against VSR if I would take players inputs and train AI based on it? DNT player would not be ofc included

celest thorn
#

But you should search on google or generally ask someone who is in the matter of Ai training

upper vapor
#

better call saul

#

ai ethics is a very complicated fielkd

celest thorn
#

in the EU

#

in the US they don't even care enough lol

upper vapor
unique crane
celest thorn
unique crane
#

Like the way they trained ai to play MC?

upper vapor
#

that doesn't include map data

unique crane
#

true

#

that was with input too i guess

#

Well

celest thorn
#

Sl is different from mc

unique crane
#

You can record them yourself or make players agree with it

#

but like

upper vapor
#

there's millions if not billions of minecraft video seconds out there

celest thorn
#

Sl has probably 1 video

#

With gameplay

upper vapor
#

twitch streams

celest thorn
#

And 10 other of allegations

#

Lets be honest

#

Lol

celest thorn
#

The legendary β€œFIGHT ME DEMON”

upper vapor
#

i'm following a twitch streamer who often streams sl

celest thorn
#

Sl content rn is admin abuse

#

Admin abuse

#

And allegations

#

Thats what shows up if i search sl

restive turret
unique crane
celest thorn
restive turret
#

Lmao

unique crane
#

Me when parents give their kid access to whole internet

restive turret
#

Not my issue

upper vapor
celest thorn
upper vapor
#

xd

unique crane
celest thorn
unique crane
#

I ask d class to say something

#

if they are kids

#

shoot them

celest thorn
spare zodiac
upper vapor
celest thorn
#

lol

unique crane
#

Thats why I added the in SL at the end

spare zodiac
#

is it against vsr to crash kids computer?

celest thorn
#

still funny

unique crane
#

and not in seperate message

unique crane
celest thorn
#

but if you want i can give you a method

restive turret
#

Is it against vsr to ban kids?

spare zodiac
#

this shall be fixed

celest thorn
#

the easiest cams

celest thorn
#

oh wait

upper vapor
#

erm actually it's CSG now
counter-strike global

spare zodiac
celest thorn
#

is it Illegal if i get them hooked to my server and make them spend money? (IM JOKING)

unique crane
#

You can ban for any reason

spare zodiac
celest thorn
unique crane
#

Yeah you cannot prevent NW staff to join

celest thorn
#

in one of my old servers

#

it just pinged me

unique crane
#

(those who have ban bypass)

celest thorn
#

if there was a nw staff

unique crane
#

wait LOL

upper vapor
unique crane
#

That code wont even work

celest thorn
spare zodiac
celest thorn
#

cosmetics

unique crane
#

You would have to patch auth check for ban bypass

spare zodiac
#

because I can make their time on server horrible

upper vapor
celest thorn
#

You make them bright and like youtube thumblains

#

and so they get hooked

#

on having the brightest and coolest cosmetics

spare zodiac
#

with network play earape with audiotoy for NW staff only and send a hint over their screen with mark padding so big it's over with blicking color

#

I am so smart

unique crane
upper vapor
spare zodiac
upper vapor
#

did you know that toilets have flashing lights

upper vapor
unique crane
spare zodiac
#

that is bullshit

spare zodiac
#

we love the word VSR and now it's CSG

celest thorn
#

play this

#

so you upload deltarune files in their brain

unique crane
spare zodiac
#

I will make NW staff suffer muhahaha

unique crane
#

tf have I done XDDDDDDDD

celest thorn
#

im shocked

#

i thought they only worked on SL src

#

revelation of my life

upper vapor
celest thorn
unique crane
#

Whats the best way to test LabApi..

#

make plugins

upper vapor
unique crane
#

Surely I did not start after labapi release...

unique crane
#

It is microwave sound

celest thorn
spare zodiac
# unique crane

porting vending machines from real life to SL speedrun any %

upper vapor
#

lmfao

celest thorn
upper vapor
#

gotta add item physics

celest thorn
#

(already done 2 times)

spare zodiac
#

both by zer0

celest thorn
#

Wtf

#

I think this is considered piracy lol

unique crane
#

can you like not post loud ahh sounds

celest thorn
#

I mean you can understand a raw video with audio of an exe

#

is not going to be not loud

#

so

#

but i usually listen to this videos

#

idk why

#

i found User32.dll from windows

#

my fyp is really weird like not in a strange way but just like stuff you don't usually expect from someone

celest thorn
#

they start to become annoying lol

#

or they go in autoplay

unique crane
#

No shit

celest thorn
#

so im listening to some cool shit

#

and then i hear windows xp executables getting installed in my brain

upper vapor
unique crane
#

Its tmpro

#

so what you can use there

#

You can use in text toy

upper vapor
#

yeah but
mono font :3

#

i know you have it

spare zodiac
#

trust

upper vapor
#

dunno why it was removed from the fonts

spare zodiac
upper vapor
#

zero

#

please

#

<>

celest thorn
#

?

upper vapor
#

yes

celest thorn
#

OH it doesn't show

#

the embed

#

i didn't know that

upper vapor
#

i clicked on your link cuz i wanted to reply 😭

#

huge ahh embeds

random scaffold
#

why call OnPlayerFlippedCoin(PlayerFlippedCoinEventArgs ev) before animation

#

lol

restive turret
hearty shard
#

not okay

random scaffold
#

why it have void

upper vapor
#

to prevent z-fighting

#

and precision errors

random scaffold
#

nw moment

upper vapor
#

?????

#

this is basic 3D modeling

#

why are you blaming NW for this

icy knoll
#

because they always do

upper vapor
icy knoll
#

when a player leaves, what is the last event that is ran in that sequence? Left still keeps the player instance so i need smth further down the line

restive turret
#

Destroy player

icy knoll
#

thanks :3

restive turret
#

i just guessing idk actually

random scaffold
#

What is an effective event for give ammo (infinty ammo system)? Dry fired is not called if there are no bullets in the inventory

icy knoll
#

unless it's a server event

#

no server event

#

hmm

royal mica
#

Give the ammo when they finished reloading

#

and OnItemPickup, give them ammo for the gun they picked up

unique crane
#

and only 1 time until it is recocked

royal mica
#

also since you have inifinite ammo, don't forget to delete all ammo items when they are dropped

unique crane
#

But honestly, giving player 65K ammo is enough

random scaffold
#

already tried

upper vapor
#

wdym stack overflow 😭

#

player.SetAmmo(type, ushort.MaxValue)

#

there's no setammo on player

#

player.Inventory.ServerSetAmmo(type, ushort.MaxValue)

#

nvm

random scaffold
upper vapor
#

why

random scaffold
#

idk

upper vapor
#

show the stack trace

random scaffold
#

it was first and last time

#

when i used 65k

random scaffold
random scaffold
upper vapor
#

get the primary ammo container module

icy knoll
#

@unique crane sorry to ping, but as there is no player destroying event would i just use ReferenceHub.OnPlayerRemoved or is that the same as the leave event?

unique crane
#

I believe its both called in OnDestroyed in RefHub

upper vapor
unique crane
#

So yea

icy knoll
#

okie

random scaffold
#

it works that?

icy knoll
#

hmm it's called OnBeforePlayerDestroyed

#

ig that's the absolute last event called

restive turret
#

what u want

icy knoll
# restive turret what u want

i want to update player counts in discord when a player disconnects and connects, but when a player disconnects and i use the leave event, they are still in the player readylist and i dont want that

restive turret
#

Timing.CallDelay(1)

upper vapor
restive turret
#

ReferenceHub.OnPlayerRemoved += RemovePlayer;
Well ye you should wait atleast 1 tick

upper vapor
#

OnPlayerRemoved should work

restive turret
#

thats inside LabApi wrapper

upper vapor
#

ReferenceHub

restive turret
#

ah yxe

icy knoll
#

but if player removed works

#

okie

upper vapor
#

LeftEvent

#

🀯

icy knoll
#

OHHH

#

wont work

upper vapor
#

did you use LeavingEvent

restive turret
#

did you made a wait?

#

since it runs before the player being removed from Dictioanry

icy knoll
#

Left

icy knoll
upper vapor
#

then the player is there

icy knoll
#

ik

#

i dont want them

#

lol

#

i want after destroyed

upper vapor
restive turret
#

then wait 1 frame

#

or that

upper vapor
#

why

icy knoll
#

and that doesnt contain the leaving player

#

smh

upper vapor
#

what doesn't contain

#

??

icy knoll
#

the translation builder

#

bruh

#

it uses Server.PlayerCount

#

automatically replaces {playercount}

restive turret
#

i really dont know what u want

icy knoll
#

i want the destroyed event for a player

#

that's it bruh

#

😭

upper vapor
#

then make it not use player count

#

Referencehub.OnRemoved should work

restive turret
#

ye

#

duh

icy knoll
#

okie cool

restive turret
#

if you wait 1 frame after

#

then it will not be in any list

icy knoll
#

what about OnBeforePlayerDestroyed

#

is that before OnPlayerRemoved or after?

restive turret
#

there is no such a thing

upper vapor
#

there is

icy knoll
restive turret
#

well

#

then decompile and see where is run

icy knoll
#

OnStopClient()

#

and that's an override so idk when it's called lol

true cedar
#

onbeforepostleftpreplayerdestroyed

upper vapor
#

use OnPlayerRemoved

#

by that time the referencehub is removed from the hub list

icy knoll
#

then i gotta wait a frame 😭

upper vapor
#

why

icy knoll
upper vapor
#

delegate order bullshit?

#

maybe

hearty shard
upper vapor
#

just try it 😭

icy knoll
#

this better work bruh

upper vapor
#

what's the problem with waiting for one frame

restive turret
#

thats what I been saying the entire time

icy knoll
icy knoll
#

WOAH

#

PAWS

hearty shard
true cedar
#

:3

upper vapor
#

then postfix ReferenceHub::OnDestroy

restive turret
#

😭

true cedar
hearty shard
true cedar
#

:(

plain gazelle
#

AdminToyBase.MovementSmoothing is a byte
What does the byte mean?
frames to interpolate?
seconds?
and does = 0 disable smoothing completely?

unique crane
#

With higher value moving the toy faster

plain gazelle
#

ah thank you

plain gazelle
#

What am i doing wrong ,_,

hearty shard
#

where are they

#

like compared to each other

#

u need to reference the namespace using of the extension

plain gazelle
#

DoorExtension is inside namespace Site12.Extensions

and the other script has
using Site12.Extensions;

unique crane
#

not static

hearty shard
#

oh yeah

#

i didnt even realize

#

yeah u cant have a static property

#

@plain gazelle dont make it an extension

#

remove this Door door

#

and just do DoorExtensions.GetClosest(player, out float distance)

plain gazelle
hearty shard
#

or you can make it a player extension

#

so this Player

plain gazelle
#

probably smarter

#

Thank you!

#

Does Door.IsOpened = true open the door? firT
Exiled has a lot clearer methods and properties for their doors x.x

hearty shard
#

if you set it as opened

#

id assume itd become opened

plain gazelle
#

assume, yeah, but its just not thaaat clear

hearty shard
#

i thought it was but idk

plain gazelle
#

hm, this is how i used to break and repair doors using exiled
How can i do it using LabAPI/Interactables stuff?

unique crane
hearty shard
#

also u didnt show the error

#

oh i just realized u wanted the alternative

#

😭

unique crane
#

eve

hearty shard
#

mb

unique crane
#

YOu read like

#

First 3 words

hearty shard
#

i saw the image

unique crane
#

Eve your running on UDP

#

with each packet being a word

plain gazelle
#

Oh you can even tell it the damage type for breaking it, neat!

low swift
#

Hello!
I'm trying to compile a plugin for SCP: Secret Laboratory using NWAPI, but I'm missing some essential dependencies, specifically MEC.dll and PlayerRoles.dll.
I've checked both the dedicated server and the official NWAPI repository, but these DLLs are not included.
Could someone please provide a download link or a package containing these development dependencies?
Alternatively, if you have a recommended source or method to obtain them, I would really appreciate your help!
Thank you very much in advance!

unique crane
#

For missing references, download dedicated server from steam

#

And go to SCPSL_Data/Managed folder

low swift
#

hmmm

#

thanks

unique crane
#

MEC is in Assembly-Csharp-firstpass

#

and PlayerROles in Assembly-CSharp

soft turtle
#

[2025-07-12 18:24:42.803 +03:00] [STDOUT] NullReferenceException: Object reference not set to an instance of an object.
[2025-07-12 18:24:42.804 +03:00] [STDOUT] at UnityEngine.Bindings.ThrowHelper.ThrowNullReferenceException (System.Object obj) [0x00018] in <0deee1b9576d40a7a211b55014778fa6>:0
[2025-07-12 18:24:42.804 +03:00] [STDOUT] at UnityEngine.Component.get_gameObject () [0x00006] in <0deee1b9576d40a7a211b55014778fa6>:0
[2025-07-12 18:24:42.804 +03:00] [STDOUT] at ReferenceHub.GetHashCode () [0x00000] in <d9731e675e55453197cf28cd60eed3f2>:0
[2025-07-12 18:24:42.804 +03:00] [STDOUT] at System.Collections.Generic.Dictionary2[TKey,TValue].FindEntry (TKey key) [0x00035] in <069d7b80a3914a08b6825aa362b07f5e>:0 [2025-07-12 18:24:42.804 +03:00] [STDOUT] at System.Collections.Generic.Dictionary2[TKey,TValue].TryGetValue (TKey key, TValue& value) [0x00000] in <069d7b80a3914a08b6825aa362b07f5e>:0
[2025-07-12 18:24:42.804 +03:00] [STDOUT] at CollectionExtensions.GetOrAdd[TKey,TValue] (System.Collections.Generic.Dictionary2[TKey,TValue] dictionary, TKey key, System.Func1[TResult] factory) [0x00000] in <d9731e675e55453197cf28cd60eed3f2>:0
[2025-07-12 18:24:42.804 +03:00] [STDOUT] at InventorySystem.Items.Firearms.Ammo.ReserveAmmoSync.UpdateDelta () [0x00032] in <d9731e675e55453197cf28cd60eed3f2>:0
[2025-07-12 18:24:42.804 +03:00] [STDOUT] at InventorySystem.Items.Firearms.Ammo.ReserveAmmoSync+<>c.<Init>b__2_3 () [0x00008] in <d9731e675e55453197cf28cd60eed3f2>:0
[2025-07-12 18:24:42.804 +03:00] [STDOUT] at (wrapper delegate-invoke) <Module>.invoke_void()
[2025-07-12 18:24:42.804 +03:00] [STDOUT] at StaticUnityMethods.Update () [0x00009] in <d9731e675e55453197cf28cd60eed3f2>:0

How can I understand which plugin caused the error?

restive turret
#

Isn't this already got reported

hearty shard
#

entire thing dies

#

idk why error always goes back to firearm ammo

#

but oh well

restive turret
#

Skill issue idk

low swift
#

Hello!
I'm trying to compile a plugin for SCP: Secret Laboratory using LabAPI (version 1.1.0.0), but I'm missing some essential DLLs or the correct version of LabApi.dll.
The DLL I have does not contain the expected types (such as LabApi.Plugins.Plugin, Player, PlayerChangeRoleEvent, etc.), so the plugin won't compile.

Could someone please provide:

  • The correct LabApi.dll (and any other required DLLs) for plugin development
  • Or a working example plugin with all the dependencies it uses

Thank you very much for your help!

spare zodiac
hearty shard
spare zodiac
#

LabAPI.dll should be pre-installed on existing server

hearty shard
#

also PlayerChangingRoleEventArgs not PlayerChangeRoleEvent

spare zodiac
#

^^

hearty shard
#

PlayerEvents.ChangingRole += OnChangingRole;

private void OnChangingRole(PlayerChangingRoleEventArgs ev)

#

or smth

icy knoll
#

haiii

i take it there is no way to disable command loading right?

hearty shard
#

remove the attribute

icy knoll
#

im disabling adding the command via config option

#

so

hearty shard
#

register it manually

#

instead of using the attribute

spare zodiac
icy knoll
hearty shard
#

and labapi wont register it

icy knoll
#

ah

hearty shard
#

QueryProcessor.DotCommandHandler.RegisterCommand(command);
CommandProcessor.RemoteAdminCommandHandler.RegisterCommand(command);
GameCore.Console.singleton.ConsoleCommandHandler.RegisterCommand(command);

upper vapor
upper vapor
celest thorn
#

Hiii

restive turret
#

hi

celest thorn
#

how are you doing :3

restive turret
#

dedd

celest thorn
#

Thats so sad

teal junco
#

Does a constructor count as an entrypoint

#

i mean it runs automatically but why dont people use it as an entry point for dependencies?

hearty shard
#

be more specific

#

static constructor only runs when the class is called

teal junco
# hearty shard what

if i have a variable and set it as new(); as the initializer, it runs the constructor

hearty shard
#

ah

teal junco
#

when the program starts

hearty shard
#

yes....

teal junco
#

technically this could be used to run code without a plugin entry point

hearty shard
#

some dependencies dont require an instance

#

is the thing

teal junco
#

this sounds bad to me but im not sure if it is.

hearty shard
#

actually a lot dont

#

and creating a per plugin instance to store feels wasteful if its not needed

#

which is why ruei eg uses .EnsureInit()

hearty shard
hearty shard
#

so would you prefer Dependency.Init() or new Dependency()

teal junco
#

okay i think i see

#

so it actually doesnt run automatically?

hearty shard
#

if im understanding ur thing

teal junco
#

only whrn accessed

#

the initializers that is

hearty shard
#

i dont fully know C# lore

#

but i do believe for a field to be intialized you need to call it

#

which needs smth that runs on startup to then call it

teal junco
#

okay i see lol

hearty shard
#

A static constructor is used to initialize any static data, or to perform a particular action that needs to be performed only once. It's called automatically before the first instance is created or any static members are referenced. A static constructor is called at most once.

unique crane
#

Static ctor is also called only when you access the static class for the first time

#

Not on assembly load

hearty shard
#

yeah

restive turret
restive turret
little zenith
upper vapor
grand flower
#

Solved my steamworks conundrums of a few days ago

#

still gonna need a custom steamworks implementation made but I'll be able to have dedis behind steam relay and still be able to do additional checks on a player's ip for community servers