#dev-general

1 messages ยท Page 379 of 1

cinder flare
#

only t's at the middle of the word get dropped

ocean quartz
#

Basically the same way it's written did nt

cinder flare
#

so I'd do the same for button

#

bu'n

regal gale
#

It's kinda unique

#

Most of my friends go for full sounding tbf

half harness
#

i wish usernames had sort of a border

#

yk

cinder flare
half harness
#

hard to read

obtuse gale
#

what the fuck dkim

ocean quartz
#

Burn the sinner

half harness
#

its not that bad-

#

seriously

forest pecan
#

what the fuck dkim

half harness
#

if you turn it on

forest pecan
#

go fucking die

half harness
#

you can get used to it

forest pecan
#

go die

#

go die

cinder flare
#

why would I want to

ocean quartz
half harness
#

i put it on dark mode when its dark

forest pecan
half harness
#

but when its bright

#

i dont really mind

cinder flare
#

bro you have real light in your room?

regal gale
#

Also, we uh... just out of it

cinder flare
#

i got blackout curtains and everything, only artificial light here

half harness
#

something called ethe โ˜€๏ธ

regal gale
ocean quartz
#

Wdym when it's dark? Is there ever light in your room? What are you? A normie?

forest pecan
#

what's real light?

#

i only heard of artifical

half harness
#

something called not-having-a-super-bright-light

cinder flare
#

alright who wants to hear me say mountain

half harness
#

me

forest pecan
#

record it has an mp3

regal gale
#

Vampires

forest pecan
#

and send it

#

lmao

cinder flare
#

oh shit you right

obtuse gale
#

lol

ocean quartz
#

Say it

half harness
#

did u hear me or did it not work

cinder flare
#

no i didn't hear you dkim

ocean quartz
#

I mean you pronounced the T

forest pecan
#

say it again

half harness
#

aww

forest pecan
#

oh

#

i hear it

half harness
#

rip

forest pecan
#

lol

#

you sound like those kids i get in valorant

half harness
#

i dont think its working

#

oh wait

#

i can just change the mic

#

to my laptop mic

forest pecan
#

i heard your mic sounds

#

lmao

half harness
#

butttttttttttttttttttttttttttttt

#

i cba

#

for now

#

voice reveal soonโ„ข๏ธ

cinder flare
#

Hurricane

ocean quartz
#

Kansas

#

Arkansas

cinder flare
#

Tuacahn

#

Pecan pie

hot hull
#

What would be the best way of storing nbt item types to compare it, should I go by similarity, or group them into the nbt parenting plugins key?

#

@ocean quartz How do I retrieve the entire nbt component the item has

oblique heath
#

woah what's going on in the vc

#

is there a party

cinder flare
#

yeah bro

#

get in here

#

bm joined and immediately left, it was quite sad

hot hull
#

@ocean quartz Stop listening to music nerd, I need answers

ocean quartz
#

I'm not listening to music nerd, I am working on something for my dad, I'll reply in a bit xD

hot hull
#

k, wanna just throw the NBTTagCompound class in a paste for me? :p

ocean quartz
#

Though don't think you can with my class, you'll need to get the compound yourself ๐Ÿ˜ฌ

ocean quartz
#

I can yeah

hot hull
#

Thanks

ocean quartz
#

You want it as a json string?

hot hull
#

sure

cinder flare
#

@prisma wave what's wrong with Andrey and Kotlin?

prisma wave
#

TERRIBLE

cinder flare
#

please elaborate!

prisma wave
#

SATAN

#

INCARNATE

#

EVIL

onyx loom
#

he didnt add tuples so andrey bad ๐Ÿ˜Š

prisma wave
#

YeS!!

#

SELFISH

cinder flare
#

tuples?...

#

like from python?

#

๐Ÿคฎ

prisma wave
#

yes

#

Tuples are amazing

cinder flare
#

okay I just hate python I don't actually know how bad tuples are

prisma wave
#

WHAT

#

Oh

#

That's ok

#

I misread it ๐Ÿ™‚

#

anyway

cinder flare
#

yeah so what's cool about tuples

onyx loom
#

man imagine collection literals in kotlin ๐Ÿ˜ฉ

prisma wave
#

Andrey RUINED kotlin by IGNORING the vox populi VOTE

#

Collection literals GONE

#

Tuples GONE

cinder flare
#

reduced to atoms!

prisma wave
#

Sxtanna companion fun IGNORED

#

it's been FOUR years NOW

onyx loom
#

dw the new leader will add these in!

#

because andrey bad new leader good!

prisma wave
#

Roman something

#

I am not IMPRESSED yet

#

He will have to do something INCREDIBLE

onyx loom
#

like tuples?

prisma wave
#

YES

#

Imagine if no a to b and INSTEAD a, b

#

And then AGAIN

#

a, b, c

#

๐Ÿ˜ฎ

oblique heath
#

just add haskell into kotlin ๐Ÿคทโ€โ™‚๏ธ

prisma wave
#

YEP

cinder flare
#

copy, paste

#

done

prisma wave
#

Glasgow Kotlin Compiler

onyx loom
#

then we get haskell on the jvm

prisma wave
#

Simon will be HAPPY to hear it

onyx loom
prisma wave
#

Noble gentleman ๐Ÿ˜Š

ocean quartz
#

@hot hull This should do it I think

@Nullable
public static String getNBT(@NotNull final ItemStack itemStack) {
    Object itemCompound = getTag(asNMSCopy(itemStack));
    if (itemCompound == null) return null;
    return itemCompound.toString();
}
hot hull
#

โค๏ธ

#

Doesn't give me any NBT btw Matt

ocean quartz
#

Really? I'll test it

hot hull
#

oh wait no it does, I'm rarted

jovial warren
#

nice redundant key quoted SNBT

#

also, you gotta make the clear distinction there

#

that is SNBT (stringified NBT), not NBT

#

real NBT is, as the name suggests, binary data

ocean quartz
#

Details

static zealot
#

Why did no one tell me that .trimStart() is a thing?? ๐Ÿ˜ข

ocean quartz
obtuse gale
#

It's supposed to be kept secret blitz

jovial warren
#

oh btw, Krypton supports Java ploogins xD

#

I just made a test plugin in Java and it works like it's Kotlin

#

I mean, is a bit weird how initialize returns an Object and has a Continuation<? super Unit> as a parameter, but you can just return null and it seems to work fine

#

same with Command's execute function

obtuse gale
#

ok

jovial warren
#

very amused I see

#

xD

ocean quartz
#

The testCompile configuration has been deprecated for dependency declaration. This will fail with an error in Gradle 7.0. Please use the testImplementation

hot hull
#

Lmao

#

Also processResources needs a duplicatesStrategy now, which is ew

jovial warren
#

wait what

jovial warren
hot hull
#

Read what he said

ocean quartz
#

That's the point of the message lol

jovial warren
#

ah right

jovial warren
#

also, I guess all the compile stuff has to have a reason for being deprecated

#

ah I see

#

it's so they could replace it with api and implementation

jovial warren
#

also, that's not a bad idea

#

what's his name again?

obtuse gale
#

Joe Mama

#

(:

oblique heath
#

wait he switched?!?!?

jovial warren
oblique heath
#

this is exciting news

#

will he unban you

#

damn

#

well yeah but maybe he'd reconsider his actions on his path to enlightenment

jovial warren
#

what's
his
name
again?

#

Fefo I swear

oblique heath
#

what was that wall of text

jovial warren
#

lol

#

I'm trying to think if I should make some example plugins for Krypton and put them somewhere

oblique heath
#

probably, but how much do you want to prioritize that over actually finishing krypton in the first place ๐Ÿค”

jovial warren
#

at the bottom of the list

old wyvern
#

Bard

#

got java 16 installed by any chance?

lunar cypress
#

Ok?

obtuse gale
#

lol

half harness
#

lol

#

|| i guess johnny's not in the mood ||

obtuse gale
#

Oh Johnny is always in the mood ๐Ÿ˜ ๐Ÿ˜˜

stuck harbor
#

๐Ÿ˜‰

half harness
#

๐Ÿ˜‰

half harness
#

๐Ÿ˜Œ

#

||note: this is about 6 months worth of trash||

jovial warren
jovial warren
#

why?

old wyvern
#

Needed to test something on it, Altho I just decided to download and try on a vm and seems gradle isnt playing well with it for some reason, so not sure if it'll be useful ig

ocean quartz
#

@old wyvern Seems like unit testing gradle is actually not bad ๐Ÿ‘€

old wyvern
#

๐Ÿ˜ฎ
Was there any extra set-up required?

ocean quartz
#

No no, just didn't know it was possible to simulate an entire project within the test

old wyvern
#

Ooo I see

#

Btw wasnt Assume supposed to ignore the test if it fails?

#

It seems to just fail for me for some reason

#

while docs say it should ignore

surreal quarry
#

I'd just like to interject for a moment.

old wyvern
#

What you're referring to as Linux, is in fact, GNU/Linux, or as I've recently taken to calling it, GNU plus Linux.

surreal quarry
#

Linux is not an operating system unto itself, but rather another free component of a fully functioning GNU system made useful by the GNU corelibs, shell utilities and vital system components comprising a full OS as defined by POSIX.

old wyvern
#

Many computer users run a modified version of the GNU system every day, without realizing it.

surreal quarry
#

Through a peculiar turn of events, the version of GNU which is widely used today is often called "Linux", and many of its users are not aware that it is basically the GNU system, developed by the GNU Project.

old wyvern
#

There really is a Linux, and these people are using it, but it is just a part of the system they use.

surreal quarry
#

Linux is the kernel: the program in the system that allocates the machine's resources to the other programs that you run.

old wyvern
#

The kernel is an essential part of an operating system, but useless by itself; it can only function in the context of a complete operating system.

surreal quarry
#

Linux is normally used in combination with the GNU operating system: the whole system is basically GNU with Linux added, or GNU/Linux.

old wyvern
#

All the so-called "Linux" distributions are really distributions of GNU/Linux.

surreal quarry
#

Thank you for your time.

old wyvern
#

Thank you as well.

onyx loom
surreal quarry
#

Delet this

#

it really messes up the flow of the conversation

#

thank

onyx loom
#

understood.

#

im sure conversation that totally werent copy and pasted is very important

#

how dare i interrupt!

old wyvern
#

Very much so

surreal quarry
#

best of HelpChat submission

onyx loom
#

just realised matt is back to old pfp too ;p

surreal quarry
#

oh yea

static zealot
#

oo

#

welcome back the real mat

#

t

#

how's it been to be kidnapped by aliens?

old wyvern
#

When will the real blitz return?

static zealot
#

never

#

I killed him

#

it was an accident

#

but I have to live with my mistakes

ocean quartz
forest pecan
#

this is hilarious

obtuse gale
#

lmao what..

forest pecan
#

ikr

old wyvern
forest pecan
#

Lmao

#

Dkim my man

#

just for that you get +10000 braincells

#

lol

half harness
#

...

onyx loom
jovial warren
#

lol

#

especially since I had to write toNBT functions for everything under the generator stuff

#

world data persistence test #1 here we come

jovial warren
#

world data persistence test #1 somehow successful lol

forest pecan
#

Praise:

#

intellij's split screen feature is a life saver

eternal compass
#

now who ghost pinged me...

half harness
#

i did

prisma wave
#

๐Ÿฅฒ

eternal compass
eternal compass
#

mean

half harness
#

whenever my computer BSODs intellij goes crazy

#

:c

cinder flare
#

Fuck dude, you ever go down for a nice nap and accidentally sleep for 6 hours?

obtuse gale
#

Yeah

ocean quartz
#

Not for a nap but when i was way younger I once slept for 16 hours

obtuse gale
#

Literally every time I take a nap I just overshoot lol

forest pecan
#

thats literally 2/3's of a day

#

lmfao

#

twice of what average is

obtuse gale
#

I once slept a whole day through ๐Ÿฅฒ

forest pecan
#

gl sleeping on the next day tho

#

๐Ÿ™‚

cinder flare
#

I'm back on bri ish time ๐Ÿ˜”

stuck harbor
#

wait

#

o shit

#

yes

#

daylight savings

#

UK is on GMT+1 now

pale shell
#

No

#

Just gmt

stuck harbor
#

no

#

we are on BST

#

which is GMT+1

pale shell
#

We stopped changing the time

stuck harbor
#

who did?

pale shell
#

UK

stuck harbor
#

noooo we didnt

pale shell
#

When we left we stopped changing the time reversed_fingerguns

stuck harbor
#

my clocks went ahead a few days ago

stuck harbor
#

left where

#

rome?

#

Normandy?

eternal compass
#

Brexit I assume

pale shell
#

Yeah brexit

#

When we left brexit we stopped changing the clocks

peak quarry
#

how do i use the autosell plugin? i use iSpigot which is 1.7-1.16!

obtuse gale
#

the server can't be 10 different versions

pale shell
#

1.7 - 1.16 jar?

peak quarry
#

it supports 1.7-1.16

pale shell
#

Impossible

half harness
#

im assuming 1.16 jar

#

with viarewind and stuff inside

peak quarry
#

prob idk

#

im el stupid

pale shell
#

You're using viaver or something

half harness
#

^

peak quarry
#

yes

#

that

#

thats what it is

#

xD

obtuse gale
#

but the server itself is just one version

half harness
#

lol

pale shell
#

Why don't they make multiple version jars?

#

Would be helpful

forest pecan
#

??

#

wdym

obtuse gale
#

because it's a pain in the ass to support 4513 different protocols and packet formats

#

that you leave to VV devs :^)

pale shell
#

Can't vv devs push there stuff into the main spigot jar?

obtuse gale
#

Why would they if.. it works as a plugin already?

#

Besides it's better that way, if something changes within VV only you don't need to update the whole server jar, just the plugin

pale shell
#

Because then it's already built into the jar?

obtuse gale
#

The way it is now they can maintain it however they want, freely

#

Imagine it as a "spigot extension"

#

hint hint: plug-in

half harness
#

im trying to make namespacedkey @ocean quartz

ocean quartz
#

Sned it

half harness
#

to get a STICK

#

with a PDC

#

value

ocean quartz
#

DO IT

half harness
#

yyyyyyyyyy

half harness
#

:c:c:c

ocean quartz
#

Send ittt

half harness
#
private val key = NamespacedKey(Bukkit.getPluginManager().getPlugin("HCraft")!!, "skin")

private fun getItem(material: Material, type: String): ItemStack {
    val item = ItemStack(material)
    val meta = item.itemMeta!!
    meta.persistentDataContainer.set(key, PersistentDataType.STRING, type)
    item.itemMeta = meta
    return item
}

enum class Skin(val learned: Int, val spellsCast: Int, val item: ItemStack) {
    STICK(0, 0, getItem(Material.STICK, "STICK")),
    BLAZE_ROD(4, 200, getItem(Material.BLAZE_ROD, "BLAZE_ROD")),
    BONE(7, 500, getItem(Material.BONE, "BONE"));
}
```:(
ocean quartz
#

That doesn't look like the entire class
And just imagine if you could, you know pass down the key instead

private fun getItem(key: NamespacedKey, material: Material, type: String): ItemStack {
    val item = ItemStack(material)
    val meta = item.itemMeta!!
    meta.persistentDataContainer.set(key, PersistentDataType.STRING, type)
    item.itemMeta = meta
    return item
}
#

Dude.. the amount of !! you have

#

Do you really like NPE that much?

half harness
half harness
#

same with itemMeta

ocean quartz
half harness
#

enum class

#

isn't that the same thing ._.

ocean quartz
half harness
#

if anything I want it to throw some kind of exception if it's null

ocean quartz
ocean quartz
half harness
#

without the plugin

half harness
#

i never know ๐Ÿ˜ซ

#

no response

#

;-;

ocean quartz
# half harness how do I avoid it tho
private fun getItem(plugin: Plugin, material: Material, type: String): ItemStack {
    val item = ItemStack(material)
    item.itemMeta?.let {
        it.persistentDataContainer.set(NamespacedKey(plugin, "skin"), PersistentDataType.STRING, type)
        item.itemMeta = it
    }
    return item
}

// Usage
getItem(plugin, Material.DIAMOND, "String")

And I don't see the need to use getPlugin nor !!

half harness
#

okay... now where do I get plugin

#

oh wait

#

๐Ÿคฆ

ocean quartz
#

Where are you calling the function on?

half harness
#

well

half harness
#

where it says "ItemStack"

#

should i just have a separate method?

ocean quartz
#

Huh?

half harness
#

aaaaaaaaaaaaaaaaaaaaa

half harness
#

final var

oak raft
#

ah yes

#

ty

half harness
#
private fun getItem(plugin: Plugin, material: Material, type: String): ItemStack {
    val item = ItemStack(material)
    item.itemMeta?.let { // Also what in the world is this
        it.persistentDataContainer.set(NamespacedKey(plugin, "skin"), PersistentDataType.STRING, type)
        item.itemMeta = it
    }
    return item
}

enum class Skin(val learned: Int, val spellsCast: Int, val item: ItemStack) {
    STICK(0, 0, getItem(???)),
    BLAZE_ROD(4, 200, getItem(???)),
    BONE(7, 500, getItem(???));
}
``` @ocean quartz
oak raft
#

whats a fun

#

oh nvm

half harness
#

method

oak raft
#

is this kotlin?

half harness
#

yes

oak raft
#

so you've joined the kotlin karens

half harness
#

lol

oak raft
#

be a java jeff

half harness
#

nooo

#

kotlin > java

#

i used to be java jeff

#

and kotlin hater

#

lol

oak raft
#

so me?

ocean quartz
half harness
#

but then hc ppl brainwashed me

half harness
#

i got brainwashed

half harness
oak raft
#

I've joined the c# carols anyway

#

c# ftw

half harness
oak raft
#

๐Ÿ˜ฆ it's the only language unity accepts ok?

half harness
#

oh

oak raft
#

u got unity experience?

half harness
#

nope

#

๐Ÿ˜ฆ

oak raft
#

looking into it?

half harness
#

uh

#

used to

#

not anymore

oak raft
#

I see

half harness
#

oo

frail glade
#

I've been doing C# myself lately too. It's kinda nice.

oak raft
#

it's pretty cool seeing ur shit start working

#

๐Ÿ˜„

ocean quartz
#

Oh oh god i didn't realize what you were trying to do

oak raft
#

we got another c# carol

half harness
#

uh

#

is that supposed to be bad

#

as in I did something bad

half harness
#

if matt doesn't see something

oak raft
#

what've you been learning it for waffle?

frail glade
#

I have to use it for class.

hot hull
#

Matt why you still awake

half harness
#

MATT doNT SleEP

#

not yet

ocean quartz
oak raft
#

oh I wish I learned c# in class

half harness
#

oh @cinder flare

#

i didn't know you were here

cinder flare
#

ofc bro

half harness
#

okay that pfp though

ocean quartz
#

Aight Dkim you'll likely have to use getPlugin
But if you use !!

half harness
#

errrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr

#

what exception then

cinder flare
half harness
#

nope

ocean quartz
#

BrainNotFoundException

cinder flare
#

oh lol

half harness
cinder flare
half harness
#

๐Ÿ˜›

ocean quartz
half harness
#

plz make this hc emoji

cinder flare
#

haha

#

i also have this one but it was to bright for a pfp

half harness
#

imagine not using light mode smh

#

although rn i have dark mode on

cinder flare
#

good

hot hull
#

Where chat Matt

cinder flare
#

๐Ÿ‘€

half harness
#

.kt ๐Ÿ˜

#

you love to see it

#

on github ```
kotlin 99.9% css 0.01%

#

that css

#

is making it dirty

hot hull
#

It's always some low minutes when y'all screenshot that

#

Makes me wonder

half harness
#

i haven't been on mc this whole day

cinder flare
#

to be fair, the default afk timer for the discord plugin is like 3 minutes

half harness
#

horrifying

#

lol

cinder flare
#

I set mine to 15 cause I usually end up clicking off of it a lot and it resets my time

half harness
#

wait how

cinder flare
#

uh

hot hull
#

Never knew that could be adjusted

cinder flare
#

you can edit plugin settings somewhere

#

i forget where

half harness
#

i thought it was just IJ being weird

cinder flare
#

yeah there it is

half harness
cinder flare
#

nice

ocean quartz
half harness
#

๐Ÿ˜ฎ

#

thanks

cinder flare
#

oh shit he was doing that in triumpchat lmao

ocean quartz
#

Dkim don't spam, you'l make me regret writing that

half harness
#

lol

#

anyways

#

thx ๐Ÿ˜ณ

#

almost forgot to change this

#

lol

clear junco
#

@potent fractal

#

hey bro dms for your paid req for marketting

cinder flare
#

oy is a tree's depth started at 0 at the root?

#

for instance, would this tree have a depth of 4?

hot hull
#

You need jesus

obtuse gale
#

yes

cinder flare
#

wdym

obtuse gale
#

I mean yes

#

you asked a yes or no question

#

the answer is yes

cinder flare
#

oh okay sick

obtuse gale
#

lol

ocean quartz
#

I thought inverting a tree was hard ๐Ÿ˜ฆ

cinder flare
#

okay now that's pretty funny actually

clear junco
#

@potent fractal
hey bro dms for your paid req for marketting

cinder flare
#

oh no im being forced to use javascript ๐Ÿฅฒ

#

oh I don't even get to think of it myself

#

just copy paste

steel heart
cinder flare
#

oh and it don't even work wtf

steel heart
#

4head

cinder flare
#

oh wtf you have to close a script tag?

#

no wonder lmao

winged mica
#

I'm trying to use HikariCP for my first time. Should I run mysql statements on a bukkitrunnable or is it already async?

prisma wave
#

The former

regal gale
#

What the hell is this crap

#
if (keys.size() >= ELEMENT_COUNT_MAX) {
    ELEMENT_COUNT_MAX += 1;
    int storage_arr[ELEMENT_COUNT_MAX];
    keys.setStorage(storage_arr);
  }```
This code won't work
#

But this works: c++ if (keys.size() >= ELEMENT_COUNT_MAX) { ELEMENT_COUNT_MAX += 1; int storage_arr[5]; keys.setStorage(storage_arr); }

#

ELEMENT_COUNT_MAX is an int

cinder flare
#

not final?

regal gale
#

Oh... forgot

lunar cypress
#

Define "won't work"

cinder flare
#

I was gonna say, that looks like a constant to me lol, yet you're incrementing it

lunar cypress
#

Then neither should work

#

Also what language is this

cinder flare
#

Java seems to be

lunar cypress
#

No def not

#

Cpp?

steel heart
#

@quiet depot do you always use guice when making spigot plugins?

quiet depot
#

I use guice for all java apps

cinder flare
#

And I bet the second one just ignores the changing of a final and still uses the int 5 so it works

regal gale
#

It's c++

steel heart
#

ah okay

#

whats the biggest benefit

#

and also why guice over all the other di frameworks?

lunar cypress
#

Guice is pretty simple

steel heart
#

hmm okay

regal gale
#

Is there a way to cheese the thing that I mention?

lunar cypress
#

Hard to tell without knowing context

#

What are you doing there

regal gale
#

Attempting to push_back the vector thanks to this lib https://github.com/janelia-arduino/Vector

#

But it's really hard to use rn

#

Let me show the code

#

=paste

compact perchBOT
#
HelpChat Paste

Please use a paste service to share configs, errors, code and long logs.
โ€ข HelpChat Paste

regal gale
#

Need some fixture on what I'm doing wrong

#

This is a memory match game (temp do not matter rn). The problem is I can't make it expand with push_back. Am I supposed to do something?

old wyvern
regal gale
#

I had the new code up there

#

I cleared it

old wyvern
#

ah alright

lunar cypress
#

even with my poor c++ knowledge, my C experience tells me you shouldn't use stack allocated arrays for this as yugi said

#

have you tried malloc?

cinder flare
#

mmm malloc

#

though calloc kinda slaps too, especially for this scenario

lunar cypress
#

why?

cinder flare
#

uh if I vaguely remember, it allocates and initializes as zero instead of just being nothing

#

which is what you'd want for a data structure like this, no?

lunar cypress
#

The way I see it from the implementation, it's best to malloc the initial capacity, use push_back and realloc if full() is true

lunar cypress
#

so it doesn't matter

cinder flare
#

okay i dunno, my C knowledge is like 2%

#

like, weighted rhombus?

old wyvern
#

kite?

cinder flare
#

hmm that is a good interpretation

lunar cypress
cinder flare
#

wait it's really called a kite

lunar cypress
#

yep

cinder flare
#

damn, no google results. I'm trying to make one in illustrator

regal gale
#

All i want was to unlimitedly add element into array ๐Ÿฅฒ

#

Why is it so toture

cinder flare
#

java arraylists go brrrr

regal gale
#

Especially considering I'm on Arduino IDE

lunar cypress
#

I presume arduino doesn't support a lot of the cpp standard library?

old wyvern
#

Didnt pulse link you arduino's vector yesterday?

#

How did that go?

lunar cypress
#

that is exactly that

#

I think

#

But that doesn't have automatic resizing

old wyvern
#

oh vectors dont resize automatically?

lunar cypress
#

shouldn't be too hard however

#

std::vector does I'm pretty sure

#

but apparently you can't use that

old wyvern
#

this is the one he linked I think

lunar cypress
#

yes

#

this is the one he uses

#

click the github link

#

no resizing

old wyvern
#

ahh

lunar cypress
#

I honestly don't know why they didn't implement it

#

it's pretty trivial

cinder flare
#

I don't see why they didn't implement the entire standard library lmao

regal gale
#

I don't like when they don't even implement documentation in it..

old wyvern
#

I mean, thein, it shouldnt be too hard to make yourself

#

If not, go for a linked list I guess, much* easier

#

Might be slow depending on your usecase tho

lunar cypress
#
// store current storage (int *) somewhere
// adding an element 
if (vector.full()) {
    size_t new_max = vector.max_size() * RESIZE_FACTOR;
    realloc(storage, new_max);
    vector.setStorage(storage, vector.size(), new_max);
}
vector.push_back(element);
#

something like that

regal gale
#

What's RESIZE_FACTOR?

lunar cypress
#

the factor by which you want the storage to grow

#

when the max is reached

old wyvern
#

For std vectors its 2

cinder flare
#

doubling is generally the best way, at least according to my DS&A textbook lol

regal gale
#

And the storage?

#

Assuming it's array?

old wyvern
#

Java does only 1.5 for its arraylist tho

jovial warren
#

when you turn on your computer to find out that your mouse now needs like 4 or 5 clicks to click once :/

lunar cypress
#

it's not an array, it's int*

cinder flare
jovial warren
#

and apparently it's magically fixed itself

#

wtf

jovial warren
#

man, I've suffered from click and drag issues for so long now and all I needed to do this whole time was just fucking plug it in a different USB port

#

FFS

cinder flare
#

okay that's actually kinda funny though

#

usb really had to do you like that

jovial warren
#

I thought the mouse was broken

#

but ya know, you plug it in a different port and bam

#

man, I've missed this mouse so badly lol

cinder flare
#

what mouse?

jovial warren
#

I mean this functionality of the mouse

#

before, I would have to click at exactly the right pressure to click and drag or it would let go

cinder flare
#

ooh that's weird af

jovial warren
#

must be a fucked up port on my motherboard

#

oh well, I have like 7 ports on the back anyway, and at least 6 of them work so idrc

#

right, time to push level.dat persistence I think

#

man, player.dat and level.dat persistence are so easy

#

especially compared to what comes next

#

MCA file/Anvil persistence

#

๐Ÿฅฒ

cinder flare
#

what's MCA/Anvil?

jovial warren
#

region files

#

Anvil is the name of the file format

cinder flare
#

region means...

#

like chunks?

#

oh or like the bigger groups of chunks?

jovial warren
#

go into one of your world folders

#

then go to the region directory

#

each one of those files is called a region file

#

it's a group of at most 32x32 chunks (can obviously be less if there just isn't any chunks generated in specific locations)

#

it's basically MCRegion (yet another mod, surprise surprise) with modifications to the NBT chunk data

cinder flare
#

ah okay I see

#

so that's a more efficient way of storing the world than one big file?

jovial warren
#

eh, it's still inefficient from what I've heard

#

but it's more efficient than the one chunk per file system they had prior to MCRegion

cinder flare
#

so what's the best way then?

jovial warren
#

no clue

cinder flare
#

oh lol

#

you just said it was still inefficient, I presumed you had a better way that you couldn't implement because you needed to preserve compatability

jovial warren
#

I mean, some Minecraft servers use their own world format

#

I'm not doing that though for two reasons

#
  1. I can't be assed to spend ages thinking of an efficient format, writing up all the specifications for it, creating the conversion tools, etc.
  2. I want to maintain compatibility with vanilla as much as I can if possible
#

I'd prefer if Krypton was just a drop-in replacement for vanilla

#

and if you could also then just drop vanilla back in and have it work fine

cinder flare
#

okay that makes sense

#

but like, making your own more efficient world format could be like a capstone project or something haha

#

maybe I'll do that for mine lol

jovial warren
#

yours? ๐Ÿคจ

cinder flare
#

yeah at the end of 4 years of uni you do a capstone project to finish it off, and it's usually something really specific

#

maybe I'll put a lot of thought into designing a new world format!

jovial warren
#

or designing a vanilla world generator xD

cinder flare
#

oooh now that's some big brain stuff

#

I don't think I'm smart enough for that one

forest pecan
#

tell me why

winter iron
#

are we, so blind to see, that the ones we hurt are you and me

cinder flare
jovial warren
#

maybe we could all work on a world generator

#

together ๐Ÿ™‚

forest pecan
#

yea lets replace EWG

prisma wave
#

haskell joke

forest pecan
#

EWG is ass

#

Join HCG

#

Helpchat Generator

cinder flare
#

bro let's go

#

that'd be actually super cool

forest pecan
#

are you guys down tho

#

lol

jovial warren
#

revive the community project

cinder flare
#

I'd totally be down to write a scientific paper about world generation with you guys

jovial warren
#

HCCCE 2.0 xD

forest pecan
#

lol

jovial warren
#

for anyone who remembers that

#

we wouldn't stick by those rules though lol

onyx loom
#

man that was such a mess lmfao

forest pecan
#

oh was it the terrible-plugin?

#

lol

onyx loom
#

nono

#

this was like july-august of last year

forest pecan
#

oh

old wyvern
jovial warren
old wyvern
#

It was supposed to be clips attempt at learning kotlin I think

onyx loom
#

we made a project that people could only commit like 100 lines at a time, and u must wait before 3 other people commit before u can commit again

#

smth like that

jovial warren
#

the rules were that one commit couldn't be more than 500 characters

#

you couldn't modify other people's code

onyx loom
#

ah there u go

jovial warren
#

you can only commit after 3 commits have been pushed from others

onyx loom
#

i swear we bent the rules so many times too ๐Ÿ˜‚

jovial warren
#

you gotta wait 6 commits if you fuck up

cinder flare
#

okay that sounds like the whole one pixel r/place thing but terrible

forest pecan
#

we need to make a repo where we all get edit status and no rules cause we are all developers

#

lmao

prisma wave
#

Oh boy HCCCE was interesting

cinder flare
#

yeah exactly, everyone who can commit is a moderately okay developer

old wyvern
#

HelpChat Organization???

jovial warren
old wyvern
#

Oh wait

#

xD

#

I thought that was called PAPI

#

nvm

onyx loom
#

papi is another org too

forest pecan
#

let's make our own org called Helpchat Junior

#

lol

onyx loom
#

๐Ÿค”

old wyvern
#

HelpGang

forest pecan
#

lmfao

onyx loom
#

yass

forest pecan
#

HelpGang

cinder flare
#

HelpGang yes!

winter iron
#

SupportCommunications

forest pecan
#

Nah

#

TechSupport

old wyvern
#

๐Ÿ˜‚

jovial warren
#

maybe we could just have it under KryptonMC fingerguns

old wyvern
#

No idea kal

onyx loom
#

lol

jovial warren
#

then I can add you guys and let you push directly

stuck harbor
#

KorruptonMC

old wyvern
#

Krypton evil!

forest pecan
#

lets make our own org

#

and make everyone

#

owner

old wyvern
forest pecan
#

lol

jovial warren
cinder flare
#

now that's some stonks

#

you guys are finally talking truth

old wyvern
#

What projects would we do?

jovial warren
#

wdym Krypton evil

cinder flare
#

replace anything that's a stupid proprietary closed source solution with a better open source boi

old wyvern
cinder flare
#

starting with maybe LiteBans replacement?

prisma wave
old wyvern
#

E V ** I ** **L **

winter iron
stuck harbor
#

hehe

forest pecan
#

Replace EWG

#

with

old wyvern
#

LightBahns

forest pecan
#

HGW

old wyvern
#

LiteBuns

jovial warren
#

I mean, yes, Krypton collects all of your personal details like full name, age, phone number, full address, credit card information, social security number and favourite colour and ice cream flavour when you first start it up and sends it over the net, but it's not that evil

#

xD

cinder flare
onyx loom
jovial warren
#

I'm messing ofc

cinder flare
prisma wave
#

when the minecraft protocol is a state machine ๐Ÿคข ๐Ÿฅถ ๐Ÿ˜ญ ๐Ÿฅฒ

onyx loom
#

it will

old wyvern
jovial warren
#

Krypton on a turing machine

stuck harbor
prisma wave
#

nauseated face

stuck harbor
#

why would

cinder flare
#

omg imagine Krypton becomes google's official minecraft server somehow

stuck harbor
#

but

#

but

old wyvern
onyx loom
#

after all, it is written in kotlin, and google likes kotlin ๐ŸŒš

old wyvern
#

with redstone or something

stuck harbor
#

but

old wyvern
#

xD

winter iron
stuck harbor
#

buy

old wyvern
#

Nah, Microsoft buyin Haskell

prisma wave
#

the top minds at google are investing into more pure technologies

cinder flare
#

oh shit imagine microsoft buys haskell

onyx loom
#

since when did helpchat have twitter

#

and who owns the account ๐Ÿคฃ

jovial warren
#

last post on the 23rd of April 2020 ๐Ÿ˜ฌ

cinder flare
#

oh no

jovial warren
cinder flare
#

how ironic

onyx loom
#

yeah ikr

prisma wave
#

Simon would not let it happen

#

He will fight until his last breath

stuck harbor
#

Simon will be rich

#

billllions of dollerydoos

#

he can buy the ivory tower

cinder flare
#

Simon will retire in a huge mansion with billions of dollars to his name yeah

prisma wave
#

Simon does not succumb to bribery

stuck harbor
#

he does

prisma wave
#

no chance

stuck harbor
#

he will

onyx loom
#

Visual Haskell

prisma wave
#

dear god

cinder flare
#

oh jesus christ

onyx loom
#

Component Object Model Haskell

cinder flare
#

i think i need some holy water for that one

old wyvern
#

Microsoft is scared of Simon

stuck harbor
#

Objective-Haskell

#

๐Ÿ‘€

old wyvern
prisma wave
cinder flare
stuck harbor
#

haha

#

appul

obtuse gale
#

hello guys can i have a help pls ?

onyx loom
#

no

prisma wave
#

yes!

onyx loom
#

?help

compact perchBOT
#
FAQ Answer:
ยป Give the helpers some details
ยป Ask suitable questions
ยป Be polite
ยป Wait

Source

stuck harbor
#

appul cronch

#

c r o n c h

old wyvern
prisma wave
old wyvern
#

GGHC

stuck harbor
#

have you ever heard of lein?

old wyvern
#

The Glorious Glasgow Haskell Compiler!!

onyx loom
#

oh btw bm, did u get the stats thing working on the fpprank?

old wyvern
prisma wave
#

uh

onyx loom
#

i remember u saying u wanted to collect stats or smth

obtuse gale
#

How I can deactivate the explosions of the creepers on the Guilds plugin claim ?

prisma wave
#

I had a try

old wyvern
#

๐Ÿฅฒ

stuck harbor
onyx loom
obtuse gale
prisma wave
#

The sql libraries for F# are terrible though, one of them wanted me to hardcode a path to a sqlite driver dll file

old wyvern
prisma wave
#

Like

#

No

old wyvern
#

Might work

stuck harbor
#

imagine if I had access to #spigot-linking

#

bm

#

use the C# libraries then

prisma wave
#

โ˜น๏ธ

stuck harbor
#

just use le C# libs

prisma wave
#

But they're not as nice

stuck harbor
#

u must

prisma wave
#

This library looked pretty clean, except the dumb setup part

#

F# has LINQ fingerguns

old wyvern
#

oh it does?

#

Nice

#

I thought it was a C# only thing

prisma wave
#

Yup

old wyvern
#

Then you should be able to use that for sql right?

stuck harbor
#

C# <-> F#

#

interop

old wyvern
#

Its a language feature iwan

stuck harbor
#

s t o n c c s

prisma wave
#

Yeah I think it has it

old wyvern
#
IEnumerable<int> scoreQuery =
            from score in scores
            where score > 80
            select score;
prisma wave
#

Kinda wanna figure out how this library works though

#

It looks even better than linq

#

It turns the db schema into types

old wyvern
#

I see

prisma wave
onyx loom
#

i never knew helpchat had a twitter leave me alone โ˜น๏ธ

jovial warren
#
private val BLOCKS_TEXT = (Thread.currentThread().contextClassLoader.getResourceAsStream("registries/blocks.json")
    ?: throw IOException("registries/blocks.json not in classpath! Something has gone horribly wrong!"))
    .reader(Charsets.UTF_8)
    .readText()

private val PALETTE: Map<NamespacedKey, RegistryBlock> = Json.decodeFromString(BLOCKS_TEXT)

object GlobalPalette : Map<NamespacedKey, RegistryBlock> by PALETTE
```when you have to do this for delegated inheritance lol
hot hull
#

Ew

jovial warren
#

not really much I can do about that tbh

#

if I want delegated inheritance, I gotta already have the property initialised before I construct the object

#

I think delegated inheritance is probably my favourite feature that Kotlin has tbh

#

also allows me to call GlobalPalette[key] like it's a map

#

and override get to call getValue (since we want to assume it's not null, as if we're trying to load a block that's not in the global palette that contains all blocks that exist, something has definitely gone wrong)

hot hull
#

Tis mimecraft, shit often goes wrong

jovial warren
#

lol

#

also, ```kotlin
object GlobalPalette : Map<NamespacedKey, RegistryBlock> by PALETTE {

override fun get(key: NamespacedKey) = getValue(key)

}

#

man you guys are no fun xD

onyx loom
#

i got it

#

ok heres the error

#

so by the fact that ur using delegated inheritance, ur creating a large shift in the tectonic plates. Due to the large shift in tectonic plates, the plates will eventually shift apart from each other far away enough, that will allow very hot magma from the Earth's inner core to start spewing out, causing large volcanic eruptions around the globe.
After the outbreak of the eruptions, hot ash will then fill the air, causing a global cooling season as the sun's rays will be reflected by this ash in the air. This will then lead to chaos on Earth, and eventually the Human race going extinct.

jovial warren
onyx loom
#

u heard me correctly.

jovial warren
#

it was a stack overflow error lol

#

since getValue calls get

jovial warren
#

and get calls getValue

onyx loom
#

same thing

#

stack overflow, the overflow of magma released onto earth ๐Ÿ™‚

cinder flare
onyx loom
#

^

sinful parcel
#

btw - if there hasnt been a commit in 6 months and the maintainer of a open source project doesnt merge a good pr that fixes various stuff, what now??

jovial warren
#

fork time

onyx loom
#

thenn kek

sinful parcel
#

what's the laws of open source

jovial warren
#

no laws, that's the point

#

if it's in that state, it's definitely time to fork

onyx loom
#

well, licensing too kinda

sinful parcel
#

22 open issues, 9 closed

#

alr, ill try to fork and link back to the project guy

#

but what does GPL 2.0 mean?

onyx loom
#

thats the license

sinful parcel
#

oh it allows it so i just need to keep the gpl 2.0 license

#

and disclose source

sinful parcel
#

The plugin maker was downbad, I was looking for the main source code but...

#

he put all of his code in Main.java

#

That's the js equivalent of putting all your code in index.js

cinder flare
#

That's just a bad idea in general lmao

onyx loom
#

what are classes?

cinder flare
forest pecan
#

what is dick

cinder flare
#

I love how you instantly got censored earlier

sinful parcel
#

what's the grass?

#

step 1 of forking a outdated plugin, force it to use paper's api

cinder flare
#

step 0 is swapping to gradle

sinful parcel
#

idk what a gradle is

onyx loom
#

๐Ÿ˜ฑ

cinder flare
#

oh dear lord

jovial warren
#

and catching errors thrown by Packet#write has made me discover that the tags logic is yet again broken lol

#

ffs

sinful parcel
#

im new to plugins and java

#

but I have prior experience with JavaScript

lunar cypress
#

now, the question of all questions

half harness
#

lol

lunar cypress
#

do I publish my programming finals solutions and risk getting clapped by my uni

sinful parcel
#

Make it open source, then your uni has no right to get angry ๐Ÿ‘

#

if they want, they can make a pull request

lunar cypress
#

you'd think they'd have no right to be angry at you publishing your own code

#

but they say it's not allowed

#

but I don't think they can claim that right

#

don't remember signing away the rights to my code at least

obtuse gale
#

why.. wouldn't.. you

sinful parcel
#

oh my god the plugin COMPILED with paper

half harness
#

wot

sinful parcel
#

it's already 4x faster now

sinful parcel
prisma wave
#

type classes > OO classes

cinder flare
sinful parcel
#

just use one of your strikes if you need to, just say it was a mistake and your brain stopped working because of how hard you were working if caught

cinder flare
#

yeah it's just natural reflex to open source everything on github because you're a good developer

lunar cypress
#

excuse me

#

ah

#

I just hope they won't be complete arseholes about it when they notice

#

the profanity filter is very selective

sinful parcel
#

selective yes, you just bypassed it because no one thought to think about adding that

lunar cypress
#

no I mean fuck is allowed

#

but arse is not

cinder flare
#

i dunno, I open sourced my final project for my CS 3200 Database Design and Management class while everyone was still doing their projects and nobody got mad at me so

#

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

sinful parcel
#

ass

#

?

lunar cypress
#

what

#

arsehole is not

sinful parcel
#

lol

obtuse gale
sinful parcel
#

lMFAO

lunar cypress
#

yeah I'm just gonna make it public now

hot hull
#

It's one of those words which is blacklisted so you don't start cussing out everyone you see

#

But saying someone is a cunt is acceptable fingerguns

obtuse gale
#

nope

hot hull
#

feels bad then

forest pecan
#

it is banned

cinder flare
forest pecan
#

frosty

#

admin abuse