#dev-general

1 messages ยท Page 443 of 1

forest pecan
#

XD

boreal needle
#

look at that staircase

forest pecan
#

ikr

onyx loom
#

what in the fuck

#

staircase to HELL

forest pecan
#

lmao

obtuse gale
#

๐Ÿ˜

boreal needle
#

why no screenshots :(

obtuse gale
#

Arrow code ๐Ÿ˜ณ

boreal needle
#

0:13 is just great

granite solar
#

hi

#

can some one help me

onyx loom
#

lmao

#

we can

granite solar
#

can some one help me

boreal needle
#

i need to post mah screenshots

#

.ask

granite solar
#

can some one help me

onyx loom
boreal needle
#

damnit its one of those

granite solar
#

can some one help me

onyx loom
#

ok cool

granite solar
#

can some one help me

obtuse gale
#

Awesome

granite solar
#

can some one help me

obtuse gale
#

Stupid bot

granite solar
#

plz

#

can some one help me

obtuse gale
#

No

onyx loom
#

not helping u now ๐Ÿฅฒ

granite solar
#

can some one help me

obtuse gale
#

We can't

granite solar
#

why

onyx loom
#

:bruh:

boreal needle
#

lmao

granite solar
#

:fuck:

lunar cypress
#

@old wyvern what are the flags on your partitions?

obtuse gale
#

You are not providing any kind of information for us to help

granite solar
#

๐Ÿฅณ

boreal needle
#

wat

obtuse gale
#

If you want help, provide details

onyx loom
#

cya nerd

#

he left ๐Ÿฅฒ

obtuse gale
#

Lmao

boreal needle
#

oof

obtuse gale
#

Why does this happen so often

boreal needle
#

because minecraft

onyx loom
#

public servers ๐Ÿ˜ฉ

boreal needle
#

99% 10 year olds

obtuse gale
#

Like those asking for someone's phone number to verify their discord acc

onyx loom
#

lmao

obtuse gale
#

Like wtf why this server in particular

onyx loom
#

targeted malice

prisma wave
#

HELLO

onyx loom
#

hello ๐Ÿ˜Š

prisma wave
#

i am currently working on PDM

onyx loom
#

u sure about that

prisma wave
#

kinda

onyx loom
#

You're sending messages too quickly!

#

nice dkim

half harness
#

๐Ÿ™‚

onyx loom
#

explain "kinda"

half harness
#

?

onyx loom
obtuse gale
#

Sure but why would anyone give their phone number to a complete internet stranger

#

"Hi I need your phone number" "ok"

half harness
#
> Task :plugin:compileKotlin
Could not connect to kotlin daemon. Using fallback strategy.
Compilation with Kotlin compile daemon was not successful
java.lang.Exception: Unknown or invalid session 1
```uh
onyx loom
#

bad pc

humble badger
half harness
#

u can use protocollib to send packets

humble badger
#

they are translated packets

half harness
#

o

#

wdym

#

"translated"

humble badger
#

converted to 1.7.10 from 1.8.9

#

for some reason the scoreboard is not being properly cleared when changing worlds thus causing an exception on the client

prisma wave
onyx loom
#

no no

#

please go ahead

half harness
#

anyone want to come on my test server to test ๐Ÿฅบ

onyx loom
#

ip

#

version

half harness
#

ill dm

obtuse gale
onyx loom
#

who wouldve guessed

half harness
onyx loom
#

take a wild guess

#

eww

#

hardly

#

let me have a 1.16 server, but then not be able to use 1.16 features unless i want it to be scuffed for people not on native versions

#

sure, u allow the connections for lower versions, but whats the point

half harness
#

kaliber join

#

๐Ÿ˜ค

onyx loom
#

advantageous player

#

i am on 200 PING

#

UNPLAYABLE

half harness
#

LOL

#

1 ping gang ๐Ÿ˜Ž

forest pecan
#

wow Kaliber

#

i never knew you sucked so bad

#

smh

onyx loom
#

u wot

half harness
#

๐Ÿฅฒ

onyx loom
#

jump on EU minemen CLUB rn

#

if that still exists

half harness
#

kaliber

forest pecan
#

jump on my dic

half harness
#

did we duel before?

onyx loom
#

no ty

#

no

half harness
#

o

obtuse gale
#

anyways

forest pecan
#

no

obtuse gale
#

y no

#

sadge

ocean quartz
obtuse gale
#

I'm still here

forest pecan
#

what

#

lol are you typing random shit and deleting

#

and doing that thing

#

lmao

#

so it looks like you are typing forever

obtuse gale
#

No, I'm writing an essay for Piggy and Matt on why SFINAE makes C++ templates so godly above Java generics

ocean quartz
#

I mean i agree that C++ templates are better than Java's generics

obtuse gale
#

Because I recall Piggy saying that "If they are so good you are not making it look any more worth it than generics"

ocean quartz
#

I view them as doing everything generics does but more

#

Similar to most of Kotlin features

jovial warren
#

type erasure bad

forest pecan
#

bardy

#

ur ugly

#

idk why i said that

jovial warren
#

lol

#

you say a lot of random shit

ocean quartz
#

Type erasure very bad

jovial warren
#

I mean, reification is nice

ocean quartz
#

Fefo does C++ also erase types?

obtuse gale
#

Well

#

Technically

ocean quartz
#

Bardy have you seen how Kotlin's reified type work? It's a super dumb hack

obtuse gale
#

It does but you will never encounter any issues with it

#

Because it doesn't work like generics

jovial warren
obtuse gale
#

A class template is not a class, it is a template for making a class

prisma wave
#

god forgive me im about to say the H-word

onyx loom
#

hydrogen bomb

jovial warren
#

Intrinsics.reifiedOperationMarker(4, "T"); lol

ocean quartz
#

Basically it has a helper class with a map (not sure if a map but something like it) with a placeholder name and the variable type lmao

obtuse gale
#

The compiler actually takes the instantiated template and actually writes for you a whole class for that type from the template

ocean quartz
#

Yeah

#

It's just a hack

jovial warren
forest pecan
#

lombok ver 2

jovial warren
#

Kotlin is a hack

#

technically a compiler hack

onyx loom
#

"technically" lmao

jovial warren
#

so basically Lombok++

ocean quartz
#

Well i wouldn't call everything a hack but some feature are

onyx loom
#

yes

#

no its a hack, it compiles to jvm and so does java therefore its a hack!!!

jovial warren
#

e.g. if you don't explicitly specify that a member of the companion object should be exposed as a field, Kotlin generates a getter for it

ocean quartz
#

But they are actually pretty cleaver though

jovial warren
#

e.g. getFIELD

ocean quartz
#

I'm curious to see the new compiler and how much it changes

forest pecan
#

lol thats why i only use kotlin for test cases

jovial warren
#

along with few other things

#

also, internal is the biggest hack I've seen in a while

onyx loom
#

lmao

ocean quartz
#

Ikr internal is horrible

jovial warren
#

it just renames the method to be originalName$module_name

#

it's public still

onyx loom
jovial warren
#

e.g. I have an internal build function in krypton-api and it generates as build$krypton_api

ocean quartz
#

They describe it as "to discourage from usage in java"

forest pecan
#

i dont want to spend a lot of time writing my test cases. I want them to be concise, test code easily without all the broilerplate

onyx loom
#

ehhh

jovial warren
#

when I looked at it, I immediately shoved @JvmSynthetic on it and all of its overrides because I thought it was that ugly and I didn't want it to be exposed to Java

ocean quartz
#

Well Jvm kotlin is very limited because of that

#

I hope native takes over ๐Ÿ‘€

onyx loom
#

imagine

jovial warren
#

Kotlin/Native good

#

I still think Kotlin/JVM is pretty solid tbh

ocean quartz
#

It is yeah

onyx loom
#

what do most people use for android btw

#

is it native

old wyvern
#

No

#

Android sdk

jovial warren
old wyvern
#

Runs on Android Runtime

#

Previously known as Dalvik vm

onyx loom
#

eh

#

i mean the kotlin target yugi

jovial warren
#

I wonder how Kotlin achieves inlining

#

isn't inlining a compiler optimisation actually anyway?

old wyvern
forest pecan
old wyvern
#

Kotlin compiles to jvm byecode which then compiled to android runtime bytecode

jovial warren
#

also, one thing I did find interesting when searching through the JDK was @HotSpotIntrinsicCandidate

old wyvern
#

Which is pretty much native code

old wyvern
#

Since Android uses AoH

#

Or was that AoT

#

Not sure

#

Ahead of time compiler

obtuse gale
#

@quiet depot inb4:

I recall Piggy saying that "If they are so good you are not making it look any more worth it than generics"
I found out one of the many things why C++ templates are oh so superior over Java generics (besides variadic ("varargs") templates and template meta-programming, template specialization and many, many other things)

template<class Func>
class Receiver {
public:
  Receiver(Func &delegate) : delegate_(delegate) { }
  UpdateMessage operator ()(double value) { return delegate_.update(value); }
private:
  Func delegate_;
};

int main() {
  int a = 123;
  // also no <int> :drooling_face: best type inference
  Receiver receiver = Receiver(a);  // Func = int, therefore delegate_ = 123
  // receiver(123.4); <-- produces a compile time error
}

Now int being primitive type doesn't have a function signed UpdateMessage update(double) (it has in fact no functions at all, it's a primitive), but that code compiles and runs just fine, why well because I'm never calling receiver(123.4), if I were to call the operator it would fail to compile.
Next up:

template<class Func>
class Receiver {
public:
  Receiver(Func &delegate) : delegate_(delegate) { }
  UpdateMessage operator ()(double value) { return delegate_.update(value); }
private:
  Func delegate_;
};

class Updater {
public:
  UpdateMessage update(double value);
};

int main() {
  Updater updater;
  Receiver receiver = updater;  // Func = Updater ; also no need to explicitly call the constructor
  receiver(123.4);
}

This does compile and run, since Updater does have a function signed UpdateMessage update(double)

Extrapolating this, if in my operator () instead of doing return delegate_.update(value); I do return delegate_(value); this basically requires any "callable type", lambdas, functions, classes with an overloaded UpdateMessage operator ()(double);, function pointers, and many many other things

CC: @ocean quartz

old wyvern
#

Wtf

forest pecan
#

Wtf

old wyvern
#

Wall

forest pecan
#

Wall

old wyvern
#

Pulse

forest pecan
#

Pulse

old wyvern
#

Is

forest pecan
#

Is

old wyvern
#

Dumb

obtuse gale
#

and gay

old wyvern
#

Ofc

forest pecan
#

Dumb

#

and gay

#

Ofc

forest pecan
#

ah k

ocean quartz
#

Oh boy wall of text

static zealot
#

Wall

forest pecan
#

build the great wall

ocean quartz
#

Also Kotlin can compile to wasm as well

#

It could take over the world if only they fixed the bitwise shit

jovial warren
# forest pecan wtf is that

to quote the sources, "The @HotSpotIntrinsicCandidate annotation is specific to the HotSpot Virtual Machine. It indicates that an annotated method may be (but is not guaranteed to be) intrinsified by the HotSpot VM. A method is intrinsified if the HotSpot VM replaces the annotated method with hand-written assembly and/or hand-written compiler IR -- a compiler intrinsic -- to improve performance."

ocean quartz
#

Still hoping for Kotlin for .net ๐Ÿฅบ

onyx loom
#

lmao

#

good luck

jovial warren
#

basically, it allows HotSpot to replace things like hashCode with hand-written assembly or compiler IR

forest pecan
#

the new jdk also has an improved jni i think?

jovial warren
#

๐Ÿ‘€

forest pecan
jovial warren
#

๐Ÿ˜

ocean quartz
#

Oooo

jovial warren
#

"replace JNI" ๐Ÿ‘€

ocean quartz
#

Bytecode to source converting Java & Kotlin code into JavaScript, C++, D, C#, PHP, AS3, Dart and Haxe and run it everywhere.

#

I can finally write Kotlin for PHP!!

jovial warren
#

lol

onyx loom
#

no

#

no

#

ima have to stop u right there

forest pecan
#

fuck php

#

go hang php forums

#

fuck php users

#

fuck all

ocean quartz
#

Wow, the disrespect

forest pecan
#

lol

ocean quartz
#

People have too much free time

old wyvern
ocean quartz
#

C# isn't Kotlin though

old wyvern
#

Close

ocean quartz
#

Fair

#

I need to play more with C#

old wyvern
#

Yea its really nice once you get over the convention changes

ocean quartz
#

I'll just use my own conventions

old wyvern
#

xD

ocean quartz
#

With black jack and hookers

old wyvern
#

lol

lunar cypress
#

Lord

#

I'm in the grub menu

old wyvern
#

Omg

#

Yes

ocean quartz
#

Also Yugi this dependency stuff is a nightmare, it repeats so many dependencies

ocean quartz
#

I'll figure it though

lunar cypress
#

Now just to figure out why windows is missing Hype Papi PlusOne sad_fingerguns Poll

old wyvern
#

Oh shit

#

๐Ÿ˜‚

jovial warren
old wyvern
#

Get in manjaro

#

os-prober

jovial warren
#

Windows hates GRUB lol

old wyvern
#

And pray it works

#

๐Ÿฅฒ

jovial warren
lunar cypress
#

os-prober was run when I ran update-grub

jovial warren
#

void is a type you can use to declare stuff with?

old wyvern
#

Did you check the boot order as well?

lunar cypress
#

What should it be?

jovial warren
old wyvern
old wyvern
#

Just C being C bard

#

Nothing unatural

ocean quartz
#

Welcome to C

old wyvern
#

๐Ÿ˜Œ

ocean quartz
old wyvern
#

Btw johnny

#

I didnt mean from bios

#

I meant from efibootmgr

lunar cypress
#

Yes I know

old wyvern
#

Since thats working now

#

Oh alright

#

Just making sure

lunar cypress
#

Yeah no, changed boot order to manjaro, then windows, isn't there

old wyvern
#

๐Ÿ˜ฌ

#

Is the windows boot partition alive?

#

Rescue worked right?

lunar cypress
#

Yugi can you believe the entire reason why grub wasn't showing was because GRUB_TIMEOUT_STYLE was set to hidden instead of menu in some config file

obtuse gale
#

@jovial warren that's not void, that's a pointer to an unidentified type

old wyvern
#

Lmaoo

#

Actually Im dumb

#

I did see that in a forum post while I had issue with my installation even though that wasnt the issue in my case

#

Should have thought of that

obtuse gale
#

malloc returns a void * because it doesn't know what kind of data you want to store in there

lunar cypress
#

Not your responsibility

old wyvern
#

There also another case with menu being hidden right?

lunar cypress
#

Idk

old wyvern
obtuse gale
#

C++'s new returns a typed pointer to the type desired fingerguns

#

Allocation + construction in place

old wyvern
#

๐Ÿ˜Œ

#

Unsafe pointers

#

The true way to the future

#

Couldnt be Go

jovial warren
#

couldn't be Rust either

#

or in fact, pretty much any language higher level than C or C++

prisma wave
#

Rust isn't any higher level imo

#

Go arguably is

#

But you could also argue it's on the same level

static zealot
#

BM go sleep. its 11:46

#

actually its 23:46*

#

correction

cinder flare
#

more like 23:47

obtuse gale
#

I believe C# lets you work with pointers

#

Kinda ๐Ÿ˜ฌ but it does

static zealot
#

c++ has points

#

pointers*

#

I remember

#

one of the only few things I remember from 4 years of doing c++

#

smh

obtuse gale
#

lmao

prisma wave
old wyvern
static zealot
#

I remember null being NULL

#

I also remember it has a main class

#

and global placeholders

#

oh yeah and cout and cin

static zealot
#

damn I do remember some stuff

prisma wave
#

imagine having null

old wyvern
static zealot
#

its NULL in c++ isn't it?

old wyvern
#

Cpuldnt be haskell

prisma wave
#

All my homies use None

obtuse gale
old wyvern
#

Speaking of which

#

Bm any luck with the elara doc?

prisma wave
#

heh

#

Maybe

#

no

old wyvern
#

๐Ÿฅฒ

prisma wave
#

man I keep forgetting

static zealot
#

Oh yeah c++ has matrix or whatever those are called

old wyvern
#

What?

prisma wave
#

ok yugi question

old wyvern
static zealot
#

Array of arrays or whatever

oblique heath
#

java has those too lol

#

lots of languages do

old wyvern
#

Thats a thing in java as well

prisma wave
#

I don't personally think I know haskell well enough to include some of the more advanced concepts in a spec

old wyvern
#

And most languages

prisma wave
#

So

#

Do we want the really pure advanced stuff?

old wyvern
prisma wave
#

Or simplifications

#

true

old wyvern
#

Simplifications

static zealot
old wyvern
#

Oh btw

#

We dont need an IO monad I think

#

If we were to implement the impure and pure functions

prisma wave
#

yeah that's true

old wyvern
#

Maybe we can switch up the common monads into more native stuff

prisma wave
#

yeah perhaps

old wyvern
#

So we dont need the haskell complexity

#

But

#

The useful ideas from it

prisma wave
#

type classes?

old wyvern
#

We probably dont need that, we just need to make our contract system a bit more convenient to use

cinder flare
#

tuples in elara????

old wyvern
#

Maybe custom operators

#

Something similar to bind on just normal objects even

#

So pretty much a "map" operator

#

Would that work?

prisma wave
old wyvern
prisma wave
prisma wave
old wyvern
#

Awesome, what else should we use

#

Hmm

#

qualified imports are something we dont have atm

#

So maybe that

prisma wave
#

yes definitely

#

Refine the module / namespace system a bit

#

Figure out the contracts and how they're gonna be practical

old wyvern
#

Yup

cinder flare
#

you guys just wait until I take my programming languages class and theory of languages and stuff

#

ima be all over elara

old wyvern
#

Contracts are the one barrier to a proper jvm implementation rn

old wyvern
#

Automata theory should be around 3-4th sem

onyx loom
#

why wait for class

old wyvern
#

Oh wait

cinder flare
old wyvern
#

You guys can choose from overall courses right?

cinder flare
#

and i need someone to tell me things lol

onyx loom
#

understandable have a nice day

cinder flare
#

well yeah but you need to take the prerequisites first

old wyvern
#

I think that class probably only has dsa as a prerequisite

#

Lemme check what prerequisites were given to us

cinder flare
#

ah yes, Foundations of Computational Theory

#

requires Discrete Structures as a prereq

#
CS 2300    3 Credits    Discrete Structures    
This course covers algebraic structures applied to computer programming. Topics include propositional and predicate logic, proofs, sets, relations, functions, counting, graphs, and trees. This course lays the foundation for problems solving in computer science and information systems.```
#

oop

old wyvern
#

Ah

cinder flare
#
CS 3550    3 Credits    Found of Computation Theory    
An introduction to the theory of computation and its relationship to the design and implementation of compilers. Topics include finite-state and pushdown automata, formal languages and grammars, Turing machines, and syntax and semantics of programming languages.```
old wyvern
#

๐Ÿ˜Œ

#

At the end-ish you have the Church-Turing thesis

cinder flare
#
CS 4550    3 Credits    Programming Languages    
An introduction to the core principles of programming languages: syntactic and semantic descriptions, and compilation and implementation issues. An introduction to the main programming paradigms, exemplified using contemporary programming languages: imperative, object-oriented, functional, and logic. ```
#

I'm taking that class after lol

old wyvern
#

Where you learn about the long list warrior of functional programming

#

Alonso Church

#

๐Ÿ˜Œ

old wyvern
cinder flare
#

oh and don't forget

#
CS 4350    3 Credits    Web Programming    
This course provides a solid introduction to both client and server side web programming. Topics include HTML5 technologies, CSS, JavaScript programming, Ajax, SVG, XML, PHP and Node.js programming. A variety of programming projects will be assigned to reinforce the concepts. (Fall - Odd Years)```
#

๐Ÿคฎ

old wyvern
#

Lmao

#

I have a similar course this sem

#

Php started right before exams

cinder flare
#
CS 2810    3 Credits    Cmptr Orgnztn & Architecture    
This course builds on students understanding of interface between computer software and hardware. Topics for this course include processor architecture, computer arithmetic, instruction set architecture, assembly language and its relation to higher level languages, computer performance analysis, basic concepts on pipeline, introduction to memory management, Computer IO, and disk storage systems.```
#

I think that class will be fun too

old wyvern
old wyvern
#

๐Ÿ˜ซ

cinder flare
#

oh? I think that stuff is interesting tho

old wyvern
#

Got the most annoying professor

cinder flare
#

yeah that's probably why

#

omfg you're learning Perl

old wyvern
# old wyvern

Also speaking of this, idk why Programming in Java is a prerequisite here

#

I dont think the subject goes to java anyway

jovial warren
#

should require Haskell amirite

old wyvern
old wyvern
cinder flare
#

i mean if its anything like my uni, you have to take 1410 (object oriented programming) and 2420 (DS&A) before you can take like any other class

old wyvern
#

Lol

cinder flare
#

also someone wrote a Perl textbook in 2012

#

i though the last mention of Perl was like 2002

old wyvern
#

Do you have any fp classes?

old wyvern
cinder flare
#

i showed basically all of my CS classes

prisma wave
cinder flare
#

the one about languages talks about fp

old wyvern
#

Nothing else?

#

Welp

#

I dont think I even get any fp cpurses

#

Sadge

#

No mention of it till end of 3rd year courses

#

Im mostly sure they aint bringing anything major in the last year

cinder flare
jovial warren
cinder flare
#

there's all the CS classes I need to take

old wyvern
#

Its msotly just for the capstone project

old wyvern
jovial warren
#

you know what comes next after tests for the API though

#

tests for the server ๐Ÿฅฒ

#

and the API ones already pretty much took me all day

old wyvern
#

Gj bard

cinder flare
#

how do you even write that lol

jovial warren
#

it's a report telling me how good my test coverage is

cinder flare
#

no i mean how do you write tests for the server

#

obv i know that pos website is autogenerated lmao

jovial warren
#

things like NBT testing can be automated

cinder flare
#

hmm I see

jovial warren
#

I could probably also pick up MockNetty or some shit from somewhere lol

#

wait why is that HTTP and HTTPS only ew

cinder flare
#

probably because its for testing web protocols

half harness
#

my potion problem still broken ๐Ÿ˜ญ

#

anyone know how to get like level 10 potions in 1.8 :p

jovial warren
#

I am not going to give you support for 1.8

old wyvern
jovial warren
#

and I am not going to let anyone else either

half harness
#

._.

sweet cipher
jovial warren
#

=mute

#

lol

onyx loom
half harness
#
  • Potion: allows up to 2 levels
  • PotionMeta: I can't get it to make it not show "Water Bottle" and the default color (everything else works)
  • copied the Potion class and remove the limit (which didn't work)
jovial warren
#

omg I just found BungeeCord on the list of related projects on netty.io wtf

onyx loom
half harness
#

yes

#

I thought that setting the main effect would make the color changed and stuff ๐Ÿ˜•

onyx loom
#

in potionmeta, there is also a setColor method, so maybe u have to do that too

#

altho i wouldve that so too

half harness
#

d;1.8.8 potionmeta#setcolor

ruby craterBOT
#
void setLore(Listย lore)```
Description:

Sets the lore for this item. Removes lore when given null.

Parameters:

lore - the lore that will be set

onyx loom
#

o maybe not in 1.8 ๐Ÿ˜‚

half harness
#

also

#

i tried looking at nms/obc

#

but it was as if the classes disappeared

#

"CraftPotionMeta" "CraftItemMeta" etc is not there

#

but things like "CraftWorld" is

onyx loom
#

ur able to just create a normal swift potion correct? without any illegal stuff

half harness
#

with Potion, yes, I didn't test with PotionMeta though

jovial warren
#

well that's gonna be fun

onyx loom
#

i may have an awful solution that will probably work

half harness
#

๐Ÿ‘€ ill do anything

onyx loom
#

PlayerConsumeEvent ๐Ÿฅฒ

jovial warren
#

why are you helping him with 1.8 smh

half harness
#

uh

onyx loom
#

because i said i will

jovial warren
#

smh my head

half harness
onyx loom
#

in the event, check if the item is a speed pot, then add the custom effect with Player#setPotionEffect or whatever the method is

half harness
#

i'll also have to apply data to the item

#

does NBT support that? (with nbtapi)

gusty glen
#

@jovial warren what exactly are those tests for?

onyx loom
#

this is just for ur bedwars stuff right dkim, and iirc its all hard coded correct

half harness
#

yes

onyx loom
#

ok how many types of speed pots will u have

half harness
#

hypixel - 1 speed pot

#

but the server isn't just bedwars

onyx loom
#

ic

half harness
onyx loom
#

if it works in this situation, there might not be any need for nbt

half harness
#

wdym

onyx loom
#

cus if theres just 1 type of speed potion, u can just set all speed potions to be whatever amplifier u want ig

half harness
#

hm

onyx loom
#

and ive never used nbt api before, but if u have to use it, then use it

half harness
#

maybe i can just check if the player is in a game

onyx loom
#

there u go ๐Ÿ™‚

half harness
#

๐Ÿ˜„

#

thx

onyx loom
#

dirty 1.8 user resolves to dirty solutions that are easily resolved in later versions

#

np

half harness
#

lol

gusty glen
#

I have so many questions, but the most important one is: why people just don't use the latest version? I mean, there're even plugins to bring back old combat mechanics if that's why

half harness
#

because the plugins aren't perfect

onyx loom
#

iTs NoT tHe SaMe

obtuse gale
#

it cannot reproduce the essence of 1.8

half harness
#

blockhitting, kb, reducing = top 3 reasons for me

#

well kb and reduce can be in one category ig

gusty glen
#

what is kb and reducing?

onyx loom
#

custom knockback plugin ๐Ÿคฃ

old wyvern
#

But.... My 89799 cps ninja god 420 bridge killstreak

half harness
#

._.

half harness
onyx loom
#

kb = kilobytes

half harness
#

yes

#

kilobytes

gusty glen
#

what is the diff between old kb and new kb?

oblique heath
#

kb = kibibits

#

๐Ÿ˜Ž

onyx loom
#

lmao

old wyvern
#

kb = kb

onyx loom
#

big brain yugi

old wyvern
#

๐Ÿ˜‡

half harness
#

making combos hard to get

#

since combos rely on knockback

gusty glen
#

Re-add snowball, egg & enderpearl knockback

half harness
#

what about swords?

#

does it readd sword knockback?

onyx loom
#

are u sure kb isnt just a placebo effect because of the fact that ur never able to combo someone in 1.16?

half harness
#

fist knockback?

onyx loom
#

i dont think the knockback has changed

half harness
#

im 99% sure it has

gusty glen
#

i don't think the sword and fist knockback changed

cinder flare
#

oh knockback definitely has

half harness
#

not specifically sword

onyx loom
#

idk i cant remember

#

mc pvp bad

gusty glen
#

well, the egg and other object kb are back with the plugin

half harness
#

https://youtu.be/G_ba4UV4Smo?t=160
that guy isn't taking any knockback

grown man complaints a bout a game's pvp system for kids

โ—ฃFollow Me On Twitter!: https://twitter.com/AreuMadLoL
โ—ฃJoin My Discord!: https://discord.gg/utRuvdx

โ–žMusic I useโ–š
โ–ˆ: Super Mario Galaxy
โ–ˆ: Super Mario 64
โ–ˆ: Super Mario Kart

----------------------------------------------------------------------------------------------------...

โ–ถ Play video
onyx loom
#

AreuMadLoL

half harness
#

LoL

gusty glen
#

ofc he is taking kb

onyx loom
#

u only find these names in minecraft

gusty glen
#

2:41

#

2:44

onyx loom
#

oh damn cubecraft using new pvp system ๐Ÿ˜ณ

#

havent played cubecraft since like 2016 lmfao

half harness
#

at least in hypixel

half harness
#

also, blockhitting

#

๐Ÿฅบ

gusty glen
#

without any kb enchant?

half harness
gusty glen
half harness
#

thats the whole point of the bridge minigame

#

if it was 1.16

#

it'd suck

gusty glen
#

buuut

#

Option to disable shield crafting

#

Disable off-hand (with white/blacklist)

half harness
#

not remove

gusty glen
#

u know it's pretty easy to simulate the knockback right?

#

I can make a plugin that does it for you if you want

half harness
#

also include reducing too

gusty glen
#

reducing what?

sweet cipher
#

Fractions

half harness
#

lol

oblique heath
#

reusing and recycling too?

cinder flare
half harness
#

if you want to see example with reducing high cps then just look on yt like "mlgrush" or "reduce" or "telly"

half harness
#

iirc

onyx loom
#

its uncommon to see popular minigame servers use the new combat system

old wyvern
#

Wasn't that a thing for a long time now?

old wyvern
#

Was 1.8 allowed till now?

onyx loom
#

couldnt tell u

old wyvern
#

Why?

#

Oh you meant haven't?

onyx loom
#

yeah sorry

old wyvern
#

Ohh

gusty glen
#

that reduce thing is definitively possible to simulate via plugin, but it would be harder for me to do since I don't know how it should looks like

#

basically the knockback you take depends on whenever you hit somebody in the last 200 ms or something like that, right?

ocean quartz
#

1.8 knockback was stupid, if you had a bit higher ping good luck trying to touch the person you're fighting against

half harness
#

its complicated

#

ish

gusty glen
#

what I understood is: you take hit, you go brrrr away, you hit the person back, the brrr is reduced a lot

#

and the kb always push players a bit up

half harness
#

if you go on 1.8, then click fast on like a player, you'll notice you'll be slower

#

that slowness applies to kb too

#

so if you click fast, and as you're getting hit

#

you'll take less kb

obtuse gale
#

if you go on 1.8

when hell freezes over

gusty glen
#

also easy to replicate

pale shell
ocean quartz
gusty glen
#

onEntityDamageEntityEvent -> if attacker is Player -> get player vector -> multiply x and z by 0.25 or something and set sprint to false

#

nailed it?

half harness
obtuse gale
gusty glen
#

that is to simulate the slowness when attacking, fefo

half harness
#

๐Ÿ˜ฎ

gusty glen
#

oh

sweet cipher
#

Hitting people with your fist is better donโ€™t use blocks

gusty glen
#

so both playerInteractEvent -> is leftClickBlock && onEntityDamageEntityEvent -> if attacker is Player

half harness
#

what

sweet cipher
#

What

ocean quartz
#

Very

half harness
#

blockhitting is also a feature that oldcombatmechanics can't replicate

#

iirc

sweet cipher
#

Donโ€™t tell me you donโ€™t know what blockhitting is

gusty glen
gusty glen
sweet cipher
#

Make sure to carry the 1

#

No

half harness
sweet cipher
#

Hitting people with a block in your hand

half harness
#

no

sweet cipher
#

Yes

half harness
#

plz tell me ur joking

sweet cipher
#

Iโ€™m joking

half harness
#

ok

sweet cipher
#

But Iโ€™m not

half harness
#

what

gusty glen
#

haha

sweet cipher
#

I only said it because you wanted me too

half harness
gusty glen
#

what is blockhitting then

half harness
#

basically a shield

#

BUT

sweet cipher
#

Wrong

#

Shields werenโ€™t a thing

half harness
#

also looks like this
reduces 50% of the damage

unlike the shield, theres no delay between right clicking and holding out the shield

sweet cipher
#

Thatโ€™s actually called dabbing, itโ€™s outdated now

half harness
#

well

#

1.8 is outdated

#

smh

#

can't expect something outdated to have something non-outdated

sweet cipher
#

Yes you can

gusty glen
#

i never used it before and I play since 1.2.5 lul

sweet cipher
#

HelpChat for example

#

Matt is like a thousand years old but uses Skript

#

The best language

half harness
#

exposed? ๐Ÿ‘€

sweet cipher
#

So outdated things donโ€™t need to do outdated things

oblique heath
#

i feel the need to flex this

sweet cipher
#

Lol

cinder flare
#

so im doing review for my calculus final right

#

and this guy goes "so if you see a limit you can't solve, don't worry. with a calculator, you can evaluate any limit!"

#

like wow

#

so useful

sweet cipher
#

lol

#

Khan academy is the best

dawn hinge
#

^^ agreed

cinder flare
#

yeah im just doing all of my example problems now

oblique heath
#

anybody know if there's a way to get the entity a player is riding

#

would I be forced to check all entities nearby the player for riders, or is there an accessor or something

regal gale
#

G ๐Ÿ‘€ gle

#

d;spigot Player#getVehicle

ruby craterBOT
#
@Nullable
Entity getVehicle()```
Description:

Get the vehicle that this player is inside. If there is no vehicle, null will be returned.

Returns:

The current vehicle.

oblique heath
#

oo thank you

oblique heath
#

hmm

#

i can't seem to be able to recreate a donkey inventory

obtuse gale
#

๐Ÿ‘

oblique heath
#

when i get the type of the inventory from a donkey, it says it's type CHEST

#

which strikes me as odd

#

is there no way to specify that you want to make a donkey inventory

cinder flare
#

i mean what's the difference

#

they're both just chests

oblique heath
#

the view is different

#

one actually looks like the inventory of a donkey

#

the other just looks like a regular chest

obtuse gale
#

wat

#

how does it look

oblique heath
#

like... a donkey?

#

you know saddle slot, 16 inv slots

cinder flare
#

i feel like under the hood it's just a normal inventory and that you need a donkey to open a donkey inventory

obtuse gale
#

Is there even an inventorytype for donkey/llama?

oblique heath
#

nope

cinder flare
#

nope

oblique heath
#

which is weird, right?

obtuse gale
#

blame md5

cinder flare
#

i mean look at how it is used in the real code

#

im tellin ya its just a normal inventory with slots you don't use

oblique heath
#

so is the only way to get the player to see that inventory to use a real donkey

cinder flare
#

i mean what would be in the donkey preview slot?

#

nothing?

oblique heath
#

i guess so, idk

cinder flare
#

why do you even want it lol

oblique heath
#

i'm recreating the 1.15 donkey dupe

#

and it feels ugly to have a chest inventory appear with the duped items rather than an actual donkey inventory

cinder flare
#

just make a horse entity and don't spawn it

obtuse gale
oblique heath
#

can an entity own more than one inventory

obtuse gale
#

yeah

#

for example a player owns their own inventory + their ender chest

oblique heath
#

so would there be any problems with me just making the inventory, and setting the original donkey as the owner

#

would the inventory disappear / force close if the donkey dies

obtuse gale
#

probably

#

eh idk really lol

#

OH BRUH

cinder flare
#

im tellin ya, just make a fake donkey that you don't even spawn

obtuse gale
#

wtf is this

oblique heath
#

o.o

obtuse gale
#

why are they different....

cinder flare
#

what

obtuse gale
#

why are they different impls

cinder flare
#

oh i guess the spigot docs won't show you bukkit stuff

obtuse gale
#

Well I guess you can instanceof lol

oblique heath
#

can i just cast an inventory to LlamaInventory

#

i feel like that'd be fine

obtuse gale
#

ยฏ_(ใƒ„)_/ยฏ

#

maybe it's a SaddledHorseInventory?

#

who knows

#

yeah it's a SaddledHorseInventory

oblique heath
#

interesting

#

now how do I make one of those

#

because i doubt bukkit#createInventory returns that

obtuse gale
#

hm, Bukkit.createInventory returns a CraftInventoryCustom regardless of type or owner

oblique heath
#

oop

#

that doesn't seem ideal

obtuse gale
#

this is the most bullshit thing I've ever seen lmao

#

wait what

#

there are donkeys and mules?

oblique heath
#

i mean ye

obtuse gale
#

I just found out about this

#

wtf

ocean quartz
#

Not much different so it's understandable xD

obtuse gale
ocean quartz
#

Nms

obtuse gale
#

I mean yeah but

#

idk seems to me an unnecessary amount of work to do it

ocean quartz
#

It does yeah

obtuse gale
#

NMS is becoming less and less worth using though

cinder flare
#

can you not build entities?

obtuse gale
#

uh no

cinder flare
#

i thought you could construct entities and then do a separate thing to spawn them in

forest pecan
#

if only spigot api was better tho

ocean quartz
#

Nope, there is only spawnEntity/spawn

cinder flare
#

oh s hit

obtuse gale
#

you can pass a consumer so you do things before it's added to the world but yeah

#

it will eventually be added to the world

burnt creek
#

How I can use one ssh key with putty? It works for filezilla, but with putty I get timed out

obtuse gale
#

rip

cinder flare
#

did you use puttygen?

burnt creek
#

yes but It don't works

cinder flare
#

you need to include the key in the auth section

#

Under Connection -> SSH -> Auth

#

you put your private key there

burnt creek
#

yes I did it

cinder flare
#

hang on if you get timed out its a network problem

#

are you sure the ip and port are correct, and that the server you're connecting to allows ssh on port 22?

burnt creek
#

yes I verify it on ssh.config

cinder flare
#

well if you're getting timed out its not a key problem

burnt creek
#

# Port 22

cinder flare
#

is your firewall open?

frail glade
#

๐Ÿ‘‹

burnt creek
#

ye

#

on my pc yes

cinder flare
#

no on the server

burnt creek
#

I don't know how are setup it on the vps

cinder flare
#

which VPS provider

burnt creek
#

I can screenshare you?

cinder flare
#

no

#

you can tell me which vps provider you use

burnt creek
#

idk I'm asisting one guy and he give me ssh details with .pub and authorized_keys file

cinder flare
#

yikes

obtuse gale
#

lol

burnt creek
#

he told me to ask PiggyPiglet for help and PiggyPiglet tell me to ask for help here

cinder flare
#

guys i don't want to take calc anymore

obtuse gale
#

I'm hungry ๐Ÿ˜ฆ

cinder flare
#

how is that not right

obtuse gale
#

Ugh I don't remember jack about that ๐Ÿ˜ฉ

#

Man I used to be great at math :(

cinder flare
#

it always seems like I do just one small thing wrong

#

miss a minus sign or something

#

i really need to not bomb this calc final ughghhhh

frail glade
#

Good old calculus. If I ever had to do that again in my life it would be too soon.

cinder flare
#

I mean I think it's kinda interesting, just the tedium of remembering 500 different ways to do stuff and then actually applying it is so bad

old wyvern
cinder flare
#

wdym last step

frail glade
#

I always hated the chain rule. I'd forget to do it.

cinder flare
#

oh add a 2 cause of ln(x^2)

#

2x

#

fuck

old wyvern
#

Yup

#

Alternatively

#

You could have removed the 2 out from the logarithm before differentiating

cinder flare
#

i am too dumb to know that or keep track of it

#

essentially im just gonna fudge my way there with the help of my amazing graphing calculator

old wyvern
#

You'll get used to it, just keep doing a few more

cinder flare
#

I'm trying ๐Ÿฅฒ

old wyvern
#

๐Ÿฅฒ

cinder flare
#

im doing every example problem he gave us, plus the test review

old wyvern
#

Lmao what

#

๐Ÿ˜‚

#

"Definitely on test" "Maybe on test"

cinder flare
#

though maybe not that many of the continuity ones

#

yup

old wyvern
#

Lmao

cinder flare
#

you wanna be my calc tutor yugi lmao

frail glade
#

No squeeze theorem stuff?

old wyvern
#

Whats that glare?

cinder flare
#

i guess not but we barely talked about that

old wyvern
cinder flare
#

i mean I have slader and online calculators

#

I think I'm just gonna go to my uni's tutoring center because having someone there to walk through stuff with you is extremely helpful

old wyvern
#

Everytime I think of calc, laplaces haunt me

#

I feel likesooner or later in a course theyllnuse it

frail glade
#

Yeah, I never understand calculus that well so I was in the help sessions daily after lecture.

#

I had them ELI5 everything.

old wyvern
#

And I've completely skipped over it in my math class

cinder flare
#

see that's the thing, I understand calc

#

I just can't remember all the stupid rules and apply them algebraically without messing anything up

old wyvern
#

lol

cinder flare
#

plus I get to take Calc 2 next semester

#

so more of the torture!

old wyvern
#

I think I finish all my math courses after this semester

#

Might have a bit of math in game dev classes tho

cinder flare
#

ah yeah some LA

#

not too bad

old wyvern
#

Already finished LA

frail glade
#

L hospital

cinder flare
#

well you'd use LA in game dev most likely

old wyvern
#

๐Ÿ˜Œ

#

L hospital all the way

#

I dont understand how these people name stuff

#

๐Ÿฅฒ

frail glade
#

Only time I've ever used calculus stuff was doing particles in-game.

cinder flare
#

that was that guys name

#

he discovered it

old wyvern
#

That guy needs a renaming

cinder flare
#

lmao

old wyvern
#

"Hi, hospital, whats up?"

old wyvern
#

Differentiation is kinda nice, integration is a bit of a screw up

#

Mostly due to the lack of something similar to chain rule, except by parts or something which ends up overcomplicating equations sometimes

#

๐Ÿฅฒ

oak raft
#

rn

old wyvern
cinder flare
#

integration by parts is the opposite of product rule

cinder flare
oak raft
#

Ok but knowledge

cinder flare
#

it's basically useless since computers exist

ocean quartz
#

Ayy so, i was complaining the other day that adventure's style for getters and setters kinda broke Kotlin's interop since it doesn't see player.displayName() as a getter or setter
Apparently this is a Java records convention and because of that this will be fully interop in Kotlin 1.5 :pog:

cinder flare
#

now that's some pog right there

frail glade
#

Oooo that's nice

obtuse gale
#

Nice

tacit cave
#

hello i wanna ask

#

how do i make the chance actually "random"

cinder flare
#

the chance of what

tacit cave
cinder flare
#

Math.random() in java?

#

it already is pretty random

hot hull
#

SplittableRandom best

cinder flare
#

ill split you frosty

tacit cave
#

i mean like mm

#

nvm

cinder flare
#

yeah not really sure what you're asking lmao

hot hull
#

As you can see the speed is off the charts :kek:

oblique heath
#

what's that

#

oh your profanity filter

#

how are you doing the checks right now

hot hull
#

That's not the actual speed, it'll take about 2ms at average

oblique heath
#

oh phew

hot hull
#

So I have a word length column, how do I make it -1 and +1 of the given value?

#

so let's say I request entries for the word length 6, how do I also get 5 and 7

#

Or will I need seperate queries for that?

oblique heath
#

i think you can do IN RANGE or something

#

ah it's BETWEEN

hot hull
oblique heath
#

so length BETWEEN and then your -1 and +1

#

wow

cinder flare
hot hull
#

Yea cause it's not added

#

You still need a default ban list from which it can evolve from

cinder flare
#

i mean those exist

#

why not provide a default

hot hull
#

Yes yes

quiet depot
#

@hot hull did you check out symspell?

hot hull
#

Not yet

#

๐ŸŽต I wonder why, I wonder how ๐ŸŽต

cinder flare
#

can

#

such

hot hull
#

Looks interesting Piggy

quiet depot
#

it be fast

cinder flare
#

hey pig did you ever implement a treeset for DocDex?

quiet depot
#

negative

cinder flare
#

gonna?

quiet depot
#

yes

#

eventually

cinder flare
#

nice nice

quiet depot
#

i can't remember what you described to me though

#

any chance you wanna make an issue for it?

cinder flare
#

oh docdex is open source?>

quiet depot
#

I know we arrived at the consensus that it was better than my current impl

#

I just can't remember how or why

#

yes

cinder flare
#

log n go brrr

quiet depot
#

all my shit is open source

#

ah yeah that's right

#

I thought n was better than logn

cinder flare
#

yeah you silly

quiet depot
cinder flare
#

okay which part of the code does this concern

#

cause there's like 15 things

#

common?

quiet depot
cinder flare
#

hmmm

#

it's gonna need to be a treeset and not a stream of byte[]s

#

so what you want is when you load up the bot, it generates treesets for all your docs

#

then when you need something, it searches through the treeset

#

at lightning speed

#

cause it does some crazy stuff I could never even imagine

quiet depot
#

I'm really happy with my current fuzzy search implementation

#

not looking to replace it

hot hull
#

Damn you fucking lombok users