#dev-general
1 messages · Page 473 of 1
Kotlin is nice, it can look really nice, but it can also be horrible to read
Specially if you infer too much
star I don't think haskell is comparable
because mainly enthusiasts seem to use it
that's not to say it's not used in real, important projects
it's just mainly used by enthusiasts it seems
I dunno I am quite a big fan of type inference. it seems like a lot of people aren't
Type inference is nice, but Kotlin can infer too much
Im not against type inference, but rather how most kotlin codebases end up being
Like what?
Clustered
what's the benefit of type inference over just saying the type?
Terseness, assumption by the compiler, nicety to write
terseness?
Also, kotlins inference isnot as poweful as haskells
Like how impressed I was when Rust figured out the type of my data structure from the first thing I put into it
For example, tell me what is this install(GitHub), what is GitHub
using less words
I'm not sure how I feel about the compiler assuming what I'm doing
instead of me telling it what to do
I mean you could do that in Java too
You can't
is that supposed to be a class?
It's an Object
wdym
Also, extension functions abuse is very common
People thrownit all around the place
Not saying its a bad thing
It seems like you'd have more context to go off of than just that single function
But rather, people don't care to follow conventions
Yeah very true
I am quite fearful to take my class in C/C++ and see what code I have to deal with lol
More like they don't know what the conventions are and can't be bothered learning them
From what I've people end up overcomplicating a similar segment comparitively when comparing the same applet written in java than to kotlin
Hmm I can see that
class GitHub{
companion object : Factory {
fun create(): GitHub {
return GitHub()
}
}
}
fun install(feature: Factory) {
feature.create()
}
install(GitHub)
Even one's that do end up doing it
People abuse the power they have
Surely you could write that in Java and it'd be similarly difficult to parse
But maybe that's a trivial example
I'm going to be honest I don't have much Kotlin experience, but from the programs I've written I tend to quite like Kotlin
Though I also tend to write less OOP kind of stuff lol
Yes , thats what I said Star, kotlin is very nice to write, short and to the point
But some of those aspects ruin the other side
@cinder flare have you applied for dev role?
So then, what are your thoughts on Rust?
uhh... nooooooooooo
I havent tried rust enough to comment
right it's just
Just started like 2 days ago
Ah same kind of
if i'm going to force you to volunteer to review role requests
i need to know u can actually code
yes
ballroom dancing?
i gotta swap some of those lang labels
rust needs to be more up and typescript needs to be less up lol
val ACCEPT_ALL = Predicate<out Any> { true }``` how can I create a predicate that accepts everything?
Ohh
dang your dark mode is so light
I thought that was some expression
ur not using official theme
wtf am i using then
i clicked the little dark mode boi
There are 2 dark themes piggy
oh you're using dark dimmed
one dark dark
well not really new
new for me
it says i'm using default dark
I think
yes
ik 🥲
i realized I should probably separate online stuff from a real job stuff
and also having two accounts was a pain in the ass
I always imagined when the time came I'd just rename my main account to my irl name
it's actually PiggyPigIet
nah
you can see my quality web design in dog
Yeeah full dark gang
Poing is also a classic, my first real foray into C++ land
also I just unprivated HotelMan
dog?
yes dog
What's that
a woman that stands outside of a motel
HotelMan is some extra work I did because I was bored for my CS 3200 - Database Design and Management class that is a Swing-based frontend for our database
I did literally all of the coding parts
my team was not very helpful
Classic
star is this dog thing on gh pages
yes
ah i found it
what was this project for
I made the Appointments page and my personal page - found at the bottom - as well as standardizing the style for everyone and fixing their crappy stuff
this was the final for IS 2000 - Web Development
my god
i recommend you try submitting and using the price calculator
the two mandatory javascript functions someone had to write, which obviously fell to me lol
your email form doesn't even have a filter
yeah i don't know what's up with that
i mean it doesn't actually do anything, so maybe that's why
I think if the button actually POSTs, it does checking cause it uses Bootstrap
why this website so wide
wdym
it's a lot of effort to move my eyes from one side of the screen to the other
this is why newspapers and things are done in columns
and most sites have huge borders
dude I only made Appointments and my personal portfolio
both of which are not very wide
ah okie
I just standardized and cleaned up the rest of the shit, this was a group project after all lol
this is literally their first time making websites lmao
or was it just easier
yes
oof
how do I see your personal portfolio?
go to Staff and click on my name
Group projects suck 🥲
colour scheme change
shit's looking like github now
the personal bois were our separate projects
yeah I definitely did take heavy inspiration from github for that one lol
man if I do web dev in uni
shit's gonna slap
https://piggypiglet.me style incoming
i hate web dev too
most people hate web dev
but it pays good and I'm personally, good at it
I mean I'm not very good at designing
I also don't think I have the heart to actually do it lol
but I can turn virtually any design into a functional site
Which one is the one that looks like github?
what aren't you good at? ... Leave something for the poor too ...
lists every lang besides java
Much better
hey
well I'm not good at things you're not good either. but I'm also not good that you're good too ...
I'm not very good at english either
awww
The first ones were... Yea
as in the subject that's assessed in school
Mobile
I can speak the language
yeah we did have to make a responsive design lol
but we were graded basically individually so 😉
lol
I can't even speak the language 🥲
what are the chances
I also know someone called stephanie ellis
definitely not that person
but exact same name
Maybe
that's pretty funky
Maybe piggy is actually from america
at least you used bootstrap
Maybe he lives next door
yeah dude bootstrap slaps
i was so thankful when we graduated from Notepad++ to Bootstrap lol
Elm-Bootstrap slaps better
wat?
did you use some bootstrap client thing?
what's with this btw
the cedar dog in the top left lol
no I just mean that we had to write our websites from scratch in Notepad++
then we were finally allowed to do whatever we wanted and reuse stuff like Bootstrap
I'm assuming you didn't write this front page
I made that as a test, and the people in charge of the front page did not fix it lol
yeah no
how hard is it to align bloody images
for reference, someone did that like 4 hours before it was due
and I did not care enough to try to fix
bootstrap literally has things for this
HTML has things for that lol
this site could've been done in 100% bootstrap, not custom css needed
apart from ur personal page
you had to have custom CSS
ah
the requirements kinda sucked ngl
like an image on every page
that's why appointments has a random dog picture lol
just chuck these everywhere
lmao
lmao
lol
What's the purple thing
a world border, duh
???
couple weeks ago I finally started working on my website again. I literally changed 1 word and stopped again lmao
minecraft?
The earth doesn't have borders?
world border?
ur personal site?
my website is like super plain rn. it needs some accents
lol
ye
Oh ye mc has borders 
the projects part
ooh that has a nice style
Nice lorem lipsum
those gradient underlines are... unique to say for sure
it doesn't look that similar
it has the same kind of vibe
well the projects part
top left stuff, big banner thing
that's what I copied
I might make a super basic website
Looks good for me
what doesn't man
the text goes over the light gray
phones are shitty at displaying websites
Oh wait ye
my site works fine on phone
lmao
Yeah I noticed that
Let's say i just had a stupidly basic website with the basics what's needed would that do?
you know chorme has a phone preview mode right?
yes
and you can test multiple phone models
i was quick
how can I call nullableObj::class? I only know how to do that in kt with javaClass, like nullableObj?.javaClass
I can't design sites, and I can't afford the $2000 to get one custom made
some with wider screens work fine
hey you got a 99 on performance though
yeah I know lmao. I tested that. It used to be 100 but I added some js shit and it went down to 99 I think
A bit broken blitz
ah very sad
yeah I know xD lmao
oh no your pink buttons are not sized appropriately
I was even thinking of making it straight bcz I literally spent 2 dayts on that shit
I need to start working on mine, always end up procrastinating
I feel that. Started working 2 weeks ago, changed literally 1 word and stopped
💀
what? what am I even suppsoed to do about those? Its some website that I use
i do it in #development like all the time
Imma try to use Elm for mine
i think make them bigger and space them apart
so that its easier to click
First Elm proj 😌
and not misclick
what site is this?
blitz'
I don't think my fontawesome icons get that issue
no I mean where is that error from
yeah yours are bigger
ah ok
oh from Chrome Lighthouse
yeah but it's looking quite nice already!
Its just not very colorful. I need more purple and maybe a bit of yellow or orange
but just a bit
no?
it was code given to me
look at the first commit
i had to try to fix it
and also it was when I tested positive for the 'rona so maybe it was messing my code up lol
hmm maybe that's why I had it privated haha
yeah ik swing doesn't give a lot of leeway for cleanliness
gotta commend the effort though
oh ok nvm not that bad https://i.imgur.com/1Amr5Dc.png
i didn't even get extra credit for doing this
i just felt like it cause I was bored
but i mean, clone it and give it a try
it is pretty good I think for my first time ever using Swing and making a UI
yeah blitz you have like 3 easy things for SEO that you just didn't do
inb4 the performance drops when you add images
it was very very bad before
😮
sad it's not a progressive web app, eh?
yeah I know. I remember it recommending JPEG instead of PNG and stuff
also best practices could be 100%
well now I'm just going to drop DeluxeMenus stuff and work
on this shit xD
ayyy
good thing I found about Github Pages otherwise this would have been one of the lost projects as well 🥲
yeah its great
i quite liked that one
and WinSetup if you ever need to setup a Windows 10 🥲
just go to https://blitzoffline.com/anypage
this is stolen btw. well techincally not stolen since it was posted online
for everyone to grab
i was gonna say, it seems like you put 10x the work into your 404 page than your actual page haha
I love that
I don't like when it goes to black text, I can't even see it.
I'm a bit worried that I am gonna p2w on a server 🥲
well techincally it works
I guess
just not as it should https://i.imgur.com/jbqfw7C.png
and I've got no clue why
@quiet depot also peep https://github.com/BetterLifeMC/betterlife
did quite a bit of that, including independently inventing /tpa lol
yo @quiet depot someone said you can open projects (folders) in sublime like you can with VS Code. is that true? I can't find it
maybe its a plugin or something. hmm
I'm so fucking blind...
its literally under Open FIle
File*
and its called Open Folder
if only I could see lmao
but white tho? https://i.imgur.com/xXeXyCD.png
yeah question: why not VSCode?
bcz sublime fast and doesn't take 2 years to start. only thing I like about VS Code over Sublime is the open live webserver with 1 click
that's great
its a plugin but its still good
oh i forgot you don't have an SSD lmao
... 🥲
VSC opens instantly for me
Sublime 😌
try opening and editing a big sql dump in vscode
big = multi megabytes, maybe gigabytes
sublime says no problemo
vscode says
@static zealot u can just drag a folder into sublime
and it'll open it
ah Ic
thanks kotlin?
well I mean I opened the project
and now I don't want to do
anything
so.. xD
just another day
my open folder aint white
i just opened a random folder to demonstrate it
Oh
what theme are you using? Might be you have a custom theme
or something
yeah it's material theme
oh Ic
Ew
well I opened VS Code anyways
Themes 🤮
smh
white theme? xD
No
Default dark mode
Yo piggy or funny if ya see this, how does one get the Helpful role? I help people and I boost :p
For you, it's helping people to use haskell and java 😉
Oh.
Okay, so at first. You go to Google and search "Why haskell is overrated and why you should use Kotlin"
Yeah, I've not slept
Lol, I'd have the papi badge, but my spigot linking and github linking glitched out, so I needa re-link them eventually.
Most likely funny
Bill Gates 
Should I msg Barry boi
or wait for piggy
Idk where piggy went
Cube is on right now, just talk with him here
Cuboid, can I please make an offer of a giveaway? 
How hard is it to make a #placeholder-api extension?
Better to do it as an internal class, not a seperate .jar
Okie ty
questions if I already added it
Oh wait.
Oh no
You gotta do it for each msg right....?
Oh sick, less effort to install than expected ty
I'll get that implemented sometime by the end of this summer
what do u want to give away
thanks to type erasure, now I cant make some clear messages for secret-cfg
aw man
Reified types 
it'll still be good though, eh?
yes it'll
that wouldn't do because if I used reified then I would have to expose a object I don't want to
Fair
https://en.wikipedia.org/wiki/Programming_languages_used_in_most_popular_websites
According to this, Facebook uses Haskell
what jetbrains ide would I use for c++
clion
Thank you
thoughts? https://paste.helpch.at/loqejiguci.m
hocon
pretty smooth
are there any config formats that support like interval notation? like 1..50?
doubtful
Hey. Is it possible to make primed tnt into a projectile instead of an entity
The cannons plug-in only allows projectile items like snowballs, eggs etc to be shot properly
that's actually quite difficult to do considering . is usually used as the key separator
Yeah, it would be best to avoid using ..
in terms of data, ranges are just sugar for [from, to)
this would be trivial to overcome
simply search for an exact match first
so it doesn't really make sense to have them in a config/data format, especially because this doesn't exist in all languages the format might be implemented in
yeah that might work
@old wyvern does slimjar work fine yet btw?
Yes
or at least, is it usable?
yes it works
Would you like me to publish it, or do you just wanna clone and use local?
publish pls
Aight, Imma add one more things before publishing, as cant change after that
oh btw @quiet depot did you see the gradle project name convention?
no
good
Apparently they do specify 'kebab case'
yup xD
well that's one debate put to rest
lol
now what is a programming language again?
Well, in the simplest sense, id say something that can be used to specify instructions in
were you here for the discussion about this yesterday?
yup
lol
unfortunately there is no really good kebab in this part of germany 😔
Emacs Lisp
emacth
Just use a string ez
hey any of you ever made IntelliJ platform plugins before?
getting a bit confused on where the main class or the entry point is meant to be
anyway, slimjar time
this better work Yugi otherwise I'm gonna have your head
@old wyvern where is it published btw? or does that also take time?
because if it takes any more time then I'm just putting it on Maven local
also, does slimjar support API dependencies?
Put it on maven local for now, Im adding some stuff to suppourt relocations be shareable with isolated containers
You can set things transitive afaik, yes
what's the local version gonna be? since isn't 1.0.0 gonna conflict with the Gradle plugins version?
Matt worked on that, Ill need to ask him
Clone and set it to something different
just change the id to a test variant
thats what I normally do
also, where can you even add repos that are accessible to plugins? buildscript?
Yes
which task is it?
Come in vc, share share
publishSlimjarPluginMarkerMavenPublicationToMavenLocal?
just finished my coursework and i actually want to cry
its taken so long
but im sat here looking at a 100% passed test plan
:'D
just drop out
oh lol
thinking about downloading dependencies at runtime, I could probably come up with my own solution like what LuckPerms does, but the thing is with Krypton is that I have the advantage of controlling how I load the entry point
so I can just make a new class loader, download the JARs into a folder, add them as URLs, then use that loader to load the main class
the tests won't compile, but the main should
I tried pulling from upstream and just building the basic stuff but seems some implementations are missing in your test DummyWorld
Alright
you figured out the issue with slimjar yet?
yea mostly
Thats what im working on
Just had to leave for an issue with a professor not adding my attendence earlier
ah right
what's the point of attendance checking at uni
We have to maintain 75%
Otherwise we get debarred
Im at 74% cause the professor forgot to send my on-duty list
https://wiki.archlinux.org/title/Xmonad HOLY CRAP
😌
😌
xmonad is written, configured and extensible in Haskell
i am going to orgasm
how did you of all people not know xmonad?
i3 propaganda
Is this the wrong channel?
👍
It's pretty crazy how different it is to learn to program in any language in university compared to YouTube tutorials 😂
It seems like nobody who makes YouTube tutorials has learned from any course but instead learned from other YouTube tutorials
Just teaching bad practices over and over again
Well by that you're insinuating that the professors teaching you know shit as well
Idk I just wish someone who actually studied Java in university or something made some proper Spigot tutorials for example 😂
Maybe I'll do it myself when I am a few years into uni, but idk it's surprising nobody has done it yet from what I saw
brister mitten
who made this
they deserve the death sentence
Some girl named Alyson apparently
@prisma wave sup there buddy
torture the kid by forcing them to learn regex
yo
Maybe he just doesnt feel like doing it anymore which is fair enough
variables must always be english and english is the dominant language for coding
whether you like it or not
tell that to the non-english spigot devs 
hows the tutorial going 🌚
where do they use !english
Indeed Pulse
@foggy pond this is really important, what frosty said
there's no guarantee what you learn in uni is of any quality either
do they not use english somewhere?
can u guarantee quality from anywhere?
fro me!
My lecturer is somehow some 84yo dude who was around when computers were born pretty much
max
anyone with dev role = quality teaching 
Was gonna say, you'll probably have more luck in here
Idk why he is still teaching
guarantee 120% quality from kangarko
yea u suck
smh
kneecaps bye bye
wow ☹️
But yeah I think he knows what he talks about (Even tho it is pretty ancient standards that he's given out)
keep an open mind
remember this https://www.youtube.com/watch?v=DK_0jXPuIr0
‘Purpose’ Available Everywhere Now!
iTunes: http://smarturl.it/PurposeDlx?IQid=VEVO1113
Stream & Add To Your Spotify Playlist: http://smarturl.it/sPurpose?IQid=VEVO1113
Google Play: http://smarturl.it/gPurpose?IQid=VEVO1113
Amazon: http://smarturl.it/aPurpose?IQid=VEVO1113
Director: Brad Furman
Production Company: Happy Place
Producer: Roge...
bruh
ew
lmao
I will shoot you
lol
1 to the 3 to the 1 to the 3
🤨
good question
just admit it, theyre never coming 😫
I did pretty well with the European countries, lets see how I do with the world.
Matt Gray | http://mattg.co.uk | @MattGrayYes
Europe Video: https://youtu.be/EmYQiFGHOdc
📄 Country Quiz: https://www.sporcle.com/games/g/world
I did not choose which disputed or partially recognised states to include on this map. The creator of the map did.
My T-...
in the 1800s: mine mine mine mine
LOL
lol
rule brittania 😉
Oh yea did I mention, the plugin's class I showed above was made using eclipse
i doubt even eclipse can cause that to happen
sublime text > emacs > intellij > vim > eclipse
delet this
nah
bet
Lombok good tho
nice
minecraft server coming soon
:0
brister
what the fuck
@prisma wave you better fix this right now
where is your tf2 profile picture, this makes me incomfortable
He has become a weeb
yep
fuckin weeeeeeeeeeeeeeeeeeeeeeeeeb
still makes me uncomfortable tho
you without your tf2 pfp is just awful
@old wyvern how to do enum in haskell
i have data PacketType Int = Handshake | Request | Response | Ping | Pong doesn't work
need to think about how to structure packet type + packet data with enum style data representation
lol
just have a state enum and store the packet maps in lists
actually the lists won't work for your immutable whatever the fuck
packet state should probably be an enum though
then you need some way to lookup the packet ID to get the corresponding packet object
what
no
what
consufused
that represents what
what is your issue?
I want type safe types for all different packet types
Although I'm not sure this is possible
Handshake = { version :: VarInt, address :: String } etc
but no i am not sure this is possible
shame
HOLY CRAP
haskell on top
Ooo the material icon for Haskell on this extension is actually quite hot
You dont need the int I think, just need to derive Enum
nice
oh right enum is a class
mhm
Yea extending that only adds a way to index them
not very important here
I see
i'll derive Show and Eq though
Alrighty
man this is so cool
did you know apparently you can derive Functor
no idea how that works
xD
what extension is that?
ah u have a different one to me
Which one do you have?
does it not lag for you?
material atom icons
yup that
hey @obtuse gale ever seen anything like https://paste.lucko.me/uGcYP7m661 before?
I was just thinking of what to do and went "hey, let's add support for the teleport command, why not", then saw that
Ooo i like those more, closer to IJ's ones
I have been pinged
the only issue with the material icons extension is that large amounts of files will freeze your browser
yeah look at that mess
Called for
"java is simple"
said nobody
🥲
"FP is too confusing"
said everybody 🥲
Yeah the command tree for teleport is extremely wide
you know what was worse?
that was all in one line
Can't relate
I had to separate that manually 🥲
looking now
just gotta remove the like 10 redundant casts that CFR has very kindly left me
oh btw, do you know how to set executes for commodore-file @obtuse gale? or is that not what it's for?
which?
Hi, i am triying compile guild plugin but when run my server with the jar appear this issue, can you help me
11:42:14 ERROR]: Could not load 'plugins\guilds-3.5.5.9-DEV.jar' in folder 'plugins'
org.bukkit.plugin.InvalidPluginException: java.lang.NoClassDefFoundError: org/bstats/charts/CustomChart
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:141) ~[patched_1.16.5.jar:git-Paper-553]
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:397) ~[patched_1.16.5.jar:git-Paper-553]
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:305) ~[patched_1.16.5.jar:git-Paper-553]
at org.bukkit.craftbukkit.v1_16_R3.CraftServer.loadPlugins(CraftServer.java:389) ~[patched_1.16.5.jar:git-Paper-553]
at net.minecraft.server.v1_16_R3.DedicatedServer.init(DedicatedServer.java:212) ~[patched_1.16.5.jar:git-Paper-553]
at
https://i.imgur.com/RGhUUU1.png jesus fucking christ execute is large
that kinda looks like something my framework would have
rn its a mess
traumatic brigadier memories
looks like brigad 2
i mean
lmao
thats basically what it is kek
idk why i thought it was a good idea to write this but here we are
I really dislike builder syntax for commands 😩
whats wrong with builders >:(
Not builders in general, specific for commands, it can get too clustered
yeah ig thats fair
thats one thing with mine
the builders are optional
you can just extend stuff
I personally like annotations
in secret-cfg, should the lists returned by getStringList be mutable or not?
I'm divided on this one
🥲
commodore does highlighting and thats like it
i need mah argument parsing
oh wait i thought commodore supported that
nope
thats what ive just done
lmfao
brig supports files?
i don't think you quite understand
What i was referring to was allowing to set the builder structure in an actual file and parsing it
ohh right
rather than writing it in code..
Commodore isn't really meant to be for that, it does build a command tree yes but commodore itself is built just for the nice colors, tooltips and "argument type" while you type, not the actual suggestions or execution
I'm sure you can do it somehow but it's not what Luck had in mind when he designed the parser
ah right
watch emily write an essay on how she simps for lucko
lmao
I would imagine it something like this
time {
set {
day >TimeCommand::setDay;
noon >TimeCommand::setNoon;
night >TimeCommand...;
midnight;
time brigadier:integer >TimeCommand::setProvidedTime;
}
add {
time brigadier:integer >...;
}
}
That would look with reflection for SAM Command implementing methods in that class for that method name (ofc you can replace > with w/e token, I just thought of it)
CC @boreal needle @jovial warren
ew
Ew your face
Yeah
only if method references were parseable 🥲
you would have to use reflection to invoke the method
Well yes no shit Sherlock
mhm
Given that Command is a functional interface you can probably use LambdaMetafactory & MH
yeah
Hmm maybe a package prefix indicator somewhere, because no one's gonna have "TimeCommand" not inside a package lol
Or provide it to the parser
what is the diff between LambdaMetafactory and method handles in general?
oh btw, floating point comparison question: how am I meant to find out if two values are greater than a specific number from each other
nvm, my logic wasn't flawed because of floating point, it was flawed because I had abs(location.x - oldLocation.x) > 8 && abs(location.y - oldLocation.y) > 8 && abs(location.z - oldLocation.z) > 8 (PacketOutEntityPosition only takes coordinates up to 8 blocks from the previous)
package org.kryptonmc.krypton.command.argument.arguments.coordinates jesus fucking christ that package
also, someone please tell me what the fuck local coordinates are (denoted by the caret "^" symbol)
oh that's what they are, it's based on left, up and forwards positions from where the player is
¯_(ツ)_/¯
seems to be my pattern now
I've put it in command anyway, so now it's org.kryptonmc.krypton.command.arguments.coordinates
I think the longest package we have is org.kryptonmc.krypton.command.argument.serializer.brigadier
actually no there's definitely longer ones than that
because it contains the arguments
bardy, fixed, might still need some tweaking here and there tho
but for the most part
so the command package contains the stuff for commands and the commands package contains the actual commands
Ill wait till I test stuff out before PRing
What all did i need in the directory btw?
what?
Bardy, I use impl for that, makes more sense to me to have it that instead of command.commands
I need world or some config right?
atleast thats what I remeber from running it last time
you need a world in the root folder yeah
Anything else?
nah
Alrighty
just a world, just give it some regions
it will refuse to load any chunks that have no data lol
https://paste.lucko.me/0KgagDTvdL okay someone please explain what the actual fuck
I'm actually confused on how this works
Is that the transformation from local coords to absolute coords?
Yep
is that what this does?
Yeah, that's the LA involved
the what?
linear algebra
this is where my knowledge of maths starts to run out lol
Imagine it like this
You are the player, you have a POV of the world in Minecraft ofc
emilyy esta escribiendo... xD
You for yourself, relative to you, are always at 0,0,0 xyz and 0,0,0 ypr, but the absolute coordinates are something else; when using commands with ^ ^ ^ as location, you are transforming it relative to your local coordinates, your x, y and z are relative to your position (x/y/z) and direction (yaw/pitch/roll) in the world
So for instance:
^ ^ ^5 is from your local coordinates, 5 blocks forward
If your absolute coordinates are 200,50,300 and you are looking up, then that means 200,55,300 because you are looking up, if you were to look towards +x then 205,50,300 ; if you're looking 45° between x and z then that means 202.5,50,302.5
mafs
right, now time to try and learn this by example
actually, this is using trigonometric ratios here, meaning it's getting some form of angle
actually I'm confused
gimme a picture or something
I need to be shown how this works
and I need to know how to name the floats properly
and how to comment this so it's understandable for others
@obtuse gale I need example pls 🙂
Huh?
I need to see something
Uh I'm not on PC rn
also, you told me what it does, not how it does it
I would draw this in 2D planes so you could understand it better but yah, not on pc lol
fair
Actually give me a few mins
The relevant ones (for your case) are probably the first 5 episodes or so
feet/eyes I believe
ah okay
I don't know how it works lmao I never got it to work
I've seen the code for the argument type and it supposedly does what I think it does
But I never got it to work for whatever reason
@old wyvern okay similar problem, i have ```hs
data OutgoingPacket
= Response T.Text
| Pong
Do you think the best way of encoding the packet id's is just something like ```hs
packetId :: OutgoingPacket -> Int
packetId (Response _) = 0x00
packetId Pong = 0x01
-- etc
```?
will probably do this for IncomingPacket too, as then I can encode the packet state too
unless there's a better way
Yea most likely, use guards instead of re specifying the function name tho
ah yeah
alrighty ty
packetId :: OutgoingPacket -> (PacketState, Int)
packetId packet
| Response _ <- packet = (Status, 0x00)
| Pong <- packet = (Status, 0x01)
| otherwise = error "Unknown packet ID "
``` so something like this?
You can directly match i think
when you're so little xp away from next level
yo @prisma wave you doing packet shit now?
yea
in haskell too i might add
even more complex
Ah it seems that its, For some reason I remember it a bit different
nvm
Mojang be like: "let's just release all the obfuscation mappings for the entirety of Minecraft... but the maths... oh no! that stays obfuscated!" https://paste.lucko.me/HWKraDeCIj
You can probably use any implementation of a Quaternion bard
badge
