#dev-general
1 messages Β· Page 376 of 1
what?
if they hit no, it starts again. if they hit yes, it starts again.
if they hit no, jumpscare them. if they hit yes, jumpscare them
._.
._._._._._.
ill just close program if they hit 'no'
or ill just put like "Close" button
and stop the rest of the code
idk
Dkim's size: .l.
Everyone else:
l
.l.
if they hit no,
while (!false) {
new ChromeTab().openNow();
}```
Haha funny guy made penis joke
no, this is #dev-general
ah, same thing
Classic
how do I use Future<>?
no how do i make one
good question
hey google
context?
You get in a time machine
thx
why do you use Future tho lol
most of the time you'll use an ExecutorService for it or create one with a CompletableFuture
use CompletableFuture
ok
this is first itme
making future
public static Future<Boolean> method() {
return new CompletableFuture<>();
}
```like this?
no
Uh...... what
why are you returning Future
oh btw, Fefo, one last problem
lmfao
when I actually press tab, it puts the argument right next to the command
y not
Something to do with the stringrange bet
Do you still start at 0?
Ah
okay, well adding 1 to the start sent in the packet seems to work
buf.writeVarInt(matches.range.start + 1) ez hax
Oh god okay lol
return CompletableFuture.run/supplyAsync(Runnable/Supplier) I think
F
I do not understand this
It's kinda clever though
Similar to coroutines but you can make it work with your own type
clever
some of the coroutine stuff works with generics i believe
you havnet even customised any settings
lmfao
search up stuff like colors, getting rid of borders
MCServerCreator ERROR
Γ
ERRORRRRR
nope
hideous
^
Why don't you handle the error instead
this is my way of handling the error
its like a reinstalling thing
installation failed? retry
like how discord updates
Giving the user 0 info on what went wrong? good job
thats what im doing
oh
public static boolean prompt(final String error) {
final JFrame window = new JFrame("MCServerCreator ERROR");
// create ui
final int result = JOptionPane.showConfirmDialog(window, "An error has occurred: \n" +
error + ".\n" +
"Do you want to retry?", "MCServerCreator ERROR",
JOptionPane.YES_NO_OPTION);
return result == JOptionPane.YES_OPTION;
}
i might change it later
to give more info
Somehow IJ was built with swing
WHAAAAAT
wait seriously? i didnt know that
lol
tbf, it makes sense tho
swing was back in the old days
back in the old days
Yeah IJ is pure swing
it actually amazes me that IJ is so old still - 2001
also you shouldnt use the built in swing components if you want to make them pretty. You should extend certain components and customise them as so
IJ rewrite using tornadofx + kotlin when
yesterβ’οΈday
π
so that i have a next and cancel button
Fact: rust can run as fast as C but with 0% chance of memory leaks or unsafe memory access
they should rewrite rust in rust to improve performance
only one of them would be visible
No they should rewrite rust in C
im only using swing for the popup
true dat, even torvalds said people should start making some drivers in rust for linux
and y'all know how much torvalds loves C
why do people have blank usernames...
how come part of my file is not syntax highlighted, and also some other files arent syntax highlighted? (in eclipse)
torvalds eats babies tho
two unicode squares for me haha
this for me
eclipse
true... dat?
bruh
its just eclipse being eclipse
great
"The new Linux kernel version will bring a number of imp- sniff is that a baby? I've got to go"
- Linus Torvalds, 2014 interview
try restarting eclipse
hehe
"Fuck you nvidi... oh that sounds like a baby"
almost as evil as James gosling
"we will make america gre- brb there is beby"
π
mhm sounds like torvalds alright
nvm figured it out
had to use StackPane
classic torvalds
You're welcome π

Ben Shapiro
why is eclipse like this
cause its eclipse
OUTDATED software
man i would rather use xcode
ben shapiro = linus torvalds = joseph biden = donald trump = james gosling
Microsoft Windows Notepad
word
Why are you using eclipse haha
i prefer coding on paper
Use intellij
i code in my mind
That's pfp and name is sad
and then telepathically send it to my computer
You got nothing better to do?
No.
i use punchcards, which i write in java bytecode
ok fine ill use intelij
thanks
merci
:) intellij*
i will give 0 dollars to whoever can guess which one is the L, Il
lol
first one is obv the I
i will give 0 dollars to whoever can guess which one is the L, Il
lol
what did I miss lol
the I is slightly smaller than the l
and thiccer
just slightly
but with eyes like mine
its noticable
Il
intellij is suddenly giving a billion "unused" errors 
even though the variables are clearly being used in the next line
ok
while(true) or while (true)?
latter
while ( !false)
while( ! false ){
ez
uses high-end technology to remove blue blob
Email address π
and yes, I manually painfully scribbled over that in Snipping Tool because ShareX automatically uploads to imgur lol
yeah idc about that, it's public info
time to add u to some buzzfeed mailing lists
ctrl + printscreen = edit before upload
Ah okay
oh right
snipping tool
uses unblur tool
may or may not have uploaded the image with the key in it and had to swiftly remove that xD
in discord?
staff looks in logs
ill bribe you 0 ha'pennies
maybe you're meant to edit before you make the selection
lol
@remote goblet Stop saying dumb shit, thanks
eh i havent said anything you clown
aaaaa im going to have like 20+ variables lol
Java Base Data Connectivity
Bata Dase
MongoBaseData
yeah lol
You said there's no reason to switch to gradle you clown
there's something oddly satisfying about those two GIFs being exactly in sync with each other
has much changed since then?
lol
oh shit dark reader removes the line numbers on the side π
val rev1 = ItemStack(Material.ROTTEN_FLESH)
val revLore = listOf(
"${ChatColor.DARK_GRAY}Revenant Horror I",
" ",
"${ChatColor.GRAY}Health: ${ChatColor.RED}5",
"${ChatColor.GRAY}Damage: ${ChatColor.RED}15 ${ChatColor.GRAY}per second!"
)
```etc.
I cbfa to type out all those lines lol
listOf is probably one of the most useful Kotlin functions in Kotlin, I swear
ChatColor π
yeah lol
still need to use that api
Component.text("Hello World!")
what the actual fuck
show me the arrow code
please

you know that's still a thing
The fact you can register your own translations with adventure, that alone just makes it x1000 better
wait what?
Yeah
oh yeah, Adventure supports translation management doesn't it
Love it
I still wanna add localisation support to Krypton at some point
how would u colour this, or does it automatically do that for u?
@hot hull Apparently there is a remove method for nbt compound, though the lib doesn't have that, I can add it though
Component.text("Hello World!")
.style(Style.style(NamedTextColor.RED))
or what Fefo said
wait so how does Adventure's translation work?
what about &aHello World tho
Legacy
i havent checked the docs :kekw:
LegacyComponentSerializer.legacyAmpersand().deserialize("&aHello World!")
lol
Which for obvious reasons is not suggested lol
Use me lib
nah m8
msg?
Yeah
ok π
What are you saying?
I think they have different purposes though
mf msg does Markdown doesn't it?
and Adventure does chat components
Yes that returns an .. guess what .. adventure component lol
mini message does markdown too lol
mf-message-adventure
ah, yes
π
There genuinely isnt, Its their project
you dont need to switch the compiler to something they aren't comfortable with 
there are still reasons that would make u switch
compiler
lol
idk what other word to use
build tool
build tool
whatever
also, Gradle is better than Maven, that's just a fact of the universe
as much as I prefer gradle, its not required to switch
people should use what they want 
none of this "opinion" rubbish lol
maven is broken π₯²
everything can be improved, having the "if it aint broken dont fix it" mentality is just bad
I like gradle I am just too dumb to use it π
I know but im just saying
"if it ain't broken, don't fix it" is literally the reason why developers can't be assed to fix bad code
and it pisses me off
Why switch to gradle when the person who made the plugin doesnt know it
is it just me or do developers have literally 0 design skills
i mean sure, but frostys point comes from u saying theres no reason to switch, when there are clear benefits for using gradle
Mini message is pretty cool though I don't like the markdown, the symbols don't follow the markdown convention
also rainbow and gradient don't pass through formats
Thymeleaf seed starter was once the driving force behind the global agriculture industry...
lol
Idk I've never used it
no
I just know it exists lol
My original point was that it doesn't need to be in gradle
not that there isnt any reason
Mine top, mini bottom
he pulled that out of his ass
top > bottom
Yeah became his resets on format change
What is using legacy?
It isn't, it's just that since it resets it doesn't spread the colors far enough
ok then yeah frosty is in the wrong
NamedTextColor isn't legacy
it just has a legacy backing code
they are still RGB colours
I know
of course
I just instinctively say "legacy" when seeing that crap lol
Understandable lmao
oh btw, Krypton 0.15 is pretty much ready
Literally instinct
+ added some stuff
- removed some other stuff
Nah
- Changed shit
git commit -m 'changes'
git push --force
- Overrode permission checks for the console to force them to always succeed, as we are god
and permission checks are for peasants :)
```what a changelog entry
lol
why 2017
is that luck?
looks like it
Yeah lol
best ui ever
lol
Ayy luck is one of us
yeah luck is definitely one of us
π₯²
he's one of the nicest popular developers I've ever spoken to
i really don't want to go through every text box, text, and checkbox to change the color π«
π
and he said Krypton was cool π₯°
(reference: https://github.com/lucko/LuckPerms/pull/2954)
Go to citizens discord and ask for help, you'll understand
thinking about changelogs, I've just remembered one of the best changelogs I've ever seen lol
lol they have a role for offline server users
Why? Lol
lol
@prisma wave @tranquil crane π
!
humongous commits tho
oh actually, @old wyvern might be good if you review that too
1 commit, 30 files changed lmfao
Split the commits up π₯²
never heard of that
clearly
How does a 1 commit 30 files changes vary xD
Split up small commits with reasons for change so its easier to review
I mean, it's only 368 additions and 54 deletions
that's not that bad for one commit
idc about how many files were changed lol
Its more of the places of change that ussually end up confusing
Especially for someone who doesnt know each and every corner of the project
So what a snippet is supposed to do is add a minor description that helps
you know this is just the "make it work" part of the project btw right?
the "make it work well" and "make it look good" parts are yet to come
That has to do with the project dude
next commit will be small I swear
Alright
I wanna add support for BungeeCord
and maybe Velocity too
and no, they don't just work out of the box
Also I think the project is at a stage where you properly plan out stuff than just go for "make it work" changes
Otherwise you'll end up needing to refactor too much
true
but I'm not a "if it's not broken, don't fix it" kinda guy
idm refactoring everything to make it better lol
"Nbtentity is a class" well nah no shit sherlock, I thought it was a banana
xD
oh btw, Krypton 0.15 will be the start of the test server
π
I need at least one approving review first though
and hopefully BM doesn't take all week
Krypton smp???
soonβ’οΈ
Awe yeee
I mean, it'll be buggy, but it might work
still gotta fix a bug with chunk loading
Bro I'm so down for like messed up chuck generation and stuff! It'll make the world more interesting π
There is no time to wait! Ask your question @obtuse gale!
namely, https://i.imgur.com/UpePUOK.jpeg
and this is a pregen world, so ik it's not missing data
@cinder flare New pfp ;o
We can roleplay that the world is collapsing beneath our feet
You bet haha, Adora is cute af
no serialisation iirc
Yeah
right, lemme actually throw up the test server lol
using my local JAR rather than one from the CI
Maybe you'll actually get 20 TPS!
21 or quit!
you won't know if it's 21 or not lol
I dunno man, 16 seems like plenty to me
you know me and Yugi fixed it earlier btw right?
Oh really? What was wrong
I just switched to a scheduler because the overhead of Thread.sleep was causing issues
there's about a 10ms overhead
how do i make a list of numbers 3-32 in java without a big for loop?
Well that's probably a good change regardless lol
For loop?
Oof
i cba writing a for loop
i feel like theres a better way
maybe not
but im just asking here :p
Swap to Kotlin and do (3..32).toList()
The crash happened outside the Java Virtual Machine in native code.
π¬
I mean you can just instantiate it yourself with squiggly brackets and list all the numbers you want
brooo your pfp
i've heard that u can't use kt with javafx π¦
epic
TORNADOFX
π₯°
i dont want to rewrite my code
do it
Do it
no
This krypton?
IntStream.range(3, 32).boxed().collect(Collectors.toList()) ez
Ew
hey it works
That's uh... Kinda ugly
Or electron
Ooh yeah even better! Electron apps look cute af
I might put LuckPerms and spark in here as well
that is absolutely disgusting
Or elixir like discord
kotlin ftw π₯Ί
how do i change the background π€
Ah okay I got the first two lol
iirc view distance is how much of the world the server loads around the player.. maybe bardy would know more lol

I guessed that those two boxes meant that based on what was in them
And why are you explaining view distances lmao
hey can someone help me instal plugins to my server
nice status bro
β‘οΈ reflexes
π
Player#getCritChance, u can easily in kotlin π
Except youll still have to provide the config as an argument π
kotlin isn't gay
Np
wtf i love kotlin now??
I dunno, you made an entire class whose sole purpose is to instantiate an entity poorly then do nothing. You definitely need some functional programing in your life
can someone help me
If you ask in the right channel people will
Sounds like a job for Kotlin
.
I hate you syntax
how dare one not like kotlin syntax π©
If you don't like kotlin syntax, good luck with a lot of new languages lol. Swift looks nearly identical, so no apps for you
React Native!!
Scala too
Flutter!!
elara/android
The whole point of Kotlin is that you can slowly replace any jvm code with it to make your life better
No
not made no
No lol its made for jvm
Google just happened to switch from Java to kotlin because it was so much better
kotlin is the first choice language for android
It's not only for Android lol
Android is not even a JVM π₯²
Seems like I do considering you won't consider using it in plugin development when it's so nice to use
lol i just found some project ideas
https://github.com/PiggyPiglet/Challenges
https://github.com/karan/Projects
https://github.com/joereynolds/what-to-code
http://andrewcombs13.com/projectIdeas/
https://www.reddit.com/r/dailyprogrammer/
https://qph.fs.quoracdn.net/main-qimg-2fa8b318be75adf3d32f85eb42d2422e-c
https://github.com/scraggo/bookmarks-programming/blob/master/project-ideas.md
https://rosettacode.org/wiki/Category:Programming_Tasks
π
note: i didn't make this list lol (besides the piggypiglet one :p)
I'm currently doing this while learning Go, pretty helpful actually https://projecteuler.net/
A website dedicated to the fascinating world of mathematics and programming
funnycube be like
lol
oml he's not joking
bet bet
put test.kryptonmc.org in the address
you lot should come check this out
doit
test.kryptonmc.org 1.16.5 ez
coming!
actually, before you come, I'm gonna run this outside of Docker lol
so I can access the console
right, server's back
wait wtf
lol
the server just died for no reason
what did you do
no idea how you succeeded that
I have LuckPerms on here
o
back up now btw
idk how that worked
lol
lol
Yugi
yea?
come on the server
on which server?
Whats up?
come check it out
ok
first time I've ran a public test server since like 0.10 lol
Yes, I know it's an airport, you're not the first person to find this out
yeah
well, not all that much, but it technically works
there's no damage or block drops or entities or items or pretty much anything that makes survival, well, survival yet, but ya know
early stages
He almost got away!
π©
what the hell
Wo..w...
Where did you find that gem?
GeneratorCreator itself is one hell of a name
they need to be instantiated that way in the enclosing class lmao
Why are they non-static tho
because they do stuff with the members of the enclosing class
their usage looks like a bad attempt to use static nested ones
@ocean quartz got a lot of the basic stuff done, it should now be able to download and load dependencies given a url and a name
like
public class Outer {
private int member = 0;
public class Inner {
{
Outer.this.member = 123;
}
}
}
if Inner was static that can't be done without passing an Outer instance to Inner
Ayy nice, haven't gotten time to mess with the plugin today but i'll try again later
Yes but if you're not refering to the outer at all in any other context, wouldnt it just be equivalent to those classes having those fields instead
If it didn't refer to any members in the outer one yes sure
Yea it seems to construct and ignore that one tho right?
Or does one of the nested ones return the outer class?
huh?
inner class
Like does Type have any public function to retrive GeneratorCreator
You can do return GeneratorCreator.this; to "go back" to the outer one, yes
imagine having to declare an inner class as static manually ew
Yes but have they done that there?
oy you can only have one public class in a file and it has to be the name of that file
one public top-most class and yes
you... didn't... know that?
^
how would I know that
classes could always be nested
i've never created an inner class before
I did not question that lol
those 2 are interfaces lmao
oh
fefo
In my use I have a "global" GeneratorCreator that holds a JsonObject and then several Stage classes that interact with the json
yeah I haven't created an inner class before either lol
And then you "jump" between stages as they build the json
can you nest enums lol
probably
you bet you can
But then why is a new GeneratorCreator created there to create the Type tho?
everything that isn't a method in an interface is static
well its mainly cause of the oop rule thing of how a class does 1 job
oh yeah I guess I've put an enum inside of a class before and that is technically nesting classes
Shuldnt you be using your global instance?
prolly reason why nesting classes is not as common
i forgot what the oop pillar was about how each abstraction
should have only one job
Single Responsibility Principle
Yeah that
it's like the unix philosophy for java classes lol
nested classes prolly violate that kind of
each stage adds one bit to the creator's json and when added it returns an instance of the next stage
Depends on the context pulse
true
and in the "final" stage it'd just return the creator, or maybe the json idk, I'll have to think about that
that enum also seems to inherit the access modifier from its super
weird java
there's a lot of things you can technically do that nobody really does lol
I mean for instance, you could static abuse
or name your main file Main
You know in ByteBuddy you can like ByteBuddy#declareMethod and the return type is not ByteBuddy, but an instance of an inner class
then when you are done with that inner one, it "returns" the outer ByteBuddy instance
I can't even remember the last time I used the public keyword lol
how? lmao
Kotlin's default modifier is public lol
i guess if you're only making plugins?
Fefo, what I meant is like does Type expose stage or generator creator?
oh I see i see
wdym, a lot of people does static abuse lol
and name their class Main
xD
but is it good? nah
not sure what you're asking exactly ngl lmao
cause I was gonna say, 99% of the shitty projects I have to do for uni I'm slappin public static on every method cause I ain't instantiating anything
if you're writing apps that actually run from an executable JAR, that's literally the convention
I meant in terms of plugins, I read a thing on spigot once about how that's a terrible idea lol
uni better off slapping C on the kids
lol
public final class Main {
public static void main(final String[] args) {
System.out.println("Goodbye");
}
}
nah G, you gotta take 3 semesters of Java before you're allowed. I'm taking C/C++ next semester! π
Ah, lemme rephrase
Is there an exposed method to get the instance of GeneratorCreator.Stage or GeneratorCreator from GeneratorCreator.Stage.Type?
nice
what kind of Kraken did I unleash..
ur mom

C kinda good language
it is good
#include <stdlib.h>
#include <stdio.h>
int main()
{
printf("Hello World!");
}
π¬
although, i'm just not familier with the patterns they use to handle dry code
because its a completely whole new world out there
header management is kinda fun ngl
and its pretty funky how you can declare stuff anywhere. like I had to declare something outside of the class and my java brain wouldn't let me until hours of trying had failed me
the only thing you can't declare : methods in methods
Java!!!
although idk if thats any good
lol
nah cause everything in java is a class. and it ain't in C++ lol
lol
float Q_rsqrt(float number)
{
long i;
float x2, y;
const float threehalfs = 1.5F;
x2 = number * 0.5F;
y = number;
i = * (long *) &y;
i = 0x5f3759df - (i >> 1);
y = * (float *) &i;
y = y * (threehalfs - (x2 * y * y));
return y;
}
```π₯²
0x5f3759df π
Well there eventually will be, like my plan is this
// GeneratorCreator has a global JsonObject, see https://minecraft.fandom.com/wiki/Custom_dimension#Dimension_syntax
GeneratorCreator creator = GeneratorCreator
.creator() // returns GeneratorCreator.Stage.Type
.type(DimensionType.THE_NETHER) // saves the dimension type in the GeneratorCreator json, returns GeneratorCreator.Stage.Generator;
.flat() // saves the generation type in GeneratorCreator json, returns GeneratorCreator.Flat
// ... other methods to create a world generator settings
.build(); // return GeneratorCreator.this;
ooo
dude pointers kinda slap. i wish java had a way to reference type anything
thats why your project was named that
it does but it just sucks
i = * (long *) &y this line is such a neat hack
lol
I mean how many times in your everyday life will you write something like that
ah alrighty
0
never, my brain is not large enough to remember what * means in all those different contexts
Pointer
sounds kinda impure
- means two different things
oh btw, for the uninitiated, that line converts the memory address of the float y to the address of a long so we can perform bit shifting on an IEEE 754 floating point number lol
Multiplication and Pointer
multiply
no it means two different things in regards to pointers
and dereference π
lol
The type and ^
a pointer is really simple yet its application is kinda complex to grasp
yeah it means dereference and type of
and we're using both of those in that line alone
Fun fact: a de-referenced function pointer is implicitly converted to a pointer to itself again, so you can do shit like this:
int func(int);
int main() {
int (*func_ptr)(int) = func;
(****************************************func_ptr)(5);
return 0;
}
what in the jesus christ
Because dereferencing the function pointer implicitly converts it to a pointer to itself again, it's a pointer again, which you can dereference, and again and again and again
and that is no different than this
int func(int);
int main() {
int (*func_ptr)(int) = func;
func_ptr(5);
return 0;
}
lol
section .data
message db "Hello World!", 12
section .text
global _start
_start:
mov rax, 60
mov rdi, 1
mov rsi, message
mov rdx, 12
syscall
mov rax, 1
mov rdi, 0
syscall
lol
clion go brrrrrrr
dude i hate C's type convention. like wtf is going on in that first line after int main
x64 NASM assembly go brrrrrrrrrrrrrr
a function pointer
assembly greatest language
is the (int) what it returns?
it's an object that points to a function
the first int is the return type
the (*func_ptr) is the name of the variable and indicates it's a ptr
and the (int) is the parameter type
ah okay see that's what got me
c++ is a functional programming language
π€
lmao
@old wyvern What should the gradle plugin module be called?
@lime ember just saw #showcase, some suggestions at first glance:
a) getbukkit is illegal -_-
b) don't commit .idea to github, iirc it's just preferences
c) either put an email or don't put "Email:" at all ._.
https://prnt.sc/10xn38b
why even list spigot as a prereq lol
idk
everyone knows you need a spigot derivative to download plugins
also put the stuff in files in src/main/resources
Gotcha
Thx
I will improve it
I forgot the email thing
Why is getbukkit illegal?
since it's basically hosting minecraft's server source code iirc
paper isn't illegal because it downloads mc jar when the server starts
same with tuinity etc
but spigot u have to run buildtools
arrow code.. and line 31 is a bit.... π¬
I will remove the spigot paper requirement thing completely I think...
use UUID not Player, since the Player object can become "invalid"
Also the spaces between brackets { { {.
Ok
But when I want to get the name of the player from the Uuid... How can I get it?
there are also other spots where u can improve arrow code and stuff, but i wont bother too much since u said it was ur first plugin
d;spigot Bukkit#getplayer
@Nullable
public static Player getPlayer(@NotNull UUID id)```
Gets the player with the given UUID.
a player object if one was found, null otherwise
id - UUID of the player to retrieve
Ah ok thx
aaaaaaaaaaaaaaaaaaaaaaaaaaaaa
You are welcome to tell me. If it is too much also gladly by dm
okay
How should I solve this differently?
line 13 - do getString, not cast to string
then below that
use a switch - ill give example, 1 sec
or actually just do this:
No I know how to use that
use a try and catch with BarColor.valueOf
I will try tomorrow
GetBukkit's not illegal. The DMCA doesn't apply because they are an independent 3rd party providing a download to jars compiled with BT (at least what I've been told by a GB mod)
Even better
Optional<BarColor> optional = Enums.getIfPresent(BarColor.class, color.toUpperCase())
Will be empty if invalid
They are still distributing the vanilla server therefore it's illegal
If distributing a jar compiled with BT was legal spigot would do it instead of actually giving the buildtool
Im making a program where you select a shape, enter the dimensions and then it tells you the area. I want it to be easy to add new shapes, whats the best way to do this
Just allow for triangles and hexagons
And Gabriel's Horn
what
it needs to allow at least circle rectangle and triangle
even if its not easy to add new shpaes whats the best way to handle this
This is what i wantm y layout to look like
Love it. https://i.imgur.com/Ym6wgPk.png
why give some info like why or what to use instead
Maybe it's decompiled?
but usually decompiling works for messages as well
Decompiled code looks like that for deprecated stuff
hmm
Unless you have the sources jar yeah gl lol
oh I see. I didn't know that
Mm would they be just regular polygons of N sides or other things too?
What do you mean by best way to handle it? Like best way to add a new shape image, best way to add a new formula?
best way to handle the form where you input the dimensions
since each shape will need different parameters
What language is this?
visual basic lmao
Oh I'm not sure how that works
What do you mean by "dimensions" btw? Like actual spacial dimensions? Like, I can define a cube and you project it?
Or what?
I'm assuming you store the formula somewhere, I would store the amount of numbers that need to be inputted in the formula.
only considering square, circle and triangle for now, like how long each side is
Oh
Well, picture this, imagine a circle and you "lie" N points evenly spaced on the circle (N being the # of sides) you do some sine and cosine funcs to get the coords based on the angle, then you join those sequentially with straight lines
I can't give an example because a) idk VB and b) I'm not on my computer rn so yeah
If someone can explain it better π
Like for example a square has 4 sides, lay 4 points evenly spaced on a circle and join them you have the square, that's the idea
My idea at least
what
You would probably also have to have a way to set the distance from the center of the "circle" that each point needs to be, depending on the amount of sides.
When new shapes are added, are you providing the image through the code, or the person adds the image themself?
how does that help me calculate the area
Like i know the formulas to calculate the areas for the shpae
I just dont know how to modify the second form to show the correctr input fields, and i dont know the best way to handle that
Is the person adding the formula themself?
no
Or are you calculating it based on the shape inputted
lets just pretend theres only 3 shapes for now
square, circle, and triangle
User clicks on one of these, a form is displayed where they can input the necessary side lengths
then it tells them the area of that shape
Idk how visual basic works, but in Java you could have variables like sideOne, sideTwo, and the formula would be:
sideOne * sideTwo, and when the person inputs the numbers the variables are set to the values.
And once both are set, then multiply and show the area
yeah but how do i know what input boxes i need to show
since square will be different to circle and traingle
Like the amount of input boxes?
because they're clicking on a square?
and not a circle
if they click on a square, show the square inputs
Anyone know how I can whitelist certain mods in my server but just donβt allow a person using a mod not in the whilelist in the server? I just want to allow mods like minimaps and optifine in the server. But ban exploit type mods like that auto building mod or the inventory rollback mod. @ me if you know how please and thank you
inventory rollback mod?
what's that supposed to mean π
I don't think mods can change their inventory (unless it's on the server too), or else hacked clients would be OP
@hot hull Ping me later to remind me to add the removeNbt method
=remindme in 5 hours "Remind frosty to remind matt to add removeNbt method"
Remind frosty to remind matt to add removeNbt method
=remindme in 5 hours "Remind blitz to remind frosty to remind matt to add removeNbt method"
You've hit the maximum amount of active reminders for your tier!
You can currently only have 1 active.
=remindme in 5 hours "Remind blitz to remind frosty to remind matt to add removeNbt method"
Remind blitz to remind frosty to remind matt to add removeNbt method
Iβve seen people using it to dupe on multiplayer servers. They basically have a book & quill that saves their inventory and they can put the items in chest then after a relog they have their items in the chest and in their inventory basically duping it, but besides that, would you happen to know a way to whitelist mods?
@ocean quartz wakey wakey
Can y'all fix your sleep schedules already goddamn it, it's 8:30, 7:30 for y'all, stop slacking
@ocean quartz β€οΈ https://github.com/TriumphTeam/gui/pull/12
Why is this deprecated??
huh?
Yeah definitely
@obtuse gale how do u make it so the popup terminal thingo doesn't cover the sidebar?
ayy finally fixed the nbt stuffo
Spot the issue
