#dev-general

1 messages · Page 304 of 1

lunar cypress
#

it is practically impossible

obtuse gale
#

but it could happen anytime

lunar cypress
#

yeah, but that's not what you are examining

#

or what statistics and probability theory is about

obtuse pulsar
#

there are things that happen daily which have a smaller chance of (1/2^128)^2 chance of happening

lunar cypress
#

sigh...

winter iron
#

Might make a bounty for someone to generate a random UUID that matches one i generate

lunar cypress
#

it's not how probability works

obtuse gale
obtuse pulsar
#

yea i know cause one of those daily events are like one of 2^10000000 events that happen daily so the chance is basically 100% for such to happen

lunar cypress
#

no

#

this is not how any of this works

#

and to put this number into perspective

#

let's take a different experiment

obtuse gale
#

Johnny I have a question

#

Why do you have to be such a smartass?

lunar cypress
#

let's pick a random particle from the observable universe

#

we'd be more likely to pick the same particle twice than to generate the same UUID

lunar cypress
winter iron
surreal quarry
#

stringprovider is next

lunar cypress
#

sorry that I try to explain some probability lol

winter iron
#

I was gonna do an IntegerEnum

#

so like IntegerEnum.ONE

surreal quarry
#

lmao

winter iron
#

would retunr 1

#

i think it would be more efficient

#

o(1)

surreal quarry
#

the goal is inefficiency

#

i might actually move the INTS array into the method

#

so its created every time

winter iron
#

hmmm

obtuse pulsar
lunar cypress
#

sleep(100000) is still O(1) and therefore pretty efficient

#

(there, here I'm being a smartass)

jovial warren
#
@Override
public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args){
    sender.sendMessage("Thinking...");
    Thread.sleep(5000);
    sender.sendMessage("Hello!");
}
#

and make sure that's ran on the main thread

prisma wave
winter iron
obtuse gale
#

okay minecraft fucking dies if it encounters two entities with the same uuid lol

#

straight up crashed

jovial warren
#

well yeah

surreal quarry
#

because vim doesn't have a thing to square a number afaik

#

i used a vim macro to do that lol

winter iron
#

i assumed u used some sort of macro

surreal quarry
#

ctrl a increments a number by 1

#

so it was pretty easy

winter iron
#

can we add a python generator to the repo

#

that does it

surreal quarry
#

lol sure

winter iron
#

just generates a list of squared numbers

lunar cypress
obtuse gale
#

remove that @override

jovial warren
#
print([x for x in range(0, 100000)])
```ez
obtuse gale
#

no @overrides allowed

jovial warren
#

lol

surreal quarry
#

you would need to map it to the square bardy

winter iron
#

we could even cube it

surreal quarry
#

idk what the equivalent is in python

#

yea why not

jovial warren
#

print([x**x for x in range(0, 100000)])

surreal quarry
#

im heading to dinner soon but if someone does it ill merge lol

winter iron
#

what if we power it to itself

#

?

surreal quarry
#

oh

#

good idea

jovial warren
#

updated

winter iron
#

wonderful

#

gonna go buy another 128gb of ram

surreal quarry
#

lol

winter iron
#

so i can copy and paste it all into a java class

#

:/

surreal quarry
#

honestly 1500 is a good start, but we do need to get a lot more eventually

prisma wave
winter iron
#

thanks

surreal quarry
#

should i see if i can burn my house down by making a recursive vim macro and leaving it for the next 45 minutes

jovial warren
#

lol

prisma wave
#

rust macros

obtuse pulsar
#

Now it stores like this:

triggers:
- ==: org.bukkit.Location
  world: world
  x: -249.0
  y: 75.0
  z: -303.0
  pitch: 0.0
  yaw: 0.0
- ==: org.bukkit.Location
  world: world
  x: -251.0
  y: 75.0
  z: -305.0
  pitch: 0.0
  yaw: 0.0
prisma wave
#

println!

obtuse pulsar
#

is this bad or good

surreal quarry
#

yea enebz

#

thats good

#

thats how it serializes it

obtuse pulsar
#

So what if I want to add another tag to the serialized object

#

i want to add a "id" to each location

surreal quarry
#

wdym another tag

winter iron
#

make ur own serializer

surreal quarry
#

no

#

just store the triggers as a map instead of a list

winter iron
#

speaking of storage

#

how we plan on saving data?

#

defo not with a database

surreal quarry
#

probably just txt files

#

if that

winter iron
#

I can hook up my HP printer and maybe we can just print and store player data in filing cabinets

jovial warren
#

good idea

winter iron
#

We can have an array of printers

surreal quarry
#

yea that sounds good

jovial warren
#

we can all store a page of player data

winter iron
#

Set up a printer farm or smth

#

like they do with bitcoin miners

jovial warren
#
public class Printer{
    public native void print(String data);
}
```lol
#

then use JNI

distant sun
#

whats bative

#

native

jovial warren
#

native means it's implemented in native code

lunar cypress
#

🅱️ative

jovial warren
#

a.k.a C or C++ for example

distant sun
#

uh

#

Is that java?

jovial warren
#

yeah

lunar cypress
#

yes

#

JNI

obtuse pulsar
distant sun
#

interesting

jovial warren
#

how long you been programming gaby?

obtuse pulsar
#

Hold on no

distant sun
#

Java? 1 year and something

jovial warren
#

about the same as me then I think

#

but I learnt what that meant ages ago

distant sun
#

Noice

#

Im just lazy

jovial warren
#

still never really found a use for it though

#

same with transient

lunar cypress
#

I wrote my first C++ compiler at the age of 2

winter iron
#

Damn im an amateur, only been programming for like 7 months

#

😦

jovial warren
surreal quarry
#

i wrote linux when i was 1

distant sun
#

month

jovial warren
lunar cypress
jovial warren
#

I became good at Kotlin in a few months

#

I'm a fast learner though

winter iron
#

Lol, i got a dev internship at a banking company tho

#

Lol

distant sun
#

welp

winter iron
#

Quicktime

jovial warren
#

isn't that the old ass movie player thingy that Apple made? xD

distant sun
#

Kotlin is ez when your ide can do proper syntax highlight smh

jovial warren
#

can*

distant sun
#

Yea

#

Grey variables that are used, mhm

jovial warren
#

ngl, Microsoft Word 1990 best IDE

distant sun
#

bestn't

prisma wave
#

I made a lisp interpreter whilst still in the womb

jovial warren
jovial warren
#

@prisma wave GUESS WHAT

#

IT WORKS

prisma wave
#

Pog

jovial warren
#

YESSSSSSSS

#

fucking hell

#

right, now time to set up the keep alive system so the connection doesn't just die

#

this is really weird

#

it works with Pakkit, but doesn't work without

#

with Pakkit, I don't even see map_chunk, and it seems to work anyway

#

without, it says fieldSize is too long

jovial warren
#

gonna fix that tomorrow

obtuse gale
#

No

#

Fix now 🔫

forest pecan
#

is there a reason why i cant just run test classes in gradle?

#

like not the ones in the test package, just like in general run a single class

#

to test a code snippet

#

I get a Task 'ResourcepackFileTest.main()' not found in project ':MinecraftMediaLibrary'.

#

hm

obtuse pulsar
#

what will location.getWorld().toString() give me?

#

if it is in world?

#

will it just be world

regal gale
#

It's returning object serialization

#

d;spigot World#getName

ruby craterBOT
#
@NotNull
String getName()```
Description:

Gets the unique name of this world

Returns:

Name of this world

regal gale
#

That's the one you need ^

old wyvern
forest pecan
#

wdym

old wyvern
#

Like is it with the unit test classes or with your normal classes?

forest pecan
#

normal classes

#

should i move them to test package

old wyvern
#

I mean with the main method its supposed to work fine if its with the normal classes, weird. I guess you could just set unit tests up just as easily

#

Could you show us your main method?

forest pecan
#
public class ResourcepackFileTest {

    public static void main(String[] args) {

        System.out.println(generateJSON());

    }

    private static String generateJSON() {

        JsonObject format = new JsonObject();
        format.addProperty("format", 6);

        JsonObject description = new JsonObject();
        description.addProperty("description", "Example Pack");

        JsonObject pack = new JsonObject();
        pack.add("pack", format);
        pack.add("pack", description);

        return pack.toString();

    }

}
#

you wanted the main method, i gave you the whole class

#

lol

obtuse gale
#

I mean unit tests don't really have a main method

old wyvern
#

Its not a unit test fefo

obtuse gale
#

oh okay

surreal quarry
#

maybe it should be

obtuse gale
#

tbh

obsidian canyon
#

Hey I wanted to know, is there a secure way of getting the domain making the request on a website?

I am trying to figure out the best way to make an application show a completely different website layout depending on the domain within the same application.

#

This is for a spring boot project

hot hull
#

@quiet depot How does one make this in java

setSomething { //<- some object provided
  it.setStuff()
}
#

(ofc different syntax)

distant sun
#

Consumer ?

hot hull
#

got an example

old wyvern
# hot hull got an example
public void setSomething(Consumer<SomethingElse> consumer) {
    SomethingElse a = ...;
    consumer.accept(a);
}

.....

setSomething(it -> {
    it.setStuff()
});
```?
hot hull
#

Appreciated

iron apex
#

any one good with bungeecord self hosted servers or just self hosted?

#

ping back

old wyvern
#

What about it?

solid minnow
#

@iron apex

jovial warren
jovial warren
#

if you're talking about say a VPS that is

obtuse gale
jovial warren
#

does Minecraft require me to do some split packet bull shit?

obtuse gale
#

This might be complicated, but would it be possible to create an external application that can hook into the server, and I can call server methods from it?

hot hull
#

Otherway around would probably be easier no?

obtuse gale
#

what?

hot hull
#

Well you'd have a plugin running on the server providing some sort of entry point, and then you'd call the method from the application

obtuse gale
#

would i be able to call like Bukkit methods from the external app if i make a plugin then add it to the server?

hot hull
#

Not sure how you'd even access it, perhaps using a db or some shit to call an event

#

Idk just speculations

obtuse gale
#

id need some kind of connection to the server wouldnt i?

hot hull
#

Yes

prisma wave
solid minnow
#

Anyone pretty savy w/ Regex?

jovial warren
#

?help

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

Source

frigid badge
#

thanks

static snow
#

Anyone know whats the best way to make a nice clean /help

hot hull
#

Yes, just have a website/forums/wiki and just link that

solid minnow
#

How do you separate groups in Regex?

obtuse gale
#

🥲

oak coyote
#

What do you mean by that explain what you are trying to do with some more detail @solid minnow

iron apex
oak coyote
#

And that’s a rough compile time, Aj.

jovial warren
obtuse gale
#

gradle

jovial warren
#

WTF

obtuse gale
#

still gotta index tho

oak coyote
#

external processes happening?

#

I remember when I didn’t know about indexing even occurring with maven 😂😂

#

Broke some jars cause I was impatient

hot hull
oak coyote
#

very sexy

hot hull
#

Sadly it doesn't work

oak coyote
#

give that some arguments that can be changed easier then 🤑

hot hull
#

everything can be changed with the consumer

#

plus the window constraint and property

jovial warren
#

wat dis

oak coyote
#

i presume it should should a little rectangle on your screen with "Text" "Text" as 2 separate lines both in black font

hot hull
oak coyote
#

ahh yes exactly what i thought a perfectly white screen 😆

#

any error codes?

hot hull
#

Nope, I'm probs just missing a component

#

I also already have the base built for adding event triggers and shit, just nothing is hooked up

oak coyote
#

does your rendering auto draw once processed?

#

or do you need to tell it to do so

#

like render.build() or something

jovial warren
#

what you using here btw?

#

JavaFX?

hot hull
#

swing

jovial warren
#

why

#

JavaFX >

hot hull
#

Because fuck javafx

jovial warren
#

what's wrong with JavaFX?

#

I mean, I get it's a bit slow, but it's Java ffs

#

it works very, very well

oak coyote
#

Java do like to go brrr

obtuse gale
#

whats the kotlin alternative to this

#

mainly the static class is what idk about

hot hull
#

ew

obtuse gale
#

im just out here tryna copy + paste code

prisma wave
#

Just a class

obtuse gale
#

can I make it so a kotlin getter overrides?

#
@A(
  b = {
    @C(
         d = "e"
       )
  }
)```
#

What does this look like in kotlin lol

jovial warren
hot hull
#

Atleast it's something Bardy

jovial warren
#

and all thanks to this guy on the #mcdevs channel on IRC (wiki.vg)

#

right, now we got the sending, gotta do the receiving

prisma wave
#

Nice nice

hot hull
#

Oh hey I finally got github pro

jovial warren
obtuse gale
#

whats the kotlin gradle import for the stdlib

jovial warren
#

@prisma wave acknowledge me as senpai xD

obtuse gale
#

or does it just need the plugin these days

#

in which case what is the plugin

jovial warren
#

implementation 'org.jetbrains.kotlin:kotlin-stdlib'

obtuse gale
#

hm

jovial warren
#

if you've got the plugin installed then the version will get filled in there

#

you need the plugin

#

id 'org.jetbrains.kotlin.jvm' version '1.4.30'

obtuse gale
#

already got that, im having an issue with Class::class.java the java is underlined red, ive had this issue previously and it turned out i didnt have the stdlib in my gradle, but i do this time so idk whats up

jovial warren
#

you got both the stdlib and the plugin?

obtuse gale
#

yeah

jovial warren
#

¯_(ツ)_/¯

#

show me your build?

obtuse gale
#

kk one sec

hot hull
#

You sure it's java?

obtuse gale
#
plugins {
    id 'java'
    id 'org.jetbrains.intellij' version '0.6.5'
    id 'org.jetbrains.kotlin.jvm' version '1.4.30'
}

group 'org.aj3douglas'
version '1.0-SNAPSHOT'

repositories {
    mavenCentral()
}

dependencies {
    implementation "org.jetbrains.kotlin:kotlin-stdlib"
    testCompile group: 'junit', name: 'junit', version: '4.12'
}```
#

wdym

hot hull
#

Wasn't there another one

obtuse gale
#

theres .javaClass for like interfaces and stuff i think

#

it shows up in the completion and everything

prisma wave
#

invalidate caches

#

you also dont need the stdlib dependency

hot hull
#

One stds is enough reversed_fingerguns

obtuse gale
#

invalidate cache/restart worked

jovial warren
#

also, @prisma wave, acknowledge me as senpai

prisma wave
#

lol

obtuse gale
#

im having some serious problems deleting a jlabel

prisma wave
#

👏

obtuse gale
#

im spamming the delete button and its not doing shit

jovial warren
#

sounds like a you problem

obtuse gale
#

i just want it to delete :)(:

#

damn thanks intellij docs

#

extremely helpful

#

bruh i literally cant delete this componente

jovial warren
#

also, @prisma wave, I was thinking about refactoring all the packet names at some point to be Inbound and Outbound instead of PacketIn and PacketOut

#

e.g. PacketOutChunkData becomes OutboundChunkData

obtuse gale
#

legit how the fuck does this thing delete

#

I just had to open it in sublime and remove the xml manually

half harness
#

lol

prisma wave
#

OutboundChunkData suggests it's some sort of data class

#

not a packet

half harness
#

Also is it just me or does intellij refactoring and renaming (not for classes) only apply to one class?

prisma wave
#

?

half harness
#

basically

#

In Class A, I have a variable called count

#

In Class B, I have a method that uses that variable

jovial warren
half harness
#

If I refactor and rename count in Class A, it doesn't rename in Class B, throwing errors

#

But it renames all calls of count in Class A

obtuse gale
#

help

#

how make list bigger

#

list is thing on left

#

here are the options i have for i

iron apex
#

CAn some on HELP me

obtuse pulsar
#
[15:01:15 ERROR]: Could not pass event PlayerInteractEvent to TestPlugin v1.0
java.lang.ClassCastException: org.bukkit.configuration.MemorySection cannot be cast to java.util.Map
        at bz.ene.plugintest.files.TriggerData.getTriggerId(TriggerData.java:35) ~[?:?]
#

35: Map<Location, String> triggers = (Map<Location, String>) config.get("triggers");

#

This error only occurred after i added the if to this section:

public TriggerData(WishingWell plugin) {
    super(plugin, "TriggerData.yml");

    // It could be a map of Location - String.
    if (!config.isSet("triggers")) {
        config.set("triggers", new HashMap<Location, String>());
    }
}
#

When I did config.set("triggers", new HashMap<Location, String>()); that error never came, but every time I restarted the server, the .yml was reset, because I didn't check for existing data..

hot hull
#

You using eclipse?

obtuse pulsar
#

no

#

It's like config.get() cant fint the hasmap i config.set() to "triggers" on line 42...

iron apex
#

Can some on HELP me with a discord BOT

hot hull
iron apex
#

So i am doing this

#

I cant send pics

#

@hot hull i dmed you a pic of what is worge because i cant send pics

hot hull
#

I don't do DM support

#

?imgur

compact perchBOT
#
FAQ Answer:

You won't be able to upload images here directly to avoid spam, so please use https://imgur.com/ to upload images/screenshots.
You can also use a screenshot service like gyazo or jinx and post those links here.

iron apex
#

ok

half harness
#

you have to replace /path/to/Xavier with the path you want to change directories to

hallow crane
#

Lol

obtuse pulsar
#

How do I set a empty hasmap to a config file?
config.set("triggers", new HashMap<Location, String>()); this just creates a org.bukkit.configuration.MemorySection...

obtuse gale
#

Yes, because that's what Bukkit does, it "converts" maps to a ConfigurationSection

#

That's Bukkit for ya reversed_fingerguns

hot hull
obtuse pulsar
half harness
#

what is the way you want?

obtuse pulsar
#

config.set("triggers", new HashMap<Location, String>());

#

but when I do Map<Location, String> triggers = (Map<Location, String>) config.get("triggers");
It says, "cannot convert MemorySection to Map"

prisma wave
#

get it as a ConfigurationSection and then use getValues

obtuse pulsar
#

what?

#

like this config.getConfigurationSection("triggers").getValues(false);?

prisma wave
#

yup

obtuse pulsar
#

can sombody please rewrite the config manager for bukkit

#

@prisma wave My hashmap is <Location,String> not <String, Object>

prisma wave
#

hm

#

that cast should work

#

although probably not at runtime

regal gale
#

Why would you add Location to serialize thonking

prisma wave
#

yeah that's a good question

unkempt tangle
#

Senpai 😭

#

@jovial warren

#

lets play

onyx loom
#

bruh ur asking everyday to play

#

play what? if no one wants to play with u for the past week then nobody will kek

regal gale
#

No one did...

half harness
#

it's usually <String, Location>

#

because to get the value you need the key

#

and it's very rare to have the same exact location

obtuse pulsar
#

All I'm trying to do is store data like this:

triggers:
  location-obj: "tag"
  location-obj: "tag2"
regal gale
#

How are you retreiving them back...?

obtuse pulsar
#

What?

#

Can someone like jump in a VC so I can explain?

jovial warren
onyx loom
#

what is

#

i literally dont know what hes talking about

jovial warren
#

that thing the guy is asking you to join

unkempt tangle
#

He played with me

jovial warren
#

@prisma wave wanna test MP with me? lol

#

or anyone

unkempt tangle
#

Me

jovial warren
#

MineKraft multiplayer test #1

regal gale
#

@obtuse pulsar i mean, how are you retriving those values after from config.get()

unkempt tangle
#

Leave me 😭

#

I'm lonely

obtuse pulsar
#
public class TriggerData extends CustomFile {

    public ConsoleCommandSender console = Bukkit.getConsoleSender();
    public TriggerData(WishingWell plugin) {
        super(plugin, "TriggerData.yml");

        // It could be a map of Location - String.
        console.sendMessage("Initializing TriggerData file.");
        if (!config.isSet("triggers")) {
            config.set("triggers", new HashMap<Location, String>());
        }
    }

    public void addTrigger(Location location, String triggerID) {
        Map<Location, String> triggers = (Map<Location, String>) config.get("triggers");
        triggers.put(location, triggerID);
        config.set("triggers", triggers);
    }

    public void removeTrigger(Location location) {
        Map<Location, String> triggers = (Map<Location, String>) config.get("triggers");
        triggers.put(location, null);
        config.set("triggers", triggers);
    }

    public String getTriggerId(Location location) {
        Map<Location, String> triggers = (Map<Location, String>) config.get("triggers");
        if (!triggers.containsKey(location))
            return null;
        String triggerID = triggers.get(location);
        return triggerID;
    }
}
half harness
#

aH

compact perchBOT
#
HelpChat Paste

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

obtuse pulsar
#

It's not that big

half harness
#

it literally just filled up the whole chat

#

screen

#

for me at least

obtuse pulsar
jovial warren
unkempt tangle
jovial warren
#

32.7 MB, and it pretty much does fuck all atm

half harness
#

unzip it, then zip it with max compression fingerguns

unkempt tangle
#

Let me join

half harness
#

wot

jovial warren
#

I'll open it and share the IP, so anyone can join

prisma wave
jovial warren
#

it'll work

half harness
#

im on 1.8 rn

prisma wave
#

why tf is the jar so big

half harness
#

so i can't join

jovial warren
#

there's no chat messages

prisma wave
#

can u push what you've done btw

half harness
#

does it allow 1.8 connection?

obtuse pulsar
#

@regal gale Did you see how I did it?

prisma wave
half harness
unkempt tangle
#

Everyone except 1.8 would be great

jovial warren
unkempt tangle
#

and sent out a message.

prisma wave
#

tf

jovial warren
#

that might answer your question

#

most of those are your dependencies btw

prisma wave
#

why are we using guava again

unkempt tangle
#

what does :+ do

#

all versions?

prisma wave
#

latest version

#

sorry

#

that was bad

regal gale
#

Anyone can help Enebz a little? I'll be back after 10min

half harness
#

you always tell me not to use + 👀

prisma wave
#

ik

unkempt tangle
#

What is his problem

jovial warren
#

working first

#

optimisation later

prisma wave
#

ive not worked on this in like a year, and it's not intended for production

#

so

#

i think that's a half-decent excuse

jovial warren
#

168.119.171.28:25565

prisma wave
#

sec

half harness
#

time to get a geoip website up🙂

obtuse pulsar
jovial warren
#

actually hold on

prisma wave
#

pls push ur changes

#

or PR them

jovial warren
#

will do

obtuse pulsar
#

I have been stuck on just saving to a yml since thursday lol

unkempt tangle
#

You cant have two same keys

jovial warren
#

okay, you'll all get authenticated as me lol

unkempt tangle
#

trigger.location cant indifference with the other one

jovial warren
#

actually no

#

this won't work

prisma wave
#

it shows my name on the tablist

unkempt tangle
#

@jovial warren chat no working

jovial warren
#

wait you're in?

prisma wave
#

yes

jovial warren
#

yeah chat won't work yet

unkempt tangle
#

Yes I see his name

jovial warren
#

that's because I haven't touched the code that does that

prisma wave
#

uses your name for the join message tho lol

jovial warren
#

that's also hard coded

obtuse pulsar
prisma wave
#

and when u break 1 block they all disappear

jovial warren
#

wait what?

prisma wave
#

break 1 block in the cube

unkempt tangle
#

@obtuse pulsar Write your issue and code snippet in #development

jovial warren
#

makes sense

unkempt tangle
#

They are spamming

jovial warren
#

it doesn't send the new map chunk update

#

and you'll keep falling forever btw, since there's no death mechanic

prisma wave
#

yay

#

1.17 ready

jovial warren
#

as I said though, very early alpha

#

works though

prisma wave
#

nice

ocean quartz
jovial warren
#

the docs are still on 4.4.0 lol

#

lemme fix the system so we get different EID's

obtuse gale
prisma wave
#

smh

jovial warren
#

smh BM

#

that's your dep lol

prisma wave
#

Latest commit 2e2efb9 on 16 Jul 2020

#

🙂

#

not my problem

jovial warren
#

right, time to work on player info

#

and chat

#

and a few others

#

to make this actually function, and so we can see each other

#

have fun playing around on this server for now though

prisma wave
#

ez

jovial warren
#

love how even though this is survival, there's nothing to stop you just flying

prisma wave
#

is that default functionality?

jovial warren
#

also you should see the console spam for this lol

jovial warren
#

I believe you have to actively cancel flying on the server's end

#

or something like that

#

gonna set the gamemode to 1

#

also gonna set max players to more than 1 lol

obtuse gale
obtuse pulsar
#

alright now i posted a full explaination of whats wrong

jovial warren
#

ah I read your message properly

#

sorry

#

no

prisma wave
#

logback is an slf4j impl

jovial warren
#

slf4j-simple is one of the many slf4j implementations

#

we use logback

obtuse gale
#

aa

jovial warren
#

there's also log4j

#

might end up making my own NBT library at some point, since adventure NBT is a bit annoying to work with sometimes

#

and KotlinNBT is a mess

steel heart
#

ClojureNBT

prisma wave
#

Unless you have specific goals or licence requirements, it is extremely recommended to go with one of the existing libraries.
🥲

jovial warren
#

yeah no

#

someone on #mcdevs said I should make my own (the guy who helped me with chunk data stuff)

prisma wave
#

NBT could probably be expressed pretty cleanly in EDN

prisma wave
#

reinventing the wheel is usually dumb

jovial warren
#

¯_(ツ)_/¯

#

I want something really tiny and made in Kotlin anyway

#

but I ain't gonna bother with that yet anyway

#

I got more important things to deal with first

steel heart
#

minecraft nbt api in kotlin std when?

onyx loom
#

just pr the kotlin std 🙂

steel heart
#

lol

prisma wave
#

import elara/nbt

#

🙂

lunar cypress
#

gonna be just as good as the built in V web server library PepeLaugh

prisma wave
#

hmmmmm

#

let nbt = {
"key": 3
}
stream.write(toNBT(nbt))

regal gale
#

Help with both maths and code for sec

#

Is there java functionality for cos^2(A)?

prisma wave
#

?

#

Just cos(A) and square it?

obtuse gale
#

speaking of maths and code, what the fuck is this (Integer.compare(int, int))

#

why not just x - y...

prisma wave
#

Probably an optimisation

regal gale
#

Oh

obtuse gale
#

that's 2 if checks against a single arithmetic op

prisma wave
#

Good point

regal gale
#

Thought all it could do is cos(A^2), whoops

obtuse gale
#

that's if anything more expensive than just some bit flips

#

java bruh

onyx loom
#

lol

#

jAvA fAsT Af

regal gale
#

speed

unkempt tangle
#

boi

prisma wave
#

the jvm is pretty impressive in terms of speed

unkempt tangle
onyx loom
regal gale
#

||that is a joke, pls don't kill me 👀||

unkempt tangle
#

Just do a printer

#

a for loop til Integer.MAX_VALUE

onyx loom
unkempt tangle
#

and copy and paste it inside that arary

regal gale
#

I am making 3 classes containing the worst possible code rn

#

Gonna post them tmr

onyx loom
#

for this repo?

regal gale
#

Yep :+1:

onyx loom
#

epic 😄

unkempt tangle
#

Would anyone help Enarbi?

regal gale
#

Btw

#

Terrible code doesn't need final

unkempt tangle
#

no code need final at all

regal gale
#

Wot

unkempt tangle
#

I barely use them

regal gale
#

Welp

lunar cypress
regal gale
#

Btw

#

All hall Thread.sleep

obtuse gale
#

it's a comparator, less than 0, 0 and greater than 0, not necessarily -1, 0 and 1

onyx loom
#

omg LOL

lunar cypress
#

yes but it's still conventional

obtuse gale
#

even the javadoc says "less than 0" and "greater than 0"

prisma wave
#

smaller numbers use fewer bits idiot

#

/s

obtuse gale
#

the int is optimized to a byte 🌚

onyx loom
#

u love to see it

surreal quarry
onyx loom
#

// TODO: add more integers 🌝

surreal quarry
#

indeed

onyx loom
#

ooo damn it

#

i shouldve used the boolean factory in my listener

#

oh well 😔

surreal quarry
#

yea probably

#

also String provider is next

onyx loom
#

oh god

#

AbstractoryFactoryStringProviderFactory

surreal quarry
#

lmao

regal gale
#

Lol

jovial warren
#

anyone up for MineKraft MP test round 2?

#

168.119.171.28:25565

hot hull
#

What version

jovial warren
#

we probably still won't see each other, but we should appear on tab

#

1.16.5

hot hull
#

sec

jovial warren
#

I can see kaliber

onyx loom
#

lol it crashed my game

jovial warren
#

wait what?

onyx loom
#

o i was 1.16.4 oops

jovial warren
#

I can see you three on tab now lol

hot hull
jovial warren
#

yeah it's Random.Default.nextInt(1000) kek

onyx loom
#

why can i not see anyone else on tab 🤨

#

lol

jovial warren
#

I think I know why you can't

#

when someone joins, every session gets sent ADD_PLAYER, but the joining player doesn't get sent the existing players

hot hull
#

oops broke the block

jovial warren
#

lol

onyx loom
#

lol

hot hull
#

Sthu blitz

jovial warren
#

blitz why

#

oh it's insta break now

#

because we're in creative

hot hull
#

well yea lol

onyx loom
static zealot
#

lmao

onyx loom
#

change back idiot

jovial warren
#

you two should now see me on tab

onyx loom
#

omg yay

#

yea i see u

hot hull
jovial warren
#

if me and kaliber rejoin, you'll see us lol

heady birch
#

U actually got it working can you move around yet?

jovial warren
#

yeah you can move

hot hull
#

Why did my skin just randomly change to alex lol

jovial warren
#

you can't see each other, since those packets don't get out for whatever reason

onyx loom
#

yea i got steve skin kekw

jovial warren
#

skins aren't handled yet

#

skins are server side

hot hull
#

No I mean I was a steve, now I'm an alex

jovial warren
#

oh

onyx loom
#

ez way to get rid of inappropriate skins

jovial warren
#

lol

static zealot
#

lol

onyx loom
#

blitz kys

jovial warren
static zealot
#

k

jovial warren
#

what should I do next btw?
a) chat
b) seeing each other
c) lighting

static zealot
#

d

hot hull
#

b

static zealot
#

c*

onyx loom
#

b

half harness
#

lol

jovial warren
#

right ho, b it is then

ocean quartz
#

Bardy push your changes

jovial warren
#

yeah alright

static zealot
hot hull
#

How do you change the output dir for building with shadow again

#

rn it outputs to module/build which is annoying, I want them in a global build dir

static zealot
#

copy the jar

#

hmm time to remake BlitzActions in Java fingerguns

hot hull
#

Wait a second thonking

jovial warren
#

pushed

static zealot
#

what's up Frosty?

hot hull
#

God stop being a hoe blitz, that pfp confused me

static zealot
#

oh sorry. discord limited me I can't change for the next 30 minutes

#

I tried

hot hull
#

lol

static zealot
#

lmao

jovial warren
#

I pushed it to my fork btw because I was on the master branch and I couldn't be fucked to switch to another branch lol

static zealot
hot hull
#

Mother fucker

[18:02:41 ERROR]: Could not set generator for default world 'world': Plugin 'TerrainGenerator' does not exist

static zealot
#

discord being a hoe

onyx loom
#

no u are

#

just dont change it at all

static zealot
#

well

#

yes

#

I know

#

but discord is as well

jovial warren
#

alright

hot hull
static zealot
#

o

jovial warren
static zealot
#

rookie mistake

jovial warren
#

love how I can merge my own PR

#

gonna leave BM to merge it though

prisma wave
#

Merge if you want

static zealot
#

done @hot hull

prisma wave
#

I'm gonna go through and rip all this code to shreds either way

static zealot
#

changed it

jovial warren
#

fair enough

#

it's a big mix of allman and K&R OTBS btw

hot hull
prisma wave
#

🤨

jovial warren
#

we should use K&R OTBS as official style fingerguns

prisma wave
#

OTBS?

jovial warren
#

the one true brace style

#

it's the official name for that variant

prisma wave
#

🙄

onyx loom
hot hull
#

Noone has yet to tell me what the optimal way of having infinite chunk generation should be approached, since it involves storing previous chunks

prisma wave
#

the opposite of expect @onyx loom

jovial warren
#

In computer programming, an indentation style is a convention governing the indentation of blocks of code to convey program structure. This article largely addresses the free-form languages, such as C and its descendants, but can be (and often is) applied to most other programming languages (especially those in the curly bracket family), where w...

old wyvern
#

Implementation specific to target lang

jovial warren
#

K&R has different variants

prisma wave
#

^

onyx loom
#

ah k

#

ty#

jovial warren
#

OTBS has the brace on the same line, but K&R is mostly on the next line

#

anyone who writes in GNU, Whitesmiths, Horstmann, Haskell, Pico, Ratliff or Lisp format btw should be shot

old wyvern
#

Jump off a cliff bard

static zealot
#

😦

jovial warren
#

just look at them

onyx loom
#

some people may take offense to that

old wyvern
#

Absolutely nothing wrong with them 🙂

jovial warren
#

maybe GNU isn't that bad

#

I suppose the rest all have their uses and their languages

hot hull
#

what would be a good alternative to using a 2d array, I need non preset size

old wyvern
#

Yes, if you were to have started with those, these conventions would seem weird to you

hot hull
#

Probs better to make my own object then no?

old wyvern
#

Yes, but you could still internally use those

#

Please dont tell me you are pregenerating again

hot hull
#

I'm switching it up not to

#

Hence why I need a non predefined size

old wyvern
#

Whats the list for?

hot hull
#

But I need the previous indexes, otherwise each chunk will be different

old wyvern
#

wdym, the same noise generator should give the exact same value for the same input

#

You only need to plug in the x z coordinates at any given point

hot hull
#

Might be just the fact that I'm dumb then kek

#

Lemme see If I can sort this out pog

old wyvern
#

Alrighty

hot hull
#

Oh yea I also need to allow for negative coords, so yea I need switch away from a 2d array (not pregening, just having a 2d array for that chunk so it's cleaner and not all in the same class)

static zealot
#

Matt you sent to much? xD

ocean quartz
#

Yeah it was the entire screen instead of one line, waiting for ij to reopen

static zealot
#

damn. I was like "oh I have a github follower. I'm important" turns out its Remence 😦

#

and not saying this as in his follow doesn't matter but he followed me because frosty wouldn't xD

jovial warren
#

src/main/resources/tags

#

suggested by Piggy and BM

ocean quartz
#

Cuz Exception in thread "main" java.io.FileNotFoundException

jovial warren
#

yeah you gotta run the jar

#

gradle shadowJar

#

then run it as a jar app

ocean quartz
#

That's awful

jovial warren
#

not much I can do about that for now

#

I'd love to hear some suggestions though

ocean quartz
#

Is it just reading resource files?

jovial warren
#

yeah

#

has to read them inside the jar though

hot hull
#

@old wyvern gotta implement threading while I'm at it :p

jovial warren
#

that's not the hard part @ocean quartz

#

it's gotta read a list of files in a directory, iterate over them, and add them all as tags

jovial warren
#

that's the one

ocean quartz
#

Without using your jar stuff

jovial warren
#

wait how?

#

I spent at least a day trying to figure out how to do that

hot hull
#

Matt sm0rt

jovial warren
#

looks like it

ocean quartz
#
val path = Thread.currentThread().contextClassLoader.getResource("tags")?.path ?: throw Exception("Do this later kekw")
val files = File(path).listFiles()
files?.forEach { println(it.name) }
jovial warren
#

that worked?

ocean quartz
#

Yeah

jovial warren
#

try that in the jar

ocean quartz
#

Do i really need to ugh

jovial warren
#

I swear I did exactly that and it didn't work

#

although I was using javaClass.classLoader so...

prisma wave
#

?: throw

#

Come on

hot hull
prisma wave
#

It's 2021

#

And you're not using requireNotNull

jovial warren
#

imagine giving a fuck about exceptions with Kotlin

prisma wave
#

Imagine not

jovial warren
#

lol

old wyvern
#

!!!!!

jovial warren
#

you'll see so much code in there that could go so horribly wrong

prisma wave
#

Just because you don't have checked exceptions that doesn't mean you shouldn't make meaningful errors

jovial warren
#

I haven't built it to be nice yet, I've just build it to work lol

#

trying to configure my Paper test server to not have anything that sends a shit ton of packets lol

#

so I don't get spammed and have to scroll for 5 minutes to find what I want

ocean quartz
#

They don't display running the jar

jovial warren
#

told ya

obtuse gale
#

Anyone know of a vote plugin that gives you a "token" and you can redeem them in a shop gui

hot hull
#

Why is the color so broken, ew

obtuse gale
#

GIFs be like

hot hull
#

Oh I know why

#

I'm a fucking idiot

obtuse gale
#

is that the cause?

hot hull
#

I'm getting the chunk noise map for each fucking iterration

#

Instead of once at the start

#

:kek:

surreal quarry
#

i think he gave the wrong link

obtuse gale
#

Lol are you all trolling

prisma wave
surreal quarry
obtuse gale
#

Thanks

#

mayber

#

it's like maybe

#

but mayber

prisma wave
#

If you react with a "clown emoji" your mother will die tomorrow

obtuse gale
#

even more maybe

surreal quarry
obtuse gale
#

thanks!

prisma wave
#

Wow looks like a lot of poor women will be passing away soon 🥲

surreal quarry
#

Noproblem!

prisma wave
#

so I reply with a "helpful response" (helfpul role), and I am VILIFIED with responses alluding to 'clowning'

surreal quarry
#

imagine not hosting your own fpprank

#

kids these days

prisma wave
#

What URL is yours

surreal quarry
#

guides.jaims.dev

prisma wave
#

nice nice

#

Feel free to make suggestions or "pull requests"

surreal quarry
#

thats a good idea, except i don't know F#

#

xD

prisma wave
#

🥲

#

Technically neither do I

surreal quarry
#

fair enough

prisma wave
#

This is the only non COC thing I've used it for

surreal quarry
#

if i have a docker container running at it was made with fpprank:latest will restarting it update it or do I need to remove the container and run it again

prisma wave
#

uh

#

I think you'd need to rebuild the image

surreal quarry
#

yea i rebuild the image then restart the container

#

that should update it or no?

prisma wave
#

That's probably (?) Enough then

surreal quarry
#

alr lol

#

i guess ill try something to test it

hot hull
jovial warren
#

you making this like vanilla btw?

surreal quarry
jovial warren
#

please tell me you're using compose

surreal quarry
#

its a really small run command xD

jovial warren
#

imagine making life harder for yourself

surreal quarry
#

fine

prisma wave
#

yaml 😐

#

I'd use compose if it supported EDN

prisma wave
#

I'm sure there's a good reason for that though

#

I guess the container is immutable

surreal quarry
#

yea

hot hull
#

@old wyvern infinite generation finished, everything is flat, but that's cause I'm an idiot like always

trim niche
#

I need some help,
I'm trying to make a custom hopper, how can I differentiate it from a normal one?

surreal quarry
#

is nbt saved when hoppers are placed

#

or blocks in general

#

actually BM i think it might work i just didn't put :latest on the image

#

just assumed that was the default lol

trim niche
#

What's nbt?

jovial warren
#

named binary tags

#

it's a format that's somewhat like JSON

vast raft
#

What should i write in a love letter to a girl?

#

Can anyone help me with this?

prisma wave
#

lmao

#

Sir this is "development general"

onyx loom
#

fun main = println("i love you")

vast raft
#

Sry i don´t know how this channel are used

prisma wave
#

Tell her you've got 3 years experience in Clojure

#

That's enough to get any girl

old wyvern
#

Or even better

#

Haskell

prisma wave
#

yes

#

But that's only for the absolute alphas

obtuse gale
onyx loom
prisma wave
#

Yeah check that out

jovial warren
#

lol

#

no

prisma wave
#

Yes

old wyvern
#

Yes! Bet her to say yes if she cant explain monads

#

ez

prisma wave
#

lmfao

jovial warren
#

we're developers

onyx loom
#

"these idiots"

prisma wave
#

Hey babe have you ever heard of the monad binding operator?

jovial warren
#

I can give you some actual advice in DMs if you want

onyx loom
#

who do u take us for bardy

prisma wave
#

idiots apparently

onyx loom
#

😔

prisma wave
#

😔

old wyvern
#

😔

prisma wave
#

Nooo they left

old wyvern
#

lmao

onyx loom
#

lol

jovial warren
#

so sad

#

you scared the poor guy off

prisma wave
#

oh please

jovial warren
#

I kinda feel bad now

prisma wave
#

He just realised that girls only go for guys that know Haskell

#

So he felt insecure

#

And left

onyx loom
#

🤣

#

🥲

old wyvern
#

Alpha Haskellers

prisma wave
#

haskell chads

trim niche
jovial warren
prisma wave
#

it is true

jovial warren
#

I'm DMing this guy to give him actual advice because I feel bad for him lol

hot hull
#

No clue what's causing the value to always be 0 tho

old wyvern
#

Weird

prisma wave
#

until i learned haskell i had never even seen a girl before

#

nowadays i compose pure functions in the sheets 😏

old wyvern
#

Is your project on github?

hot hull
#

Lemme push and link the relevant classes

old wyvern
#

Sure

surreal quarry
# trim niche I got lost, can you explain?

i was just asking people a question, but if nbt tags are saved, you could assign some nbt to the "custom hopper" and check that
otherwise, you will need to save the locations of the custom hoppers so you can see where they are

hot hull
#

Should give you all the context

trim niche
surreal quarry
#

i mean save location when its placed, but if its in the inventory then just assign some nbt

obtuse gale
#

hoppers are tile entities so yeah they can hold custom nbt

surreal quarry
#

alr then yea just use the nbt

surreal quarry
#

what version are you using

trim niche
#

1.8.8

obtuse gale
#

😬

surreal quarry
#

😬

#

look around for an nbt library or something

hot hull
#

Yoinks scoob

obtuse gale
#

imagine if Hopper extends PersistentDataHolder fingerguns

hot hull
#

Imagine imagining

obtuse gale
#

aphantasia, yes

surreal quarry
onyx loom
#

🙃

obtuse gale
#

dude, BM is a genius

#

he has a guide for everything

onyx loom
#

ikr

surreal quarry
#

its really good too

onyx loom
#

very detailed

#

flawless

prisma wave
#

i put a LOT of effort into my guides

onyx loom
#

evidently

#

thank u for ur service towards helping people

surreal quarry
#

when

trim niche
surreal quarry
#

lol what

trim niche
#

All I need is just a quick explanation of what are nbt's

obtuse gale
#

but on ancient versions there isn't really a nice way to access NBT, it isn't exposed to bukkit

old wyvern
#

uh frost

#

@hot hull

hot hull
#

Yes

old wyvern
#

Are you sure you had to use inverse lerp there?

#

That would surely always result in 0

#

You are inverseLerping between a minimum and a maximum value

#

Result with be always 0

hot hull
#

Oh yea the height map fucks it

#

God I'm dumb

#

Lemme test this out

old wyvern
#

alrighty

prisma wave
surreal quarry
#

man just downloaded elm-lang-beta-rc-alpha-0.1-SNAPSHOT