#plugins-dev-chat

1 messages ยท Page 22 of 1

restive turret
#

Dont ask me

#

Why you listed the 4 custom kc?

hearty shard
#

errrr

#

this should totally be okay

restive turret
#

Tf is customkcinfo

hearty shard
#

๐Ÿ’€

#

im writing it

restive turret
#

U know not all kc has the custom thing for it

#

Wear prob only for ntf

hearty shard
#

what

#

yes

#

thats why i only listed the custom ones

#

and yes not all have wear

#

theyre seperate

#

so thats why i will handle their info seperately

restive turret
#

Ye do you know what thise

#

Make a base kclevel 0,0,0

hearty shard
#

and then this will store different data

#

@icy knoll u would be interesed in this

#

so

icy knoll
#

peak

hearty shard
#

i just need

icy knoll
#

is there no keycard type?

hearty shard
#

all arguments needed for all

hearty shard
#

oh

icy knoll
#

instead of itemtype

#

keycard type

hearty shard
#

why would I

icy knoll
#

so then people dont give an item type instead?

hearty shard
#

you do new CustomTaskForceKeycardInfo()

#

that will auto do the ItemType

#

based on the one you create instance of

icy knoll
#

that's not what i meant

#

smh

hearty shard
icy knoll
#

i meant a class for ur specific keycard

#

people make classes

#

via abstract class or smth

hearty shard
#

errrr

#

i was not gonna have it abstract

#

other than the base which would never be used on its own

restive turret
hearty shard
#

HUH

#

oH

#

scream

restive turret
hearty shard
restive turret
#

U r faster than i send the msg

hearty shard
#

probably

#

something like that

#

whatever i end up making it

#

๐Ÿ’€

restive turret
#

new ctfki().Spawn

hearty shard
#

could also be stored in a variable

#

_cardDetails.Give()

#

idk

icy knoll
hearty shard
restive turret
#

I mean if you use the abstract to call these would be great

hearty shard
#

errrrr

#

abstract or no abstract

#

truly a mystery

restive turret
#

So you can store and ckc in a list and when u need

hearty shard
#

to be solved

hearty shard
#

its more about how you start the load of it

#

either new(// your variables) or

create a new class, inherrit set and new() that

icy knoll
#

well, if secretapi goes the way eve has planned for these keycards, might as well use the labapi native methods

#

having abstract classes will just be better to avoid this ๐Ÿ˜ญ

restive turret
#

List<customkcinfo> yeehaw = [new aaa(), new bbbb()];

hearty shard
#

fair

#

to be considered

#

rn its just about the idea

#

rather than

#

abstract or not

restive turret
hearty shard
restive turret
#

Huh why

hearty shard
#

aka why store it in a variable when just
public static KeycardItem? CreateCustomKeycardTaskForce(
Player targetPlayer,
string itemName,
string holderName,
KeycardLevels permissions,
Color keycardColor,
Color permissionsColor,
string serialLabel,
int rankIndex)

#

exists

restive turret
#

Ah

#

Didn't know these exists

hearty shard
#

KeycardItem has it

#

theres one for each

restive turret
#

Bet it using the object args

hearty shard
#

yes

#

its params

rain isle
#

@hearty shard when are you adding lootboxes to labapi

hearty shard
#
public static KeycardItem? CreateCustomCard(
      ItemType itemType,
      Player targetPlayer,
      params object[] args)
    {
      if (targetPlayer == null)
        return (KeycardItem) null;
      InventorySystem.Items.Keycards.KeycardItem keycardItem;
      if (!itemType.TryGetTemplate<InventorySystem.Items.Keycards.KeycardItem>(out keycardItem))
        throw new ArgumentException("Template for itemType not found");
      if (!keycardItem.Customizable)
        return (KeycardItem) null;
      int offset = 0;
      foreach (DetailBase detail in keycardItem.Details)
      {
        if (detail is ICustomizableDetail customizableDetail)
        {
          customizableDetail.SetArguments(new ArraySegment<object>(args, offset, customizableDetail.CustomizablePropertiesAmount));
          offset += customizableDetail.CustomizablePropertiesAmount;
        }
      }
      return (KeycardItem) targetPlayer.AddItem(itemType);
    }
hearty shard
#

anyway brb

restive turret
#

Wdym you did not finished it!

hearty shard
restive turret
#

What

hearty shard
#

huh

#

im gonna do horrible things to u

icy knoll
#

!wran @hearty shard dont do horrible things to others pls tyvm

regal lakeBOT
#

@icy knoll has wranned obvevelyn Reason: dont do horrible things to others pls tyvm

restive turret
hearty shard
restive turret
#

F

#

meloncat have fun with your idk card suffering

hearty shard
#

nuh uh

#

wont happen

#

someone else can do it

#

ez

restive turret
#

There is no someone else

#

It's you

#

Only u

hearty shard
#

then its not added ๐Ÿ’”

#

KeycardCustomTaskForce
KeycardCustomSite02
KeycardCustomManagement
KeycardCustomMetalCase

#

i forgot

glass karma
#

what event can I use for checking if a player has a reserved slot? there used to be playercheckreservedslot on the old pluginapi, but I can't find the new equivalent, if there even is one

restive turret
#

player.HasReservedSlot

terse bone
#

you can just check ReservedSlot.Users.Contains(player.UserId)

terse bone
#

that's nice

glass karma
#

sorry, I worded that somewhat wrong. I need to be able to check if they have it, but also deny their connection as early as possible like you could with the old event

#

I used it before so I could have a separate file from the normal reserved slots file which I try to keep for staff only

terse bone
#

you can do that in PlayerPreAuthenticating event

celest thorn
#

Can dummy cause lag, because with dummies i have 45/60 and if i remove all of them 60/60?

restive turret
#

Mayhaps

glass karma
hearty shard
#

errrr

#

duplicate code

#

and stuff like HolderName cant be unique here hm

#

could add eg

public interface IHolderCardInfo
        {
            public string HolderName { get; set; }

            public string GetHolderName(Player player);
        }
#

keep docs consistent

#

yes still duplicate but thats finee

icy knoll
#

and if(item is IHolderCardInfo)

restive turret
#

#41 is based

hearty shard
hearty shard
#

Does exiled refs no longer force -Publicized upon us

restive turret
#

It has Publicized and normal

#

Tested on my own

hearty shard
#

Oh okay

restive turret
#

And it stopped on renaming cus it said "file already exists"

hearty shard
#

Good

#

coolio

#

Tyy

restive turret
#

I suffered just to create those pr

#

In phone

#

At 1am

#

In bed

hearty shard
#

i forgot

#

hoe do you

#

how

#

Merge a thing from master to dev on mobile

#

Err

#

I forgot

#

Ig could just do a pr

restive turret
#

du u want to do it or create apr?

hearty shard
#

thats it

#

but apparently branches are identical

#

(theyre clearly not..)

spice hatch
#

is there any way to disable the lab api debug?

#

or is it just automatically enabled or sumn

spice hatch
#

#no access

#

also i did

#

re install

#

with latest build

hearty shard
#

now do it again

#

Nvm

#

Its on experimental branch

hearty shard
spice hatch
#

oh

hearty shard
#

Without any debug symbols

#

Was pushed an hour ago

spice hatch
#

let me re install ig

#

wait

#

so is the tag still early-server-build?

#

or

hearty shard
#

Experimental is full release for 14.1

#

Early build is 14.1 beta

spice hatch
#

if i change to experimental will it change the version so i wont be able to access the server if im on the 14.1 public beta?

hearty shard
#

14.1 full release to beta i mean

restive turret
#

They experimenting the release of 14.1

jaunty trail
#

๐Ÿ’”๐Ÿ’”

hearty shard
jaunty trail
#

Channel fall off needs to be studied

spice hatch
#

yeah i cant access my server if changed to experimental but

#

no more debug spam

jaunty trail
#

When the sigma imposter is sus!1!!1 (maongus)

hearty shard
#

Or just test server locally

spice hatch
#

hosting an actual one

#

thats why

hearty shard
#

!hostrole

regal lakeBOT
#

Do it in your servers console, Most I will do is laugh at you

hearty shard
#

^

spice hatch
#

i cant

#

it doesnt work

hearty shard
#

er

#

whats the msg

spice hatch
#

its on ludohosting so it doesnt have the polaris

hearty shard
#

is it no access?

spice hatch
#

stuff

hearty shard
#

Thats not polaris

#

Anyway

#

Errr

#

who can give role again...

spice hatch
#

it says no access or sumn let me try again

jaunty trail
hearty shard
jaunty trail
#

Via command

hearty shard
#

!!!!

spice hatch
hearty shard
#

but i meant people

spice hatch
#

they said i have to email them

#

and im not doing that

hearty shard
#

Er

#

Do that ig

hearty shard
spice hatch
#

no because i dont wanna email them through my gmail acc

hearty shard
spice hatch
#

no i didnt

#

i listed a forwarder as my contact email

hearty shard
#

Then what email is there ๐Ÿ’€

#

oh

#

yea uh

#

you also have to msg from the email specified in contact mail

#

Soo

jaunty trail
spice hatch
jaunty trail
#

If they want email you gotta mail it

hearty shard
#

me when dont wanna email

spice hatch
#

???

jaunty trail
spice hatch
#

in discord

jaunty trail
hearty shard
#

well

#

if u aint emailing thats fine

#

Anyway

#

MODDED!

restive turret
#

I am a server owner of a 120 player always active server

spice hatch
#

why what do they give you if you have the role?

hearty shard
restive turret
#

Insider info

hearty shard
#

which means yoi would have known about experimental branch and its purpose

jaunty trail
hearty shard
#

and release date of 14.1

#

And uhh chicken butt

jaunty trail
hearty shard
#

And suggestions channel

jaunty trail
#

It's pretty nice in my opinion

hearty shard
#

And modded execution

jaunty trail
#

:(

restive turret
#

Which apparently none of the Patreon gets those infoFear

spice hatch
#

honestly idk if i would want to

#

i was borderline harassed earlier in a beta chat

hearty shard
#

skull

#

You do you

spice hatch
#

i dont know how friendlier people can get here lmao

hearty shard
#

No suggestions no news

#

MODDED!!

jaunty trail
#

Hi 2

hearty shard
#

Why do you suck modded

spice hatch
hearty shard
jaunty trail
hearty shard
#

I DONT ๐Ÿซœ THAT

#

Why did

restive turret
hearty shard
#

Have become a square

hearty shard
jaunty trail
restive turret
#

Idk

jaunty trail
restive turret
#

Would be sleeping so

hearty shard
#

Slejm!!

jaunty trail
hearty shard
#

Do you enjoy cheese

restive turret
#

No

hearty shard
#

Eevee

#

MODDED I DONT HAVE DID BTW

jaunty trail
#

schizo dawg

hearty shard
restive turret
hearty shard
jaunty trail
hearty shard
#

thats usually why..

jaunty trail
jaunty trail
restive turret
jaunty trail
restive turret
#

Anyway gn

mild ice
hearty shard
#

hi lucid

#

i was debating pinging you

#

but here you are

spice hatch
hearty shard
#

Stalking...

mild ice
hearty shard
mild ice
mild ice
jaunty trail
#

Was'nt this guy like serverhost last time I saw him why is he o5

hearty shard
stuck peak
hearty shard
stuck peak
#

She's going to send unmarked packages to my house again sajj

stuck peak
hearty shard
#

So i was informing you of potential danger

stuck peak
hearty shard
#

It wasnt me

#

Definitely

hearty shard
stuck peak
carmine prawn
#

2128*1200 8.9GB RAM for client

#

๐Ÿ’€

grand flower
#

any known issues with 079 recontainment?

#

killing 079 by dealing damage with a RecontainmentDamageHandler works the first time

#

restart round, try again, it doesn't want to die anymore

#

Can't even recontain by overcharge

#

079 just doesn't die

carmine prawn
teal junco
#

idk

#

update refs?

grand flower
#

There's the wrapper and the base

teal junco
#

also that

grand flower
#

Make sure it's not using the base type

#

It's like, annoying af how many using X = I have

true cedar
carmine prawn
#

oh i see

#

using TextToy = LabApi.Features.Wrappers.TextToy;

grand flower
carmine prawn
#

๐Ÿ’€

grand flower
#

Or the wrappers and their base types having the same name

true cedar
#

why are you using logger

#

oh

grand flower
#

LabAPI logger

carmine prawn
#

global using Logger = LabApi.Features.Console.Logger;

true cedar
#

i forgot that using is also used for alias

grand flower
#

If I use a universal damage handler it works

#

which is weird

#

what's the difference with RecontainmentDamageHandler

unkempt ore
#

How to set the maximum magazine ammunition

stuck peak
#

when I have time later I will check whether I can reproduce your problem

grand flower
#

I suddenly can't repro it so im just

#

Gonna pray it doesnt happen

#

I think it might be after recontaining 079 via overcharge without gens being done? Idk

#

I'm at a loss

thin shuttle
#

Like you don't want to say than dedicated server kill you for example

#

You can have it by dropping pickup on the window instead on firing / exploding it

celest thorn
#
                    ReferenceHub hub = DummyUtils.SpawnDummy(npc.Name);
                    MeowEditorNpc.Connections.Add(hub);
                    
                    hub.authManager.NetworkSyncedUserId = "ID_Dedicated";
                    hub.authManager.syncMode = (SyncMode)ClientInstanceMode.DedicatedServer;
                    
                    npc.player = hub.gameObject;
                    Timing.CallDelayed(1.5f, () =>
                    {
                        hub.roleManager.ServerSetRole((RoleTypeId)npc.Roles, RoleChangeReason.Respawn);
                        
                        if(npc.Hidden)
                            hub.serverRoles.SetGroup(null,true);
                        
                        if (npc.Godmode)
                        {
                            hub.playerStats.GetModule<HealthStat>().MaxValue = float.MaxValue - 1;
                            hub.playerStats.GetModule<HealthStat>().CurValue = float.MaxValue  - 1;
                        }
                        hub.TryOverridePosition(npc.Position);
                        hub.TryOverrideRotation(npc.Rotation);
                    });
                    
                    return hub.gameObject;

Im seeing an issue thats quite strange, dummies seem to lag the server not alot but to make it 54/60 etc... if i remove them, there's a better way or like am i doing something wrong in this code

Because tps flactuate quite alot

upper vapor
celest thorn
upper vapor
#

could it be because the server sends them packets?

thin shuttle
#

Do you guys have idea about how to fix my steam

upper vapor
#

or, at least, invokes the connection handler

celest thorn
#

7 already start lagging the server

#

like there's not any other way to emulate a player so that you can shoot it atleast

upper vapor
#

i mean if you manage to spawn it for the client and create the correct colliders for it on the server, you can add IDamageable or whatever components to the colliders to make them shoot-able?

#

-# english

celest thorn
#

the problem with this tho

#

is that the collider will never be perfect

celest thorn
upper vapor
celest thorn
#

idk how laggy it could be

upper vapor
#

yyyeeeeeaaaaa

#

it would be far more efficient than having an entire player for nothing

celest thorn
#

btw do you know a way that i could check what is impacting performance

#

like events and stuff

#

because i honestly now i wanna see whats lagging and if its only dummies

upper vapor
#

attach the unity debugger toomuchtrolling

celest thorn
#

that would be amazing

upper vapor
#

๐Ÿฅฒ

#

what if you have them as NoneRole, does it still lag that much?

grand flower
#

Is LabAPI screwing up stacktraces fixable or not

grand flower
#

No lines, all anonymous functions

#

And sometimes they point at the wrong handler

celest thorn
grand flower
#

Idk

#

It's weird

upper vapor
#

have you also copied the .pdb file with the .dll? (program debug database)

terse bone
upper vapor
#

then it'll show you the exact line, not just the IL offset

#

or is it something different i'm not getting?

grand flower
#

Tried and it didnt change anything

#

Just a bit of a pain

upper vapor
#

every player to every player on every frame

#

also you probably shouldn't just assign IsVisible
check if it's true and only then do your calculation
you probably don't want to make a player visible from 200 units afar

celest thorn
#

Btw

upper vapor
#

why did you delete your message?

celest thorn
#

I found out its my plugin

#

somewhere is lagging

upper vapor
celest thorn
#

no nw blame

#

Could it be primitives?

upper vapor
#

are they static?

celest thorn
#

Im trying to not send any packet to them related to primitives

#

lets hope it works

upper vapor
#

ye use Player.AuthenticatedList (if it exists)

celest thorn
#

hub.authManager.NetworkSyncedUserId = "ID_Dedicated";
hub.authManager.syncMode = (SyncMode)ClientInstanceMode.DedicatedServer;

It could be this?

upper vapor
#

don't send packets to dummies

#

what is syncMode

celest thorn
#

nope

#

still lags

upper vapor
#

hmm

unique crane
#

What are you doing

grand flower
#

CustomEventHandlers claes

celest thorn
thin shuttle
celest thorn
#

the entire code for spawning them is this

upper vapor
unique crane
upper vapor
unique crane
#

Make ticket here

thin shuttle
#

What do you think

#

Just

#

I already

unique crane
#

Then.. wait,

thin shuttle
#

That screenshot of my ticket here

celest thorn
unique crane
#

I cant do shit

upper vapor
#

right

#

mb

celest thorn
#

nah don't worry

#

im trying now to do some extreme stuff lol

thin shuttle
#

I know but have you already seen this in your life free game showing paid

#

Lol

unique crane
unique crane
#

Well not doing any damage is server-side

upper vapor
thin shuttle
celest thorn
thin shuttle
#

Not patching

unique crane
#

Or you can just

thin shuttle
#

Just make it trough damaging event

unique crane
#

Subscribe to OnDamage event-

#

yea

celest thorn
#

Like it does this

#

Im just going crazy because sometimes it even worse and for 5/6 time i send it is 57/45

upper vapor
#

if only we could attach a profiler

celest thorn
#

the difference between isDummy and isNpc?

upper vapor
#

IsDummy checks uh

terse bone
#

One checks instancemode the other one type of networkconnection

upper vapor
#

IsDummy checks the instance mode

#

so by setting the ID you're making it not a dummy

#

wait nvm

#

that doesn't change the instance mode

#

or does it?

celest thorn
#

Yes it does in theory

#

WAIT

#

lol

#

nope i have it commented out

upper vapor
#

cedmod

#

surely

#

is the problem

celest thorn
upper vapor
#

try it without cedmod yea

celest thorn
#

last time it was lets see if its now the key

upper vapor
#

maybe it'strying to send stuff about dummies to the api
not sure how that would block the main thread but eh

celest thorn
#

No wait its not cedmod

#

because

#

when i removed my plugin it worked fine

#

and i just spawned a ton of dummies

upper vapor
#

chip away parts of your plugin until you find the cause

celest thorn
#

nope

#

yea i think best solution

#

its some event

#

at this point

#

else idk

upper vapor
#

visibility validation?

#

fpc sync can be heavy

celest thorn
#
           var p = ev.Player;
            var t = ev.Target;

            if (t.IsDummy || p.IsDummy)
            {
                ev.IsVisible = true;
                return;
            }
upper vapor
#

yea

#

that

#

remove IsVisible = true?

celest thorn
upper vapor
#

cuz you force sync the position regardless of distance

celest thorn
#

at this point im just desperate 12 Npc lagging the shit out of a god like server

#

public static void OnPlayerVerify(PlayerJoinedEventArgs ev)

They are authenticated or not?

#

because then this is the issue

#

wait i can check it nr

upper vapor
celest thorn
upper vapor
#

why doesn't automod filter that out

celest thorn
#

Let me chip the entire stuff

#

this are all of the possible events

#

Could it be round ended?

upper vapor
#

if you disable all of them, does the issue persist?
roundending is only called every 2.5s

#

does your tps drop around every 2.5s?

celest thorn
#

idk

#

i've never calculated lol

#

IT COULD be

#

if it was round lock

#

im just going to quit forever

upper vapor
celest thorn
#

none will give me back 20 hours of debbuging this shit

#

Oh wait

#

ALL OF THIS TIME I WASN'T UPDATING THE PLUGIN

#

I WAS UPDATING THE WRONG ONE

#

i cannot make this shit up

upper vapor
#

bruhhhhhhhhh

terse bone
celest thorn
#

im honestly about to crash out

#

buy the new doom and just stick with that for a bit

upper vapor
#

@hearty shard

celest thorn
#

oh nameless

#

lol

upper vapor
#

ye

celest thorn
#

Next time a reminder to check what i update

upper vapor
#

it would be good to add a target to your csproj that automatically uploads the DLL

#

not sure how to do that

celest thorn
#

Now

#

it does

#

60/60

#

but sometimes goes down

#

to 50

upper vapor
celest thorn
upper vapor
celest thorn
#

now

#

im just leaving the hub working

upper vapor
#

why

celest thorn
#

and the other stuff

#

no events or anything

random scaffold
#

just add

while (True)
{
    Round.Restart();
}
celest thorn
upper vapor
#

True

#

True

upper vapor
#

i hate how bools are capitalized when you ToString() them

celest thorn
#

i know the solution to all of my problem

#

just delete sl

random scaffold
#

yes

upper vapor
#

YES

#

W

random scaffold
#

you got way

upper vapor
#

finally you realized it

celest thorn
#

Im about to say i cannot make this shit up

#

NOW IT LAGS EVEN MORE

#

HOW IS THAT EVEN POSSIBLE

random scaffold
celest thorn
terse bone
#

lmao

celest thorn
#

No t crash the server

random scaffold
upper vapor
celest thorn
#

and im using the one from the game

random scaffold
#

then why

celest thorn
#

but they love to lag the server

#

for unknown reason

random scaffold
#

just fix sl code

upper vapor
#

just remake SL in Godot

celest thorn
#

so we all are free

random scaffold
#

Minecraft: Secret Laboratory

#

next way

celest thorn
#
        public static void OnWaitingForPlayer()
        {
            RoundSummary.RoundLock = true;
            RoundStart.LobbyLock = true;
            GameObject.Find("StartRound").transform.localScale = Vector3.zero;
        }

Like i don't think this has issues?

upper vapor
upper vapor
#

๐Ÿ˜ญ

#

horrible

celest thorn
#

bro its old code

upper vapor
#

at least you only run it once

celest thorn
#

from like a ton fuck ago

#

obv

upper vapor
#

uh

#

make the max tps 30

celest thorn
#

No

#

Lol

#

I have just ONE coroutine running in the entire server

#

lets remove it

celest thorn
#

even tho it doesn't call the player

#

but just a list of strings

upper vapor
#

why would you have one gigantic coroutine

celest thorn
#

its small

#

probably 10 lines

upper vapor
#

oh

celest thorn
#

this is the only coroutine for a chat

#

lol

random scaffold
upper vapor
#

do you kill the coroutine when the round restarts?

celest thorn
upper vapor
#

right

celest thorn
#

Nope

#

now its even worse

#

like i cannot make this shit up

#

this is reverse

upper vapor
#

delete the internet

celest thorn
#

How do you even start the round?

random scaffold
upper vapor
#

Round.Start()

celest thorn
random scaffold
random scaffold
celest thorn
#

at this point idk what it could be

#

im just about to just say fuck the npc

#

and replace them

upper vapor
#

rewrite it in rust

upper vapor
celest thorn
#

I just wonder

#

WHY

#

IM Crashing out

random scaffold
#

because

#

just fix it

celest thorn
#

I have a theory... a game theory

#

nope

upper vapor
#

what if you remove dummies from the referencehub list

celest thorn
upper vapor
#

yea

#

it probably has consequences though

celest thorn
#

Who cares

celest thorn
#

or where?

upper vapor
#

ReferenceHub.AllHubs

#

and from Player.Dictionary

celest thorn
#

done

#

lets see

#

Yep

#

no npc

#

Wait

#

I cannot see them

#

but i can hit them

#

but still tps are down

upper vapor
celest thorn
#

still it lags

#

tho

upper vapor
#

i doubt it would solve the tps issu

#

yeรบ

grand flower
#

whatcha making?

restive turret
#

Pain

celest thorn
#

Npc are lagging the server

#

but like the other day they didn't

#

and today they do

#

nothing changed

unique crane
#

Remove all plugins

#

see if it persists

celest thorn
#

they don't lag

#

but there's nothing like it does it

unique crane
#

Welp then you know where to look at least

celest thorn
#

SO

#

It doesn't make any sense

upper vapor
#

what if zou comment out alll of the enable method

unique crane
#

Some can be triggered by dummies too

upper vapor
#

leak the code in VC toomuchtrolling

celest thorn
#

so i don't think

grand flower
#

How many dummies are you spawning

celest thorn
upper vapor
#

what's in roundending

celest thorn
upper vapor
#

bruh

upper vapor
restive turret
#

If you lock the round it never ends

celest thorn
#

thats actually a good point

unique crane
#

How about the validate visibility

#

what does that do

restive turret
celest thorn
unique crane
#

@upper vapor If I make standalone server build with profiling enabled, you think it will profile plugins too?

upper vapor
#

it will definitely profile components' update methods

#

so that includes plugins, too (or at least it should)

#

with deep profiling you get more concrete stack traces

unique crane
#

True

#

Welp only one way to find out really

upper vapor
#

if you don't have deep profiling it only shows which component's update took a lot

celest thorn
#

if you want i can join in the vc and we can check

#

because i have no problem

upper vapor
unique crane
#

I can make one for myself

grand flower
#

would be nice to get some profiling

celest thorn
#

fr

restive turret
#

Uh i love debug builds

random scaffold
#

or why this plugin

celest thorn
#

but nope

#

its for shooting at them

random scaffold
#

use customeventshandler

#

: CustomEventsHandler

#

register

unique crane
#

Crazy

#

it works

grand flower
#

14.1 performance leaked

#

sweet though

restive turret
#

thats me on 14.1

unique crane
#

??

#

Thats idle mode

restive turret
#

oh well

#

from 40fps to 0

unique crane
#

Yeah well idle runs at like 5 fps

#

To save resources

royal mica
#

Hmm, is IsStatic required for a Collider to be IsTrigger?
Also am I right that it should be no problem using the LabAPI wrapper to create a triggerzone?

royal mica
#

Interesting, this worked. but replacing the obj part with the LabAPI version of Primitive it doesn't THONK

hearty shard
#

also my code is an invisible one

royal mica
#

Yeah I know

hearty shard
#

which is why i use unitys primitive

#

and not nws

royal mica
#

I spawned another NW one with only Visible flag

upper vapor
#

you need the collidable flag and add a component to its _collider

#

also set istrigger to true

royal mica
#

I have all of them

#

also what component to the collider? Cause the primitive should have a collider by default

upper vapor
#

your custom component that has an OnTriggerEnter or such handler

hearty shard
#

the existing collider would have different code than yours

hearty shard
celest thorn
hearty shard
#

yes...?

#

thats what i said ๐Ÿ’€

hearty shard
#

you dont use the existing collider component

celest thorn
#

so why can't you use the existent one?

hearty shard
#

sure

#

go patch it

#

but thatll patch all of them not your specific object you are using too

#

you need to handle the trigger to do stuff on trigger

#

which needs code for it

upper vapor
#

toy._collider.isTrigger = true;

#

boom

#

after you set the primitve type

hearty shard
#

yes but how are you going to handle the trigger being entered

#

๐Ÿ˜ญ

upper vapor
#

with a custom component

royal mica
#

I do not use publicized so I cannot access _collider, wouldn't GetComponent<BoxCollider> work?

hearty shard
#

๐Ÿ˜ญ

upper vapor
#

but you don't need another collider

hearty shard
#

not too difficult

hearty shard
#

is what i mean

royal mica
#

publicize stinky

hearty shard
restive turret
#

<PackageReference Include="BepInEx.AssemblyPublicizer.MSBuild" Version="0.4.3" PrivateAssets="all" ExcludeAssets="runtime" ReferenceOutputAssembly="false" Private="true" />

royal mica
upper vapor
hearty shard
royal mica
#

idk Just modifying deps so you can do stuff is kind of bad, but this is just my stupid ideology

hearty shard
#

thus you need a new one..?

#

to handle it?

upper vapor
#

yeah

upper vapor
#

or GetComponentInChildren, whichever works

hearty shard
#

or that

next oracle
#

How are my EU friends?

restive turret
#

awake

next oracle
#

I need to sleep ๐Ÿ˜ญ

restive turret
#

use this

icy knoll
#

yes

hearty shard
#

on experimetal branch yes

unique crane
#

Yep its fixed on experimental

hearty shard
#

david!

next oracle
#

Server Jesus has blessed us

gusty swallow
#

Is it possible to draw image on player's screen? And what about custom images?

unique crane
unique crane
#

Do note that they are much more limited

#

Look if it exists

#

It may not

#

Try it and see

random scaffold
#

nw moment

hearty shard
unique crane
#

):

restive turret
hearty shard
#

im sorry

#

you're forgiven

#

honestly

#

hm

#

i might make my prefabthing be a like PrefabStore instead

unique crane
#

what

hearty shard
#

so you do PrefabStore<SpeakerToy>.Prefab

unique crane
#

Oookay

hearty shard
#

otherwise theres the exiled method of PrefabType and storing it as gameobject

restive turret
#

PrefabStore.Yeet

hearty shard
#

๐Ÿ’€

#

3 options

hearty shard
#

get yeeted out the window

restive turret
#

nuh uh

hearty shard
random scaffold
proper rock
#

devs in the chat

#

deving hard or hardly deving

celest thorn
proper rock
#

firstly, ouch

#

secondly, i'm an environmental sciences major

restive turret
#

I am a dickhead major

celest thorn
proper rock
#

Yeah who do you keeps the environment environmenting

celest thorn
proper rock
#

Every single line of code executed in a discord bot roughly equates to the power used in those little LEDs

hearty shard
proper rock
#

which admittedly doesn't sound like a lot

celest thorn
proper rock
#

but extrapolate that into the whole world and you got at least a single lightbulb

celest thorn
restive turret
hearty shard
proper rock
#

I count Co2 emissions

upper vapor
#

.Concat()

restive turret
upper vapor
#

exists

hearty shard
restive turret
#

make it static

charred sapphire
#

Anyone know what events causes SCP-268 using cancel?

proper rock
#

and the most dreadful kind of waste there is... electronic waste

restive turret
#

whats 268?

celest thorn
charred sapphire
hearty shard
#

invis

upper vapor
proper rock
#

yeah i mean if we're powerscaling waste here

celest thorn
hearty shard
#

but other than that

#

is it fine

proper rock
#

no I take offense to that

hearty shard
#

do you like it :3

restive turret
hearty shard
#
/// <summary>
        /// Initializes the prefab manager.
        /// </summary>
        internal static void Initialize()
        {
            SceneManager.sceneLoaded += (_, _) =>
            {
                foreach (KeyValuePair<uint, GameObject> pair in NetworkClient.prefabs)
                    CheckGameObject(pair.Value);

                foreach (NetworkIdentity identity in RagdollManager.AllRagdollPrefabs)
                    CheckGameObject(identity.gameObject);
            };
        }

        private static void CheckGameObject(GameObject gameObject)
        {
            if (gameObject.TryGetComponent(out CapybaraToy capybaraToy))
            {
                CapybaraToy = capybaraToy;
                return;
            }

            if (gameObject.TryGetComponent(out SpeakerToy speakerToy))
            {
                SpeakerToy = speakerToy;
                return;
            }

            if (gameObject.TryGetComponent(out PrimitiveObjectToy primitiveObjectToy))
            {
                PrimitiveObjectToy = primitiveObjectToy;
                return;
            }

            if (gameObject.TryGetComponent(out LightSourceToy lightSourceToy))
            {
                LightSourceToy = lightSourceToy;
                return;
            }
#

its better than this code

charred sapphire
hearty shard
#

(which should go a lot longer

tulip kiln
#

๐Ÿ™

restive turret
charred sapphire
proper rock
#

I'm marketing so hard you don't even know

celest thorn
random scaffold
proper rock
#

I DON'T DO ECONOMICS

random scaffold
proper rock
#

or finances

#

I MAKE ADS

restive turret
#

ads?

celest thorn
#

lol

restive turret
#

in weapons?

random scaffold
#

online it economics

#

uh

celest thorn
#

i thought they did something like economy shit for nw too

proper rock
#

We make the videos you find on the YouTube channel

restive turret
#

whree 14.1

proper rock
#

7 hours give or take

restive turret
#

why take so long

random scaffold
proper rock
#

I don't knowa

hearty shard
#

slejm

random scaffold
hearty shard
#

all prefabs are monobehaviours right

proper rock
#

people gotta know about SL someway

restive turret
#

how tf would i know

hearty shard
#

im gonna kill you

random scaffold
hearty shard
proper rock
#

because if people don't know about SL people won't play it and that means I don't get money

restive turret
#

i can check what it is in there

unique crane
unique crane
#

oh wait

#

Thats reload/unload

proper rock
#

to buy cool things

#

like plastic toy soldiers

random scaffold
#

and plastic other thing

#

uh

upper vapor
#

cuz

#

MONEY

celest thorn
#

Crazy

random scaffold
#

but why

unique crane
upper vapor
#

to live??,

#

in a society

hearty shard
random scaffold
#

why you wanna live?

upper vapor
charred sapphire
random scaffold
#

it how

tulip kiln
unique crane
#

Sorry

#

No

tulip kiln
#

We're gonna get it one day ๐Ÿ™

hearty shard
restive turret
#

@hearty shard i dont know where to search the prefabs to spawn

restive turret
#

idk where to search

hearty shard
#

NetworkClient.prefabs