#plugins-dev-chat
1 messages · Page 101 of 1
Hi,
I'm looking, but I don't see how you can retrieve latency with a client.
Do you recalculate it yourself, or does Mirror allow us to access it?
LiteNetLib4MirrorServer.GetPing(player.Connection.connectionId) * 2
If you publicize it everything you can access
Ty ❤️
Is this a plugin or edited game code.... I have no idea at this point but holy shit
plugin
thanks
That's just a plugin?
yup
Killers was faster at releasing a streaming api
though it's easy with the MediaFoundationReder
oh boy would you love to hear about the audio being delayed by 0.1s
wait is ur plugin a clone of audioplayerapi? just better? 
Good job 
No.
Sl is toooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo shit
GD in SL
not with 0 ping 
even with 10 ms it causes desync
obv
?
funny thing you know that the lower your fps are the more you jump
and another fun fact the lower your fps are you cannot climb stairs
Ax and Zero r my favorite plugin devs fr
Y'all cooking
Nah bro remove me from the list
i don't deserve it
i still need to cook something far crazier
Nope
to actually be inside that list
Towers
towers is 6 months i work on it
9 if we count the prototype which lets not talk about it
actually really funny
FORTNITE

its not like fortnite
it was an ffa with some elements from fortnite
but then it got scrap
and some of the code used for atoh
which fun fact is still used today
i have a video somewhere
nah
:((
Dm info or no
even tho i know for sure it will be scraped
My dms can't get scraped
❌
i mean i cannot leak it
like if its done in the future?
it could be done for partner ig
but idk everything needs to be choosen by maro
so
i have no power in that
Okee
my power is just slavery happy working
My power is playing atoh for free and reporting bugs
ig

honestly atoh is not the craziest project i've worked on
It's not ?
and there's one that could surpass it easily
No there's a project where i actually spent 2 weeks doing and i went crazy
like crazy in a sense that its crazy
no sleep
no nothing
just working and math
Atoh already destroyed my mind
idk when this will be done because its a bombshell like crazy good
but its not in plan rn
ig
as i always say idk anything i just execute what i get said and my only say is plugins (and sometimes not even that)
My reaction
reál reaction
Honestly we should do classD Skibidi toilet
No i mean the model itself
not some shit schematic

bruh
lets start pinging the entire nw team to ask if the 1st of april they can do skibidi toilet classd
Don't......
yes
already the game crashes
XDDD
What does that even mean
ban
my audio contains 48000 * Doctor Lab.ogg
48000 * Heavy containment zone
Wow....
mixed or concatenated, you decide 
What r u on about
do you want Doctor Lab.ogg played 48000 times sequentially or at the same time
sequentially more torture
at the same time is better
trust me you can bear it
cuz your audio driver normalizes volume anyway
russian eve disappeared
so sad
listening to doctor lab for 51.66666 days straight
please no
i prefer listening to other songs
hypixel zombies prison rail gun
absolutely mutes the system audio for a brief second sometimes
Hypixel zombies
this much more a banger than any song in sl
memories
change my mind
MEMORIES BROKEN
Hypixel zombie mode FUCK YEAH
real :(
Thats not even SL
how can you compare that
xd
Zero please make zombie mode in SL
I'm begging
you're not allowed to listen to any songs that aren't SL OST 
I already made it
but got scraped
Give me an access
is it like on hpyixel though
you don't know how many projects do
Bro just scraps projects for no literal reason
and shift+deletes them probably
They don't pass the maro's check
😢
or else they are too impossible for sl to have them
or else gold fish minded player cannot understand them
invalid argument
You don't know how many projects i work and scrap
i try to make them all
and fix them for even the gold fish minded player
the problem is if QA cannot understand them or even just one player i already failed
99% of the people will never read instructions
so i need to make them really EASY
Your not gonna finish anything with that mindset
The problem is 100% of the time i make scrap projects that i love
Well im telling you
The problem is i need to even explain to those
then make it
Like what is that logic
Idk logic of making everyone being able to play and if it fails from the start
its useless
atoh is plug and play for a simple reason
99% of the QA's don't check SSSS
so i just made commands
the problem is if dumb people exist that don't read tutorials or docs
i just will every time try
Yeah those exists
to make it simple
The process is
- I love the idea
- Maro does like it?
- Is it possible with sl
- If its not go back into the board and start brainstorming
- Does it run smooth on most pcs?
- Can it work?
- Can a goldfish understand it?
- Is it fun?
- Im having fun?
- does QA have fun?
- Breaking bugs?
This is the entire process
trust me in 500 ideas only 10 can go
I think that "is it fun" should move a bit earlier
I love the idea counts is it fun
i don't think about competitive
but more is it fun
then i see what i had in mind and compare it to im having fun
too many requirements
What was that
really who tried mister boost
for example last tourney it was all like this
and everyone saw the result
the problem is more it will pass maro's seal of approval?
and will nw like it?
remember to have fun in the process of making the project
I will never propose something i don't like
or if i see its too boring i scrap it from the start
not even in the board of ideas it goes
(im the only one who post there)
Me deciding whether should your plugin run on SL or crash instantly
this is how many messages there are
the count is like that because i make assets screenshots updates and everything
I mean its more will upper management like it
but im not into that and that is the work of maro
lol
Im sure that SL GD scrap a lot of stuff too
im not good at stuff like that
my process of scraping is like in the thousands
there's an idea rn i love so much to transform in a tourney im trying everything to not make it go in the scrap
game design
you know whats funny i have drawing of stuff
like all of the maps i make
all of the stuff i make
has a drawing
if i release all of them you know what type of drugs i went through to make it
idk why i like alot drawing ideas in general
it gives clarity to what i have in mind but 99% of the people cannot understand them too abstract
but once you see the result and you compare them you understand where i started
an example
default:
inherited_groups: []
permissions: []
vedeni:
inherited_groups: []
permissions:
- mpr.*
- .*
shouldn't this work?? Why doesnt it give me neccesary perms?
saturn
no
not the correct channel and its because you don't have the group set and + you don't need mpr.* if you have .*
i know that i don't need mpr.* But I tried with .* and it didn't work :D
you need to use the inherited group thing?
with this much small amount of detail the best i can say its that you didn't set the role to your account
Well I use cedmod to setup groups on my server. Problem is plugin permissions don't work on labapi plugins on the cedmod panel
so thats why
cedmod replaces them
use cedmod
thats strange maybe ask on cedmod discord
Alr. Thanks for the help!
This remind me of that one render I did
with a planet with ring around it
none will ever guess what this is lol
Ill find it
like 100%
saturn?
saturn is beautiful
amazing planet
and the best DLC of destiny 1 was set in there
its an exoplanet? with rings?
I guess
btw i cannot say what it is
but that is a map layout
i know it sounds crazy
but thats a map layout
which i have drawings already
its a perfect circle because details aren't needed in that case
but other drawings it has details
let me search if i have drawings of stuff i already showed off
this was supposed to be the hub
for atoh
from top
There are alot of references from roblox
and this
Oh nice
yea
shart clip
yamcha pose, idk why but in the dlc everyone has the same animation and its a clone of the yamcha pose which makes it funny
Gonna take a look when I'm off work!! Ty for the ping
im having a problem using ex-mod, every time the round restarts it restarts the server, how i can fix that?
i have these two disabled
I Recommended to you to ask directly on the discord of the Exiled Framework
@lusty fox you should be able todo player.ConnectionToClient.rtt round trip time is that same as ping
Is there still no way to know what color candy the player just ate?
Get the event and check the kind
what is the event?
Idk probably PlayerCandy something
Or if it doesn’t exist just use PlayerUsingConsumable and check if its candy by doing ev.Item is Candy
i think theres a ItemApplyingEffect event you can use which should have a valid candy SelectionIndex(or what ever its called?) when its invoked
Thats correct
The candy is the bag
right, but the index is wrong because the bag doesn't contain the candy that was just eaten
^ ig then use this
thx
Simple question, how much am i cooked with 20 question for 50 minutes (all of math) and the min to not get expelled is 8, or else in the entire test i should get more than 15 and in math 6
Easy
EASY? bro what im seeing is like advanced math
i didn't STUDY NONE of this SHIT
im baffled of the complexity
Im never going to get in with the correct credits
Rip
Hey david is it possible to make knockback?
Hmm i need to start checking
break and place a lectern in front of an unemployed villager until you get it 
yeah i'd like my PositionDeltaMessage
Thank you
np
private IEnumerator<float> PushPlayer(Player player, Player target)
{
Vector3 pushed = player.CameraTransform.transform.forward * 1.7f;
Vector3 endPos = target.Position + new Vector3(pushed.x, 0, pushed.z);
int layerAsLayerMask = 0;
for (int x = 1; x < 8; x++)
layerAsLayerMask |= (1 << x);
for (int i = 1; i < 15; i++)
{
float movementAmount = 1.7f / 15;
Vector3 newPos = Vector3.MoveTowards(target.Position, endPos, movementAmount);
if (Physics.Linecast(target.Position, newPos, layerAsLayerMask))
yield break;
target.Position = newPos;
yield return Timing.WaitForOneFrame;
}
}
This is what the villager found
is this for a dummy?
Yes
nah im thinking rn ways to make a charged attack and make people understand there's a charged attack, i could perhaps use Fade
and make it blink?
Im wondering is it more optimize to check inside a monobehavior if the player is pressing a button or is it more optimized if i do it when they press it
Depends on what you're trying to do
If it's a one off use the event, otherwise checking isn't gonna be expensive anyway
events then
^
Idk i would prefer having it in the mono
then do it in a component
it's cheap
You can also just handle the events in a component anyway
No need for polling
what is MonoMod.Utils and is it in the game?
No
damn
Harmony deps
no AddRange for dictionary :c
Harmony's dependency I think it bundles with it
create an extension method
SLEJM
Russian eve is back
Yes
No
Hi
Hi
what's the most efficient way to do it tho?
foreach?
yeah
not much else you can do
if you have a list, i guess you can use a for loop
which in some cases maybe a tiny bit faster
nah what im doing is adding a dictionary to a dictionary
does LoadPriority not work? set my plugin to highest but it didn't run first
doesnt
let me see
So load is the issue
yeah
yeah there the priorrity doesnt apply to loading
Enabling is based on priority
We cant load them by priority
why is it called LoadPriority if it's for enabling...
if the priority is inside the plugin itself
use the global directory
i do
Prepend 0 at the dll name
yes xd
will break my auto update system
so
this is gunna be so fuckin fun
can't have a period at the end of the name :(
what are you cooking now bruh you only just finished NAudio
it's on github, you can check
looks like we're gonna have 3
@unique crane for plugin loading, is .dll removed from the names?
like i see it's alphabetical order right, but is .dll removed from that sorting?
No we store the full path to the file
If you mean that
as for alphabetical order
it doesnt matter
its from left to right
.dll at the end has no effect on the sorting
oh ok
First character, if same then by the second character
so DiscordLab.dll will appear before DiscordLab.Administration.dll?
and so on
i hit the windows path limit 
Uhhh is lowercase or upper case first
to char number
it's weird
might be different on windows and linux
lets give it a try then
well shit
yup it legit goes to last to load if I remove the capital B
bruh
Aha so on windows
It will compare by alphabet
ignore case
but on linux
Uppercase first and then lowercase
yeah so fun
maybe make it so .dll isn't taken into account in the loader for next version or smth 😭
tell that to Directory.EnumerateFiles (or, well, the file system)
Put the required classes you need for all of these plugin dlls
.OrderBy() :3
the reason i packaged everything into 1 plugin is to make it so people dont have to add a dependency 😭
There is something called
AppDomain.AssemblyResolve
Event
Ill look into that in the afternoon
With that
Requesting assembly might be able to load the required dll if its its dependency
yippie
guess i gotta keep dependencies being packaged for a while longer then 😭
also gotta wait for abstract plugin stuff
did that get merged yet?
nop
😭
hi david
i only messed with embedded resources in my last PR
you could extract some stuff to the Dependency project
and use [TypeForwardedTo] so you don't break existing references
yeah i might do that for now
but when your pr gets merged, ill have to move it all over
what is that?
wdym
you put it on classes in the original assembly
uh
nevermind
you have to put it on the assembly
Dependency only exists because if there is an abstract Plugin class, labapi will try to create it
i planned on removing it once ur pr gets merged as that's all it's needed for
right
yea
i don't think assemblies should be broken due to dll loading order though
they're dynamic after all
if you have a duplicate reference then it shits itself (i encountered this with embedded resources and fixed it in the PR)
thing is i never noticed this with exiled because my dumbass didnt realise that i could make it so the package could be used outside of the project, so i put it in every project and packaged it with costura fody
now that i know i can only put it in 1 place im good but ye 😭
only way to fix it now is well, just tell people to put the dependencies in
my old POC of ASREsolve
internal static Assembly? AssemblyResolveEvent(object? sender, ResolveEventArgs args)
{
var _FileName = "";
try
{
var assembly = new AssemblyName(args.Name).Name;
if (assembly == null)
{
Log.Warn("Assembly is null!");
}
if (assembly.Contains(".resources"))
assembly = assembly.Replace(".resources", "");
_FileName = Path.Combine(File.ReadAllText("path.txt"), $"{assembly}.dll");
if (Directory.GetFiles(Directory.GetCurrentDirectory()).Contains(assembly+ " .dll"))
{
return Assembly.LoadFrom(assembly + " .dll");
}
else if (File.Exists(_FileName))
{
return Assembly.LoadFrom(_FileName);
}
return null;
}
catch (Exception e)
{
Console.WriteLine(
$"Cannot find a file(or file is not unlocked) named:\r\n{_FileName}\r\nWith an exception: {e.Message}\r\nApplication will close!");
Console.ReadLine();
throw;
}
Does the force jump apply when you are already jumping so can you make like a double jump?
because i tried doing
if (PressingJump)
{
if (grounded && _jumpCount == 0)
{
FpcRole.FpcModule.Motor.JumpController.ForceJump(FpcRole.FpcModule.JumpSpeed * 1.5f);
_jumpCount++;
}
else if (!grounded && _jumpCount < Jumps)
{
FpcRole.FpcModule.Motor.JumpController.ForceJump(FpcRole.FpcModule.JumpSpeed * 1.5f);
_jumpCount++;
}
}
Michal has made double jump work (by triggering force jump with a firearm)
Force jump ignores that
You can jump as much as you can
Double, triple
Nth jump
yea but it doesn't work
It just gives you velocity on server and client
where do you get PressingJump
SSSS
Do note that it takes effects into account
I think
yea idc
yes it does
the only problem i have if im mid air and i try pressing the jump button it doesn't
jumps is jusr 2
log if the methos is called at all
let me check
In that case you just have some issue in that logic
You can force jump as much as you want
And it doesnt get called
It gets called
only when i do it when its in mid air
i mean the method doesn't work at all
for what im seeing
its getting called
SSSS force jump speedrun
Idk why it doesn't work for me
1m 30s WR
Now that I think I could just enable QA plugin
and use SSS that has everything in it

¯_(ツ)_/¯
Maybe you patch something somewhere
that causes that
Check it on like a dummy
maybe you just dont send the message to the clients for some reason
I believe some patch breaks it then
its just one plugin server
with no patch
btw it doesn't work only when its not grounded
idk why
i imagine that the jump method is called every time the person presses space, so then it checks if ur on the floor and then if u are, u jump
lol
so strange because if i fell off and then try it works fine the first jump (because its forced) but the other is not
trol
no
do you run it in a loop
Update of a mono
ah
because im testing it with a dummy
btw every time the player gets grounded it sets the jump count to 0
show the full behavior
yea
public void Update()
{
bool grounded = FpcRole.FpcModule.IsGrounded;
if (grounded)
_jumpCount = 0;
if (PressingJump)
{
if (grounded && _jumpCount == 0)
{
FpcRole.FpcModule.Motor.JumpController.ForceJump(FpcRole.FpcModule.JumpSpeed * 1.5f);
_jumpCount++;
}
else if (!grounded && _jumpCount < 2)
{
Logger.Info("WORKS");
FpcRole.FpcModule.Motor.JumpController.ForceJump(FpcRole.FpcModule.JumpSpeed * 1.5f);
_jumpCount++;
}
}
}
i think grounded stays true for a frame
would be funny if the dummy's motor didn't update its position based on the jump 
-# it sets MoveDirection so it should work
try moving to FixedUpdate
LateUpdate
it works fine
ah
if i do it manually
that maybe
AfterLateFixedUpdate
Wait the jump is infinite now lol
XDDDDD
create a cooldown maybe
but if IsGrounded isn't set then shit
your condition is not gonna work
How tf is it not set
base game shit
if you set it then it's set
otherwise it isn't
charactercontroller moment
but wait it wouldn't make any sense
because else why is it logging Works
the frame while im in the air it does trigger
just not the jump
So should i move it there?
try it
but it's likely that your component will be updated before the charcontroller
log out IsGrounded every frame in Update
Let me test logging it
So.. unity moment?
HUH
this is on update btw
But wait, you said your doing double jump via SSS?
no via a mono
but the clicking of the button is done via ssss
via a skibidi bheavior
PressingJump set it to true when the player is clicking the space bar duh
show it
that is insane
i mean how could i fix it
The one without the work works fine
the other one doesn't
i see the first one
not the second
but if i remove the mention of grounded and make it myself then yea it works fine
Why you don't just handle the jump in the sss
Why
Just subscribe to the jump in a mono Start
calling monobehaviour "mono" is like referring to a red apple as "red" 😭
You gotta subscribe to the event either way
Bro why tf should i complicate my life
Idk
axwabo alone in the vc
Not home unfortunately
I just need to get this shit fixed
and im getting mad
this is the last thing
i need to do
it works
regardless of grounded state
i know already
😭😭😭
Tf
if i remove mention of that fucking grounded it works
How did you end up solving it?
idk axwabo did while i was eating by doing 0.03 delay

xdddddddd
my dad was back and screaming that im always at my pc and i went as soon as possible
rip
i mean now its coding time
so until 2 am im not going to bed
i need to get atleast to do some stuff
@unique crane sorry for the ping but you know if something is wrong with the Relative Position and dummies?
void SetPosition(Vector3 dir, float distance)
{
Vector3 vector = Dummy.ReferenceHub.PlayerCameraReference.TransformDirection(dir).NormalizeIgnoreY();
FpcRoleDummy.FpcModule.Motor.ReceivedPosition = new RelativePosition(FpcRoleDummy.FpcModule.Motor.Position + vector * distance);
}
Im using this
and it doesn't work at ALL
yes...
please don't tell me the codebase is riddled with comments like this
Next one is going to be
// this moves the player
transform.position += distance
Crazy
RoomUtils used to have "Boobs" in class description
HAHAHHAHAHAAHAHA
And that was the only thing in there
Crazy
I looked at git history and I know exactly who added that
you NW dev deserve a medal
But I will never tell you who
thank you for your service
I will forever try and find him/her
Oh wait i forgot there are no females at nw as dev
There are
you remembered me……..
obv?
Nah how can i forget the websites of nw
i’m web dev
hi web dev
rip
@ lucid please ban
please can we ban me
cinema
@ lucid
still waiting for the MovementSpeedMarkipiler to sync
My favourite method parameter in TestItemViewmodel
What is that?
Like i've seen it a ton of times
but never understood
what it could be
stringUwU
dam
I did not found that myself
let me show a comment that i did at 3 am
someone told me about it
https://ratcentral.skibiditoilet.net/🐀/g05yi4l0.png
https://ratcentral.skibiditoilet.net/🐀/0y6am29l.png
this are real comments at 3Am
So real
What do you mean by the second one 🤨

sometimes i hate this game so much
please when will Central go down
forever
I agree with your raised_eyebrow emoji
i cannot escape my slavery happy working

no comment
wtf is this emote
Shy guy pognt
ban
Will SCP-Mark be included?
He even said he wanted to play it
Like imagine event
Staff and markiplier plays
Absolute cinema
what's the first thing you'd show to market flyer
The amazing Bathrooms of sl
Yes
0 clue
PLEASE
or atleast settings
I want to shit without lights
you have an accessibility option for NEEDLES but not PHOTOSENSITIVITY?
Skill issue
i might have to break free from this game
Honestly ngl this is the period where i want to play story games
but WE NEED TO GRIND
i know one day i will reach the point of not return and scream or just go nuts
Post footage of yourself cheating in NWAPI discord
||(please don't take this seriously)||
Crazy
XXXXXXDDDDDDDDDDDDD
I met one friendly cheater in game
Who was like
"yeah im playing this just for fun"
"Wanna see how I climb that storage shelf?"
Clueless who was he talking to
bro was cheating infront the wrong guy

hope you got his auth and got him banned
I don't think he can request his auth 💔
so sad
is there a way to track when the server is being stopped? someone is asking to be able to track it and i dont see a way of doing it...
Shutdown.OnQuit
event or?
i was about to say it
thanks
Action
you know you can make an Action an event right?
so is it an event?
ye
thank you ax
i hate you too ;(
you are a meanie
im well aware
np
Is there a way to delete/remove/freeze the helicopter model so that only the sound effects and particle effects continue to play out?
-# ParticleToy when 
nope, you have to do that yourself
that would be crazy
and fucking awesome
I would love to work with the unity particle system, primitives are the worst for this kind of job
Please no
this game is already a mess
base game lag is unbearable
Unity's particle system
a great system for making particles
-# -Dani, some time ago
DANI REFERENCE
Oh, you don't know what karlson is?
yes bro
you don't fool me
yoink
noonononononono
not Unity Particle System
That uses the CPU
bad

Fortnite
Vector3 targetPos = _dummyTransform.position + (_mimic._facing == Vector3.right ? _dummyTransform.right : -_dummyTransform.right) * distance;
How could i simplify this logic?
me creating one texture with 100K primitives
I could
just don't simplify
you could create 50 of those
what can facing be
no 500
Where its looking
Right or left
but i need to always face right
you know you can TransformPoint on the gameobject instead of _t.position + dir
what
talk hungarian
_dummy.transform.TransformPoint(direction)
so if i make it Vector3.right
it WILL always face right
what
i need to always face right
beszarok itt mostan
use rotation to rotate when rotation
and then rotation of rotate
Vector3 targetPos = _dummyTransform.TransformPoint(Vector3.right) * distance;
Lets test this
no
transformpoint returns a world-space vector
_transform.TransformPoint(facing * distance)
;(
i hate my life
like why 11 years old me thought it was a good idea to become a dev
;(
mone
you can both 
Developing is just a nightmare
but i must say
the last circle of hell is gone
and that is
net.minecraft.server
living is a nightmare
Its a nightmare you chose to enter and stay in
it is not lua is nightmare
fr
TRUE
fucking hate lua
that too
🗣️🗣️🗣️🗣️
trust me
or java
WHO TALKS ABOUT LUA
is the real nightmare
GET OUT
W
yes fuck lua 🗣️
Gta 5 devs, Roblox devs, CC:Tweaked people (so me) and alot of other people all gone
good the good one stayed
And source
FOrgot about gmod
gmod with lua aaaaaaaaaaaaaaaaaa
S&box use c#
gmod is great lua is not
when S&boy in C++ 





