#plugins-dev-chat

1 messages ¡ Page 12 of 1

restive turret
#

yes

hearty shard
#

also love this code

#

(pls i need role wrappers 💔 )

restive turret
#

make your own

hearty shard
#

flip no!

restive turret
#

💔

hearty shard
#

ill wait for labapi to do it

#

in labapi we trust

restive turret
#

Riptide is doing it so it matter of time

hearty shard
#

yea

restive turret
#

ye

unique crane
#

Yea

hearty shard
#

guh

restive turret
hearty shard
#

but idc

#

ill rename it back to scp096Role when labapi wrappers

#

same with 079 one

restive turret
#

SecretAPI will be denied

hearty shard
#

guh

upper vapor
hearty shard
#

i dont need no cache

#

its only run 60 times a second

unique crane
#

Make it run every 2nd frame

#

Performance++

hearty shard
#

so true

#

theres only a few casts

#

yk

#

just a few

#

i dont agree with it either

#

but

#

but

#

what could go wrong

hearty shard
#

sry for ping but is there no way better than this?

unique crane
#

I didnt find a better way either

#

Unity moment

upper vapor
#

That's how Unity does it

unique crane
#

Oh

upper vapor
#

Not much better but it's less characters

unique crane
#

wiki update wouldn't be bad

#

For things like these

loud schooner
#

hi everyone, listen, i want to get into cybersecurity, what do i need to know, and do i need to have a virtual machine?

marsh minnow
#

Yes, because you need to have a way to test viruses etc. and not break your pc

upper pike
#

Nah download all the viruses directly to your personal machine

limber silo
#

get into pentesting

#

hack the box....

icy knoll
#

coming from a cyber security engineer irl btw

restive turret
#

Penning the tests

limber silo
#

it is the best place to start imo, lots of knowledge and will open your mind about what it really is

icy knoll
#

true

loud schooner
plush walrus
icy knoll
plush walrus
#

Ah, thank you Lumi

main zenith
#

i would need a help im making a custom plugin for easter in NWapi(Not LabApi) and i need to remove from list a item that has ItemPickup which was deleted by cleanup and others im using this but its not working correctly

 Main.Instance.Eggs.RemoveAll(e => e.egg == null || e.egg.GameObject == null || !e.egg.GameObject);
#

alternatively is there a way to check if item exist with some Serial?

royal mica
#

I wonder, will the fancy log coloring will make a comeback in LabApi?

main zenith
# main zenith i would need a help im making a custom plugin for easter in NWapi(Not LabApi) an...

what happens to item after Clean up? they are destroyed or what bcs for some reason this function makes everything freeze like "item" is game object of the egg which is ItemPickup but for some reason it makes the entire function to lag/frezze after that

   var eggs = Main.Instance.Eggs;
   List<int> toRemove = new List<int>();

 
   for (int x = eggs.Count - 1; x >= 0; x--)
   {
       var item = eggs[x];
       if (item.item ==null)
       {
           toRemove.Add(x);
       }
   }

  
   foreach (var index in toRemove)
   {
       NetworkServer.Destroy(eggs[index].shell.gameObject);
       eggs.RemoveAt(index);
   }

#

someone had an idea why this is so broken?

hearty shard
#

Make the round start counter not count OW as players

icy knoll
#

how do I check how long is left on the deadman sequence timer?

hearty shard
#

check warhead

unique crane
icy knoll
#

not what i mean

#

the timer until deadman sequence inits

unique crane
#

Ahaaa

#

one sec

hearty shard
#

DeadmanSwitch._dmsTime kek

unique crane
hearty shard
#

oh

unique crane
#

Youuu will however

hearty shard
#

changed

unique crane
#

need to publicize

unique crane
hearty shard
#

i gave current one

#

idk what labapi is

carmine prawn
#

💀

icy knoll
#

lol

#

unless you guys add it for next update

unique crane
#

Very scary

#

Changing private to public

#

and _a

#

to A

icy knoll
#

yeah but you gotta then find every reference of the old variable and change it over

unique crane
#

No we have cool VS feature for that

#

Its called

#

rename

hearty shard
#

Is that what you do

#

Is bro using notepadd

icy knoll
#

i use rider

hearty shard
#

Which has the same feature

icy knoll
#

ive never heard of it before

#

how do i use it

hearty shard
#

Rename it

unique crane
#

Its quite new feature yea

#

You may need to reinstall your whole OS for it

hearty shard
#

Just rename
It will underline iirc
And then you just agree to rename it

unique crane
#

Everybody just renames the property but nobody cares if it wants to

#

):

icy knoll
#

i like click the thing

#

change the name

#

and then i have to change all references

#

manually

#

do i have to like double click or smth?

#

ctrl + r that shit?

upper pike
#

Alt+Enter on rider i think

upper vapor
#

Also if you change the name or the signature by typing you should get a prism icon next to the line number which lets you update references
"Apply name change refactoring" for example

#

Btw
Double shift also exists
So just type what you want and it'll tell you the shortcut

#

When one of my friends saw me renaming something he went "wait does Rider have a thing to rename?"
Yeah duh
Even VSC has it, F2
Bro had been manually updating everything since the dawn of time 😭

icy knoll
upper vapor
lucid canyon
#

making somthing strange..

marsh minnow
#

Path finding?

restive turret
#

finding path to

plush walrus
#

That’s better than what I was going to say, I was going to say it was minesweeper

royal mica
#

Was there any solution for this confused_dog

fresh zenith
#

question is there any command for the steamcmd console to reload a plugin etc?

carmine prawn
#

nope

#

if you mean hot reload plugin

upper vapor
indigo knoll
#

Im no dev but you don't use SteamCMD for anything other than installing the server right

upper vapor
#

correct, installation and updating of only the server itself

hearty shard
#

LA has plugin stuff

upper vapor
#

plugins are separate, managed by the server, not by steamcmd

restive turret
#

well i rather restart the game fully

#

cus i dont think it reloads the server / c# asm

upper vapor
#

i failed

#

but Killers managed it apparently

restive turret
#

uhh

#

you have to unload the asm which is wierd

upper vapor
#

for some reason the IL was the same all the time

fresh zenith
#

yea uh nvm my brain.exe isn't running rn lol

royal mica
carmine prawn
#

💀

#

bro just wants to modify topPlayers

hearty shard
carmine prawn
#

I want the countdown not to increase in last 10 secondsCapybaraSit

#

(when player join

royal mica
# unique crane Huh

When OnInstanceCreated is executed, the ReferenceHub still doesn't have all the required user data (since they are not authenticated yet)

#

So I had to move from OnInstanceCreated to a function call and using OnPlayerJoined event

unique crane
#

Makes sense..

limpid fjord
#

Is the snake game on Chaos Keycard handled server-side?

fresh zenith
#

nah probably client-side

#

would make a lot more sense imo

upper vapor
#

from what i could conclude from the portion of the stream i watched, the key presses are handled by the client and sent to the server to broadcast to others
so you will probably be able to send network messages (or rpcs) to control the snake, though it might not work for the client holding the keycard

icy knoll
#

if you play a game of snake, someone else can see you playing

#

so data is sent to the server

static osprey
icy knoll
unique crane
#

I can take a look

#

It might be the case where client has full control

#

and just sends data to server whats his status

fresh zenith
#

hey uh. is it possible to use any higher version of .NET? i hate only being able to use C# 8.0

upper vapor
#

just change the <LangVersion> in the csproj

fresh zenith
#

Visual Studio ignores the change...

upper vapor
#

huh

fresh zenith
#

yea

upper vapor
#

did you save and reload the project?

fresh zenith
#

ofc

upper vapor
#

what did you set the language version to?

fresh zenith
#

13.0

upper vapor
#

change it to 13

#

maybe it'll work

fresh zenith
#

wait let me try

#

i completly closed VS and reopened it.

#

(also yea i'm from germany so let me translate: it says: "some function" is not available in C# 9.0 use 10.0 or later)

unique crane
#
<PropertyGroup>
  <LangVersion>latest</LangVersion>
</PropertyGroup>
#

That should give you like the highest one you can get

upper vapor
#

oh the horrors of the .NET Framework csproj files

upper vapor
# fresh zenith

i assume you have the .NET 9 SDK installed so that should be working

upper vapor
#

are there any other langversion tags after it?

fresh zenith
#

you mean in the .csproj?

upper vapor
#

ye

fresh zenith
#

nah its the only one and i added it myself

unique crane
#

Or well this is what I use for my testing plogin

fresh zenith
#

didn't work. sadly

unique crane
#

DId you reload the project?

fresh zenith
#

yea

#

i also completly closed VS and reopened it

upper vapor
#

works for me

unique crane
#

did you save it?

fresh zenith
#

yes

upper vapor
#

have you installed the correct .NET SDK?

fresh zenith
#

when i closed and reopened the file it was still there

fresh zenith
unique crane
#

And are you using .NET 4.8.X?

upper vapor
fresh zenith
upper vapor
#

to use C# 13 you need the .NET 9 SDK

fresh zenith
#

i got the runtime. not the SDK tho. let me install it rq

upper vapor
#

yeah that's probably the issue

fresh zenith
#

well microsoft and their SDKs are an Pain....

upper vapor
#

vs installer BonkBaguette

upper vapor
fresh zenith
upper vapor
#

peak dev experience

#

um

#

is this visual studio 2022?

unique crane
#

xd

upper vapor
#

or

#

whatever

fresh zenith
#

yea 2022 the latest i got

upper vapor
#

not sure if that has full .net 9 support xd

upper vapor
fresh zenith
#

yea on it rn

#

we all love microsoft due to their smart way of handling stuff

upper vapor
unique crane
#

Idk I never used VS to download any SDK

upper vapor
unique crane
#

I didnt even know it was possible

upper vapor
#

and headaches

fresh zenith
#

and it ||doesn't|| work

upper vapor
#

did you restart VS or your computer toomuchtrolling

fresh zenith
#

it is installed

#

VS got restarted

upper vapor
#

that doesn't mean VS recognizes it xd

fresh zenith
#

same problem

fresh zenith
upper vapor
#

well

#

you can try VSC or Rider instead ig
but restart your machine first

fresh zenith
upper vapor
#

yeah

fresh zenith
#

and try again.

upper vapor
#

.NET 9 is supported from VS 2022 17.12 and onwards

fresh zenith
#

i won't learn another 2 years how to use rider

fresh zenith
upper vapor
fresh zenith
#

thats fucking hell....

#

eatherway thanks for the help even tho it didn't really help lmao

upper vapor
#

at least you learned some microfost bullcrap lmao

fresh zenith
#

yea

upper vapor
#

as a last resort, try restarting the computer

fresh zenith
upper vapor
#

-# don't reinstall it

fresh zenith
#

Ngl i rather use paincrosoft Simulator 2022 than Rider or Visual Studio Cook

upper vapor
#

bruh

#

VSC is fairly decent though with the C# kit or whatever

#

(and microsoft wants to get everyone to use VSC sooo)

fresh zenith
#

Well tbh i don't HATE vsc but i rather Go through pain

#

And MAYBE (totally Not) it works after an reinstall

upper vapor
fresh zenith
#

also... yea didn't work eather.... well one last thing exists which i can try. maybe when i create a new project it might work? don't know.

restive turret
#

If you have dotnet installed you can create project with console commands

fresh zenith
#

yea i know but i want to use VS IDE

restive turret
#

I using vs22

fresh zenith
#

same here

upper pike
restive turret
#

Had no issues

upper pike
#

Real programmers use the console ClassDTroll

fresh zenith
#

well the other thing is. my PC is from 2011 tbf lol

upper pike
#

Damn

#

How does it run SL?

fresh zenith
fresh zenith
upper pike
#

Oh

upper pike
upper vapor
#

real programmers aren't even programmers toomuchtrolling

fresh zenith
upper pike
#

Real programmers dont need stuff. They just calculate everything in their head

#

They run SL at 240 FPS 4k in their minds

fresh zenith
#

But are bad in the game eatherway because they have aiming issues just like my PC has mental issues.

#

Bro in a new project it works just fine ;-;

#

I HATE VS

upper vapor
#

delete the .vs folder

upper pike
#

Delete VS

#

Download VSC ClassDClueless

restive turret
#

Hell no

icy knoll
#

rider for c#

#

vs for absolutely nothing

restive turret
#

Notepad for c#

upper vapor
#

n

#

for neovim

restive turret
#

write your own ide

fresh zenith
#

vim for c# seems interesting

restive turret
#

tbh i seen some guys do it

hearty shard
#

can work for C#

fresh zenith
icy knoll
#

so

restive turret
#

make your own cpu

hearty shard
#

ik someone who uses it

icy knoll
#

i only use jetbrains products anyway

upper vapor
upper pike
#

VSC isnt on Linux so i have to use Rider

hearty shard
#

vsc requires some extensions for it to work

icy knoll
restive turret
#

i use vsc for text edit if cant do it inside the sublime text

upper vapor
icy knoll
#

also no build button, i need that build button grrrr

icy knoll
upper vapor
#

then idk

upper vapor
restive turret
#

dotnet shutdown

icy knoll
upper pike
#

Dotnet —uninstall

hearty shard
hearty shard
#

its just

#

dotnet build

#

thats it

upper vapor
#

ye

restive turret
#

me when i run my ,bat script

hearty shard
#

nothing else needed

upper pike
icy knoll
#

what happens when you’re using a different what’s it called

upper vapor
icy knoll
#

like debug or release

unique crane
restive turret
#

-c Release

upper vapor
unique crane
#

Its still running in my Linux VM

#

and I dont know how to leave it

icy knoll
#

yeah that’s bs for me lol

upper vapor
unique crane
#

Is that an emoji or command

#

:q

restive turret
#

just turn off your pc

upper vapor
#

command

unique crane
#

XD

restive turret
#

:Q

hearty shard
upper vapor
upper pike
hearty shard
#

iirc

unique crane
#

Literally

#

I restarted my pc and my vm 5000000 times

#

I even uninstalled it

#

and made new

unique crane
#

It installed itself BACK

icy knoll
unique crane
#

and launched neovim again

upper pike
fresh zenith
restive turret
#

wdym I always build as release

#

no need for debug

#

all my code is supposed to work ClassDTroll

unique crane
#

Me when linear equation counts as AI

upper vapor
#

release for QA

icy knoll
#

oh yeah and in rider, there is a dedicated nuget window, in vsc, you have to copy and paste a command into the console

upper vapor
#

(playerbase)

icy knoll
#

grrrr

upper pike
#

I always thought debug built faster or smth

upper pike
#

And easier to clean up. Idk

upper vapor
icy knoll
upper pike
icy knoll
#

not VS

restive turret
#

vsc is a text editor

upper pike
#

I dont need those optimisations when im just testing something for myself

#

When i post it , ill use release build

restive turret
#

i only use debug and release in C++ project

upper vapor
restive turret
#

i have glasses i can see sharp

#

they are dirty tho

upper vapor
icy knoll
hearty shard
upper vapor
#

that's why you have extensions

unique crane
#

I only use VSCode for like

#

html, css and stuff

#

which is quite unvoluntary anyways

icy knoll
restive turret
#

i only use it to explore more files

#

and replace stuff inside as batch

icy knoll
restive turret
#

yknow what else also free

unique crane
#

We did AI in python for like last 2 months

#

and like bruh what the heeeel

#

6GBs of packages?

upper pike
#

Python moment

restive turret
#

better than node

unique crane
#

True

upper vapor
upper vapor
restive turret
#

vsc also good for json simplify or minify

icy knoll
unique crane
#

Me after 2 days of figuring out how to train AI on GPU

#

(you have to install very specific package of specific version for your specific CUDA version for your OS)

upper vapor
unique crane
#

Yeah like

unique crane
#

I had to search for JS functions online

#

cuz no intellisense

restive turret
upper vapor
#

epic rap battles of history

unique crane
#

I mean like training 1 epoch for 2,5 mins vs 20 secs

restive turret
#

1 epoch?

upper vapor
#

epoch

unique crane
#

Neural network

restive turret
#

like unix time unit?

unique crane
#

training

upper vapor
#

Each time a dataset passes through an algorithm, it is said to have completed an epoch. Therefore, Epoch, in machine learning, refers to the one entire passing of training data through the algorithm.

#

hmm

unique crane
#

Its pretty cool tho

#

it can detect holes in a paper target

#

It can cook

#

And the only reason to use python is for AI

#

Or automatic manual tasks

unique crane
#

Cuz its easier than bash tbh

restive turret
#

or build a game

unique crane
#

Mods? ok

#

Eh rather Lua

upper vapor
#

x3rt has entered the facility chat

stuck peak
#

I would take a bash/shell script over a python one any day

unique crane
#

Hmmm true

restive turret
#

i use batch script mostly but sometimes where i need to read file content it is easier in python

#

for example removing comments from the files

upper vapor
unique crane
#

welp

unique crane
#

back to Unity

restive turret
stuck peak
#

sed

restive turret
#

i use win not linux

restive turret
unique crane
#

Well yea

restive turret
#

lel

#

i mean i have wsl

#

(probably?)

stuck peak
#

git bash would work better in this case

upper vapor
#

wide subsystem for linux

restive turret
fresh zenith
upper vapor
fresh zenith
#

yea.

#

i could kick the balls SCP018 frrom the microsoft employee who made this crap SO HARD rn

#

and yet again it doesn't work. ngl i'm switching to notepad at this point

fresh zenith
#

Also uh anyone got information about a LabApi fĂźll Release integrated to the Game? I really wanna use it for my productive Server but. No User will Install the Beta Just to Join.

harsh thorn
fresh zenith
#

Oh didn't think it would happen THAT fast tbh but i'm happy

carmine prawn
#

14.1 When

hearty shard
loud schooner
#

hi guys, is there a position where you need to check servers according to VSR rules?

mild ice
fresh zenith
#

does this mean 1507 is still in the game lol

mild ice
fresh zenith
#

oh thats interesting

harsh thorn
fresh zenith
#

hey uh. how do i add an effect? anyone got a small advise?

hearty shard
fresh zenith
#

Oh thanks

#

And how do i get the strengh of an already used effect? (like you already have 1 cola drunken and now want to stack the next cola on top) or does the effect strengh automaticly stack?

hearty shard
hearty shard
#

should do the job

fresh zenith
#

k

tulip kiln
#

Got disconnected today when LabAPI tried to print out a nullref error

[2025-04-19 23:17:27.137 +02:00] [STDOUT] Disconnecting connId=2 to prevent exploits from an Exception in MessageHandler: NullReferenceException Object reference not set to an instance of an object
[2025-04-19 23:17:27.138 +02:00] [STDOUT]   at LabApi.Events.EventManager.FormatErrorMessage (System.Delegate eventHandler, System.Exception exception) [0x00043] in <55a16b597ad7463da126996d837dfaa8>:0
[2025-04-19 23:17:27.138 +02:00] [STDOUT]   at LabApi.Events.EventManager.InvokeEvent[TEventArgs] (LabApi.Events.LabEventHandler`1[TEventArgs] eventHandler, TEventArgs args) [0x00028] in <55a16b597ad7463da126996d837dfaa8>:0
[2025-04-19 23:17:27.138 +02:00] [STDOUT]   at LabApi.Events.Handlers.PlayerEvents.OnChangedItem (LabApi.Events.Arguments.PlayerEvents.PlayerChangedItemEventArgs ev) [0x00000] in <55a16b597ad7463da126996d837dfaa8>:0
[2025-04-19 23:17:27.138 +02:00] [STDOUT]   at InventorySystem.Inventory.ServerSelectItem (System.UInt16 itemSerial) [0x00114] in <4962faac86aa41cdb937a94469cc30c4>:0
[2025-04-19 23:17:27.138 +02:00] [STDOUT]   at InventorySystem.Inventory.UserCode_CmdSelectItem__UInt16 (System.UInt16 itemSerial) [0x00014] in <4962faac86aa41cdb937a94469cc30c4>:0
[2025-04-19 23:17:27.139 +02:00] [STDOUT]   at InventorySystem.Inventory.InvokeUserCode_CmdSelectItem__UInt16 (Mirror.NetworkBehaviour obj, Mirror.NetworkReader reader, Mirror.NetworkConnectionToClient senderConnection) [0x00022] in <4962faac86aa41cdb937a94469cc30c4>:0
[2025-04-19 23:17:27.139 +02:00] [STDOUT]   at Mirror.RemoteCalls.RemoteProcedureCalls.Invoke (System.UInt16 functionHash, Mirror.RemoteCalls.RemoteCallType remoteCallType, Mirror.NetworkReader reader, Mirror.NetworkBehaviour component, Mirror.NetworkConnectionToClient senderConnection) [0x00019] in <8b9df2430f094ce4be93093eb23b1eed>:0
[2025-04-19 23:17:27.139 +02:00] [STDOUT]   at Mirror.NetworkIdentity.HandleRemoteCall (System.Byte componentIndex, System.UInt16 functionHash, Mirror.RemoteCalls.RemoteCallType remoteCallType, Mirror.NetworkReader reader, Mirror.NetworkConnectionToClient senderConnection) [0x00065] in <8b9df2430f094ce4be93093eb23b1eed>:0
[2025-04-19 23:17:27.139 +02:00] [STDOUT]   at Mirror.NetworkServer.OnCommandMessage (Mirror.NetworkConnectionToClient conn, Mirror.CommandMessage msg, System.Int32 channelId) [0x00085] in <8b9df2430f094ce4be93093eb23b1eed>:0
[2025-04-19 23:17:27.139 +02:00] [STDOUT]   at (wrapper delegate-invoke) System.Action`3[Mirror.NetworkConnectionToClient,Mirror.CommandMessage,System.Int32].invoke_void_T1_T2_T3(Mirror.NetworkConnectionToClient,Mirror.CommandMessage,int)
[2025-04-19 23:17:27.139 +02:00] [STDOUT]   at Mirror.NetworkMessages+<>c__DisplayClass8_0`2[T,C].<WrapHandler>b__0 (Mirror.NetworkConnection conn, Mirror.NetworkReader reader, System.Int32 channelId) [0x0007a] in <8b9df2430f094ce4be93093eb23b1eed>:0

(To recreate this, try to use any property of NewItem in PlayerChangedItemEventArgs when the item is null)

hearty shard
#

its fixed next release but rn it causes null ref in events

#

oh

tulip kiln
#

as I tried to use a null object

hearty shard
#

damn

#

wait you cant use it at all ?

#

even with null check ?

tulip kiln
#

null check fixes it obviously

#

but errors shouldnt kick players snap

hearty shard
#

its fixed next release

#

but

#

they made it break in events

tulip kiln
#

tbf if it hasn't happened, I would probably postpone fixing the bug awokado_kek

#

So it kinda helped

unique crane
#

Dont throw errors in static event delegates

hearty shard
#

david why would you break this 💔

unique crane
#

I didnt write that in a first place

tulip kiln
hearty shard
#

damn

hearty shard
tulip kiln
#

ah

unique crane
#

Eeeeh Ill check it one more time just to be sure

#

tomorrow

lucid canyon
upper pike
upper vapor
#

not very high i assume

fresh zenith
#

Hey uh anyone knows how i get the player object who used an command from the sender arg?

unique crane
#

Not sure about the property name for the player command sender

#

but you cast it to this

fresh zenith
#

K thanks

unique crane
#

Or there should be extension method or something like that?

#

Sec

#

Aha

#

@fresh zenith

#

Player.Get(sender)

#

There is overload for it

fresh zenith
#

Oh thanks that helps

worthy rune
#

you might want to use the TryGet version or check for null since the sender might not be a player e.g. a command run from the server console

fresh zenith
#

Also the command may Look weird due to me being new in LabApi coding

#

So don't expect performant code

worthy rune
#

its always about your intent, its just a best practice to always catch and respond with unlikely but possible problems

unique crane
#

Never. Trust. End. User.

#

They are dumb and will put in wrong arguments

worthy rune
fresh zenith
#

Also. Yes now it works :) i'm so happy rn

fresh zenith
#

small question why does the remoteadminconsole make the rich text attributes like <align=left> dissappear? (i know it makes them invisible but is there a way to change that?)

unique crane
#

NExt to Send

fresh zenith
#

oh true forgot about that----- yea like i said my brain is just not braining 90% of the time lol#

upper pike
#

Is there anyway for a plugin to specifically tag a player without affecting other plugins. I’ve noticed a field for players like player.tags or smth but im not sure what would happen if i tried to use it

#

Rn my alternative is creating a public list and just adding and removing players from that list as needed

unique crane
#

Well... make your list/hashset of tagged people?

carmine prawn
#

this should be the best method

unique crane
#

Or you got the data store thingy

upper pike
#

I was just thinking if there was a better way because what exactly is that ‘string Player.Tag’ thing anyway

icy knoll
#

is there not documentation?

worthy rune
#

i dont think there is a Tag property on player?

icy knoll
#

there isnt

#

i just looked

unique crane
upper pike
#

Im not on my machine rn, but ill check when i get home

#

Also so is just adding a player to a temporary list for all of a single millisecond before the next event triggers really the most efficient way of doing this?

worthy rune
#

nothing wrong with doing it like that, if you really want to you could look into writing the code without having to use multiple events to get what you want done

upper pike
#

Dont think that’s possible in my case though since ill need a delay anyway

unique crane
#

You can do that using OnPlayerEscaping (or something like that) event

#

There is custom escape scenario

icy knoll
#

yeah

#

just set the new role to be smth different lol

#

or, because it won’t happen, you can just set the role

upper pike
#

Yea that is what im doing. The idea is i want civilians to get extra items for escaping, but not militants. This is more of a bandaid solution since OnPlayerRoleChange.oldRole still returns the wrong value
Though im using the same idea for a complete different part of the code which i haven’t committed to the repo yet

icy knoll
upper pike
#

Im using PlayerChangeRole since im manually setting the militant’s role

fresh zenith
#

i know this is an really stupid question but my brain isn't braining rn so i ask LabApi-Pedia:

For what is the "base.OnPlayerEscaping(ev);" important? like for what use case should i use it?

fresh zenith
#

so its just something VS automaticly adds without any need=?

upper vapor
hearty shard
#

^^

fresh zenith
#

well thanks for the fast response

#

now i'm a lot smarter tbh means i can remove it and don't need to wonder why i would ever need it

upper vapor
#

i wonder what clarifies for the "framework" label in #1336031121699377213
does it have to be an "entire" plugin framework?

#

at david toomuchtrolling

fresh zenith
#

yea i think it means smth like exiled

unique crane
#

0 clue xd

#

I didnt make these tags

upper vapor
#

at beryl then

unique crane
#

But I would assume something at scale of hint combinator

#

etc

upper vapor
#

then what scale would library be

unique crane
#

Wouldnt that be library uhhh

upper vapor
#

so

#

framework = library squared

unique crane
#

Well

#

Library is still used within labapi

#

Framework would have seperate classes

#

Seperate to labapi

#

so that tag is as of now

#

For Exiled xd

upper vapor
#

and SecretAPI

unique crane
#

Perhaps

#

Isnt that just labapi extension?

hearty shard
unique crane
#

I would put that under library

#

Honestly I dont know...

upper vapor
#

sob

unique crane
#

Does it really matter after all?

#

I dont think so

upper vapor
#

not that much tbh
except i like to overthink

unique crane
#

Thats fineee

upper vapor
#

there's no "think"
either don't think or overthink

unique crane
#

what would you put in Tools tho

upper vapor
#

source generators ig

#

if we had any

hearty shard
unique crane
#

mmmmm

restive turret
#

Generate these

fresh zenith
#

hey uh what roles specify "Team.OtherAlive"?

#

like which role from an player would it be?

#

smth like custom roles or tutorial?

worthy rune
#

probably tutorial

fresh zenith
#

thx

#

also does the Player.DisarmedBy Property give me the name of the player who disarmed the player? (probably yes but my brain isn't awake if so.)

worthy rune
#

i think it returns a player object not the name

restive turret
#

Ye it either null or the disarmer player

unique crane
#

^

fresh zenith
#

also how do i add comments to an config?

upper vapor
fresh zenith
#

thanks

carmine prawn
#

I want to delve into primitive. What are the characteristics of MER and SLOC?

fresh zenith
#

Is there anything i can call to get the current roundtime?

#

Or any property?,

#

Nvm found it

fresh zenith
#

Is there a way to reload the Plugin? So that the config gets reloaded?

upper vapor
upper vapor
fresh zenith
upper vapor
#

unfortunately no

fresh zenith
#

Well thanks tho. Will be looking into it

upper vapor
#

just create a static property for your plugin instance and access that

#

then call LoadConfig

restive turret
#

sr in server console

upper vapor
#

sudo sr

upper vapor
#

Michal is calling...

carmine prawn
#

Scale is already enough to confuse me

#

maybe my unity edit skill

#

💀

#

when there are multiple parent-child objects, I seem to be unable to directly change the size of the entire structure

#

It changed, but it went back to 1 1 1 when I exported it

#

F6

#

Hmm, this is a bit hard to explain

upper vapor
#

ctrl

#

for snap to grid

#

well

#

not to part to my knowledge

#

actually

#

hold ctrl+shift and that might position the object's pivot on the surface of another

carmine prawn
fresh zenith
#

hey uh how can i check if a keycard is allowed to open a certain door?

restive turret
#

just spawn by hand

fresh zenith
#

from the item

restive turret
#

Same? kcitem.Permission

#

Or KeycardPermission

#

Maybe you need to access the base too

fresh zenith
restive turret
#

What's the item type

fresh zenith
#

well don't kill me for my code

hearty shard
#

also use ev.Door.HasFlag

#

no ==

#

will not work unless it ONLY has 1 permission

restive turret
#

keycard.Base.Permission

upper vapor
hearty shard
marsh minnow
#

Also it has faster compiling time

carmine prawn
fresh zenith
#

question is there an event that gets triggered before the door checks if the player has the keycard in the hand? because i made an "wireless keycard" plugin (i know it will be useless ones 14.1 comes out but still i HATE testing without wireless keycards) and the door says it didn't work and plays the sound but after about 0.5 sec it says OK and plays the other sound. that is anoying

#

anyone got an idea how to fix that?

restive turret
#

IsAllow = true?

fresh zenith
#

rn my code looks like that

fresh zenith
thin shuttle
#

i do thinks it's exist in NWAPI yeah

fresh zenith
#

nah IsAllow doesn't exist

thin shuttle
#

but not sure i never used NWAPI always used Exiled

fresh zenith
restive turret
#

that LabAPI

fresh zenith
#

yea ik

hearty shard
#

missign feature then

thin shuttle
hearty shard
#

create github issue

#

oh

#

lol

restive turret
#

ev.IsAllowed

#

your IDE does not help you

#

are you sure you not writing it inside a notepad?

fresh zenith
#

well i tryed

restive turret
#

also ev.CanOpen = true

#

you bild af

fresh zenith
restive turret
#

read the argument bruh

fresh zenith
#

i'm sorry man.

restive turret
#

no worries just like

#

search stuff

fresh zenith
#

will do next time (if i don't forget lmao)

plush crypt
fresh zenith
#

i infact did not forget

carmine prawn
#

💀

#

Primitive has too many problems

#

self-glowing primitives display different effects in different areas when alpha = 1

#

when alpha < 1, primitives are once again obscured by the skybox (img from MER dc)

carmine prawn
#

but, the network sync optimization for primitives seems not very good for dynamic transform objects

#

it will put some pressure on the server

fresh zenith
#

is there a way to play songs/sounds via the LabApi?

restive turret
#

I think there are some sound toy?

fresh zenith
#

well tbf i looked if i could find any file that comes close to that but i didn't find anything

fresh zenith
fresh zenith
#

thanks

fresh zenith
#

small question. if the player has eaten an SCP330 candy how do i get the type of the candy? if i use ItemType. it doesn't show me the veriants of the candy

#

i might have found smth. testing rq

unique crane
#

The event has candy type argument

fresh zenith
#

Did you maybe got an example?

tulip kiln
restive turret
fresh zenith
#

and yea. it really is quite complicated but also simple if i look at it now

#

thx a lot

unique crane
#

Oh I can't read nvm

icy knoll
fresh zenith
#

this gives me the next candy from the bag. yes it works but i still need to figure out how i get the used candy. not the next from the used candy.

#

might got the solution tho hold on a minute

hearty shard
#

Or eaten330

#

Idk

fresh zenith
#

i think no

#

no "eaten" doesn't exist nor does consumed for candys

hearty shard
#

@unique crane make event!!

fresh zenith
#

weird only "Used" item gets triggered not "using" item. it would make sense if the player is using the item "Scp330" bag

hearty shard
#

also hi david

unique crane
#

Haiii

fresh zenith
#

rn code looks like this. the first event doesn't get triggered which is weird imo due to the player interacting with an item but well idk. the second event gives me the candy from the position where the old one was located.

unique crane
#

I can look at it today

fresh zenith
#

thanks. will be working on smth else in the meantime. (atleast now i got confirmation its not 100% my brains fault it doesn't work lol. Doesn't mean that my brain isn't also the reason why it doesn't work tho lol)

hearty shard
#

why do you do this btw

main zenith
#

Is there a way to spawn primitiveobject only for one specific client and to attach that primitiveobject to arms view model?

worthy rune
#

you can spawn for a specific client but you cant attach anything to the viewmodel

upper pike
fresh zenith
# hearty shard why do you do this btw

well it helps me to look better into the code and not to use everytime i need the player: "ev.Player.[stuff]" it gives me the feeling that the code looks cleaner.

fresh zenith
upper pike
#

Yea

upper pike
#

Like it can be cancelled

fresh zenith
#

Someone killed my PC due to me using: "Item item = ev.item;" lol

upper pike
fresh zenith
main zenith
worthy rune
#

labapi events do not have a return

fresh zenith
#

Yea.

#

They use another event for that

upper pike
#

So how do you cancel something

fresh zenith
worthy rune
hearty shard
upper pike
#

Oh

hearty shard
#

no return true or false here because its made properly

worthy rune
#

oh 049 is the cardiac arrest effect?

fresh zenith
worthy rune
#

yeah

worthy rune
#

player effects, like you would see in the RA you can enable in plugins

fresh zenith
main zenith
restive turret
#

damn

restive turret
#

david are you ignoring the nullables?

limpid fjord
#

mini map...

fresh zenith
#

mini map?

fresh zenith
opaque pawn
#

Btw will plugins break after LabAPI release?

hearty shard
#

?

opaque pawn
#

Sad

hearty shard
#

All references to the api will be gone

opaque pawn
#

What about patches to non API references?

hearty shard
#

Thats why you have time right now to update Pluigns

hearty shard
#

which uses the pluginapi

#

(or ig exiled if thats what ur using on plugins)

unique crane
#

Or slightly edited

limpid fjord
#

I NEED 14.1 DEDICATED SERVER FILE

languid temple
limpid fjord
#

I'm interested in the internal logic of version 14.1

#

about snake game

#

for minimap

restive turret
#

Just wait for a few days

loud schooner
#

Hi chat

fresh zenith
#

Hello

cold walrus
#

I've opened a server, but I don't know what to install to be able to modify the map.

upper vapor
lethal cradle
#

MER is goated

hearty shard
#

me when 106 breathing is in root namespace

restive turret
#

womp womp

upper vapor
#

Stupid unity

unique crane
hearty shard
#

pls fix

unique crane
#

no

hearty shard
#

💔 ?!?

cold walrus
#

I need LabApi 0.5.0 for MER, and I can’t find it

hearty shard
#

instead of MapEditorReborn now

restive turret
hearty shard
cold walrus
hearty shard
#

ProjectMER is labapi

#

MER works on latest exiled

cold walrus
icy knoll
#

use the non exiled version then

restive turret
lethal cradle
#

this is the point at which everything blows up

#

@harsh thorn Is lab-api support included by default in the early-server-build?

harsh thorn
#

14.1 removes the nwapi and adds the labapi

lethal cradle
harsh thorn
#

when 14.1 becomes live on the main branch the labapi will be on the main branch yes

lethal cradle
#

god bless labapi

hearty shard
#

so many things i wish was in labapi

#

like the player.Scale we were promised

#

💔

#

or the firearm wrapper

#

💔

lethal cradle
#

we've been cheated

hearty shard
#

cheater cheater

#

ig ill write player.GetScale() temporarily

dull basin
#

Hello Everyone

#

Can the Lab API control how many sergeants the nine-tailed fox refreshes at a time?

hearty shard
#

gotta love

lethal cradle
#

vs code > rider

hearty shard
#

nuh uh

lethal cradle
#

yuh huh

hearty shard
#

ur mean

lethal cradle
#

fight me

icy knoll
lethal cradle
icy knoll
#

rider actually has everything ootb

#

vsc is just notepad with extensions

unique crane
#

It can

#

Or if you want, you can select them manually during WaveSpawning event

lethal cradle
icy knoll
lethal cradle
icy knoll
mild ice
dull basin
lethal cradle
icy knoll
mild ice
lethal cradle
#

skill issue

icy knoll
#

bro is pulling random cards from the deck now

#

legit glazing a text editor and calling rider stuff it just isn't 😭

lethal cradle
#

vscode is easier and more lightweight, ez win no diff

icy knoll
#

i find rider easier 100000x

#

lol

#

everything works ootb

#

and tbh i dont care about lightweight at all

dull basin
#

I'm still using VS2022ClassDPlushie

icy knoll
#

i dont need to care about performance of an IDE, but VSC is shocking

#

it's a pain in the ass for me to setup every time i reinstall my pc

#

whereas rider/webstorm works ootb

#

i legit made my work pay for a webstorm license for everyone because everyone was getting stuck on installing the right extensions for vsc, whereas everything worked in webstorm ootb

#

jetbrains just know what to do

#

microsoft should stick to making ts and c#, not text editors

lethal cradle
#

vscode is 100% better for coding across multiple languages

icy knoll
#

sure, but if jetbrains does an ide for what i want, im using that

#

because it has the best support out of anything

fresh zenith
fresh zenith
icy knoll
#

the most used jetbrains products are free

#

yk

lethal cradle
icy knoll
fresh zenith
icy knoll
#

nah i got a 2TB ssd

#

im all good

fresh zenith
#

Yet-

restive turret
fresh zenith
restive turret
#

No

rugged laurel
#

Ew

#

What are yall 50 years old

icy knoll
#

jesus

fresh zenith
#

Being old means being smart.

icy knoll
lethal cradle
icy knoll
#

the most dumbest people in the world are the oldest to me

#

atleast, that's what ive noticed

#

ive seen some really clever oldies tho which did some really clever stuff

#

in other words, not all old people are dumb

fresh zenith
# icy knoll no it does not 💀

Child of the young you never experienced the First Komodore that existed so you shouldn't Talk that rash about things you May never see nor know ever again

carmine prawn
fresh zenith
#

In short terms: don't speak Bad about every old person out there

#

We saw many things that you won't

carmine prawn
#

finally 14.1 came with LabAPI

#

I can send that picture

lethal cradle
fresh zenith
restive turret
#

I havent dumped the thing yet

#

Also

#

If I make a custom Wave, does the client will show the type and things for it?

#

(probably nope since it is server only but worth a shot checking it)

unique crane
#

😭

carmine prawn
#

not the last

#

btw, what about NWAPI channel?

lethal cradle
#

lost media

carmine prawn
#

it will be read only SCP956Capybara

queen parrot
#

Hi, I have a question: Is there any way to use 14.1 custom key cards in code?

hearty shard
#

yes

unique crane
#

Which then returns the Keycard item reference

unique crane
#

oh thats not merged in yet bruh

frank flicker
#

gaming

royal mica
#

40 commits
oh boy i love to resolve

crimson saddle
wispy dirge
#

has the hcz checkpoint bug been fixed yet?

carmine prawn
#

new toys?

wispy dirge
#

custom maps boutta be awesome

unique crane
#

You can spawn InteractibleToy (E click / hold)

#

079 camera

#

And Capybara :D

inner citrus
#

I love spawning RoomReaderWriters

ornate smelt
carmine prawn
#

can't wait to turn all players into capybara

unique crane
#

Like instead of flamingos

#

you get capybaras

ornate smelt
restive turret
#

And now most of the PR must be checked again to make it work

#

:sob

carmine prawn
#

Player => Attacker
Target => Player

unique crane
#

?

minor shard
#

how get build tool

carmine prawn
unique crane
#

Oh well...

#

Sorry

restive turret
#

Well, yeh

carmine prawn