#dev-general

1 messages Β· Page 199 of 1

onyx loom
#

the germans dont want war! nobody wants war!

heady birch
#

Eric

#

Sheila

onyx loom
#

gerald

heady birch
#

Yeah that's it

old wyvern
#

the germans dont want war! nobody wants war!
Right

heady birch
#

Who else

prisma wave
#

inspector goole

heady birch
#

Lol

onyx loom
#

mrs birling

prisma wave
#

But the way some of these cranks talk and write now, you'd think everybody has to look after everybody else,

heady birch
#

Who's the other guy

#

Eva

prisma wave
#

eva smith

onyx loom
#

the girl who died

#

yh

prisma wave
#

tragic

onyx loom
#

πŸ˜‚πŸ˜‚πŸ˜‚

heady birch
#

Tragedy

old wyvern
#

What is a crank?

onyx loom
#

we're such nerds

prisma wave
#

old fashioned word for idiot i think

old wyvern
#

ah

heady birch
#

Eric birling was drunk. Alcoholic

onyx loom
#

had non consent sex 😬

old wyvern
#

drunk alcholohic

#

||drunk|||| alcholohic||

prisma wave
#

alcholohic

old wyvern
#

alcholohickery

prisma wave
#

arthur birling is basically andrey

old wyvern
#

alocholock

onyx loom
#

true

prisma wave
#

a fascist who doesnt care about the users

#

only wants money

#

more and more money

heady birch
#

@desert horizon

prisma wave
#

no

#

no

#

no

old wyvern
#

Speaking of which

onyx loom
#

lmao

old wyvern
#

Next time I use javafx

#

Im staying the fuck away from kotlin

prisma wave
#

elarafx

onyx loom
#

πŸ™

desert horizon
#

@heady birch hm?

onyx loom
#

im ok with elarafx πŸ™‚

prisma wave
#

niall called you a fascist

heady birch
#

He called you, I quote:

#
only wants money
more and more money```
prisma wave
#

no

#

i did not

#

there is no evidence

onyx loom
#

πŸ˜‚πŸ˜‚

desert horizon
#

Since when do I want money?

heady birch
desert horizon
#

My stuff is free you tool

heady birch
#

I present you: the evidence

prisma wave
#

that is not real

onyx loom
#

Photoshopped

prisma wave
#

typical corrupt media

heady birch
#

@prisma wave His stuff is free

prisma wave
#

is it

old wyvern
#

Andrey breslav

heady birch
#

Now hes gonna claim hes being framed!

prisma wave
#

and i suppose wer'e supposed to believe that andrey's stuff is free too are we

desert horizon
#

Do me a favour and leave me out of those stupid jokes of yours... Especially when it involves a ping. That stuff pisses me of

prisma wave
#

😳

onyx loom
#

niall typical old man who cant change his views smh

#

always thinking of capitalism

#

never socialism

prisma wave
#

niall is responsible for firing eva smith

onyx loom
#

very true

prisma wave
#

disgusting man

onyx loom
#

f u niall

#

started a chain reaction of unfortunate events πŸ’―

prisma wave
#

very unfortunate

onyx loom
#

how the frick do i still remember all of this πŸ˜‚πŸ˜‚

#

did u all do this for gcse?

prisma wave
#

doing gcses

#

yeah

#

the gcses that I did

#

those ones

onyx loom
#

what question did u get in the exam

old wyvern
#

started a chain reaction of unfortunate events πŸ’―
Nah πŸ€·β€β™‚οΈ

onyx loom
#

like the 20mark one or whatever

#

on character development iirc

prisma wave
#

-_-

old wyvern
#

What does gcs include?

prisma wave
#

exams

onyx loom
#

secondary school exams

old wyvern
#

ah

heady birch
#

What did you put to question 07.3, 2015 GCSE Combined Sciences June Series

prisma wave
#

lmao

onyx loom
#

yes

#

also

prisma wave
#

Edexcel or AQA

onyx loom
#

combined science yuck

prisma wave
#

^^^

onyx loom
#

aqa

desert horizon
#

I'm open for jokes but there are a few things I really can't take and being accused of wrong things is one of those types.
Like for real.

heady birch
#

Noted

prisma wave
#

typical niall

old wyvern
heady birch
#

Me? I didn't even accuse

prisma wave
#

you did

#

it wasnt me

onyx loom
#

πŸ™„

old wyvern
#

Moving on

#

Anyone up for a game of among us?

onyx loom
#

no

heady birch
#

What game?

onyx loom
#

bad game

old wyvern
#

πŸ‰

#

Anything works

#

Im bored

heady birch
#

Yes, I know we would play the game among us. but what game

prisma wave
#

work on elara

onyx loom
#

interpreter

old wyvern
#

I really want some free time πŸ˜“

prisma wave
#

πŸ™„

#

free time is overrated

onyx loom
#

no free time allowed

#

work!

old wyvern
#

πŸ™ƒ

heady birch
#

Still waiting for the barry emoji leaderboard

prisma wave
onyx loom
#

πŸ˜‚πŸ˜‚

old wyvern
#

Fuck tornadofx

onyx loom
#

fyck u

old wyvern
#

πŸ™ƒ

prisma wave
#

-9

#

duh

onyx loom
#

blue

heady birch
#

Rod Johnson >>>

onyx loom
#

if ur on about tier 3

#

do =tiers in #bot-commands

prisma wave
#

logical right shift

onyx loom
#

ull see the colours

old wyvern
#

It slowly goes up to Blue and then to @prisma wave color

heady birch
#

I want to set my username to be springniall, like springrod

prisma wave
#

elara chad colour

old wyvern
#

Idk what that color is

#

Skin?

#

Light orange?

prisma wave
#

yeah I guess

onyx loom
#

chad

prisma wave
#

chad colour

onyx loom
#

yup

prisma wave
#

nope

#

highest is this one

#

well there are higher but nobody has reached them yet

#

perhaps

onyx loom
#

tier 10 soonℒ️

prisma wave
onyx loom
#

next year

old wyvern
#

does anyone have hte last colour reached?
@obtuse gale
A dead person?

prisma wave
#

no

#

this year

onyx loom
#

😳

old wyvern
#

Technically a dead person has seen their last colors

heady birch
#

πŸ₯Ά

prisma wave
#

Restart GoLand to apply changes in plugins?

#

SARS

heady birch
#

πŸ₯Ά

old wyvern
#

God another Goland update

prisma wave
#

protecting the citizens of the united kingdom

old wyvern
#

These people update like every 4 days

onyx loom
#

lol we wish

prisma wave
#

i feel very protected

onyx loom
#

cus u on an island with 10 people on it

old wyvern
#

Then whose at your window alex?

heady birch
#

πŸ₯Ά

prisma wave
#

andrey

#

he has come for a fistfight

old wyvern
#

O.o

onyx loom
#

come to bham and u suddenly not safe

prisma wave
#

ofc

#

which is why i am never going there

onyx loom
#

πŸ’―

old wyvern
#

Among Us..... in minecraft?

#

Wait no, thats just murder mystery

onyx loom
#

smh all these new games all copied from mc

prisma wave
#

trouble in mineville

old wyvern
#

Nah thats from some TTT shit

onyx loom
#

every game concept can be brought back to minecraft

old wyvern
#

I forgot the games name

prisma wave
#

block hunt

old wyvern
#

every game concept can be brought back to minecraft
Yea I think thats because minecraft is in a sense a very easy to use game engine

#

Atleast thats how its mostly being used

prisma wave
#

very easy to use
spigot

old wyvern
#

spigot
πŸ’€

onyx loom
#

very easy to use
nms

old wyvern
#

I mean its litrallly a scenario where you only have to work on the logic

#

Everything else is handled for you

#

A client and server already exists

#

Not much

onyx loom
#

bed time for me. gn πŸ‘‹

old wyvern
#

Try rewriting a whole minecraft gamemode to Unity with multiplayer suppourt

prisma wave
#

start learning go

old wyvern
#

Youd spend more time on mechanics not specific to your gamemode rather than on what actualy matters for your gamemode

#

i just started learning c#
Lovely

prisma wave
#

public Void PrintLine()

heady birch
#

i just started learning c#
Learn Learn rust

old wyvern
#

Void is invalid

prisma wave
#

you're invalid

old wyvern
#

its still void

prisma wave
#

Subroutine main

heady birch
#

public namespace void ____PrintLine(string _Cool, List<string> _CoolList)

prisma wave
#

() => {} that's a pretty sexy syntax

old wyvern
#

use var

prisma wave
#

AHAHAHAH

heady birch
#

Rust is cool as well

prisma wave
#

barry blocks cobol code

#

good

#

cobol sucks

heady birch
#

Fortran >>

old wyvern
#

Also, Allman in c# plz

#

Use rider

prisma wave
#

allman

#

opening brace on new line

old wyvern
#

bracket style

prisma wave
#
if (blah) 
{

}```
old wyvern
#

^

prisma wave
#

bruh

#

it's convention for C#

#

lol

old wyvern
#

Thats the conventional way in c#

#

Rider auto converts to that when you use java convention

prisma wave
#

easier to read

old wyvern
#

Jetbrains is love, Jetbrains is life

prisma wave
#

also probably because it's the convention for C too

heady birch
#

It is a common tactic by developers forced to meet certain amount of lines per day! using allman encourages the pressuring of work place programmers. Stop using AllMan!

prisma wave
#

nooooooooo

old wyvern
prisma wave
#

F#

old wyvern
#

E-L-A-

prisma wave
#

ra

old wyvern
heady birch
#

Sometime's I really hate emoji's

prisma wave
#

fun

heady birch
#

C?

prisma wave
#

Go

heady birch
#

How to do exhaustive match on kotlin when

#

Like rusts _ => {}

prisma wave
#

else -> {}?

steel heart
#

else if not not else if ->

heady birch
#

Beautiful

steel heart
#

$ -> { }

#

godly naming convention

prisma wave
#

πŸ™„

steel heart
#

Well I kind of abandoned one of my plugins because I ended up with $$$$$$$

ocean quartz
#

@steel heart What mod are you making?

steel heart
#

uh some prehistoric mod

#

not going very well atm

ocean quartz
#

Oooh sounds cool, might wanna ask frosty, he was trying to make an Ark plugin and it didn't work so maybe a mod

steel heart
#

yeah, well I'm struggling like a lot with models rn

#

not very nice

ocean quartz
#

Looks great to me xD

obtuse gale
#

got it after copy + pasting from stack overflow lol

#

val result = set.any { triple -> triple.toList().all { map[it] == "Thing" } }

mental trench
#

Looks great to me xD

#

couldnt agree more with you xd

obtuse gale
#

are test files considered part of a project? thonking

#

in reality my question is "do I have to add license info to test files too?"

hot hull
#

@steel heart How dare thy copy my idea

#

But RP ew, I was planning on not using an RP for the dinos

obtuse gale
#

are maps not considered Collections?

obtuse gale
white fable
#

Hi, does your plugin support a function of Multiverse? For example I want the plugin to work only in certain worlds.

obtuse gale
#

Kotlin question, I might just be being dumb but

#
        game.activePlayer = game.players.elementAtOrNull(game.players.indexOf(game.activePlayer) + 1)
                ?: game.players.first()```
#

in the indexOf call its telling me that since game.activePlayer is both a var, and nullable, it cant smart cast and might be null, but I dont think I can do anything about that can I?

hot hull
#

In theory it shouldn't be null, since you handle it properly

obtuse gale
#

its mutable tho so its saying it could change

hot hull
#

Assign it to a variable idk GWcmeisterPeepoShrug

steel heart
#

rp?

hot hull
#

Resource pack

steel heart
#

not a rp

#

a mod

hot hull
#

Ah

#

Well I mean kinda meh to make it with a mod, since that'll ofc allow you to make it perfectly

steel heart
#

yes but Im stuck at this stupid model

#

sigh*

#

but if you want to make ark into a plugin, im defo in

hot hull
#

Well you could, but the mechanics would be so limiting since mc gae

steel heart
#

yh the mobs would be hard to make

hot hull
#

I was thinking of just making them entirely out of armorstands, basically counstruct a model with them

steel heart
#

rip performance

hot hull
#

Indeed

steel heart
#

well it wouldn't be dumb if it wasnt for every entity ticking constantly

hot hull
#

They are planning on changing to a better engine now, so performance should increase drastically in the upcoming updates

steel heart
#

nice

#

Well, I'm making this mod rn. Idk but join if you want

hot hull
#

Link the repo, but I've no idea when it comes to mods

steel heart
#

havent done much in the repo but sure

#

gh name ?

hot hull
#

Frcsty

steel heart
#

Im actually basing this mod of something else which isnt entirely ark inspired. But if you want we could actually try replicate ark more exactly or if that does matter to you.

hot hull
#

So long as it's dinosaurs fingerguns

steel heart
#

yh u're a fan too?

hot hull
#

Who isn't a fan of dinosaurs

prisma wave
#

Asteroids

hot hull
#

oof

steel heart
#

u have to leave alex

#

this isnt great

prisma wave
#

πŸ™„

steel heart
#

@hot hull invited

hot hull
#

I saw yea, I'll join in a sec

#

Oh god so much static

steel heart
#

well its forge

hot hull
#

mhm

steel heart
#

model angles

distant sun
#

Cute

#

Dont use detailed textures fingerguns

hot hull
#

Nah it's gonna be a fully detailed trike shlong, just for you Gaby fingerguns

obtuse gale
#

helo can somoene please help me with make please and thankyou :)) How me draw a Char over top of current map in item frame thankyou please

distant sun
#

I guess you are asking for a lib?

obtuse gale
#

well im using johnnys map lib, but I need to edit a pre-existing map

#

well what I need to do is put a Char ontop of a map, like write the letter onto the map, over the top of what is already there

distant sun
#

Oh, Char. I have read it as "chart"

#

Do you store the map somewhere?

obtuse gale
#

I have it from an event,

#

I get it from the PlayerInteractEntityEvent, cos I can get the itemframe which is an entity, and from that I can do my checks and then cast it to MapView

distant sun
#

Can johnny's lib use existent maps?

heady birch
#

nialllib

obtuse gale
#

I suppose I could try and get the renderers from the pre existing map then just add it to a new map with johnnys lib

distant sun
#

Too many Ls

heady birch
#

would anyone find a serializing lib any use

obtuse gale
#

I suppose this migth work

#

val newMap = MapBuilder.create().addRenderers(mapView.renderers).addRenderers(renderer).build().createItemStack()

distant sun
#

How does it stop the player mark from being shown on the map?

obtuse gale
#

idk, there it is for reference

heady birch
#

My understanding of git, I could create a private remote and later delete that remote, then add a new public repository as a remote. And it will retain the commit history won't it? Just nothing like issues or wiki (which I don't intend to use on the private repo)

#

@prisma wave

prisma wave
#

Should do yeah

heady birch
#

Should do is a little ambigous 😐

prisma wave
#

If the public repository is brand new then I'm pretty sure it will sync the history fine

heady birch
#

no

#

It will be a existing repo that's been around for like 2 years

prisma wave
#

Hmm

#

You'll probably need to merge or force push then

heady birch
#

I want to make private KiteBoard repo. Then in future delete the private one, and move code to kiteboard-coumentation

#

That way all the issues and wiki pages are preserved

prisma wave
#

Ah

#

Not sure how easy that will be

#

I think you'll probably get a "refusing to merge unrelated histories" error

#

so you'll probably need to force push the code or something

#

someone cleverer probably knows a way to merge them

heady birch
#

Clown

onyx loom
#

🀑

errant anchor
#

Do you know a site where i can buy paysafecard with paypal ?

hot hull
#

The point of PSC is so it can't be traced, paying with paypal would do just that..

steel heart
#

wait frosty

#

are you good with modelling etc

errant anchor
#

Not PSC

#

Paysafecard

hot hull
#

PSC = paysafecard Zeltuv..

obtuse gale
#

are you good with modelling etc
I heard frostys a pretty good model

hot hull
#

😏

steel heart
#

oh well thats why he looks like a dinosaur

hot hull
#

I tried BlockBench or whatever the fuck it's called a while back and I mean I did alright

steel heart
#

have you tried tabula?

hot hull
#

Tabula?

errant anchor
#

PSC = paysafecard Zeltuv..
@hot hull rly

steel heart
#

yeah

errant anchor
#

wtf i didn't know

steel heart
#

sotp mocking

old wyvern
#

Blender

steel heart
#

lol

obtuse gale
#

tabula is the mod isnt it?

steel heart
#

yeah

#

its pretty good

obtuse gale
#

I kinda wanna get into modelling but I sucked at it last time I tried

old wyvern
#

Theres a thing called crayfishes table or something

#

I forgot

#

maybe crayfishes bench?

#

something like that

#

for minecraft models

steel heart
#

yeah, I mean I use tabula since then you dont need an additional program

#

But I heard block bench is also really good

obtuse gale
#

is c# hard? Cos I kinda wanna try something but it needs C#?

steel heart
#

I mean not that hard

#

I just felt it to be confusing because you have different naming conventions

old wyvern
#

Its quite similar to Java but with some kotlin features

#

If you are familiar with both of those it should be pretty easy to get started

#

if you use rider it will auto convert java conventions to c# conventions as you type xD

obtuse gale
#

I mean im familiar with java and kotlin

#

doesnt mean Im good with either

old wyvern
#

It shouldnt be too hard

#

give it a go

#

Personally I like what c# has to offer

steel heart
#

I mean at the end of the day Aj3douglas isn't one of the "proffesional spigot plugin devs"

hot hull
#

:bigkek:

heady birch
#

Me

reef maple
#

hi o/

#

is it possible to set an Itemstack has a livingEntity metadata / get the Itemstack from a metadata ?

steel heart
#

what

hot hull
#

^

obtuse gale
#

^

steel heart
#

^

prisma wave
#

^

reef maple
#

I mean. i can add an Itemstack to an arrow metadata (successfully), and after i want to get back this itemstack from the arrow's metadata (metadata can't be cast to Itemstack)

prisma wave
#

value()

reef maple
#
projectile.getMetadata("feMainHandItem").get(0).value();

like this ?

hot hull
#

That'll throw a phat NPE

#

so you might wanna check if it has any values first

reef maple
#

(every NPE are fat lmao)

#

I've checked that

steel heart
#

we love npe

prisma wave
#

IndexOutOfBoundsException actually

hot hull
#

Well an IOFBE and an NPE when you tried to get the value fingerguns

prisma wave
#

:what:

reef maple
#
                if (projectile.hasMetadata("feMainHandItem")) {
                    System.out.println(projectile.getMetadata("feMainHandItem").get(0).value());
                    ItemStack itemStack = (ItemStack) projectile.getMetadata("feMainHandItem").get(0).value();

Even with this ? I can maybe just check the length of the metadata

prisma wave
#

That's probably fine

#

Although you repeat yourself a lot

#

temporary variables good

runic flume
#

Who was that again, who likes making documentation?

#

XD

hot hull
#

Andre I think

heady birch
#

NPE not possible in languages like Rust

hot hull
#

Or just use kotlin, ez claps

prisma wave
#

It's possible in kotlin

reef maple
#

The println is just a check of datas,

prisma wave
#

πŸ™„

heady birch
#

Yeah kotlin is a poor solution

hot hull
#

BM, not the point smh

heady birch
#

Well yeah it kind of is the point?

prisma wave
#

Yes it is

heady birch
#

πŸ₯Ά

reef maple
#

Anyway thanks Soldier and everyone (without @ Γ¨wΓ©), it's really useful ^w^

steel heart
#

npe is very nice in java. tells you exactly how to solve the problem

prisma wave
#

The only 2 languages that reliably stop NPEs are rust and Elara

heady birch
#

C optional::?

prisma wave
#

No

#

Segfault

#

can't segfault in rust

#

Or elara

#

let

heady birch
#

Elara interpreted though

prisma wave
#

not for long

heady birch
#

Native??

prisma wave
#

Interpreter is just to find any immediate issues

#

Possibly

#

Or JVM

#

Not sure yet

steel heart
#

Optional.ofSomething(lol).isMaybePresent()

heady birch
#

Option::Some, Option::None, Option::Maybe

blissful sluice
#

can't segfault in rust
Or elara
I had to read that twice, I thought that was french for a min :(

steel heart
#

public boolean maybe() { return maybe; }

hot hull
#

oui oui Mitch

steel heart
#

baguette?

blissful sluice
#

sigh

hot hull
#

oooohohoh baguette

prisma wave
#

I swear literally none of those words are french

heady birch
#
-- nothing :frowning:
prisma wave
#

end procedure;

blissful sluice
#

segfault, rust and elara looked french ;-;

prisma wave
#

uh

#

Ok

#

If you say so

heady birch
#

πŸ₯Ά

#

cold;

prisma wave
#

defn main

#

[& args]

heady birch
#

is that elara?;
if so that's pretty cool;

steel heart
#

will elera allow multiple varargs

hot hull
#

How would that work

prisma wave
#

unlikely

#

^

#

Seems like a pain to implement

#

And use

#

And understand

#

And read

#

Etc

steel heart
#

it would certainly be op

hot hull
#

Just use a list or an array I guess?

prisma wave
#

collection literals

#

clojure

#

Groovy

steel heart
#

groovyjure

prisma wave
#

[1, 2, 3]

hot hull
#

Something like this could be cool tho

someFunction(String a, String... b, String... c) { }
someFunction("weeb", "weeb1", "weeb1"; "weeb2", "weeb2")
prisma wave
#

Homoiconic

steel heart
#

[{[{1}]}]

prisma wave
#

hmmmm

heady birch
#

make it type

#

make type an enum

#

Type::Int(3)

#

Type::VarInt(1, 2, 3)

#

They call me master at language design for a reason πŸ™‚

prisma wave
#

what's the reason

steel heart
#

lol(Consumer<String...>... lol, Consumer<String...>... lol2)

prisma wave
#

πŸ™„

steel heart
#

if I only was good at math

heady birch
#

add generic var args

prisma wave
#

No

steel heart
#

why not

heady birch
#

class CoolClass<T extends CoolType...>

prisma wave
#

doesn't make sense

#

How

steel heart
#

it does

heady birch
#

uh yes it does

prisma wave
#

Explain

steel heart
#

it makes more sense than ever

prisma wave
#

Tell me how

steel heart
#

because it forces the params to be T...

heady birch
#

T[0] getT0

steel heart
#

and the fields

prisma wave
#

😐

heady birch
#

make it sql like

#

class Cool<T where = SomeType>
class Cool<T where LIKE SomeAbstractType>
class Cool<T> where T = SomeType

steel heart
#

Cool<T extends NoYou | YouNo>

#

make this pls

prisma wave
#

we already have that

steel heart
#

wait what

prisma wave
#

Union and intersection types are a thing in elara

steel heart
#

Leeeeeeeeeeets go

prisma wave
#
type Result<T> = Some<T> | None
steel heart
#

noice

prisma wave
steel heart
#

damn I wish I could use Elera in my forge mod

heady birch
#

struct or object

prisma wave
#

what

heady birch
#

struct or object

steel heart
#

both

heady birch
#

no

#

add record

prisma wave
#

What's the question

#

struct

heady birch
#

record

prisma wave
#

no

steel heart
#

cordruct

prisma wave
#

you people scare me

steel heart
#

well I mean

heady birch
#

With kotlin would u usually put your extensions in a seperate class

old wyvern
#

πŸŽƒ

#

No Niall

heady birch
#

not class

steel heart
#

python is nice init alex

heady birch
#

file

old wyvern
#

Its better to keep it to where it needs to be used

prisma wave
#

😩

heady birch
#

ok

prisma wave
#

@steel heart mediocre

heady birch
#

Nice pun init

steel heart
#

its noice

#

less syntax

old wyvern
#

What is?

prisma wave
#

@heady birch if the extension is on one of your classes, it should be in the same file
Otherwise usually in a file dedicated for extensions on that type

#

Eg Strings.kt for String extensions

#

Is what I usually do, pretty sure that's convention

heady birch
#

Graphics2Ds.kt

prisma wave
#

Β―\_(ツ)_/Β―

heady birch
#

Extensions_g2d.kt

prisma wave
#

No

old wyvern
prisma wave
#

@steel heart python's simplicity is nice but I don't like dynamic typing & having to write functions in order

steel heart
#

ig

heady birch
#

Is it fine to use!! when I 99.99% know that variable aint changing

prisma wave
#

Ehh

old wyvern
#

"Do not create files just to hold "all extensions of Foo""

heady birch
#

Example?

prisma wave
#

Oh

#

Yeah I think the technical convention is to copy the package name

prisma wave
#

But that sucks

#

Is it fine to use!! when I 99.99% know that variable aint changing
@heady birch prefer requireNotNull and checkNotNull if there's a possibility an NPE could be thrown

heady birch
old wyvern
#

Also finally having some results with tornadofx

#

But

#

External themes dong seem to work

#

So I just went w1ith the one on the demo

heady birch
#

Looks nice

#

Java fx is all css based isnt it

old wyvern
#

mhm

prisma wave
#

I'd use a temporary variable + Elvis operator instead of !!

old wyvern
#

Tornado fx has a dsl for that as well

heady birch
#

Swing synths 🌝

prisma wave
#

val callout = track.screenCallout ?: blah

#

Then there's no chance of NPE

old wyvern
heady birch
#

No chance anyway really

old wyvern
#

Only issue is it breaks IJ

#

But otherwise its sweet

heady birch
#

More kotlin bloat.

charred violet
#

Hey Hey people who can make a plugin for free?

heady birch
#

Probably does some

prisma wave
#

Dynamic data in a static language 😐

steel heart
#

if its small

old wyvern
#

Dynamic data in a static language 😐
Whats the dynamic data here?

prisma wave
#

CSS

heady birch
#

new NullCheckerFactory().newNullChecker().checkNull()

#

Typical kotlin

old wyvern
#

Stylesheets dont change?

prisma wave
#

I mean there's no type system or anything in CSS

heady birch
#

Yes!

prisma wave
#

Expressing it in a static language sounds annoying

old wyvern
#

Ah yes

#

This is type safe

heady birch
#

. # are kinda types πŸ™‚

prisma wave
#

😟

#

worried

heady birch
#

strongly typed CSS

prisma wave
#

Sass

#

Vue + sass + docker

steel heart
#

wth

heady birch
#

All they know

#

SASS kind of just seems like what CSS should be like

prisma wave
#

class name

#

arrow code

heady birch
#

True

#

What does val local = something.something ?: continue compile to?

prisma wave
#

null check

heady birch
#

You sure

prisma wave
#
  • a temporary variable
#

Pretty sure

heady birch
#

None of that Intrisics stuff

old wyvern
#

Does SASS take precedence into account the same way as CSS?

prisma wave
#

Doubt it

old wyvern
#

Hmm

prisma wave
#
var local = something.getSomething()
if (local == null) {
    continue;
}``` pretty sure it will compile to this
heady birch
#

Ok

prisma wave
#

Intrinsics is only for exception throwing checks iirc

heady birch
#

makes me kind of sad

#

cos i do null check any way 😦

prisma wave
#

what

charred violet
#

Hey everyone I need help

obtuse gale
#

#relatable

old wyvern
prisma wave
#

@steel heart you have butchered my name

#

But nice lol

steel heart
#

butchered?

#

oh lol I see

charred violet
#

who's going to help a rΠ΅tΠ°rd

#

don't be silent

heady birch
#
private fun calculateTrackAlpha(track: RadarTrack): Float {
        val percentSweepRotation = track.elapsedSinceInterrogation() / (screen.radar.sweep.sweepPeriod * 2000).toFloat()
        var alphaVal = 1 - percentSweepRotation

        alphaVal = alphaVal.coerceAtLeast(0.0f)
        alphaVal = alphaVal.coerceAtMost(1.0f)

        return alphaVal
}
#

Poor performance

prisma wave
#

@charred violet don't ask to ask, and wrong channel

#

@heady birch what's wrong with that performance

charred violet
#

@prisma wave Hey send me to the right channel I'm disoriented here

prisma wave
#

What's your problem?

charred violet
#

I've already found the right channel

heady birch
#

4.8 seconds

heady birch
#

Kotlin isnt even making my javadocs poeprly

prisma wave
#

Kdocs

heady birch
#

how

#

And why isnt intellij doing it for me

prisma wave
#

you use Dokka to make docs?

heady birch
#

I mean the /** comments

prisma wave
#

Oh

#

What's wrong with them

heady birch
#

When i do it normally it adds @param and all that

onyx loom
#

@prisma wave why is elara not mentioned in ur services request 😐

#

i hope u realise that elara is the new wave and pays well.

prisma wave
#

The @param and other tags are not generated because the recommended documentation style for Kotlin is to refer to parameter names from the doc comment text using the [foo] syntax, rather than to document them using explicit @param tags. You can check the Kotlin standard library documentation to see how this style is used.

#

@onyx loom good point

heady birch
#

Or spring

prisma wave
#

I wouldn't say I'm proficient with spring

heady birch
#

Do not doubt yourself

prisma wave
#

Whenever I use spring I end up with at least 30 chrome tabs on stackoverflow

heady birch
#

Lol

onyx loom
#

dont u end up with that amount anyway wtf?

#

stackoverflow good 😁

prisma wave
#

Ofc

onyx loom
#

gives all answers necessary

prisma wave
#

But spring = much more Google searches than normal

steel heart
#

import * is op

obtuse gale
#

no

steel heart
onyx loom
#

who hasnt seen that

frail glade
#

Haha

obtuse gale
#

So, y'all already know that more than 3 billion devices run Java (including but not limited to Computers, Printers, Routers, Cell Phones, BlackBerry, Kindle, Parking Meters, Public Transportation Passes, ATMs, Credit Cards, Home Security Systems, Cable Boxes, TVs...)

#

But did you know that Java is a class-based, object-oriented programming language that is designed to have as few implementation dependencies as possible?

heady birch
#

πŸ₯Ά

prisma wave
#

So, y'all already know that more than 3 billion devices run Elara (including but not limited to Computers, Printers, Routers, Cell Phones, BlackBerry, Kindle, Parking Meters, Public Transportation Passes, ATMs, Credit Cards, Home Security Systems, Cable Boxes, TVs...)

#

The EVM is the most downloaded software to date

steel heart
#

Cap

prisma wave
#

No

#

cap = false

#

let cap = false

steel heart
#

throw new EleraChadTelliingTruthException

prisma wave
#

absolutely not

#

It's true

#

Do your research

steel heart
#

catch (EleraChadTellingTruthException e) {

}

astral quiver
#

hmmmmmmmmmmmmmmmmmmmmmmmm

#

Kotlin and Rust

#

hmmmmmmmmmmmmm

ocean quartz
#

IDE for Kotlin? ;o

onyx loom
#

πŸ‘€

astral quiver
#

I guess will be a new IDE for all kindas of languages

#

or a web ide

#

Could be web ide because of the WASM

#

RUST compiles really good for WASM

#

and the UI Framework I guess is Kotlin JS because could be the same that they are using in Space

astral quiver
#

My mistake, is Kotlin React

#

So this is something new that they are using internally πŸ‘€

obtuse gale
#

I need a "THIS IS NOT A LEGAL ADVICE" moment

#

Say my project is licensed under GNU GPLv3 but I want to make use a library (that I'll have to shade and relocate) licensed under the MIT License; do I have to change my project's license to MIT? Because it does state that The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software., the "Software" being "this software and associated documentation files". But it also states I can use, copy, publish, modify, distribute and/or sublicense it too.

#

The fuck do I do 😦

ocean quartz
#

MIT is GPL compatible, so you shouldn't

#

THIS IS NOT A LEGAL ADVICE
This for sure applies here kek

obtuse gale
#

lmao I'll ask on EngineHub

#

I know they know their shit

#

Still, not a legal advice lmao

distant sun
#

how can I turn Material#getData which return Class<? extends MaterialData> into SpawnEgg?

obtuse gale
#

Spawn egg materials don't

#

aaa

#

Spawn egg materials don't specify no MaterialData class

#

So I guess your best bet is to get the ItemMeta off the ItemStack and meta instanceof SpawnEggMeta? πŸ€·β€β™‚οΈ

distant sun
#

is for pre 1.11 where SpawnEggMeta doesn't exist

obtuse gale
#

uuh

#

let me

#

real quick

#

?javadocs

compact perchBOT
distant sun
#

EntityType.fromId(item.getDurability()); this should work

obtuse gale
#

You say pre 1.11 so I'm assuming 1.8.8

#

There is Material.MONSTER_EGG whose data is SpawnEgg.class... and there's Material.MONSTER_EGGS whose data is MonsterEggs.class

#

πŸ™ƒ

distant sun
#

monster_eggs is for blocks infested with silverfishes

obtuse gale
#

what

#

the

#

fuck

#

πŸ™ƒ

#

This is why I despise anything below 1.13 lmao

distant sun
#

xd

obtuse gale
#

how can I turn Material#getData which return Class<? extends MaterialData> into SpawnEgg?
anyway... on that

#

ItemStack#getData should do, doesn't it?

distant sun
#

nah I dont need it anymore

#

actually nvm, thanks

obtuse gale
#

lol neat

obtuse gale
#

Anyone used unity before?

prisma wave
#

Don't ask to ask

#

Send the stacktrace

obtuse gale
#

Just tryna work out how tf to scale things :/

prisma wave
#

Send the error

obtuse gale
#

no error

prisma wave
#

oh

#

how are we supposed to help then

#

Wait

#

@old wyvern

obtuse gale
#

just tryna work out how tf it works lol, cos from what I can see I can only control the scale of an object

prisma wave
#

Pretty sure you've used unity before?

obtuse gale
#

and changing the scales good and all, but like what do I do if I want the size to be like X wide

#

Since each like 3d object i put in has a different size to start with, so

regal gale
#

I did use Unity 2 yrs ago

#

So laggy that I don't want to use it yet

obtuse gale
#

Unity 2?

#

Where do I get such future technology

#

Does it come when I get internet 2 too?

old wyvern
#

Just tryna work out how tf to scale things :/
@obtuse gale
Check the transform component

obtuse gale
#

I know how to scale things, its moreso like how do you know how big to make things in relation to others

old wyvern
#

You can only have relative transformation with parent-child relations

#

You can place a gameobject inside another

#

And the child would scale relative to the parent

#

Or ofc, you make make your own script to handle that

obtuse gale
#

I mean like

#

one sec

#

If I create a cube, its much smaller than a plane even tho both scales are the same, which makes sense, since its scale and not size, so like is it just a bunch of trial and erroring until you get the right size? What do I do if im tryna recreate something that actually exists in?

old wyvern
#

Use the editor tools and resize as you want

#

All the transform properties can be changed using tools instead of direct editing

obtuse gale
#

hm?

old wyvern
#

Look to the top left for the transform tools

#

You should have tools like move, scale, rotate, multi-tool

#

One you select a tool and a gameobject to work with, You can change the transforms pretty easily

#

Make sure you have gizmos turned on in your scene view

obtuse gale
#

yeah I know how to like change the size and stuff, its just like say I want something to be like 2 meters, how would I do that since obviously we dont have like meters/units/whatever

old wyvern
#

The scene view grids represent a unit

#

smallest grid size is supposed to be assumed as a meter I think

#

Anyway brb

#

Exams

obtuse gale
#

right, and is there a way to like set something to be X units big?

#

ah alrigh

old wyvern
#

Ill be back in 2 hours

distant sun
#

He will be back

obtuse gale
#

In 2 hours

distant sun
#

In two hours

obtuse gale
#

He will be back

hot hull
#

Is he back

old wyvern
#

OWO what

#

πŸ™ƒ

#

right, and is there a way to like set something to be X units big?
@obtuse gale
You can use grid snapping. Hold ctrl while using the transform tools

pseudo owl
#

is there a website or any way that can i sell plugins without paypal account

hot hull
#

Or just make a paypal account?

pseudo owl
#

paypal is not allowed here

#

😦

hot hull
#

Where you from?

pseudo owl
#

turkey

#

its banned

hot hull
#

Damn, I guess you could use your bank account, I wouldn't trust spigot with that tho

pseudo owl
#

spigot only has paypal support

#

and refusing all requests about payment methods

hot hull
#

Oof

pseudo owl
#

its bad

hot hull
#

Move countries reversed_fingerguns

pseudo owl
#

thats the best way i think

hot hull
#

Deffo lol

obtuse gale
#

OWO what
he was back after two hours

#

what a chad

old wyvern
#

πŸ™ƒ

prisma wave
old wyvern
#

πŸ˜‚

frigid badge
#

so when elara ide?

#

partnered with jetbrains

prisma wave
#

soon

#

i have made many phone calls with andrey

#

he seems reluctant (obviously)

#

but i think we will get through to him eventually

#

he's in denial that elara is better than kotlin

quiet depot
#

what state is elara in?

#

like can you code in it yet?

prisma wave
#

a tiny tiny bit

#

the interpreter supports variable declaration of integer and string literals

old wyvern
#

No more Java or Kotlin

#

Only Elara shall exist

#

We're taking over IDEA

prisma wave
#

and you can do print(something)

#

and let's be honest you don't really need anything else

quiet depot
#

i'm just wondering how much effort it'd be to fork the base ij platform

old wyvern
#

Types are still in the works for the interpretter

prisma wave
#

Probably easier just to make a plugin

old wyvern
#

Mhm

quiet depot
#

well you do both

prisma wave
#

oh right

old wyvern
#

Is IJ open source?

prisma wave
#

have a fork with the plugin bundled?

#

community edition is

old wyvern
#

Ah

quiet depot
#

sorta

#

other jetbrains ides like rider, and webstorm are just ij, without the java, and with their specific language plugin

#

I assume

#

if it's not like that, we can definitely make it like that for elara, because it makes sense imo

#

you develop the plugin, and apply it on the base ij project

old wyvern
#

Mhm, we might also want just a plugin variant since Java interop is planned

quiet depot
#

the plugin can also still be used in ultimate

prisma wave
#

They definitely share a common base platform, not sure if all the jetbrains ides are "ij" or if they've got some in-house "base" which IJ and all the others are based off of

#

since most of of them have slightly different semantics

quiet depot
#

from what I've heard, the base is intellij

#

a key distinction however, is that intellij community/ultimate does not necessarily = "intellij"

#

community/ultimate, like their other ides, are built off the intellij platform

#

and i believe that platform is open source

old wyvern
#

Ah

quiet depot
#

because android studio exists

prisma wave
#

Makes sense

quiet depot
#

is android studio os?

#

so yeah, just look at that wording, I'm pretty sure to make an ide, you make a plugin, and then hardcode that plugin into the base intellij project thingo

#

then that plugin can still be used in ij ultimate

prisma wave
#

Sounds simple enough

obtuse gale
#

elara plugin for ij when

prisma wave
#

as soon as possible

old wyvern
#

yup

reef maple
#

It shows me this, so the item isn't null or AIR.

> [15:29:36] [Server thread/INFO]: ItemStack{GOLDEN_SWORD x 1, UNSPECIFIC_META:{meta-type=UNSPECIFIC, display-name=Β§aLevin Sword, lore=[Β§fCoursing with electric energy,, Β§fthis magical sword has been struck by lightning., , Β§fΒ§nSlots Β§8:, Β§f- Β§aMain hand, Β§f- Β§eOff hand, , Β§5Magical damages Β§8: Β§a9 Β§8/ Β§e2, Β§5Distance magical damages Β§8: Β§a9, Β§eAccuracy Β§8: Β§a70 Β§8/ Β§e17], custom-model-data=0, internal=H4sIAAAAAAAAAJVT204CMRAdDcYK4iW8aUz8AB9WYoI+InghkYQAb8aYsjt70d0W29nF/Xu7LGhMwGLSvjRnzsw5Z1oFYFD1sUeYjPMpwo6eSeUxqPs4CHPd5QkPUMPps3Nxvvq8MDjysRtp6vPgF/5mHb5m8NILcMgJLdT7Pq6gba7EGh0DJd8ekcew5TA48LEjhaaIUoqksHSql9XjMBUeKqiQSpFBw4yKMc9vkWaIYhRK0lC5chzDf1zK3twnM2DbdVPF3RzOCmTL3MvWOo+KcUZTRA+2r515dUdFtIFpCyPmgTIt5GzC4/j7+T5SuJRnnvoywwQFWThrRRCfhbcUWqCNsk8vEFLhg+JZRPmy4V7hp49C2zTsGrUhV4kFdlLu7hA/UiPL63NNqPInzNDsQHO+P0PUJiUuXFtLVnL1ulCLMYvE689faBNx970M42+SwzKlf+x34dWd4JN4kQp8AZgX06WVAwAA}}
> [15:29:36] [Server thread/INFO]: java.io.NotSerializableException: org.bukkit.craftbukkit.v1_16_R2.inventory.CraftItemStack
prisma wave
#

You have to use BukkitObjectOutputStream

reef maple
#

Instead of ObjectOutputStream ?

prisma wave
#

Yes

reef maple
#

Gonna try this

#

It seems to work, I suppose I use BukkitObjectInputStream too instead of ObjectInputStream

prisma wave
#

Indeed

reef maple
#

Yep, it works, excepted for BukkitObjectInput

#

When i want to unserialize, I got this
java.io.StreamCorruptedException: invalid stream header: EFBFBDEF

#
public static ItemStack convertStringToItemStack(String data){
        // deserialize the object
        try {
            byte b[] = data.getBytes();
            ByteArrayInputStream bi = new ByteArrayInputStream(b);
            BukkitObjectInputStream si = new BukkitObjectInputStream(bi);
            ItemStack obj = (ItemStack) si.readObject();
            return obj;
        } catch (Exception e) {
            System.out.println(e);
        }
        return null;
    }

So it returns null

prisma wave
#

How are you serializing?

ocean quartz
#

Use YamlConfiguration's serializer from Bukkit, then use Common's Base64 to convert it to String and vice versa

heady birch
#

I need to get this serialization lib out dont i

old wyvern
#

Which one?

heady birch
#

niallSlib

old wyvern
#

God

#

Nialib maybe

#

liniall

ocean quartz
#
fun encodeItem(itemStack: ItemStack): String {
    val yamlConfiguration = YamlConfiguration()
    yamlConfiguration["item"] = itemStack
    return String(Base64.encodeBase64(yamlConfiguration.saveToString().toByteArray()))
}

fun decodeItem(encodedItem: String): ItemStack? {
    val yamlConfiguration = YamlConfiguration()
    yamlConfiguration.loadFromString(String(Base64.decodeBase64(encodedItem)))
    return yamlConfiguration.getItemStack("item")
}
reef maple
#

Hmmm.. Does it generates yaml files in the plugin folder ?

distant sun
#

no

old wyvern
#

Doesnt yamlconfiguration just use BukkitObjectOutputStream and BukkitObjectInputStream?

ocean quartz
#

Yes, but does all the job for you

old wyvern
#

ah

reef maple
#

it seems that using my code make some "?" inside squares etc

old wyvern
#

What?

#

<?> this?

reef maple
#

This kind of thing

old wyvern
#

Type erasure

#

πŸ€·β€β™‚οΈ

#

Where specifically?

distant sun
#

Encoding problems?

ocean quartz
#

Let him finish typing xD

old wyvern
#

nah fingerguns

reef maple
#

Sorry I take time and I don't really know how to explain quickly XDDD

#

so yep, encoding, but this is without the base64 thing

compact perchBOT
#
πŸ“‹ Paste Converted!
https://paste.helpch.at/ujocaxaroq

A member of staff has requested I move your pastebin.com paste to our paste.helpch.at!

ocean quartz
#

Why not just use the functions i sent you?

reef maple
#

Because I didn't know them before XDDD

#

But what is this "fun" in your functions ?

old wyvern
#

kotlin

ocean quartz
#

^

#

fun encodeItem(itemStack: ItemStack): String = public static String encodeItem(@NotNull final ItemStack itemStack)

reef maple
#

Oooh

ocean quartz
#

yes added the not null annotation because that's basically what it'd look like

reef maple
#

I see, kotlin uses fun (ahah funny) but it's the only difference on these functions

old wyvern
#

Heres the same in a better language

let encode-item = (ItemStack itemstack) => {
    let yaml-configuration = YamlConfiguration()
    yaml-configuration["item"] = itemstack
    return (Base64 |> encodeBase64 yamlConfiguration.saveToString().toByteArray()) as String
}
onyx loom
#

i wonder what language that is 😏

old wyvern
#

πŸ˜ƒ

distant sun
#

the fuck is |>

prisma wave
#

Pipe operator

#

Although I don't think it's necessary in this case

distant sun
#

ugly

prisma wave
#

Necessary

ocean quartz
#

Elara programmers are plumbers

old wyvern
#

I mean the same expression as the kotlin version could have been used there

ocean quartz
#

for legal reasons that's a joke

old wyvern
#

But why not fingerguns

#

for legal reasons that's a joke
what

#

xD

ocean quartz
#

From PewDiePie's song xD

old wyvern
#

Ohhh xD

#

I mean that makes all plumbers Elara programmers

#

Pretty high standards for those people

prisma wave
#

@old wyvern why's the pipe operator used there?

old wyvern
#

Just for the sake of it

#

xD

#

But why not fingerguns

prisma wave
#

o lol fair enough

#

probably good to get a syntax for static interop too

reef maple
#

I don't understand everything in your functions, (and writed some shit lmao when trying to convert into java).

And these functions must be used before I try to (un)serialize them right ?

public static String encodeItem(final ItemStack itemStack) {
        YamlConfiguration yamlConfiguration = new YamlConfiguration();
        yamlConfiguration["item"] = itemStack; //some shit
        return String(Base64.encodeBase64(yamlConfiguration.saveToString().toByteArray())); //shit there to
    }

    public static String decodeItem(final String string) {
        YamlConfiguration yamlConfiguration = new YamlConfiguration();
        yamlConfiguration.loadFromString(String(Base64.decodeBase64(encodedItem))); //same here
        return yamlConfiguration.getItemStack("item"); //same here
    }
old wyvern
#

We could just have something similar to companions

prisma wave
#

Tbh I don't think using YamlConfiguration is the best idea probably

old wyvern
#

Of wait

ocean quartz
#

yamlConfiguration["item"] = itemStack; is yamlConfiguration.set("item", itemStack); iirc

old wyvern
#

we had the idea for it

#

it somewhere buried down in #private

#

type extensions

prisma wave
#

lol

old wyvern
#

πŸ˜‚

prisma wave
#

oh yeah

old wyvern
#

lemme check sec

ocean quartz
#

Tbh I don't think using YamlConfiguration is the best idea probably
Why not?

reef maple
#

yep that's it Matt

prisma wave
#

Isn't that gonna serialize it to yaml?

ocean quartz
#

Serializes to a weird string

prisma wave
#

If you just want to serialize the ItemStack, just use Java serialization and then you can write wherever you want

ocean quartz
#

if you do that you miss up on a bunch of NBT shit, iirc

reef maple
#

and I use MANY nbt

ocean quartz
#

YamlConfigurator was the only one i tried that kept the item perfectly

#

Without overcomplicating ofc

prisma wave
#

Hm

#

Pretty sure BOOS should include NBT

reef maple
#
    public static String encodeItem(final ItemStack itemStack) {
        YamlConfiguration yamlConfiguration = new YamlConfiguration();
        yamlConfiguration.set("item", itemStack);
        return String(Base64.encodeBase64(yamlConfiguration.saveToString().getBytes()));
    }

    public static ItemStack decodeItem(final String string) {
        YamlConfiguration yamlConfiguration = new YamlConfiguration();
        yamlConfiguration.loadFromString(String(Base64.decodeBase64(string)));
        return yamlConfiguration.getItemStack("item");
    }

Method calls expected on the returns, but Why this ? '-'

prisma wave
#

new String

#

Kotlin omits the new

reef maple
#

and add a Try Catch for the decode.. Okay ^^

ocean quartz
#

Yeah it gets bloated in Java

onyx loom
#

java very fat

obtuse gale
#

imagine not being able to just std::ifstream configFile("./config"); to declare and define the variable and open the file

reef maple
#

Okay it seems that I'm not the only spy
I can't get import org.apache.commons.codec.binary.Base64;

: Caused by: java.lang.ClassNotFoundException: org.apache.commons.codec.binary.Base64

ocean quartz
#

There are other Base64 encoders, I use the one from commons that is on Spigot, but you need to add spigot, not the api
For some reason Spigot relocates it org.bukkit.craftbukkit.libs.org.apache.commons.codec.binary.Base64

obtuse gale
#

why is it relocated

#

wtf

ocean quartz
#

I have no idea

reef maple
#

so i replace the import

heady birch
#

why wouldn't they

ocean quartz
#

I don't see the point of relocation on the main Jar

#

And @reef maple you can either add spigot and use the one in the Jar or use a different encoder

#

Or include commons yourself

reef maple
#

I don't really understand. Do I have to add some dependencies ?

ocean quartz
#
<dependency>
    <groupId>commons-codec</groupId>
    <artifactId>commons-codec</artifactId>
    <version>1.15</version>
</dependency>

You can use this instead of using spigot's if you want

reef maple
#

Alright, I'll try this one

#

The import stills the same right ?
import org.apache.commons.codec.binary.Base64;

ocean quartz
#

Yeah

reef maple
#

Ok same problem, event after dependency update and import