#plugins-dev-chat

1 messages ยท Page 51 of 1

grand flower
#

Maybe some MMOs

#

Besides you start getting to a point where you get diminishing returns

#

There's only so much you can do via modding

#

The rest is on NW's side of things

covert flame
#

Ohh, wait a minute, does that function only set it for as long as the Player class exists, so once the player leaves it will go back to nothing (unless it's set again)

covert flame
#

Ahh, okay, well thank god I went the saving to a db then granting when they join

#

because that actually works very well for what I want

austere iron
#

Hey

#

I have problems with doors

#

My players can open locked doors

#

is there anything in the config that could cause this?

unique crane
#

Do you have any plugin that works with doors

#

like remote keycard?

hearty shard
#

remote keycard moment

#

or exiled

#

or both

upper vapor
#

c*dm*d toomuchtrolling

unique crane
upper vapor
#

kinda

royal mica
#

The doors AI has bren overtrained and they are now too polite

plain gazelle
#

This error appears about every second while a dummy is in spectator
Is this base game? I cant find anything about it here but hopefully im just too dumb or sth

hearty shard
#

Fixed next update afaik

plain gazelle
#

Thank you ^^

viral rivet
#

how can i disable scp 330 for a specific player?

hearty shard
#

ev.IsAllowed = false;

viral rivet
lethal cradle
#

can someone help me try to set up lab api HahaYes
in the only tutorial i found (the wiki doesn't help much) they have a managed folder i cant find it sooo uh what. i updated the beta too
heres the link idk https:// www.youtube.com/watch?v=5PZ-9KV7bJs

hearty shard
lethal cradle
hearty shard
#

its the same servers use

#

its the server version of SL

lethal cradle
#

okay thank you

#

found it thanks

#

for the labAPI does it have to be net4.8 or can it be any verison?

#

oh nevermind i js found my awnser on the wiki

hearty shard
#

framework 4.8 is required

#

you can use mscorlib.dll (from the server files)

#

to add some extra stuff though

lethal cradle
hearty shard
#

also you can use language 12

#

but yeah framework has to be 4.8

lethal cradle
#

alright

main zenith
#

anyone maybe has any idea how can i make PickUp update its position more quickly. i making my own cosmetic plugin the problem is i dont have really idea how to make pickup move smoothly or Update pretty quickly i already tried parenting pickup and updating the transform in my own way by running function(below) every frame but its too slow

      public void UpdateCosmetic(Player player, CosmeticHolder config)
       {
           Vector3 worldMove = Vector3.zero;
           if (config.CosmeticConfig.AttachmentType == AttachmentType.Head)
           {
                worldMove = player.Camera.rotation * config.CosmeticConfig.PositionOffset;
               worldMove = worldMove + player.Camera.position;
           }
           else
           {
               worldMove = player.Rotation * config.CosmeticConfig.PositionOffset;
               worldMove = worldMove + player.Position;
           }
            if(config.CosmeticConfig.CosmeticType == CosmeticType.Item)
           {
               config.ItemCosmetic.Position = worldMove;

           }
hearty shard
#

if ur parenting then just parent it and dont update position again

#

i think?

main zenith
worthy rune
#

i dont think theres much you can do to improve it

random scaffold
#

someone big brain

#

how i can return normal view?

#

bold

upper vapor
viral rivet
#

How can i get an effect using StatusEffectBase?

hearty shard
#

if you already have the effect then you have the effect

viral rivet
#

Slowness

hearty shard
#

player.GetEffect<Slowness>()

hearty shard
hearty shard
viral rivet
hearty shard
#

player.EnableEffect<Slowness>()

viral rivet
#

thanks

random scaffold
upper vapor
#

I have no idea what you're talking about

#

Pretty much 0 context

unique crane
main zenith
#

why i cant attach primitive to the player Camera?
PrimitiveObjectToy.Create(player.Camera.gameObject.transform)
this works perfectly fine with player transform but with camera the object is always at 0,0,0 with no rotation

upper vapor
#

Set the position of the primitive to Camera.localPosition

#

The parent should be the player's go

hearty shard
#

Yeah you need a NetworkIdentity on it for it to work

main zenith
hearty shard
#

wont be as smooth

tulip kiln
#

I asked that question not that long ago

#

Since the topic came up, @worthy rune what do you think about this? ^

worthy rune
#

its something thats being looked into

#

no promises

restive turret
#

Soonโ„ข๏ธ

tulip kiln
#

Anyone knows what is the MTF card's permission color? I can't get it quite right with a custom keycard

restive turret
#

Tried to do the same, cant sadly

tulip kiln
#

LabAPI Gods (maintainers) may just throw color values please ๐Ÿ™

#

wait I see that CustomPermsDetail accepts null as the color which will make it default

#

But LabAPI's custom keycard method doesn't allow the color to be null

#

๐Ÿ˜ญ

restive turret
#

F

random scaffold
#

how return old bold style in visual studio

#

very small letters

tulip kiln
random scaffold
#

no

#

its not size

unique crane
#

or something

#

anyways

upper vapor
#

Go into the theme settings

upper vapor
main zenith
upper vapor
#

Hopefullyยฎ๏ธ we will get a more robust system soonโ„ข๏ธ

lethal cradle
#

can someone PLEASE help me get started on writing a plugin my stupid 2 brain cells can't figure out how to like actually open the code in vs

lethal cradle
#

how the hell do i code then ๐Ÿ˜ญ

upper vapor
#

Visual studio code, Rider

lethal cradle
upper vapor
#

Honestly just pick whatever you find more intuitive or more information on

lethal cradle
#

i can't find how to even like get it to work

upper vapor
lethal cradle
#

i already got that

#

and net4.8

upper vapor
#

As a beginner you're probably better off with "regular" vs tho

#

If you don't already have Rider

true cedar
buoyant oyster
#

rider >>>>>>>

upper vapor
lethal cradle
#

i just can't find how to opperate it for SCP SL

upper vapor
true cedar
#

vs is great

upper vapor
#

.NET framework 4.8

true cedar
#

i use it

upper vapor
#

Class library

upper vapor
buoyant oyster
lethal cradle
true cedar
lethal cradle
#

i go to file, new file and make the project with the class library, but can't find the net4.8

upper vapor
#

Istg I'll make templates some day cuz getting started is painful for less experienced devs

upper vapor
#

Show what you've tried

upper vapor
true cedar
#

why is my word not good enough

upper vapor
#

Cuz I thought you're a Rider user

true cedar
#

huh

upper vapor
#

Might be confusing you with someone else

true cedar
#

ive never used rider and i refuse to do so

upper vapor
#

I refuse to go back to VS

#

We've come to a mutual conclusion

buoyant oyster
#

i never used vs in the first place ๐Ÿ˜Ž

upper vapor
#

W

icy knoll
#

i used vs like maybe 5 years ago

#

then learnt about rider

#

switched

buoyant oyster
#

always loved jetbrains ides

icy knoll
#

never went back

buoyant oyster
#

super easy to use

true cedar
#

ik rider has a bunch of suggestions and shit but im good enough at c# where i dont need those

icy knoll
true cedar
#

so i don't see a reason to use it

lethal cradle
#

i opened it in vs and made a 'Class Library (.NET Framework)' in 4.8, so now i have that just opened in vs and not vs code

buoyant oyster
upper vapor
#

Also you never know when it's smarter than you

true cedar
upper vapor
#

Overall feel

buoyant oyster
#

almost everything

upper vapor
#

It's

#

Whole

buoyant oyster
#

just as a whole almost everything about it is better than vs

static osprey
upper vapor
#

Rather barebones

true cedar
#

i have github desktop so

upper vapor
worthy rune
buoyant oyster
#

๐Ÿ‘Ž

upper vapor
#

Comparatively to VSC

worthy rune
#

i stoped using the intergrated git solutions

static osprey
#

i mean ive seen people lose their mind over github as a whole

upper vapor
worthy rune
#

i use git fork client now

upper vapor
#

VS git is uh

true cedar
#

i just dont see a reason to switch

worthy rune
#

from what i remember VS git is fine tho

lethal cradle
#

okay so like im trying to follow the tutorial, it goes from creating the project to some text

worthy rune
#

didnt have issues its just looks outdated

static osprey
#

dont listen to them use what u want

upper vapor
#

Also the decompiler

lethal cradle
#

wait hold on, so i have no idea what the hell i just did, i downloaded the labapi and clicked on this project file and it opened it (attached) what do i do now

upper vapor
#

In Rider is much better

true cedar
#

i just use dnspy lol

upper vapor
#

You need to create a new project

lethal cradle
#

i already did

#

and no idea what to do with it

upper vapor
buoyant oyster
true cedar
#

i do actually despise vs's intellisense sometimes

hearty shard
#

only thing i dont like

#

about rider

#

is it kills itself sometimes

buoyant oyster
#

wdym

hearty shard
#

just doesnt load properly sometimes on startup

buoyant oyster
#

ive never had that happen, might just be an issue on your machine

true cedar
#

in the end visual studio is Not Good but also its what im used to so

lethal cradle
upper vapor
upper vapor
#

if you want

true cedar
#

nah

upper vapor
#

vs settings interface looks absolutely disgusting

#

default windows controls

#

like

#

are we doing wpf?? ๐Ÿ˜ญ๐Ÿ˜ญ

true cedar
#

wait

#

holy shit

#

rider doesn't have rainbow braces for c# unless u pay money LMFAOO???

lethal cradle
#

im installing rider at this point

upper vapor
lethal cradle
#

holy shit my pc is about to explode

true cedar
#

NOTE: If you need C# or C++ support in Rider IDE, these features are only available in the paid version. The Lite version does not include them. Upgrade to the paid version for full functionality.

#

unbelievable

upper vapor
#

who made that plugin

lethal cradle
#

๐Ÿ’”

true cedar
#

zhihao zhang

upper vapor
true cedar
lethal cradle
#

oh thank god

true cedar
#

but its free and built-in in vs

upper vapor
#

-# never

upper vapor
#

well there are those lines that help
still no rainbow braces though

upper vapor
#

some people love installing visual studio bloatware instead of using something lightweight

lethal cradle
#

i used to code in notepad

#

๐Ÿ’”

upper vapor
#

therapy

lethal cradle
#

YES RIDER INSTALLED

true cedar
#

vscode for rust and haskell and everything else

#

vs for c#

upper vapor
#

for one

#

thing

true cedar
#

yup !

upper vapor
#

okay, okay, JetBrains has a separate IDE for many programming languages
BUT
IJ Professional can do web dev, python as well
same for Rider

true cedar
#

i dont do webdev

terse bone
upper vapor
#

neovim

terse bone
#

lightweight

upper vapor
terse bone
#

right

upper vapor
#

that's your level-up message

terse bone
#

lmao

true cedar
#

WHAT THE FUCK WHY ARE THERE SO MANY IDES

upper vapor
#

not a text editor with extensions

icy knoll
upper vapor
#

specially crafted for a given programming language

lethal cradle
#

ok yall i did it

#

now what

upper vapor
#

now you can go back to the wiki toomuchtrolling

lethal cradle
#

it feels so much nicer than vs because i dont have to instal so much

#

ok sir

#

or ma'am

#

idk

true cedar
upper vapor
#

let me just apply at JB and make HaskellWhatever

true cedar
#

haskellkeller

upper vapor
#

๐Ÿ˜ญ

lethal cradle
#

can someone help me get rid of the errors GoodOne

buoyant oyster
#

right click the red things

#

"show context actions"

#

"import missing references in file"

lethal cradle
#

got one of them, the labapi properties, but not this one

restive turret
#

1

#

System.Version

lethal cradle
#

got it

#

thanks

buoyant oyster
#

if you want to use an object type you have to make sure you explicitly say that you want to use the object type, usually when you type it out you can choose to automatically import it by pressing tab (ex: type Player, it should show a pop up menu and you can select which Player type you want to import. the IDE will add the import statement automatically once you select it)

#

also i would not suggest you name your project "demo", xd

#

that was just so i could make the video

lethal cradle
#

ill change it soon enough

#

now i got this problem following the tutorial

#

on the video theres no problem, but here it is

buoyant oyster
#

whenever you see the error line

#

right click it and see the context actions it shows

lethal cradle
#

gives me this

#

if i do the first one adds some weird code and still error line

terse bone
#

try casting MessageDuration to ushort

lethal cradle
#

it already is ushort

buoyant oyster
lethal cradle
#

ok

buoyant oyster
#

can also look at the source for some plugins in #1336031121699377213 if you want to know how to accomplish some tasks

#

i call dibs on not explaining basegame

lethal cradle
#

uhh no idea what that is yet

buoyant oyster
#

you'll definitely need to import some dlls from (SL Dedicated Server location)\SCPSL_Data\Managed at some point, Assembly-CSharp.dll is an important part, you'll absolutely have to import, publicize, and decompile it at some point

#

its deceptively simple but i dont feel like explaining it

lethal cradle
#

northwood loves making this so complicated im still lost ๐Ÿ’”

#

i just want to like say hi on spawn

#

broadcast a message

#

and the amount of redlines is insane

buoyant oyster
#

you're not to the point where bad northwood code would be giving you problems yet

limber silo
#

what does this say

lethal cradle
#

im js copying the first line of code from the wiki and get this

buoyant oyster
#

i would suggest you watch a few tutorials on c# so you can get a feel for project structure and the language in general

lethal cradle
#

i can code in c# but i can't put in a folder into a folder

#

like i have made simple code before and for example 5 way rps, or making tables, or text input games

#

but this

#

no

limber silo
#

go to EventsHandler

#

and show what Problems say

lethal cradle
#

events handler is already deleted thats gone

limber silo
#

aw

#

I was curious what it was

lethal cradle
#

i was following a video on trying to broadcast a message when you join

royal mica
#

if I understand you correctly

buoyant oyster
#

writing simple console apps is very different from what youre doing rn yea

viral rivet
#

Is there any news on this issue?

lethal cradle
#

it doens't help that english is my 3rd language bro help me

plain gazelle
viral rivet
#

HahaSCP330Pink sadness

unique crane
restive turret
#

Sometimes scale not sync

#

even faking the scale sometimes not works

#

so

restive turret
viral rivet
# plain gazelle Idk, i filed a bug report about it...

i fixed it by adding this in the event handler

    public override void OnPlayerJoined(PlayerJoinedEventArgs ev)
    {
        if (SCP999.Player999 != null) {
            ev.Player.SpawnNetworkIdentity(SCP999.Player999.ReferenceHub.netIdentity);
        }
    }```
lethal cradle
#

i can't find how to fix this

#

how do i add a reference?

restive turret
#

In JetBrains Rider 2023.2.3, Iโ€™m encountering an issue where I canโ€™t open a .dll assembly file located at a specific location, as indicated by a red arrow on the screen, and Iโ€™m seeking assistance from someone experienced with JetBrains Rider 2023.2.3 to help me resolve this problem. Specifically, Iโ€™m attempting to open an extension file...

#

Search engine is on your side

#

๐Ÿ™

static osprey
restive turret
#

he didnt added the ACS as a reference

upper vapor
tulip kiln
#

at some point I just went with manually adding references to csproj

icy knoll
#

i still do that

#

because when you do this, afaik it does the path and not $(REFERENCES)\Dependency.dll

tulip kiln
#

yeah

#

Though my reason was Visual Studio saying "This reference is invalid" or some other similiar crap, yet it would work perfectly fine when forced into the csproj file

icy knoll
#

sorry for the silly question guys, how would I replace smth like this with a different number in IL?

#

like ive matched it but ive never needed to replace a value like this with a new value

buoyant oyster
#

but its easier to understand for someone thats new and it still works

icy knoll
true cedar
#

if you set the operand to 5 as an int it won't work for example

icy knoll
true cedar
#

yea

#

but if you do like

icy knoll
#

that's my code

#

lol

#

should work fine hopefully?

#

maybe i should add a check for 25f as well

true cedar
#

yea

#

ive just done stuff like (OpCodes.Ldc_R4, 10) too many times

true cedar
#

well doesnt work cause lkke

#

its a type mismatch

#

but it always gives u a super cryptic error

lethal cradle
#

GUYS

#

I HAVE FINALLY MADE

icy knoll
#

i cant believe the f just is basically a type cast for float lol

lethal cradle
#

A WORKING PLUGIN

#

HOLYYY SHIII

#

i did

#

it

#

wow

#

only 9 projects needed

true cedar
#

calling it is a type cast is

teal junco
#

Does anyone know how I can find a given Dummy's actions? And how I can find its keyboard/mouse emulator?

#

I found a class that might be relevant, but idk

#

one sec

#

DummyKeyEmulator

I noticed that the actions dont consistently populate which worries me.

unique crane
lethal cradle
#

now i gotta figure out how to test it...

upper vapor
#

"a working plugin (it compiled)"

#

you have to put the built dll into the plugins folder

#

check the "installing plugins" article

celest thorn
#

already

#

if it compiles

#

its already a massive win

slender lynx
#

compile complete (654 warnings)

upper vapor
#

are you sรถr about that

upper vapor
celest thorn
slender lynx
#

example, killing everyone's ears in the gtag tourney

celest thorn
restive turret
lethal cradle
#

whenever i try to run my plugin i get ts what the heck man

lethal cradle
#

im sorry if im missing something stupid

icy knoll
#

you need the dedicated server

#

not the game

lethal cradle
#

OHHHHH

icy knoll
#

ofc that will throw

lethal cradle
#

ok ty

restive turret
#

:DDDD

pine parcel
#

I've tried digging around, how do I get a dummy to fire a gun?

random scaffold
#

nw moment

#

even dont wanna load lol

#

nothing in localadmin log

lethal cradle
random scaffold
#

its panel

#

which need install local

#

but problem stay

lethal cradle
#

what

random scaffold
#

it dont wanna load the server

random scaffold
lethal cradle
#

like where do i find that

random scaffold
#
lethal cradle
#

thank you

random scaffold
#

load the server take 2 minutes SteamHappy

lethal cradle
#

it takes me about 5 minutes on the old loader i used

#

๐Ÿ˜ญ

random scaffold
lethal cradle
#

maybe

random scaffold
#

its that

#

on local it taken 10-15 seconds

teal junco
grand flower
#

check how the dummy action to shoot a gun does it

teal junco
#

That relies on whether the server populates the actions correctly

#

anyhow, a good place to investigate would probably be PopulateDummyActions on FpcModule, and ItemBase

#

but im kinda clueless on how that works

#

but its a good starting point i think

harsh thorn
#

or your servers io is slow

#

if your cpu is low clockspeed itl take longer to start if you limit it to X threads

hearty shard
pine parcel
grand flower
#

You don't have source code access no

#

but you can decompile the assemblies in the game

#

Your IDE probably has a way to do so, otherwise there's ILSpy or dotPeek

pine parcel
#

I'm using VS community, so nothing crazy, but it seems to expose some of the dlls, just not sure how much it can't decompile

hearty shard
#

However

#

You can use tools to decompile the assembly

#

reminder to only do this on server files

#

Client files are intended to be less visible

#

and harder to read

pine parcel
#

that makes sense, and to be fair, writing plugins I don't see what need I would have for how the client interacts, no?

hearty shard
#

yeah

#

Well

#

Sometimes its nige

#

Nice

#

Because it provides how client handles stuff that server sends and can explain bugs sometimes

#

But for that, just ask here and you'll try and be helped

harsh thorn
#

most new stuff has less code stripping

#

only core elements needed to be a client (or older code) are stripped

hearty shard
#

i assume so

hearty shard
#

Or easier

harsh thorn
hearty shard
#

makes sense

grand flower
#

is there a way to determine how a player became a spectator

#

i.e. just connected, suicide, killed by a player etc

hearty shard
#

its stored in the role

#

But

grand flower
#

what about suicides/killed by another player

hearty shard
#

It doesnt have much detail

hearty shard
#

Store detains

#

Details

grand flower
#

I guess yeah

hearty shard
#

Other than that idk

grand flower
#

that'd work

hearty shard
#

would be cool if it was stored

#

by nw

random scaffold
harsh thorn
#

idk then LaserShrug

#

server loads fast for me

random scaffold
random scaffold
plain gazelle
#

I can make a Dummy follow me, but is it possible to make a Dummy follow someone else?

#

With just the RA panel?

slate flume
#

Sometimes this grenade explodes at the player instead of shooting off like it's supposed to

slate flume
plain gazelle
slate flume
#

The base-game implementation only allows you to toggle it for yourself afaik

pine parcel
#

anyone know how to track when an item is given to a player via admin panel?

#

like what the event is

upper vapor
#

ItemAddedEvent or.somethong

#

Reason RemoteAdmin

pine parcel
#

perfect, thanks!

upper vapor
#

Np

upper vapor
grand flower
#

@teal junco curious about your demo system

#

Did you handle ticks having different delta times (server lag)?

teal junco
#

No i didnt

#

Im not sure how to

grand flower
#

Fair enough

#

Writing my own atm heh

#

Probably just gonna store the delta time and play ticks until I run out of budget for the frame or something

teal junco
#

id like to see yours at some point

grand flower
#

idk if I'll be able to show code, just a video of it working maybe

teal junco
#

it would cause the demo files to be a good portion bigger though, from storing delta time for every single frame

grand flower
#

Maybe yeah

pine parcel
#

so, I'm trying to mess with the behaviour of what happens when the rubber ball is thrown.

I've figured out that the PlayerEvents.DroppedItem works for triggering when the ball is dropped, but PlayerEvents.ThrewItem doesn't work for when the ball is thrown, any ideas?

grand flower
#

ThrewProjectile iirc

pine parcel
#

I'll take a look, ty!

upper vapor
grand flower
slim rose
teal junco
#

DummyKeyEmulator?

#

Im not sure how to use that, I will look into it later though

restive turret
#

If you already have the dummy saved just get Inventory, the gun itself, and fire

slim rose
teal junco
slim rose
restive turret
covert flame
# upper vapor it's temporary

Hey so uhh, quick question, what changes it back, and by that I mean why does showting/hiding your tags (via commands or code), change you back into your original group, and how do I make it not do that?

upper vapor
covert flame
upper vapor
#

yep

covert flame
#

Thank you very much

covert flame
# upper vapor yep

One last thing, again, thank you so much for helping, I dont think this is a plugin thing, like at all, but when you hide your own badge, should you not be able to see it with the hidden attached on the end, or does the player need the ViewHiddenBadges permissions (but doesnt that permissions let them see all hidden badges)?

hearty shard
#

me when i

icy knoll
#

me when i just found out that System.Text.Json exists inside of the game's dependencies... i can finally get rid of newtonsoft ๐Ÿ˜ญ

hearty shard
#

๐Ÿ’”

#

oh yeah

#

thats why

#

hmm

hearty shard
#

damn...

#

cant use this with -0.1

#

๐Ÿ’”

random scaffold
#

which layer by default?

#

on primitives

harsh thorn
#

Default

random scaffold
#

..

#

which number

icy knoll
#

0

#

default is 0

hearty shard
#

what is the tick rate

#

of Scp207

harsh thorn
#

idk

hearty shard
#

can u check !!

harsh thorn
#

look yourself

random scaffold
#

nw moment

icy knoll
#

all i know is that it's atleast 1 tps

hearty shard
harsh thorn
#

cuz thats what i would need to do

hearty shard
#

its serialized kek

unique crane
#

30 secs

#

im about to open unity anyways

hearty shard
#

see david gets it

icy knoll
#

close it david

#

close it

unique crane
#

Okay

icy knoll
#

let eve logger.debug it

hearty shard
#

i will NOT

unique crane
#

Too bad

icy knoll
#

hehe

unique crane
#

Or just

#

use stopwatch

icy knoll
#

youre the only person in the world that talks about stopwatch david

icy knoll
#

wow ok

unique crane
#

@hearty shard How many times could you print it already

hearty shard
unique crane
#

How so

hearty shard
#

anyway

#

me when i accidentally make my max hp 0

icy knoll
#

taking a long time for a couple srs smh

unique crane
#

@hearty shard Its 1 second

hearty shard
#

oh

#

so default

#

okay

unique crane
hearty shard
#

thats so fire

#

whats the multipliers

#

i forgot

#

i dont have the original damage values anymore

unique crane
hearty shard
#

YUCK

#

ok anyway whats the post processing handling now im just curious

#

hows it work* i mean

unique crane
#

I guess its the intensity of the post processing effect?

#

like what else do you think it is

hearty shard
#

hows it work though

unique crane
#

Opacity maybe

pastel bramble
#

i got a problem with perms

#

doono how to fix it

unique crane
hearty shard
#

hm

#

maybe

royal mica
pastel bramble
#

well im the server owner and i dont have perms for usiong mer commandsa

#

jesus my typos

hearty shard
#

you need to give yourself perms in the permission file

pastel bramble
#

could you expolain it to me

#

first time doing it

hearty shard
#

although

pastel bramble
#

yeah found it

hearty shard
#

if ur group is called "owner" should be default all perms

#

wait is project mer or MER

#

and r u using cedmod

pastel bramble
#

no

#

not using cedmod

#

ive been migrating all plugins from nw api to labapi

#

i gtg il be back in a bit

#

but this is how it looks like

hearty shard
#
default:
  inherited_groups: []
  permissions: []
owner:
  inherited_groups: []
  permissions:
  - .*
pastel bramble
#

ok

#

il try that

#

ok it worked

worn gull
#

Is this a plugin error [2025-06-23 17:09:46.327 +02:00] [STDOUT] ArgumentException: Destination array was not long enough. Check destIndex and length, and the array's lower bounds Parameter name: destinationArray at System.Array.Copy (System.Array sourceArray, System.Int32 sourceIndex, System.Array destinationArray, System.Int32 destinationIndex, System.Int32 length) [0x000cb] in <069d7b80a3914a08b6825aa362b07f5e>:0 at System.Array.Copy (System.Array sourceArray, System.Array destinationArray, System.Int32 length) [0x0002c] in <069d7b80a3914a08b6825aa362b07f5e>:0 at InventorySystem.Items.Autosync.AutosyncMessage..ctor (Mirror.NetworkWriter writer, InventorySystem.Items.ItemIdentifier itemId) [0x0004e] in <d9731e675e55453197cf28cd60eed3f2>:0 at InventorySystem.Items.Autosync.AutosyncWriterBase.Send () [0x00010] in <d9731e675e55453197cf28cd60eed3f2>:0 [2025-06-23 17:09:46.327 +02:00] [STDOUT] at InventorySystem.Items.Autosync.AutosyncWriterBase.Dispose () [0x00000] in <d9731e675e55453197cf28cd60eed3f2>:0 [2025-06-23 17:09:46.327 +02:00] [STDOUT] at InventorySystem.Items.Autosync.AutosyncItem.ServerSendTargetRpc (ReferenceHub receiver, System.Action`1[T] extraData) [0x00020] in <d9731e675e55453197cf28cd60eed3f2>:0 [2025-06-23 17:09:46.327 +02:00] [STDOUT] at InventorySystem.Items.Keycards.ChaosKeycardItem.ServerOnNewPlayerConnected (ReferenceHub hub) [0x00007] in <d9731e675e55453197cf28cd60eed3f2>:0 [2025-06-23 17:09:46.327 +02:00] [STDOUT] at InventorySystem.Items.Keycards.KeycardItem.<OnTemplateReloaded>b__46_0 (ReferenceHub hub) [0x00008] in <d9731e675e55453197cf28cd60eed3f2>:0 [2025-06-23 17:09:46.327 +02:00] [STDOUT] at (wrapper delegate-invoke) System.Action`1[ReferenceHub].invoke_void_T(ReferenceHub) [2025-06-23 17:09:46.327 +02:00] [STDOUT] at (wrapper dynamic-method) ReferenceHub.ReferenceHub.Start_Patch2(ReferenceHub)

#
[2025-06-23 17:09:53.348 +02:00] [STDOUT] Parameter name: key
[2025-06-23 17:09:53.348 +02:00] [STDOUT]   at System.Collections.Concurrent.ConcurrentDictionary`2[TKey,TValue].ThrowKeyNullException () [0x00000] in <069d7b80a3914a08b6825aa362b07f5e>:0
[2025-06-23 17:09:53.348 +02:00] [STDOUT]   at System.Collections.Concurrent.ConcurrentDictionary`2[TKey,TValue].TryRemove (TKey key, TValue& value) [0x00008] in <069d7b80a3914a08b6825aa362b07f5e>:0
[2025-06-23 17:09:53.348 +02:00] [STDOUT]   at RemoteAdmin.QueryProcessor.OnDestroy () [0x00018] in <d9731e675e55453197cf28cd60eed3f2>:0```

```[2025-06-23 17:11:25.426 +02:00] [STDOUT] NullReferenceException: Object reference not set to an instance of an object
[2025-06-23 17:11:25.426 +02:00] [STDOUT]   at InventorySystem.Items.Firearms.Modules.EventManagerModule.LateUpdate () [0x00006] in <d9731e675e55453197cf28cd60eed3f2>:0```
#

It just happened

#

No previous error

#

After round restart

grand flower
#

Northwood

pastel bramble
#

not from what ive read

grand flower
#

Happens to us too

#

It's the networked snake game

pastel bramble
#

anyone can tell me how to use mer for a few stuff like changing door perms

#

and spawning items

brazen dune
#

you dont need MER to do that

brazen dune
pastel bramble
brazen dune
royal mica
pastel bramble
#

spawned doors

#

i fugured it out tho

#

i just need helkp with having it spawn in on round start

#

il have a lok

heady turret
#

@unique crane do you know what width and height for canvas that i can make a hint in unity for easier posing in plugins?

hearty shard
#

omg david

#

did u fix the black screen yet

pastel bramble
#

i need some help with MER

#

cant get it to load

#

my map

#

life sucks

heady turret
true cedar
#

gimme a sec

heady turret
hearty shard
#

pai moment

#

nerd..

true cedar
#

mine is off by a little bit

#

it might be the font idk

unique crane
#

Ill just look in latest master

#

It didnt change at all

true cedar
#

i think it might be a unity version thing

#

because i remember the line height being 40.665 when i tried it out with unity like a year ago

#

but now its 39.9

#

but the base game still has it as 40.665

#

yes i actually need my model to be that precise

grand flower
#

Anyone else get a bug with players sometimes not getting the Pocket Corroding effect in the PD

#

They just stay in there with no damage over time

#

Dunno if it's us or a NW bug

true cedar
#

that happens if u dcreplace i think

#

if you dcreplace and then escape it sends you back to the pocket dimension w/o corroding (at least it used to do that)

#

i thought i fixed it but maybe i didnt teehee

grand flower
#

Huh, interesting

#

I'll try that out ty

#

Did rewrite the whole player cloner stuff and I do remember setting up the PocketCorroded stuff so I'll chdck

#

no QA says they tried that and it's not dcreplace

#
  public override void OnTick()
  {
    if (!NetworkServer.active)
      return;
    RoomIdentifier room;
    if (this.Hub.TryGetLastKnownRoom(out room) && room.Name == RoomName.Pocket)
    {
      this.Hub.playerStats.DealDamage((DamageHandlerBase) new UniversalDamageHandler(this._damagePerTick, DeathTranslations.PocketDecay));
      this._damagePerTick += 0.1f;
    }
    else
      this.ServerDisable();
  }

this is PocketCorroding's tick so I wonder if it just disables itself because for some reason you're not marked as being in the PD

upper vapor
upper vapor
grand flower
#

I'm just gonna patch it to get the current room of the player if last known room isn't correct

upper vapor
grand flower
#

not like it's expensive to do

ashen hornet
#

not sure if it works tho, it did for me the last time I tested it

unique crane
#

@heady turret @true cedar

hearty shard
unique crane
#

id rather explore alternatives

#

to hints

hearty shard
#

yeah

#

but yk what i mean

upper vapor
#

texttoy parented to the camera

hearty shard
#

or or

#

ban you

upper vapor
hearty shard
#

that one

#

anyway

#

david have u fixed black screen yet

tulip kiln
hearty shard
#

david can you fix the game

true cedar
hearty shard
#

release 16.0 already

true cedar
#

of roboto light

upper vapor
#

๐Ÿ™

tulip kiln
#

the david wish list grows even larger

upper vapor
#

real

hearty shard
#

i was gonna make a bug report on labapi

#

and then i forgot

#

the bug

#

that was yesterday and i still dunno what bug it was lol

hearty shard
#

or EXILED

#

or both

unique crane
#

Must be exiled

hearty shard
lethal cradle
#

How can i give a player an item when a bool has success like how do palce it into thier inventory, whats the command if i have for ex

if (success)
  response = "The Coin has spawned!";
else
  response = "Failed to spawn your coin :(";
return true;```
for the Item.Dictionary.Add how do i make it to give a coin?
hearty shard
#

player.AddItem

lethal cradle
#

oh

#

thank you

hearty shard
#

it returns the item

#

so bool success = player.AddItem() != null;

true cedar
lethal cradle
#

thank you

#

alright i got it thank you!!

hearty shard
#

why does this not have

#

ItemAddReason

unique crane
#

@true cedar this?

upper vapor
#

cuz nobody PR'd it

true cedar
#

point size and what ot

#

u have to click on the font file i think

hearty shard
upper vapor
unique crane
true cedar
#

YES

#

point size of 90 tho what the scallop

hearty shard
#

pai

true cedar
# unique crane

this is a big ask but is it possible for u to send the font file

#

i will forever be indebted to u

upper vapor
#

what if i said

true cedar
#

i think i have that hut

#

but

#

idk if its the right one

upper vapor
#

it's from the SL files

#

david has the "original" ig

unique crane
#

Its not like its changed or whatever

true cedar
#

well Idk

#

!

#

maybe im using the wrong font file

#

@hearty shard its all ur fault

unique crane
hearty shard
#

WHAT THE FUCK

#

I HATE YOU

#

@upper vapor ur next btw

upper vapor
#

i hate me too

hearty shard
#

ur just not safe

upper vapor
#

i checked unsafe code in the project settings

#

are you gonna invade hungary before i invade denmark?

upper vapor
unique crane
#

Maybe

upper vapor
#

david...

#

is this true

unique crane
upper vapor
#

if you pronounce it, you get kuszkusz

hushed ember
#

Prob not the right channel but can anyone tell me the character limit a cmdbind command can have?

unique crane
tulip kiln
random scaffold
#

how i can protect destroy button?

#

by event?

icy knoll
#

primitive TrollDespair

random scaffold
#

i wanna easier way

#

but also

#

how i can spawn human target?

upper vapor
#

contains "Dboy"

#

probably not the same case

random scaffold
#

why wrapper dont have it

#

bruh

frank flicker
#

Has anyone been able to compile plugins that use C#12 on linux? It would almost be less of a headache to just code with C#9 and not use a windows vm, if I wasn't coding for someone else's repo.

#

Like I've got the newest dotnet things and mono, but they don't talk to each other

true cedar
#

no

restive turret
#

Net8 and net9 probably

true cedar
#

and u can use newer c# versions but some features wont work

restive turret
#

Works on my Manjaro VM system

#

You can just that with.

dotnet --list-sdks

frank flicker
#

For me its either "12 doesnt exist" or "idk how to compile to net4.8"

restive turret
frank flicker
#

I've got 8.0.117

restive turret
#

Also you might need to upgrade your csproj to the new style

#

Are you sure you compile with dotnet and not mono?

frank flicker
frank flicker
#

Will try that, thanks

restive turret
random scaffold
#

why its called before spawn but its show same?

hearty shard
#

because size is reset on role change

#

also localScale isnt synced

random scaffold
random scaffold
hearty shard
random scaffold
#

its for legs of the target toy

hearty shard
#

oh

#

you have to adjust the entire thing

#

Admin toys are synced with their scale yeah

#

But it doesnt do that with every bit of it, its all or nothing

random scaffold
#

then how i can remove legs?

hearty shard
#

@unique crane ^

#

Right

#

You cant delete a specific part of a d boy target

unique crane
#

No this is all under a single netidentity

hearty shard
#

Thought so

random scaffold
#

bruh

untold raft
#

What is difference between RoleBase.Team and .Team

random scaffold
#

nothing

#

.Team => RoleBase.Team;

untold raft
#

In Labapi Exist something similar in exiled call Role Side?

hearty shard
#

Basegame

untold raft
#

Okay thank'u

#

Is It FoundationForces and EnemyForces or this is something different?

hearty shard
#

Enemy is chaos etc

#

i dont rememeber what Faction has specifially

frank flicker
# restive turret You can try building this since this tested on my manjaro vm. <https://github.co...

ok I think I've spent long enough fumbling about to ask for help ๐Ÿ™ƒ
Where? I've tried a few different places and tried REFERENCES_PATH too with no luck (missing every assembly that is in the Managed folder). I'm new to both rider and this version of .csproj stuff now so I don't know where much is lol
I'm sure theres a file I could directly modify outside Rider to set it but at this point I'm SCP956CapybaraSpin

restive turret
#

Pff are you sure there SL_References point inside, so the end of it is /Managed?

frank flicker
#

yep, although its the home directory with a name that will doxx me, not sure if that should be a different/generic path instead somehow?

#

/home/basically my full name because I make poor decisions/.local/share/Steam/steamapps..../Managed

#

thanks for indulging me btw kek

#

clearly I didn't set them hard enough

grand flower
#

Is the start position of elevators based on map seed

pine parcel
#

Is there any way to override the default value for things like health of an scp in a plugin

teal junco
#

its crazy

#

there was a team enum that represented MTF (and guards), D class, Scientists, and chaos

#

and there is faction

#

I think spawnable faction

#

and leading team iirc

covert flame
restive turret
upper vapor
#

create a ProejctName.csproj.user file

#

(in the same dir as the main csproj)

restive turret
covert flame
restive turret
#

What

#

Oh

#

Its not plugin issue

#

If you remove your tag it will remove for you

#

So you locally it will not display

covert flame
#

Yeah but is the tag not meant to be the tag, greyed out and have (hidden) on the end

royal mica
#

for the terminal to work, you need to explicit set in your environment

frank flicker
restive turret
#

Linux issue ClassDTroll1

restive turret
#

Probably

royal mica
#

depends on the distro, that works only for that sessioin

restive turret
#

Just don't close the terminal

royal mica
#

To make it permanent, you need to put it in ~/.bashrc or the shell equivalent

restive turret
#

or /etc/profile i think

#

Idk

royal mica
#

that is system wide

restive turret
#

Not really used linux for these

royal mica
#

Personally I love linux and hate windows with a burning passion, but that is me

restive turret
restive turret
#

Something easier on linux something easier on win

royal mica
#

Each has tradeoffs yeah

#

Atleast we are able to choose what works the best

restive turret
#

I have vm for Linux for reason

icy knoll
restive turret
icy knoll
#

me when your pc will degrade

restive turret
#

degree deez nuts

royal mica
slate flume
#

I'm going crazy

#

I've spent the last 20 minutes trying to figure out why causing an explosion is damaging no one

#

Gonna crash out istg

royal mica
#

Event? IsAllowed = false? Not a real grenade?

slate flume
#

Well I think I know the problem now

#

One sec lemme check before I sound stupid

worthy rune
slate flume
#

Okay nvm I was wrong I didn't know the problem

#

I thought maybe the problem was some bullshit I read earlier

#

So I did

#

But that didn't fix it

#

This sucks

royal mica
#

I assume the Friendly Fire does not work, right?

slate flume
#

Yeah none of this works

royal mica
#

Does the explosion work for non friendly role?

slate flume
#

They're a tutorial

#

I'm a zombie

#

It just doesn't work

#

Lmao

#

Oh

#

Am I stupid

#

Lemme check

#

Yeah no

#

They're not spawn protected

royal mica
#

I assume not god mod either

slate flume
#

Nope

royal mica
#

does a ClassD die?

slate flume
#

No

upper vapor
slate flume
#

I love thoughts

upper vapor
#

nv,m

slate flume
#

Damn

royal mica
#

I'm very confused why that doesn't work

upper vapor
#

ExplosionSpawningEventArgs check this

royal mica
#

Wait, can spectators even damage people?

upper vapor
slate flume
#

Okay I discovered something

#

The person that kills me takes no damage

#

Everyone else does

upper vapor
#

can you show the damage handler, what its values are

slate flume
#

Like which values

upper vapor
#

wait

slate flume
#

๐Ÿ‘๐Ÿผ

upper vapor
#

onplayerdeath is called after the zombie dies

slate flume
#

Yes

upper vapor
#

so the footprint's role is spectator but that shouldn't be an issue i don't think

slate flume
#

Even if it was

#

I added the

#

Friendly fire

upper vapor
#

how about you store the footprint in Dying and retrieve it in Death

slate flume
#

Well the thing is

slate flume
#

If the footprint was the issue, wouldn't it mean no one gets damaged?

#

The explosion itself seemingly works for everyone except for the person who kills me

#

It damages, doors, other players

#

Just not that one person

upper vapor
#

how is a dead zombie supposed to be damaged

slate flume
#

I spawned two dummies

#

The one who killed me no die

#

The one who didn't kill me died

#

Both were tutorial

#

Both were right next to me

upper vapor
slate flume
#

Let me clip it

#

I'll show you

upper vapor
#

so what's happening is
zombie dies, which spawns an explosion

#

right?

upper vapor
slate flume
#

Might be a sec lol

#

The only one alive is the person who killed me

upper vapor
#

what the flip

#

okay

#

idea

#

0.1f delay