#plugins-dev-chat
1 messages ยท Page 141 of 1
It's not gonna work xd
who says that
Did you build the project
I do
And slejm does too
And the creator of the publicizer NuGet package
idc about any of you
not even the compiler
fuck the compiler
Write assembly then
ok
im studying assembly for my classes so
i can
specifically arm assembly for some fucking reason
Can this work?
I want to have an NTF player to have SCPs team so I put him to SCP-049-2 and fake sync his role (NTF) to Player.List also to himself
easier to patch team accessors to make it return SCPs for him
Yeah but I don't know how to how to use transpilers 
It'll be a lot easier to learn how to write one than do what you're doing
that or ask someone to help
You can prefix it

hiii
nerdy chat
dont use em then
prefixes are so much easier to understand anyway
transpilers are good for going into a big method, but yea its not required really
Fake sync to everyone? Including yourself
What's the point of that
If you want mtf to be part of scp team
Set the target counter to Math.max(0, normaltargets -1 )
Handle the friendly fire
Handle the VC
question, is there a way to like check what events are occurring ingame so i can know which event i can modify
would be really helpful and save a lot of time
for code
Your IDE should give you all the options if you do the inherited event handler class. Or check the log plugin in the Labapi solution
yes but there are a lot of options and i might do the wrong option
for example im trying to disable 3114's disguise ability so im just guessing around with the options like OnKeyDown()
i barely have any coding experience โค๏ธ
Highly suggest learning c# then first
You will struggle a lot
{
[HarmonyPatch(typeof(Scp3114Disguise), nameof(Scp3114Disguise.OnKeyDown))]
internal class Disguise
{
private static bool Prefix(Scp3114Disguise __instance)
{
return false;
}
}
}```
We have 3114 events afaik
For some reason this isnt working so im gonna just fuck my life
Also that is client method
You don't have access to that
Check 3114 events by either option above
There should be like
OnDisguising
Or something
Oooh! Very appreciated.
This is highly advised, game modifications requires quite a lot of programming and research knowledge
WOOOOOOOO
I DID IT
I MADE A WORKING PLUGIN........
That was so easy to learn omg
Thank you guys
yw
yall i have a question
how would i introduce a status effect without damage (for visuals only)
Fake it
so for example, cardiac arrest without damage
yeah so actually im asking how to do that
I think this has a extension for it
https://discord.com/channels/330432627649544202/1415579298055590011
i do have the status effect but im not sure how to disable the damage
ok ill take a look then
This is for exiled but should work on LabApi with minor edits
public static void SendFakeEffect(this Player effectOwner, EffectType effect, byte intensity)
{
MirrorExtensions.SendFakeSyncObject(effectOwner, effectOwner.NetworkIdentity, typeof(PlayerEffectsController), (writer) =>
{
const ulong InitSyncObjectDirtyBit = 0b0001;
const uint ChangesCount = 1;
const byte OperationId = (byte)SyncList<byte>.Operation.OP_SET;
StatusEffectBase foundEffect = effectOwner.GetEffect(effect);
uint index = (uint)effectOwner.GetEffectIndex(foundEffect);
if (index < 0)
return;
byte newIntensity = intensity;
writer.WriteULong(InitSyncObjectDirtyBit);
writer.WriteUInt(ChangesCount);
writer.WriteByte(OperationId);
writer.WriteUInt(index);
writer.WriteByte(newIntensity);
});
}
private static int GetEffectIndex(this Player player, StatusEffectBase effect)
{
PlayerEffectsController controller = player.ReferenceHub.playerEffectsController;
for (int i = 0; i < controller.EffectsLength; i++)
{
if (ReferenceEquals(controller.AllEffects[i], effect))
return i;
}
return -1;
}
Hmm, I need to learn how to create FakeSync things
Also improve the Transpiling pipeline cause its a pain rn
Reading the conversation here might help a bit
#1415579298055590011 message
I should probably finish my fake sync var gist
erm..
can i not just invalidate the damage?
That would probably be easier than faking a effect
yes
if (ev.Attacker.Role is PlayerRoles.RoleTypeId.Scp049 && ev.Attacker.IsNpc)
ev.IsAllowed = false;
but you need to have a way to track that damange and only cancel the hurting event if it's the "correct" damage src
i assume this is right?
Would also have to fix the stamina drain from the effect
yeah
-# if you don't have any other npcs attacking 
but
but
check for null
oh thats ridiculous i do need to check for null otherwise it throws an error
but anyways, the damage is still there
Always null check the attacker in hurt/hurting events
nice embed fail
It embeded
i find it a bit odd how it continues to throw an error even when the event is no longer happening (the damage)
but well what can i say
okay then it only shat itself on my end xd
what
is there any other way
cardiac arrest needs to have an attacker set?
well, when i died, it said i died to "SCP-049"
One sec I'll check
If you applied the effect not from a dummy then the attacker wouldn't be a npc?
no, all i did was just apply the status effect
Then the attacker is probably null and didn't pass the if check
the fakesync guy
ty this worked!
np
how come setting gravity does nothing?
public override void OnPlayerSpawned(PlayerSpawnedEventArgs ev)
{
ev.Player.Gravity = new UnityEngine.Vector3(0f, -4.9f, 0f);
base.OnPlayerSpawned(ev);
}```
is it not like this?
use the rolechanged event
i did but that didnt work
i think it might be because of the unityengine being in the way and i need to use it directly instead
ya
it should work
delay shouldnt be necessary anymore
forgot to recompile/copy 

it..... still.. didnt work..
๐ญ
i even changed the event to rolechanged'
rolechanged
NVM it workws
works
i was hiding the "if" because i figured it still worked but no. the "if" was the CULPRIT.
(i didnt want to set gravity to all players)
@upper vapor
Nem
Wait, duck
It is an exhibition in Hungary
There is a shitload anti gov pictures
man i thought
They are fucking awesome
i might not want to know xd
pride intershitty canceled xd
lel
Yes
Huh
Force Full Friendly Fire
but i guess u dont have to do that for scps?
neat to know
uhhhh
you can for 939
and uhhhh i think one other
but eg 173 doesnt tell server if it tries to snap a teammates neck so youd need custom keybinds to handle them attacking
same with 049
fast food founding fathers
i see, this info helps a lot! thank you
Real
is there like a method to check the count of certain roles
something like that
or do i have to do that "check" manually
Player.ReadyList.Count(p => p.Role == RoleTypeId.ClassD)
thank you so much
i assume this is a bit outdated and its like this
Player.ReadyList.Count(p => p.Role is RoleTypeId.ClassD)
to get the team count, it would be like this i assume?
Player.ReadyList.Count(p => p.Team.ClassD)
why is mirror so wonky
the == gave me an error
it's so strange
thx tho
i got an error on WritePublicData
whatd it say
also, does anyone know the format for RoleSyncInfo writing? it needs a NetworkWriter so i'm assuming I need to provide the role data too now
check usages
oh it just doesnt
System.Linq gives the .Count(
oh and
PlayerRoles for Team / RoleTypeId
public void WritePlayers(NetworkWriter writer)
{
writer.WriteUShort((ushort) ReferenceHub.AllHubs.Count);
foreach (ReferenceHub allHub in ReferenceHub.AllHubs)
{
RoleTypeId role = allHub.roleManager.CurrentRole is IObfuscatedRole currentRole ? currentRole.GetRoleForUser(this._receiverHub) : allHub.roleManager.CurrentRole.RoleTypeId;
new RoleSyncInfo(allHub, role, this._receiverHub, (NetworkWriter) null).Write(writer);
allHub.roleManager.PreviouslySentRole[this._receiverHub.netId] = role;
}
}
thats just an empty NetworkWriter as far as i see
yeah
i figured it out
i just need to patch PlayerRolesUtils.GetColoredName
we good
something ive noticed with 914, is there no way to edit the probability of items being added/removed/modified without disabling the events themselves and putting in the custom logic instead?
itemBase.TryGetComponent<Scp914ItemProcessor>(out processor)
I believe you may be able to change the Scp914ItemProcessor on an item
You'd want to change the Scp914ItemProcessor component on the ItemBase in the InventoryItemLoader.AvailableItems dictionary for whatever ItemType you want
Or you could just ev.IsAllowed=false; and replace it at the ev.NewPosition as you said originally
but that wouldnt run the next event Scp914ProcessedInventoryItemEvent no?
i tried that one and the next event never ran bc ofi t
of it
so ill try this
Correct
Let me actually make a new github issue
@slate flume i think these are responsible for changing this
but i dont understand the code that much
ohh im 90% sure its this one
Yeah they are
In the context of pickups (can be generalized to items to)
Scp914Result contains all the info about what items entered/exitted the pipeline
processor.UpgradePickup(setting, pickup); is what generates and gives you the Scp914Result
However you have to question, if the processor is what we're using to determine the Scp914Result, where are we getting the processor?
The answer is at the beginning of the ProcessPickup code
Scp914ItemProcessor processor;
if (!(!pickup.Info.Locked & upgradeDropped) || !Scp914Upgrader.TryGetProcessor(pickup.Info.ItemId, out processor))
return;
Scp914Upgrader.TryGetProcessor(pickup.Info.ItemId, out processor)
How does Scp914Upgrader.TryGetProcessor get the processor?
That brings you back to my original comments
.
If it is, then I was right
This does the same thing I just said
You replace the item processor component with your own modified version
Use the wrapper implementation though
I didn't know it existed but it's generally better to use LabAPI implementations than make your own
Enum.GetValues.....
That's LabAPI code
Check Scp914 LabAPI wrapper
They use it in three different functions
Something similar with the custom keycards which doesnt have the behavior on it, so even if you have that on cannot be upgraded
I fighting with unity to let me in
[northwood-studios/LabAPI] Issue opened: #292 [IDEA] Game's own map editor

i dont think that's ever happening
yeah too much
At this state write another game
which random should i use
System.Random or UnityEngine.Random
which one is easy to apply
Cus u better start from scratch
People say URandom others say SRandom not really care
UnityEngine.Random
thx
Use whatever you feel like i guess
I am so sad that System.Random.Shared isnt exist in net48
UnityEngine.Random.Range(0, 100) <= 25
am i doing this correctly?
does this account for real numbers btw
Float i guess
I through it returns float
there is RandomFloat i think
a real number is just
lets say it ranges from 0 to 1
a real number would be like 0, 0.01, 0.02, and so on...
while integers are just
You know
Random.Range(0, 1) will always return 0
Check the return type
it's an int
if you use float values inside of Random.Range tho, then it will return float
thx i did this instead
if (UnityEngine.Random.value <= 0.25f)
idk what you're on about we use FReal
/**
* A vector in 3-D space composed of components (X, Y, Z) with floating point precision.
*/
template<typename T>
struct TVector
{
static_assert(std::is_floating_point_v<T>, "T must be floating point");
public:
using FReal = T;
Joked about the engine name
typedefs/usings are prefixed with F
same with structs
how would you enable friendly fire for scps like 939 (towards other scps)?
im curious as to what the function might be for that
pretty sure it's in the server config
Is it like some c/cxx stuff or unreal does it that way
dont remember if LabAPI had another way
Unreal's coding conventions
it is but thats for everyone
you can just disable it via PlayerHurting event afterwards
Many scps already filter attacking on client side
i heard friendly fire is a thing for scp 939 in particular
I literally don't know
Typedefs should be prefixed by whatever is appropriate for that type, such as:
F for typedef of a struct
U for typedef of a UObject
I don't really use ff for scps
same
why not use requires
Lel funny and yeah make sense
what C++ version are those again
29??
probs backwards compat
Unreal uses C++17 by default nowadays with support for C++20
I think before 17 it was 14
Petris what year are we in
6000
I'm dead
seems like the engine does have a macro that handles that
between different language versions and compilers
eh ยฏ_(ใ)_/ยฏ
they're still going through the engine and removing their usage of FORCEINLINE for the most part heh
they did a 180 on the usage
afaik Epic prefers letting the compiler handle it in the majority of cases nowadays
peeps were using it haphazardly and it just became more detrimental than anything
Lel
i love lua's undocumented C api functions
how the fuck does one find a table by name
in globals
It might be? Im not 100% but since its swinging you just have to make them able to swing to teammates (939 always sends swing, unlike yk 049 which doesnt)
how and why...
im stupid, can just do lua_getfield(L, LUA_GLOBALSINDEX, "field")
show code around that second screenshot
the full method if possible
there is nothing that would do anything to it
setrole is just broken
0 delaying it worked
nw moment
you can also use PlayerChangingRole to override the role they're getting at round start
better than setting the role again after
usually it's a unity moment
not in this scenario
Unity didn't make SL's role handling logic lol
classic
how? does it actually work for all scps?
Unity Role handling asset $932 on the asset store
Yes
At least last I checked
I haven't used it extensively
REALEST STATEMENT
You can also use Random.value <= 0.25f
Oh you figured it out lol
Real estatememt
Something that isn't unreal
R halmaz
Like
Idk math
All the numbers
How did you fuck up that so badly
I fucked up a patch so badly i lagged the ui on the client somehow
bruh
Programmer?????
Not anymore our bestie api maintainer???

Yippe :3
:3
Crazy
Also now you got ax
:3
lumi and slejm
What???
This is crazy
Its been like this for over a week now XD
Thats why i never saw any of them
Lol
And iโve been developing still but no problems
Trial chambers
basement*
what the fuck
not you
we're actually getting ai slop PRs
"reduced clutter"
"the tariffs are high so i removed all imports"
๐ญ๐ญ๐ญ
When does the PlayerValidatedVisibilityEventArgs get triggered?
every time
for every player
to every player
so like
players^2 every frame
when the game checks whether a player should be visible to another
thanks
np
i didnt think we were allowed to say so i didnt say anything ๐ญ
uhhhhhhhhh
silence
david you doomed us all
๐ญ๐ญ
can we ban new contributors from the labapi github repo 
or do what the linux kernel repo is doing and auto-close all PRs
hey we do now get access to the repo if you connect ur gh
so technically, yes
just manually
:3
The poor nextjs repo
have you seen it
i don't want to
or something js repo
it's not even ai doing this bullshittery ๐ญ
XDDDD
I meant in this days
Idk i didnโt see anyone and im just talking in general most of the time
I rarely in general
Nah i meant even here
And usually you start the conversations, or someone regular and I join
Yea im bored in this days or trying to have ideas
For maps
And even if I dont do anything in labapi I have other projects so I code with there too
Yea
Makes sense
I have too much stuff to do so
So like 90% of the time on PC is I code or I watch series
Like uni, tournaments, maps etc
Crazy i just donโt watch even series
I just spent 90% in a car
Or coding
Currently its Scooby-Doo Mystery Incorporated or something
Lol
I wanted to start something
I still plan to watch 3 other series but eh
But idk
I mean while coding i even played xenoblade
Entire
120 hours
Of peak
Story wise
I waiting for netflix to add hun dub for Lucifer
Nah please no lucifer

You remind me of the white girls
What
Idk lucifer i always seen girls watching it
hi slime
Hi
Not hi
Lel, I mean pretty much I grown up on watching murder mysteries
The Mentalist
I like those genre i donโt have time
Or i prefer playing games that fall under that
CSI , and others because my grandma watched those
I LOVE CSI
i still watch it
:3
And when I was there I was secretly watching it
My grandma introduced me too
Nah my grandma loved it too
Bones is the other one
So we shared the passion
You know what game now it comes up in my mind
Heavy Rain :3
Really cool game
About a killer and you are 4 character that are trying to solve the mystery
Its made by the same dev of Detroit become human
I only heard the name about it
I tried detroit but dx12 ducked up
Wdym #1 pr
Oh
I think its the same guy that complained about labapi receiving features
He also create this
#labapi-logs message
Crazy
"just use exiled because labapi shouldnt improve cuz exiled exists"
๐
yeah this dude loves to hate on labapi for some odd reason
they are an exiled dev
so
bias
I cant wait to break exiled ๐ฅ
I HATE when labapi gets updates
Why the hell on earth should it improve?
Idk people nowadays shit on everything
they will never be happy
why shouldn't we make LabAPI a fully-fledged modding framework with all batteries included
ai?
I mean ai sometimes does that
But the person had to manually fork repo
Commit the code
Push the branch
Create pull request
And then do the same thing on a different repo from another NW member
Thats the part I don't get
right
um
maybe there's a tutorial on youtube that includes a part where they fork a repo, remove comments and new lines, and make a PR to upstream

Like literally
create a PR that removes internet connection
yeah i saw it
idfk how did we get to this point really
if I get a PR like this i will forever ban the person to committing any code or creating any issue
I guess someone blind would accept it and be included as "contributors"
So real
Let me delete all the comments from the whole LabApi
let me delete labapi
at least it's not "update readme"
but honestly
And then just add 1 file "we don't need it.txt"
And make a PR
express your feelings of contribution desire
i wrote desiro
xd
well
he has repos
A basic C# 3D Game engine using System.Drawing. Contribute to seksirakun/ThatNight-Engine development by creating an account on GitHub.
emojis in readme
hes also not using enums
pretty sussy
um
Which he all stared
read all of this prs
is this fukin winforms
yes
it has nothing in it
oh no....
theres no code
lmfao
theres no release
you know how to solve the cheating problem
Will do!
an a customizable anticheat
but then
discord server
run ML and make it learn pattern of SL shooting
im sorry but ML model proved to be effective in minecraft cheating which is IMPOSSIBLE to detect
you can't see the releases beause you haven't joined the discord 
it could just be chatgpt
I would ping someone else to ask for their opinion about it
But it's clearly not worthy
mega troll
ced?
Let's ignore also that he had gave a star to himself on all the repos
Nope
um
look here
1746 lines
At NW's Cheating development PLEASE hire this guy
he works better than all of you

cheating development
so midnight has been northwood all along?
also
yes...
using reflection instead of Enum.GetValues or just EnumUtils<>.Values
100% chatgpt
reflection ๐
I cannot believe someone knows how to code when they literally removed docs from the code
there's no way this is real
I don't even know what does this do at this point
"you need to select a role"
"if ur not this role it doesnt work"
why not just
whjat
oh
cuz its "ifrole" command ๐
it just checks if you are the role you provide
skull
iflife (shit) { quit(); }
Bro makes it harder
Like my life
it executes something if you're that role
crazy
only nw could do something like this
What..
iflove (nolove) {
iflife (shit) { quit(); }
elif { quit(); }
}
???
Link it or I won't believe
Jesus Christ
all in 1 file
Yeah I was scrolling and scrolling
no winning
what does that gif even mean
50 ish classes in the file
why make separate files when the compiler generates one dll?

๐จ
best inspiration

ai gets inspired
all in one file so
first SL plugin LLM gets released
who
finally i can die
the guy from #labapi-logs
chatgpt can do my work
the guy that has 50 classes in 1 file
"seksirakun" ?
yes
yea
yeah who the fuck is that
no clue
some random that wants contributor
by removing docs in Player.cs
or wtv file it was
i dont remember
ye
Literally
secret developer for the secret laboratory
Good
so we can finally do something else
๐
@unique crane 2.0 now
๐ฟ
hes programmer because he needed to help on 15.0
honestly, the best switch is "Northwood Staff => normal player"
Nuh uh
honestly
Hater
bro let me forget how to develop
all of the games i've played
so i can just play them back
It is somehow true
Like if you learn something
You won't be able to come back
there was a philosopher saying that we are like a river, the river is there but the water is always changing so we will never be the same as before
real
Like in psychology
If you learn about human behavior and psychological stiff
You won't be able to ever normally be in a normal relationship
You will always see those stuff
I did learn it and even sociology and its useful
but really makes you see everything different
Yeah I agree but sometimes I do have that feeling like I shouldn't
i didn't study like full psychology like a graduate but alot of stuff i did
That's why they say
The less you know the better you sleep
true
please can i go back being a fucking baby that needed to count with feets and hands

I still count on my feets and hands
Bro is one step ahead
The scary part is that I do know some people who will open chatgpt and ask what's 1000/8 instead of calculator or just knowing that it's 125
...
...
god help us
i don't wanna be THAT stupid
Never did
i seen a photo of a lady sending heart emojis to chatgpt saying "Thank you"
NullrefException on line 3213 
like bro chagpt is not real it doesn't understand anything
If ai becomes sentient she will be spared
my friend says always "Hi chatgpt, can i ask you a question?"
BRO LIVES FOR YOU
bro we're losing brain cells every generation
๐ lmao
stupid clanker
WOAH
I saw a document once
That the "hi chat" and "thank you" costs open ai millions of dollars per year
which one, the girl or the boy one?
axwabo was risking
i don't know
HEY
i'm 40% clanker so i can say it
-# until nw makes a rule
its a joke i don't know if alex actually uses it or no
I didn't
good
wdym "i didn't"
I didn't use grok ever
I start with
Hi, this is my problem solve it
I said SOMETHING crazy and the automod blocked it
but the one that doesn't have gender
@tepid sluice ban her
and doesn't wanna behave like a woman without clothes
๐ญ
one thing, and i don't know why
who pinged me
alex is so broke to pay for grok
I did
the ghost
like me i'm also broke
I would rather buy monster cans
๐ญ
ofc
alex is bullying me
don't worry :3 im too there
I'm not 
NOT HR.....
๐ฟ
whats up stinkers
How scared is Alex of HR
OH NO
HR is calling
AHAJAHAHAHA
what??
honestly
Hiii David
the ai has an woman without clothes behavior to please gooners
i wish clanker stayed how it was with being for star wars
my life is komor
This guy that removed the docs did the same in Michal repo
and didnt turn into an n word replacement
woah
๐
she can say this
and i can't say woman without clothes??
referring to an AI
lol
i'm not saying it as an n-word, i'm saying it to insult ai
i know
but ive seen it as a replacement
and it sucks
that was my complaint mostly
are different people
well said
thank you :3
Can't wait to see your message in a few months and people will ask why NW staff said such a thing
also i have a fire hazard in my room ๐ฅ
I can bring back the convo of yesterday about Spooky?
living life until i burn in my sleep
NO

AHAHHAHAHA
What
lmfao
the
bro i remember everything
๐คจ
Let's not talk about NewOf 049 resurrection video
@celest thorn
๐ญ
You will regret it
this explains a lot
cant be that bad cant it
Bro you need to translate
why was it in plugins-dev-chat
The tag is my advertisement for my bot

AHHAHAHAHHAHAHAHAHAH
bro didn't even try to cover up
I didn't try to translate
WHATTTT
The b word is banned
Thank God
no
It's a real ad for my bot..... ๐ญ
bkisser
all the
fluffy male smoochers will fall for it
what happened in this chat
you don't like kissing boys, do you
Ax....
i do, but not furries
did you fall for it then? 
Hi Lumi!!!
Lumi you have to see it too

bro
you are a horse
hey heyyyy
so
^^
iโm a kitty bruh
don't worry alex 2 programmers are going insane as always
BRO is the one who didn't want to spread it
and now you are the one spreadding it
LMAOOOI
i got confused
you are a
um
a uhhh
pizza
sorry
im not a pizza bruh
amazing
AI mode
3 API trials here....
Can we get AI-less mode tab
Can you please add AI to SL?
HEY dont include me in this one
I would say something bad to you
Dummies can be considered AI
just not so smart
only 2
Kinda dum
Huh why
(ies)
Bruh
Same thing
who is the third
Lumi Slejm Ax no?
wait so it was a joke or not?
i don't understand
they don't have any roles
or stuff
Huh
because trials
ok bruh
I want my slow code!!!!!!!
==* smh
Lumi Ax and Slejm
3 of them
-SL haters, probably
unxpected token '*'
Check the staff server
Lumi is a trial
i actually didn't know lumi was a trial
blud is leaking internal documents
i'm not dumb RAHHH
Nuh uh
Literally
yeah but i didn't see the badge lmao
the reason is simple, some trials may not pass the trial so it is their decision to make it public
oh ok
XDD
alex is infringing on lumi's privacy rights
ban!!
Yeah after





