#plugins-dev-chat

1 messages · Page 2 of 1

unique crane
#

You just dont have implemented stuff it seems

upper pike
#

I just want to make it say Coolio when i start the server

#

Why is my class declaration an error

unique crane
#

Well if you hower over it then the IDE should help you..

unique crane
scarlet cobalt
#

wait?

unique crane
scarlet cobalt
unique crane
#

??

upper pike
#

The dark mode really helps me understand ClassDTroll

hidden hearth
unique crane
#

Am I blind or

#

I dont get it

upper pike
#

Anyway am I missing a reference?

scarlet cobalt
#

didn't anyone notice it was misspelled?

unique crane
#

oh

violet basin
#

Damn, completely unusable now

scarlet cobalt
#

is RegisterEventsHandler not RegisterEventHandlers
is UnregisterEventsHandler not UnregisterEventHandlers

hidden hearth
limber silo
#

It is a custom events handler

#

Not a custom event handlers

#

So registercustomeventshandler would be the correct term

#

but it was actually discussed when it was being implemented KEK

#

which is why the docs say event handlers

scarlet cobalt
#

lol

limber silo
#

right click on the error and it will say "Add missing interface members"

#

or smt like that

upper pike
#

Turns out i had to write the Disable function first

limber silo
#

yeah it is mandatory to write it

#

or it will give that error

#

same with enable

upper pike
#

Fair enough

lucid canyon
#

REMOVE RATELIMIT OF HINT???? ohhhh yeah i like it

random scaffold
#

☠️

plush crypt
#

i may sound stupid but do i need a nugget package or smth so i can create a plugin?

icy knoll
#

you just need the .dll

unique crane
#

Aswell as other required dlls like assembly-csharp and such

plush crypt
icy knoll
unique crane
plush crypt
pulsar locust
#

(I already told them about the wiki I just wanted to bother them a bit :3)

upper pike
spare zodiac
upper pike
#

What's it called?

spare zodiac
#

It's not hard in rider

upper pike
#

I have no idea what im doing

carmine prawn
#

I'm coming! LabAPISteamHappy

unique crane
upper pike
#

Im using the wrong logger?

unique crane
#

yea

upper pike
#

I thought as much

unique crane
#

One sec

upper pike
#

Shit

unique crane
#

using Logger = LabApi.Features.Console.Logger;

upper pike
#

Istg i was looking through the LabApi stuff for something like that and i couldn't find it

#

Thank you

restive turret
inner citrus
#

the fact someone called it Logger and not log

upper pike
#

Honestly deserve to go to hell

inner citrus
#

so true

upper pike
#

Programmer hell

inner citrus
upper pike
#

That's too much

inner citrus
#

no its not

#

the fact that its Logger and not log is too much

upper vapor
unique crane
#

We might rename it yea

#

Problem is that its going to break everything for everyone xd

upper vapor
inner citrus
#

it will break everything for everyone if you do it too late

upper vapor
#

Log clashes with GameCore.Log which is also annoying though less confusing than UnityEngine.Logger

restive turret
#

or just break it now and let them fix ClassDPlushie

inner citrus
#

also Log was used in PluginAPI and EXILED and i guess some people are really used to it after years

#

its better to break something in beta and not when its released

upper vapor
#

I coped hard when writing this

#

(The logger alias)

#

I could've kept it as Log and then I wouldn't have had to change much code

restive turret
#

rename everything ClassDTrollHD

mild ice
#

Where's the fun without a few breaking changes every update

restive turret
#

just a few?

mild ice
#

You could always add a number to each class and increment it each update

restive turret
#

Scp049_124163

limber silo
#

The benefit of using Logger is it won't collide with Exiled Log and GameCore Log however it will collide with UnrealEngine Logger

spare zodiac
limber silo
#

😭

bitter scroll
#

switching to unreal legoo

#

i heard unreal is actually dogshit ngl

unique crane
#

we are switching to roblox

red tide
#

SCP:SL in roblox no way

bitter scroll
#

finally a game engine i'm familiar with

limber silo
restive turret
#

untiy crying in the corner rn

unique crane
#

Or Cry engine

limber silo
#

Isnt it open source

restive turret
#

Faring the Cry Engine?

limber silo
#

Isnt that the one they forked to make star citizen

restive turret
#

crytek one?

limber silo
#

aka the most unoptimised game ever

unique crane
#

I think CryEngine is open source

#

but Im not sure

restive turret
#

ye, but u need to create account and stuff for like unreal

#

so i declare that as a half one (as like unreal)

unique crane
#

KCD has their own version of CryEngine too

plush crypt
#

What does connector stop and connector start do?

restive turret
#

it is an example

plush crypt
restive turret
#

if you make a class that initialize stuff and then stop stuff (like connection to your server, or something) then usable

#

for example when using older EventCalls subscribe on Enable, it is good thing to unsub when disable

#

like this

ashen hound
#

also theres hot reloading support if someone didnt notice

#

you can just replace dlls and reload server

restive turret
#

hmm will check that

ashen hound
#

again you need to make sure to destroy stuff properly same with unregister events

harsh thorn
#

Keep in mind hot reloading is meant for development purposes)

ashen hound
#

doing this on live server with players may end badly xd

harsh thorn
#

As it will wipe all your property values clean as if the server just started

#

But i have some ideas to make it fullproof

untold raft
#

How to check if a player has a specific effect active?

untold raft
inner citrus
#

hi blind im Taj

restive turret
#

hi blind, im slejmur

untold raft
#

XD

plush crypt
stuck peak
#

GULP germans

late shoal
plush crypt
idle depot
regal lakeBOT
plush crypt
idle depot
#

@late shoal +

hearty shard
#

ban incoming

plush crypt
#

And I'm not gonna join trashlab

#

Nothing against moonlab but I heard that they are doing a ban leaderboard or smth

late shoal
dire pivot
stuck peak
carmine prawn
#

Can we register all CustomEventHandlers class events at once?

stuck peak
#

you mean override all of the handlers?

stuck peak
carmine prawn
#

nope, I have a lot of class that need to inherit from CustomEventHandlers

stuck peak
#

not built in, but you can use reflection if you want

carmine prawn
#

ok, I'll try

restive turret
#

that just u can use the eventHandlers/Action subscribbe

stuck peak
# carmine prawn ok, I'll try
List<Type> types = Assembly.GetExecutingAssembly().GetTypes().Where(t => t.IsSubclassOf(typeof(CustomEventsHandler)) && !t.IsAbstract).ToList();
foreach (Type type in types)
{
    CustomHandlersManager.RegisterEventsHandler((CustomEventsHandler)Activator.CreateInstance(type));
}
carmine prawn
#

thanks!

stuck peak
#

you'd want to keep track of the instances though to unregister them later

still notch
stuck peak
# still notch wait what

has been possible for a while (I mean if you made your own plugin framework or plugin loader)
easier now since the Unity update (the one a couple years ago)
but even before you could read the bytes of the dll directly to then create an Assembly and load that

restive turret
# stuck peak you'd want to keep track of the instances though to unregister them later

yup you can do

List<CustomEventsHandler> Handlers = [];

public override void Enable()
{
  List<Type> types = Assembly.GetExecutingAssembly().GetTypes().Where(t => t.IsSubclassOf(typeof(CustomEventsHandler)) && !t.IsAbstract).ToList();
  foreach (Type? type in types)
  {
      if (type == null)
        continue;
      CustomEventsHandler handle =  (CustomEventsHandler)Activator.CreateInstance(type);
      CustomHandlersManager.RegisterEventsHandler(handle);
      Handlers.Add(handle);
  }
}

public override void Disable()
{
  foreach (CustomEventsHandler handle in Handlers)
  {
      CustomHandlersManager.UnregisterEventsHandler(handle);
  }
  Handlers.Clear();
}
still notch
#

i trough it was for labapi

stuck peak
#

yes labapi has built in support

#

KurvaMainframe is/was my own plugin framework

I called 'Plugins' 'Modules'

random scaffold
#

when labapi will be added to main thread?

stuck peak
#

what do you mean

upper vapor
#

And at least 1 month from now

random scaffold
untold raft
#

How to get Amount of damage in PlayerHurtingEventArgs

upper vapor
#

cast the damagehandler to StandardDamageHandler

stuck peak
upper vapor
#

exactly

stuck peak
#

(currently every DamageHandler inherits from StandardDamageHandler so the if statement will always be true unless something weird happens)

untold raft
stuck peak
#

then you can check the ExplosionType

upper vapor
#

(i've tried making something like that but failed miserably)

cyan crown
carmine prawn
ashen hornet
#

btw guys, does player.Items work for you

#

for example simple foreach

carmine prawn
#

what about PlayerStats.OnAnyPlayerDamage

carmine prawn
stuck peak
#

oh i see what you mean nvm I didn't remember the context

#

but if you use OnPlayerHurt you can check the DealtHealthDamage after casting to StandardDamageHandler

carmine prawn
#

yes, I found it, thanks

restive turret
#

lmao okay, funny, Headless server cant display hints ClassDPlushie

stuck peak
#

headless build doesn't have a hintdisplay YesYes

untold raft
#

Jailbird has wrapper for pickup?

restive turret
#

lmao, I guess it does not like I setting server to roles

upper vapor
#

also, try player.ClearInventory

restive turret
#

I just used
player.ClearInventory(true, true);

upper vapor
#

right cuz

#

omfg

#

ConcurrentModificationException

unique crane
#

I dont think that player.Items return a new iterable

#

it just returns the dictionary's values

#

So if any gets deleted during the proccess

unique crane
#

bye bye

ashen hornet
#

InvalidCast?

unique crane
#

Most likely ConcurrentModificationException I would guess

ashen hornet
#

cause it doesn't work for me, I want to be sure it doesn't work for someone else before trying to fix it

unique crane
carmine prawn
#

💀

#

stupid revolver ammo

upper vapor
#

JailbirdPickup is a base-game class

#

if the namespace doesn't start with LabApi, it's not a LabApi thing

#

use ev.Pickup.Base to get the base-game pickup

stuck peak
upper vapor
#

just call .ToArray() after this.Items

ashen hornet
#

this results in exception

unique crane
ashen hornet
#

InvalidCast

stuck peak
ashen hornet
#

public IReadOnlyCollection<Item> Items => (IReadOnlyCollection<Item>)Inventory.UserInventory.Items.Values.Select(Item.Get);

upper vapor
#

or no?

ashen hornet
#

now it's LabAPI item

unique crane
#

It says what it couldnt cast to something else

carmine prawn
upper vapor
#

you can't convert a Select query to a readonly collection

#

it should be IEnumerable

unique crane
#

Aha

#

Okay ill switch it to enumerable

upper vapor
restive turret
#

(IReadOnly<>)(IEnumerable)stuff;

ashen hornet
#

cause I had outdated references

restive turret
unique crane
#

Yeah Ill just

upper vapor
#

why nullable

restive turret
#

check if works firstly before publishing ClassDPlushie

stuck peak
icy knoll
#

Are we allowed to make feature requests on github issues?

icy knoll
#

woo

unique crane
stuck peak
#

this will be used excessively

icy knoll
#

ill probably find a load more

unique crane
#

ofc feel free to send any suggestions

#

I read through them

upper vapor
#

what about PRs :3

unique crane
restive turret
icy knoll
#

damn, no harmony patching

upper vapor
unique crane
#

Yeah on the dev branch

spare zodiac
untold raft
#

What am I doing wrong when checking if a grenade is Scp2176?

hearty shard
unique crane
#

No grenade doesn't have wrapper yet

hearty shard
#

oh

#

lmao

tulip kiln
hearty shard
#

also that yeah

unique crane
#

Its not ExplosionGrenade to be specific

tulip kiln
#

Yeah that's what I meant

unique crane
tulip kiln
#

I should be more specific

unique crane
#

Ill fix this event to work with all grenades?

#

idk why is it only for HE grenade

hearty shard
#

or seperate events

untold raft
hearty shard
#

but i think have it work with all

unique crane
#

Nah they all share the same base class

hearty shard
#

ItemType

hearty shard
tulip kiln
#

It's a static event

unique crane
#

Scp2176Projectile...

#

yea that

#

For now. Sorry ill fix the event to work with all projectiles

rare wolf
#

u stole from me

hearty shard
#

you stole from ME

rare wolf
#

but how adorable~

#

i lost that gif

hearty shard
#

YOU STOLE FROM ME

rare wolf
#

now i found it

#

nahhh

stuck peak
rare wolf
#

im the only one to send it in our dms

#

:3

hearty shard
#

i didnt get it from your dms

rare wolf
#

then how did i get it frm you

hearty shard
#

idk

#

copycat

stuck peak
#

good night (it's 8am) stinky heads (I can't smell through my screen so I smell myself)

rare wolf
#

hehehe

#

goodnightt :3

upper vapor
stuck peak
stuck peak
hearty shard
rare wolf
restive turret
#

try using DD

upper vapor
untold raft
restive turret
#

pff

upper vapor
#

don't tell me i have to end my streak of

icy knoll
upper vapor
#

gotta install the windows update :copium:

hearty shard
#

xert moment

unique crane
hearty shard
#

37 days is crazy

#

or is that 900 days

upper vapor
unique crane
#

I have 5 hours 😭

restive turret
#

902 day

stuck peak
#

days yeah

hearty shard
#

:sob.

#

😭

tulip kiln
#

I have 30 minutes wtf are you guys doing

restive turret
stuck peak
#

I feel like restarting will just break everything at this point

#

so Prayge

hearty shard
#

troll

icy knoll
#

do you all not turn off fast start up?

hearty shard
#

no

stuck peak
#

that's not what this is

icy knoll
#

for me it's one of the first things i turn off when i reinstall windows every 3-6 months

hearty shard
#

its xert being xert

icy knoll
upper vapor
tulip kiln
#

Fast Startup is one of those things I disable on every install

unique crane
#

Should I keep the event name to GrenadeExploded or rename it to something else now that it will work for other projectiles too

stuck peak
#

trollcat which option is it

restive turret
upper vapor
stuck peak
#

also no I don't hibernate

rare wolf
#

was about to say

stuck peak
#

I don't even put it to sleep

unique crane
#

fair

upper vapor
icy knoll
#

it never counts up for me when it’s off lol

stuck peak
#

Clueless surely I turn it off

restive turret
#

not shutting down the pc

stuck peak
#

I turn off my screens using this

#

or rather I stop sending display signals

rare wolf
#

why not just

#

turn off ur monitor

stuck peak
#

because windows moves applications around when you do that

tulip kiln
#

why not just

#

turn off your computer

stuck peak
#

also I just have it bound to Ctrl + Alt + Shift + Win + O

tulip kiln
#

are you guys rocking HDDs from 2005 and it launches for a decade?

stuck peak
#

to turn off all my monitors

stuck peak
rare wolf
#

randomly ill hear very concerning noises

#

but we're still balling

tulip kiln
#

nah

stuck peak
#

wtf

#

yeah you sent that at the same time

rare wolf
#

literally exact same time

unique crane
#

yep

rare wolf
#

god unity is SO slow

hearty shard
rare wolf
#

game development wouldnt be half as hard if the engines just we're fast

unique crane
rare wolf
tulip kiln
#

Godot launches in a microsecond (or two seconds if the project is big)

#

big fan of that

harsh thorn
#

😭

restive turret
#

switch to unreal ClassDPlushie

upper vapor
stuck peak
#

yeah that's just unity

unique crane
harsh thorn
#

Its pain

unique crane
#

It absolutely is

stuck peak
#

what doesn't help is the fucking translations thing iykwim

rare wolf
#

Nah fucking like

unique crane
#

My VS intellisense just gives up too

restive turret
rare wolf
#

I wait 20 minutes for labrat to open

#

20 minutes later

#

crash

#

so now i gotta wait another 20 minutes

unique crane
#

I put SL on SSD so im fine with its opening time

#

Like 20 seconds

rare wolf
#

or i tab out too long and unity does its "gui refresh"

stuck peak
#

Unity version (I forgot) will have async loading and won't have everything blocked any time anything is loading or reloading or doing anything at all

unique crane
#

Worst are domain reloads

restive turret
#

just dont use gui ClassDTrollHD

tulip kiln
hearty shard
restive turret
#

when unity use that

unique crane
upper vapor
unique crane
#

how was it called

#

Dots?

rare wolf
stuck peak
# unique crane Like 20 seconds

16 seconds to completely launch it
then I have to close the translations you know what
then I have to wait 8 seconds for Unity to reload and recompile everything which doesn't happen until after I close that popup

unique crane
#

I though that was meant to be for multithreading

harsh thorn
#

Fun fact

hearty shard
#

idk ngl

harsh thorn
#

Unity editor coroutines exist

rare wolf
#

I notice when doing anything in rider it autosaves which freezes unity for 10 seconds

harsh thorn
#

Unity just never uses them

#

So everything is blocking

restive turret
#

who have guessed

harsh thorn
#

Yes

harsh thorn
hearty shard
#

😭

restive turret
#

i dont cus dont use rider ClassDTrollHD

rare wolf
#

thats so annoying qwp

#

visual studio didnt do it

stuck peak
#

and disable auto reloading during play

unique crane
#

^

restive turret
#

go to unity hub and press uninstall

unique crane
#

this one does help a lot

rare wolf
#

and now i misspress a key in rider and now the game im running gets reset because unity wants to recompile

rare wolf
hearty shard
rare wolf
#

once unity finishes

#

:3

stuck peak
#

not sure why it's not a default setting

restive turret
#

why would it be? we love waiting and using 1 cpu core

stuck peak
#

Susge how do you

#

nvm not what the prefab is called innerpeace

rare wolf
#

wa

#

mate this ONE prefab

stuck peak
#

I think your Unity broke

hearty shard
#

r yall high

stuck peak
#

because all of SL takes less than that

restive turret
stuck peak
rare wolf
stuck peak
hearty shard
upper vapor
hearty shard
rare wolf
#

cause labrat is like

stuck peak
#

to clone

rare wolf
#

40 gigs or smth

stuck peak
#

or once everything is imported

rare wolf
#

everything imported

hearty shard
#

both

restive turret
#

yes

stuck peak
#

I probably have a good 500gb of SL repo clones because I am not going to wait for reimporting switching between major branches

stuck peak
rare wolf
#

we love unused assests!!

restive turret
#

6 gig is the SCPSL_Data so prob twice as much atleast

upper vapor
#

i was coping hard about a 2-minute reimport, couldn't imagine doing that with SL

rare wolf
#

AGAIN???????????

#

AGAIN???????????????????????????

unique crane
stuck peak
upper vapor
#

just a wild guess

stuck peak
#

no

#

reimport?

upper vapor
#

i mean

#

if you were to reimport

#

how long does it take to import a new clone

stuck peak
#

for me like 15-40 minutes if I am importing fresh

upper vapor
rare wolf
#

wat

stuck peak
#

cloning takes longer

#

not because of my bandwidth

rare wolf
#

how long does it take y'all to build lmao

unique crane
rare wolf
#

i press build and go sleep

stuck peak
rare wolf
#

smh!!

unique crane
#

Its like 10 minutes faster

stuck peak
#

local build is like 40 minutes but I hardly do that

hearty shard
#

what the flip

restive turret
rare wolf
#

GOD

#

YEAH

stuck peak
#

except if all I need is a quick and dirty assembly file with Mirror syncvars

rare wolf
#

i press build two nights ago

#

woke up next morning

#

il2cpp isnt installed .p.

unique crane
rare wolf
#

had to delay a release

restive turret
rare wolf
#

like

#

bro

upper vapor
restive turret
#

just dont use il2 then

unique crane
rare wolf
#

i wanted to make his life harder

stuck peak
upper vapor
#

forgot a UNITY_EDITOR ifdef and waited for the build just to say "um actually"

rare wolf
restive turret
stuck peak
#

that doesn't do much

#

to update that's like 30 minutes at most

restive turret
#

from startgame you see r35f2gt4a

stuck peak
#

just gotta find the new offsets

upper vapor
rare wolf
#

its alreayd in il2cpp

#

havent seen him since

#

so we're fine

#

besides itll all be changed in the rework so shrug

restive turret
#

but thats utf16 i think.
as \uE41 or like that

stuck peak
#

they probably also use byte streams

#

anyways I think I should sleep

restive turret
#

no they use shit system and simple unity networking, and BE

restive turret
stuck peak
#

no never

restive turret
#

it deserves it!

languid temple
#

eepy api maintainer PES_Sleep

stuck peak
#

sleep mode is worse because my backup system wakes up my computer from sleep and turns the screens back on

hearty shard
#

😭

stuck peak
#

if I just turn them off using user32 it's fine

proper prism
#

Hello, i have a question, because it is possible to remove Test Room (330), as it is probably the only one currently. Will there be options to remove other rooms from the Seed in the future, such as PC-15?

#

Unless there is some secret method to remove other rooms as well 🤔

hearty shard
proper prism
#

It simply opens up a lot of possibilities on RP servers by getting rid of those stupid teleports.

ruby thistle
#

We should Add the ability to remove candy room but doing so removes your real hands

restive turret
#

Fr

tulip kiln
#

Is it intended that Player::Items provides ItemBases therefore making it incompatible with the Item wrapper?

#

I know I can just do Get

worthy rune
#

i dont think it is, you can use Item.Get on the itemBase in the meantime

tulip kiln
#

but like, EXILED provides them in the wrapper already iirc

worthy rune
#

yeah something ill look into

tulip kiln
#

👌

main zenith
#

Is there a way now to add Player effect by String like i have String named "EffectName" = "MovementBoost" and i want to use EnableEffect() on Player but i don't have any idea how to get effect by name and then use it (sorry for my Bad English)

restive turret
#

either you create a dictionary for itself or you do something that gets the type name from all effects

main zenith
restive turret
#

this is what I did

#

not really a great stuff

main zenith
# restive turret not really a great stuff

probably idk i saw that too in one of the LabApi Files or similar one but i was thinking that i am missing something much easier or something else anyway thanks for help

restive turret
#

ye and I using like this

#

I think it works with custom effect too but no idea about that. should support it

main zenith
#

but still huge thanks for help

restive turret
#

check under ExplosionGrenade

#

or check the RA panel trigger

main zenith
#

idk i need to make small research like there some new functions with grenades/explosions ig or im blink and it was in NwApi

main zenith
hearty shard
#

nice comment kek

unique crane
#

lol

hearty shard
#

@unique crane

#

PluginPermissionsCommand

#

moment

unique crane
#

You iterate over dictionary

#

just

foreach(var kvp in sender.GetPermissionsByProvider())
{
...
}```
hearty shard
#

yeah uh

#

thats base code

unique crane
#

wdym

hearty shard
#

labapi

unique crane
#

where

#

Sec

hearty shard
#

Permissions/Providers

#

then the command

#

heres what it suggests me

unique crane
#

Welllll it compiles for us

hearty shard
#

yeah but not for me 😭

#

and i have no clue wtf i missed

unique crane
#

Do you have referenced all the assemblies

hearty shard
#

oh

#

my

#

god

#

i know why

#

yall made UNITY_REFERENCES

unique crane
#

hm?

hearty shard
#

on top of SL_References

#

😭

#

why do you have both unity & sl _references

unique crane
#

No clue to be honest

#

It was like that when I joined

#

I simply added 2 system variables no big deal

hearty shard
#

@harsh thorn :)

unique crane
#

I guess someone has them seperated /shrug

harsh thorn
#

just make 2 env vars

hearty shard
#

i am gonna explode

#

why is Item in PlayerPickedUpArmorEventArgs nullable

hearty shard
#

blowing you up

#

get over here

unique crane
#

noooooooo

hearty shard
#

me when i forget to fork the repo

#

and im trying to push to actual repo

#

😭

#

am i cooked

woeful geyser
#

It finally happened, a new category

Why did y’all leave the other place tho

upper sphinx
#

It smelled

hearty shard
upper sphinx
#

I was only a small contributor to the overall smell

hearty shard
#

i assume theres another SL version with this

#

but smh

unique crane
#

There are still some things like this in older scripts

hearty shard
#

can you change that 😭

unique crane
#

I do refactor the code at least a bit when I do wrappers

#

but I didnt do this one

hearty shard
#

so do it kek

#

who thought that was a good idea to have java code here

#

middle middle

#

can i rename it from MiddleMiddle => to Center

unique crane
#

No thats its official name now

hearty shard
#

@ hubert

restive turret
#

I want a MiddleMiddleMiddle room

hearty shard
#

im changing it trolling

#

oh

#

labapi-beta isnt the latest labapi build

untold raft
#

I have a very simple code but for some reason it does not work , it does not show any errors. void DisplayTeammates() does not execute at all or the list of players is not foreach

worthy rune
#

how do you call RegisterEvents

languid temple
#

CustomHandlersManager.RegisterEventsHandler

untold raft
languid temple
#

yea

#

for example

public override void Enable()
{
    CustomHandlersManager.RegisterEventsHandler(Handler);
}
untold raft
hearty shard
#
/// <summary>
        /// Internal constructor to prevent external instantiation.
        /// </summary>
        /// <param name="timeToDetonate"></param>
        /// <param name="additionalTime"></param>
        internal DetonationScenario(AlphaWarheadController.DetonationScenario detonationScenario, byte id, WarheadScenarioType type)
        {
            TimeToDetonate = detonationScenario.TimeToDetonate;
            AdditionalTime = detonationScenario.AdditionalTime;
            Type = type;
            Id = id;
        }
#

okay buddy

unique crane
hearty shard
unique crane
#

I think thats because it was changed with 14.0?

hearty shard
#

maybe

worthy rune
#

yeah type/id was added for DMS

worthy rune
hearty shard
#

idk

#

i have a lot of errors because of NotNullWhen

#

its internal for me

worthy rune
#

if its alot, i think steam might have not downloaded the server branch properly

#

it did it for serveral people including me, try uninstalling the server and reinstall it

hearty shard
#

this is a lot of my errors

#

oh

#

ok yeah something is wrong

worthy rune
#

i havent seen that before, but yeah for anything related to the assembly c# or game assemblies doublecheck if steam actually downloaded it

hearty shard
#

ill verify integrity

worthy rune
#

that doesnt work

hearty shard
#

oh

#

lmao

worthy rune
#

you gotta uninstall

hearty shard
#

kk

unique crane
#

Yeah you have to uninstall and install again

#

both server and client

#

We dont know why

hearty shard
#

CLIENT TOO????

unique crane
#

but it did cause a lot of confusion already

hearty shard
#

wtf did client do 😭

unique crane
#

I think it caused you to not be able to join labapi server

#

cause version mismatch

worthy rune
#

yeah it really threw me for a loop, not sure why steam is doing that

hearty shard
#

yeah System Linq is still gone after reinstalling

#

it works in some places

#

💀

worthy rune
#

are you using vs?

hearty shard
#

rider

worthy rune
#

not sure how, but can you reload dependecies

#

i know vs is stubborn with that

languid temple
#

I couldn't add references in rider so I just ditched it all together (tried 1 time) lol

hearty shard
#

i can reload project

worthy rune
#

yeah try that

hearty shard
#

didnt do nothing

#

ive tried restarting rider too

worthy rune
#

rip

hearty shard
#

i mean ive done a bit

#

idk if it compiles tho

#

cuz i cant check kek

languid temple
#

holy shit I spent so much time doing one simply plugin lol I've been coding for like the past 2 hours trying to figure shit out but its pretty fun

restive turret
#

it took me around like 4 hour yesterday and 3 hours today to port my plugin from 14.0 exiled to 14.0.1 labapi

hearty shard
#

hi

restive turret
#

hi

hearty shard
#

i got a bit bored

#

ever so slightly

languid temple
#

yea

#

I can see that

#

Banger music tho

hearty shard
#

real

icy knoll
#

Is there any support for port-based plugins?

#

or is that a future thing

ashen hornet
#

what's a port based plugin

icy knoll
#

like

#

folders for plugins that only work on those specific ports

#

like nwapi had it

#

7777

#

global

ashen hornet
#

oh

icy knoll
#

7778

ashen hornet
#

network port

icy knoll
#

ye

ashen hornet
#

idk

worthy rune
#

the current implementation is incomplete, its something that will be worked on duing the beta

#

since its a server host thing

icy knoll
#

ok cool, will be useful for me

worthy rune
#

it wont be like nwapi, i cant say more than that

icy knoll
#

ye ik about that, just wanted to know if we are gunna have port specific plugins

#

hopefully a global plugin system too smh

languid temple
#

@worthy rune Shouldn't you have the ApiMaintainer role here?

worthy rune
#

maybe

languid temple
#

let me give it to you then

mild ice
languid temple
#

ah yea

#

right

#

hr

hearty shard
#

gimme API Assistant

mild ice
languid temple
#

._.

#

I mean I can but I'll get beaten by hr

hearty shard
#

make urself admin trolling

mild ice
icy knoll
#

i wish i signed up for api maintainer when it came out, i thought it was web api not labapi :c

restive turret
hearty shard
#

@worthy rune r u braydon 😭

languid temple
worthy rune
#

yeah

hearty shard
#

i made the PR too kek

#

added it to the big collection of dumb stuff

#

@lilac jungle miller died

#

in 1924

languid temple
hearty shard
#

yeah its free to get

languid temple
#

Yea?

hearty shard
#

nah you can stay

languid temple
#

Yeah you are allowed since nw staff has perms

hearty shard
#

shhh dont question

restive turret
#

hes lurking

hearty shard
#

a lurker

#

im eating nachos while doing this

queen parrot
#

hi

languid temple
hearty shard
#

zzzz

restive turret
hearty shard
#

i still cant fix NotNullWhen error

#

that and System Linq being broken for some reason

#

cant even add the . between system and linq

languid temple
#

just change it to nullwhen false

hearty shard
#

💔

languid temple
#

easy

hearty shard
#

its internal

#

wait no

#

the class is internal

#

the constructor isnt?

#

how does that work

worthy rune
#

not sure why it isnt working for you, i thought it was apart of .net framework

hearty shard
woeful geyser
#

@queen parrot we are compitas now

hearty shard
#

but its internal otherwise and i cant fix it

restive turret
hearty shard
#

😭

worthy rune
#

lol

hearty shard
#

moment

languid temple
#

the beauty of coding lmao

hearty shard
#

absolutely

#

it works for everyone except me

#

wait its yaml?

#

from yaml

#

from package YamlDotNet v11.0.1

#

wtf ?

#

ive had issues with mscorlib just not wanting to load in some projects

#

but idk why

#

@restive turret yeah uh thing is

#

i do point it to that file in SL managed

hearty shard
#

99% of the files have a space between usings and the namespaced

#

but like 3 of them didnt

languid temple
#

oh my favourite romanian hiiii @odd vapor

hearty shard
#

@restive turret its just mscorlib refusing to load

#

in some projects

#

idk why

hearty shard
languid temple
#

Anyway I'ma dip goodbye guys have fun (ig)

hearty shard
#

yeah 1 project works

#

wtf

restive turret
#

bye

restive turret
hearty shard
#

even with the exact same reference line it doesnt work here

#

Lmao

restive turret
#

nice, prob rider issue

hearty shard
#

perhaps

#

still wtf

#

mscorlib 😭

#

why is mscorlib hated by rider

icy knoll
hearty shard
#

@unique crane did u like my pr kek

icy knoll
#

rider hates you

restive turret
#

checks out

hearty shard
#

i will remove this from pr rn

#

alright i head out

#

mscorlib makes me cry

restive turret
#

lel

icy knoll
restive turret
#

if works I will laugh my ass off

hearty shard
#

ill see

#
SecretAPI succeeded with 1 warning(s) (6,2s) → SecretAPI\bin\Debug\netstandard2.1\SecretAPI.dll
    C:\Program Files\dotnet\sdk\9.0.101\Microsoft.Common.CurrentVersion.targets(2413,5): warning MSB3277:
      Found conflicts between different versions of "System.Net.Http" that could not be resolved.
      There was a conflict between "System.Net.Http, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
      and "System.Net.Http, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
          "System.Net.Http, Version=4.1.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" was chosen because it was
unique crane
#

Also early return better in this case tbh

#

more readable

hearty shard
#

shh

hearty shard
#

wait

#

THAT WAS THE WRONG PROJECT

#

te' is inaccessible due to its protection level
E:\Coding\LabAPI\LabApi\Features\Wrappers\Pickups\Pickup.cs(215,51): error CS0122: 'NotNullWhenAttribute' is inaccessible due to its protection level

hearty shard
#

i realized

spare zodiac
#
poll_question_text

What is better? (Not riged)

victor_answer_votes

2

total_votes

2

victor_answer_id

1

victor_answer_text

Czech?

victor_answer_emoji_name

🇨🇿

hearty shard
#

i built the wrong ass project

#

LabApi failed with 69 error(s) and 8 warning(s) (0,7s)

#

69 is wild

unique crane
#

😐

#

I guess the PR aint passing then

random scaffold
#
poll_question_text

Who?

victor_answer_votes

2

total_votes

3

victor_answer_id

2

victor_answer_text

hubert

victor_answer_emoji_id

868569689444470844

victor_answer_emoji_name

CoinTails

hearty shard
#

it just hates mscorlib for me 😭

unique crane
#

Blah blah blah

hearty shard
#

its my pc 💀

restive turret
hearty shard
#

oh yeah

#

events have Player? player

#

but the interfaces are just Player

#

no null

#

so it complains

languid temple
#

I mean instead of 61 warning now only 8 that's good if you don't count the 69 errors

hearty shard
#

idk why my pc hates mscorlib

#

its not even rider

#

its just my pc

languid temple
#

reinstall it

hearty shard
#

yeah but

#

it works in some projects

#

😭

#

with the exact same line as what i put in labapi

languid temple
#

ask it nicely

odd vapor
#

can't just LabEX or EXLab exist instead of battling through exiled and labapi plugins

languid temple
#

to stop hating mscorlib

unique crane
hearty shard
#

works in 1 project

#

only 1 tho

unique crane
#

VS or rider

hearty shard
#

rider

unique crane
#

Yeah good luck buddy

languid temple
#

xDD

hearty shard
#

dotnet build command doesnt work either

#

for it

#

😭

#

this is discrimination

languid temple
#

rider racism

hearty shard
#

yes

unique crane
#

VS on top as always

hearty shard
#

maybe itll work tomorrow

#

trust

restive turret
#

will eat my hat

hearty shard
#

even tho it was like 2 days ago i tried to reference mscorlib and it refused to work there too

untold raft
# untold raft

I check this (adding logs) and code work but not sending hint to player

hollow peak
#

Yo. Does LabAPI provide any way to check for a permission string with an ICommandSender rather than just a Player?
The only stuff I can find is using the base game permission enums rather than the custom strings

ashen hornet
#

check permission?

#
        Player? player = Player.Get(sender);
        if (player is null)
        {
            response = "This command can't be run from server console.";
            return false;
        }

        player.HasPermissions();
#

you can do something like this

hollow peak
#

I was trying to avoid needlessly casting it, as quite a lot of my commands that require permissions also can be run via the console PeepoShrug
But if that's the only way, fairs

ashen hornet
#

well having server console access is basically having all permissions, lol

hollow peak
#

I'm aware. I was just expecting the API to check for that sort of thing, rather than still having to make my own system to check if it's a player then checking the permissions

hearty shard
#

why is this one on framework 4.8.1

restive turret
#

There isnt much difference between net48 and net481

hearty shard
#

also turns out the reason mscorlib "works" in another project is the project is net standard 2.1

#

so yeah idk wtf is with mscorlib ngl

#

it just doesnt like me

#

lmao

restive turret
#

Yeah works on my matchine so

hearty shard
#

.....

#

im gonna cryt

#

i fixed it

restive turret
#

If you moved from net48 to standard i cry too

hearty shard
#

unless?

hearty shard
#

so

#

1>------- Finished building project: LabApi. Succeeded: True. Errors: 0. Warnings: 0

#

i made it netstandard 2.1

#

then reverted back to 4.8

#

and

#

now it works?

#

😭

#

1>------- Finished building project: LabApi. Succeeded: True. Errors: 0. Warnings: 59

#

(release instead of debug)