#dev-general
1 messages · Page 334 of 1
Just sharing the average day of an open source developer.
#benawad
Checkout my side projects:
https://dogehouse.tv/
If you're into cooking: https://www.mysaffronapp.com/
Join the Discord: https://discord.gg/Vehs99V
Patreon: https://www.patreon.com/benawad
Follow Me Online Here:
Twitter: https://twitter.com/benawad
Tik...
Open source
🙂
the decompiled code is pretty much unreadable
no one can steal ur code if its already out there
Even still, determined people can put any of that back together
mhm
the minecraft client and server were obfuscated and people still managed to figure out entirely how they worked
java omegalul
Because we're selling the product. If someone can just decompile it, remove the making-sure-you-bought-this bit of the code base and/or just straight up copy it, thats not ideal
yeah good luck stopping that with java
Nothing much you can do about that, But considering your project worth selling is comparatively large, putting it back together is going to be too big of a task from just decompiled code
Just write it in Skript and use Skrambler?
C
yeah native has a few more options
but C bad
haskell deobfuscator 🙂
Kinda sucks but if there's nothing I can do then eh.
Even those can be decompiled into readable forms I believe?
probably to a degree
obfuscate if u wanna make it harder
it's a lot harder
but thats probs the best u got
Yea I remember some people giving us the decompiled source of some c++ ndk source
just use some obscure language that no ones knows about then they wont be able to read it
e
who needs obfuscators in that place
The other option is making a web ui and selling access to it while running the app on our own servers, but uh, that might get a bit resource intensive if enough people decide they wanna use it
make it scalable?
What exactly is the application?
dockerize it 🙂
If you want to secure your algorithmn you can have that specific part handled by a web server
A massive mix of a bunch of different random crap that somehow works together and makes a functional product
Ussually not worth it, but thats a last resort
Thats pretty vague
What domain does it come in?
if its subscription based u could handle it on your own servers
you could just charge for the resource they use
use docker k8 rabbitmq elixir and azure 🙂
Web scraping, bots, that sort of thing
And what part of that do you want to make sure to secure?
Well preferably all of it since its bundled under one jar, but I guess the most critical part would be just a couple of classes that handle identifying fields and matching them to a bunch of different data
Yea the only actual way to hide those would be to execute those elsewhere but I'd still argue you dont need to worry about this much.
There will always be leakers and crackers
hey guess what guys
What is the end goal for this? Is it MC related or outside?
Only thing you'd achieve by trying to make this more secure is less performance
meaning it works with most worlds now
Nice work Bardy.
oh hey, you wanna come and try it out?
Nothing to do with mc
Nice one Bardy, you just need to write some docs now
or in fact, anyone for that matter
Maybe another time. I don't have my normal setup at the moment.
fair enough lol
actually may have just discovered another bug with namespaced key conversions lol
working worlds?
chunks loading quite far? (won't load across regions yet but in my testing, they load up to 10 away from the centre chunk, possibly more but untested)
how intensive is serializing / deserializing json shit from gson?
Gson is very fast, and it's very lightweight
it uses reflection though, so it could be faster
that's why kotlinx.serialization and Moshi are so fast, because they don't use reflection
👍
reflection isn't that slow
unless you register your own TypeAdapter lol
ofc it will use "some" to check the type but that's about it
yeah it's not, but it's still slower than just calling methods
meh
unless you're doing thousands of calls in a short span of time you're not going to notice it
Not sure there's much difference once you've done the resolution
and when milliseconds seems to be what people care about in benchmarks, it's a decent enough hit that it's noticeable
also gotta figure out why these sections seem to be skipped at some point, but ya know
github/github
I'm free o/
DIBS ON MATT
Thought we were talking about killing
man this is bullshit, two projects, same license file name, exact same contents, one is detected, one isn't
what the fuck
legit the only difference at this point is the branch name
master v main
maybe it only searches the master branch. idk. this is a joke. I got no idea how it works xD
it's actually the one with main branch that shows fine lol
yes, the channel you sent that to
no you're wrong
prove me wrong
:wat:
nvm that
do you?
intellij's git stuff is acting up for me
i added a bunch of files like build.gradle to the .gitignore but they're still being commited
do i have to do some weird intellij setting witchcraft to make them show up as untracked
git rm --cached build.gradle
git commit -m "die gradle, die!"
I mean I don't see why you'd want to ignore build.gradle tho 
ooooo that seemed to work
ah well it's a temporary measure until i figure out how to not store my repo password in plaintext in the build.gradle
😂
lmao
that seemed to do the trick, ty fefo ❤️
Now I gotta find the repo and steal yo password!!
nuuuuuuuuu
Is 20+ classes a lot?
I'm just working for a server, and I'm just jumbling everything into one plugin lol
is that good or bad?
Not even close to being finished
49?
👀
but is jumbling everything together a bad or good idea?
or should I keep it in separate plugins
If it's well organized there shouldn't be any issue
is this good or bad
so far
i should probably rename Constants
Util 😬
@jovial warren Found out there is a Krypton project that is Minecraft related https://github.com/astei/krypton
uhhhhhhh
not kotlin tho 😩
Sad 😩
What should I do if I want to have the same data (List<UUID>) for multiple plugsin
Data will need to be accessed frequently ( block break event and chat event )
Probably a common api?
lmao
Hey smart people, we are a 4 developers at our company and our lead dev decided to make the switch from bitbucket to github. He moved all our repos over and invited us to contribute to each repo individually. As far as I can tell from the pricing page, we could just create an organization, right? Or does that require everyone to have a Pro account? Am I overseeing some features that one would need to pay for if we created an organization?
we could just create an organization, right
yes
you don't need pro
@quiet depot I remember your name. You are the one who promised to tag me once their "fancy database manager in docdex" is finished 😤😠🤬
thanks, that's what I thought 😄 it's also not that he doesn't want to pay for github, he's just lazy and doesn't want to spent too much time on this kinda stuff for now, just figures it might save time if we just created one 💁♀️
I didn't break my promise
I gave up on the fancy database manager
was too hard
ended up on something else which was still effective, albeit a bit more manual
PiggyPiglet added "help wanted" label on 27 Dec 2020
🥺
Why is there no click event that could run a method instead of a command 🙄 or at least a console command ffs
oh wow
oh well, I ain't changing the name again
also, that name origin is really good
since Krypton is more of a "behind the scenes" project
doesn't DC Comics have some rights for the Krypton name?
probably, but my ass does it cover software
🤷♂️
yeah it doesn't cover software
entertainment services in the nature of live-action, dramatic comedy television series; production of live-action, dramatic comedy television series; providing information, non-downloadable images, and non-downloadable videos in the field of television programs and entertainment via a global computer network; entertainment services in the nature...
well trademark it urself in software
lol
could do, but not really worth it
it'd cost too much money I think
and especially for a project that's not after a return of investments
I don't think DC would be interested in trying to get money out of a guy making an open-source Minecraft server on GitHub lol
it's only £100 in the UK man
they're more interested in competitors trying to make money from something they have copyright over
nvm its £200
that's a decent amount of money considering it's highly unlikely I'll make that back
and that it won't achieve anything either
mhm fair
Krypton is all about copyleft not copyright
the exact reason why it's licensed under MIT, one of the most permissive open-source licenses there is
stonks

oh also, @hot hull, I just noticed
https://github.com/op65n/TerrainGenerator/ is archived
is it now https://github.com/op65n/Op65nTerrain ?
also, god damn it, you forgot your .gitignore smh
Yea it's the second one now
wait wtf is https://github.com/op65n/Op65nTerrain/blob/master/common/src/main/.gitignore doing there?
Don't question it
well I'm going to question why .gitignore is in src/main lol
Ask Yugi

oh btw, just out of curiosity, is there anything that anyone here would like to see next in Krypton?
I was thinking of adding support for animations next but I'm not sure

oh wow, this isn't that bad
It's bad
it's not that good either, but at least it's something
Krypton's gonna have something better though xD
I think the most annoying part of Krypton is gonna be designing and implementing a concise yet versatile API
well that was easy
what isn't so easy though is block breaking
since it seems to be the server's responsibility to calculate how much the block has been broken
Hi I can’t add several items to my GUI menu and I don’t understand why
nah you're fine
Is there a some kind of parkour modification for your client?
That jumps predicts if you reach the end of an block?
@obtuse pulsar rip fps
Room kinda 🔥
not bad
rip my plugin takes about 50-60 seconds to build bc its so big 🥲
🥲
Elara Build Tool should fix that
correct
50-60 seconds tho?
0.1s even for a massive project
yea!
ye
lol
gradle deamon was already started too
i can build it again if u dont believe me 
xD
Sure, try again
That should take way less time
🤷
does having mc open and other servers to test and also having a bad computer factor in 👀
Yea probably
How? Your plugin is a lot smaller than mine and mine takes less than a second
less than a second 👀
i should get a better pc
My plugin literally
- Downloads 10 dependencies. It checks beforehand.
- Relocates the dependencies to the correct paths
- Loads them into the classpath
- Checks for whether a C++ library exists
- If it doesn't, install the proper archive with the binaries
- Extract the binaries recursively
- Find the /plugins folder inside the binaries using more recursion
- Set the VLC path for the plugins folder to that
- Use JNA to load the proper native libraries
all of that
takes less than 2 seconds
and urs take
a whole minute?
are you writing unoptimized code
uh
lmao
idk
ah
but one is 21 megs
Anyone else here a SIMP?
but its still very quick
no
Mine seems to take around 5-6 seconds, might be from annotation processors and stuff ig
You 
So you aren't a Super Intense Minecraft Player, sucks to be y'all
I am I am!
I promise!
Squirrels In My Pants?
:gottem:
heh
Phineas and Ferb reference 🥲
nah man
Damn
am i the only one that has a debug server that takes ages to start
I thought dkim was, with his insane dog bridging and claps per second!
i think its just ur pc
just u
-_-
omgomg dont forget he has his ultra god side diagnoal speed bridge
he gets like 0 kilobytes too!!!
today i 1v1ed efefury and i wonn!!! :))
Hah "you"
How old dkim is is how old Minecraft 1.8 is :)
lol
I am as old as Java
I would if I had any
Aren't they all from Playrix?
🥲
:kekw:
oh wait yea xD
WTF
HOW
Yeah xD
😢
.
.
.
what starts with p and ends with enis
penisland
enisp
Polyphaenis
being what exactly Pulse?
ah
I mean what would you think other than a genus of moths of the family Noctuidae
legit
ur mom
I d||id|| g||et|| a f||un|| in it
:concern:

@prisma wave New language to circle jerk? https://en.wikipedia.org/wiki/Tcl
Tcl (pronounced "tickle" or as an initialism) is a high-level, general-purpose, interpreted, dynamic programming language. It was designed with the goal of being very simple but powerful. Tcl casts everything into the mold of a command, even programming constructs like variable assignment and procedure definition. Tcl supports multiple programmi...
proc set'contains {set el} {expr {[lsearch -exact $set $el]>=0}}
e.g. {set'contains {A B C} A} -> 1
e.g. {set'contains {A B C} D} -> 0
proc set'add {_set args} {
upvar 1 $_set set
foreach el $args {
if {![set'contains $set $el]} {lappend set $el}
}
set set
}
tickle
how do i add an existing project to a an existing github repo?
yes
git remote add <name> <url>?
https://www.caucho.com/resin-3.1/doc/quercus.xtp
This is neat
git add --all
"Let's throw a bunch of random names and characters and call it a language"
how do i know what files i just added?
oh wait
it added all the other files
that was in like the build folder
and stuff
--all
all
except the ones in .gitignore
it was in gitignore
Big brain
all files in gitignore
what cmd
How did the first humans come up with the idea of a language without a language 😮
Huh?
what do I do with --all
Was answering your question lol
They ooga booga'ed them into existance
It should list the added files
what command do i run
😂
nope it says unknown command
huh?
what cmd do i run
yes
What?
but how do i see the files i added
It's all xD
It lists the files that were added xD
now everythings green
Because it added everything
Yea
yeah that's bad
Everything except whts in your gitignore ofc
how do i add everything besides stuff in gitignore
never push those
That's what "all" means
this is my gitignore: ```
/build/
/.gradle/
/.idea/
IntelliJ won't let you add things that are in .gitignore
--all respects gitignore
but-
or just git add .
it added everything in gitignore
is your .gitignore named .gitignore or gitignore?
.gitignore
git status
That's why you use GitKraken
is plugin a module?
yes
yeah you're gonna need that in ignore too
fatal: No pathspec was given. Which files should I remove?
/build/ matches the directory build in the root, and that's it
wait what
i thought all stuff i put in gitignore
is ignored
not the opposite
yeah it is
???
The /build/ path is diff from /plugin/build/
it won't search your files for any folders named build and yeet them
**/build/ should do the trick, right?
also that cmd doesn't work
and idk how to do all files
all doesn't work
git rm --cached -r ./
^
git reset --soft HEAD~1
or that
you know, if you are that worried, you could just literally make a new patch list in intellij and drag your unnecessary files there
and dont commit/push that patch
ok now my intellij froze
and then update your gitignore
:kekw:
alr its back
shitty pc
yayyy
lol
Or use GitKraken 
it works 🙂
imagine not using cmd
Or use Elaragit
GitKraken bad CMD good
anyone who doesn't use Git on the command line is a fake developer xD
We can agree to disagree
And what makes you say that?
why is this taking so long
git add . is so much easier than manually selecting the files you need
what happens if i press cancel to the code analysis thing
bc this thing is taking ages
it has to go through every single line of every single file in your project and analyse it
and now my intellij isn't responding
that's why
Ah yes it's so hard
fair enough I guess
Using the mouse is slow af
||me whos still waiting for code analysis to finish||
||me who couldn't care less||
I can guarantee you that if you want to commit only specific files GUI will be miles faster than cmd
maybe
Like fr for example the main reason I don't use the LP web editor is because there is little to no (and kinda wonky) keyboard shortcuts support
I use LP editor for bulk update tasks where it's much easier for me to click than type
i only use lp web editor when making huge changes
When I had to use AutoCAD I bought a whole new numpad, set up AHK & intercept just because clicking around was too slow (and the actual shortcuts were like alt + ctrl + shift + e + f etc lol)
but I've seen people use editor for literally a single fucking change and I'm like that's one command, it's not hard
That doesn't apply to gitkraken though, it has all sorts of keybindings
nah
lol
For real recommended setup 10/10 seriously
That made using ACAD oh so much faster
There was not a single key in that numpad keyboard I didn't use
lp editor is an oof
the only way I can interact with luckperms is via import files
anything else takes too long
Chrome back at it again eating up ram 💀
woooooooooow
I found out that Java not only has the static initializer block
static {
}
which I already knew, but it has a non-static/instance initializer block as well
{
}
amazing

How ew is this https://paste.helpch.at/uwadotozom.java
Not a fan of having to cast, but oh well
Functional interface abuse
Could not care less 
might be better to have 1 event per class and in a normal method
"in a normal method" ?
Without the lambdas
Actually wait
You already dont need lambdas with some modifications
Just use a normal method that takes the event and returns boolean
Then just instance::method
Makes it more flexible
By not forcing the interaction of a functional interface to the caller
mhm
#816184744797929522 lol
“code me hypixel gamemode for $50”
I think that’s even an issue in google error prone
Hey dkim19375,
Safety Jim here! It appears that the token for your bot, CoolBot has been posted to the internet. Luckily, our token-scanning gremlins noticed, and have reset your bot's token - hopefully before anyone could have maliciously used it!
How is discord so fast?!
it literally sent that less than a second i pushed
Maybe some webhook
token-scanning gremlins
lol
how do i make it so that my minecraft server doesn't crash when i join
get a better pc
There something blocking the server thread on your join listeners
hm
theres no way to show timings tho
bc i have to wait 5 minutes
or else it won't show timings
3 minutes*
Show us your join listener, and also #development
1 sec
Alright
for some reason I can run cmds from console (and it says 20 tps)... but client is messed up
i finished that plugin
I was guessing from the log
Because the server thread is blocked...
That might be something to consider fixing tho xD
honey! it's 8 am. time to create your if factory
https://twitter.com/unclebobmartin/status/1368072885949116418
@rajkbnp Place the if/else cases in a factory object that creates a polymorphic object for each variant. Create the factory in ‘main’ and pass it into your app. That will ensure that the if/else chain occurs only once.
242
bingo
oops i meant to reply to this message
use Krypton xD
xD
would if i could :oof:
you can lol
just download the JAR, give it a world, set the world name in the config to the name of the world folder and bam
Creating a game with unity (First game)
and when I start the game the player (Cube) automatically starts moving forward ;-; What do I do?
(Code below)
public class Movement : MonoBehaviour {
public Rigidbody rb;
public float forwardForce = 500f;
public float sidewaysForce = 500f;
void Start()
{
}
void Update()
{
rb.AddForce(0, 0, forwardForce * Time.deltaTime);
if (Input.GetKey("d"))
{
rb.AddForce(sidewaysForce * Time.deltaTime, 0, 0);
}
if (Input.GetKey("w"))
{
rb.AddForce(forwardForce * Time.deltaTime, 0, 0);
}
if (Input.GetKey("a"))
{
rb.AddForce(-sidewaysForce * Time.deltaTime, 0, 0);
}
}
}```
rb.AddForce(0, 0, forwardForce * Time.deltaTime);
Didn't work
also plz #development next time
how do I make a script 👀
get a bigger SD card
good god what do you have on the poor thing
idk
i barely used it
uh
ill delete my downloads folder
hopefully nothing important in there
lol
😮
4.0gb available
just from deleting downloads folder
69% of my storage is used
i can't believe my downloads folder was 3.1gb lol
man why is Player.Spigot#sendMessage deprecated in paper 1.16.5
Adventure
^
funny thing is I changed it in my core then had to scratch my head for another 2 hours to see why it doesn't work on my server. The server was on a bit older version of Paper... I had to update to latest
UOE?
Kotline or Java ?
unsupported operation exception
idk if anythings overriding it, so it probably doesnt ingame
kotlin 🙂
f# tho
is there any tutorial / resources about how to develop or design a gamemode across multiple servers? Like how hypixel did with their skyblock
Does anyone know how hard computer science essential ap is?
im thinking about taking it
Hmm redis is handy that’s all I can say
Use lettuce as a lib
jedis doesn’t support multithreading iirc
Anyways redis will fix communication between servers and caching stuff
Im a bit worried about sending players between servers when they change worlds, like, wont that cause latency problems?
Probably
hey, just want some thoughts on what I've just done with Krypton
I've made PacketHandler no longer be a god object and just, well, handle packets
added a SessionManager for, well, managing sessions
and Session is now basically just a data class
Bardy the big brain xD
is there anyway i can customized the default scrollbar for my website or should i wrap everything in a div and make the div scrollable
?
and then customize the divs scrollbar
you can customize it
pretty sure they're even explained on w3schools. Just search how to customize scrollbar css w3schools or something
most of the time they do indeed
Windows
^
if u play a lot of games just stay on windows prob
or both I guess
I use windows cuz of ui
yea u can dualboot, still pretty inconvenient
I use windows because I can't be bothered to learn all those commands. I know linux has UI as well but still
if you're going to switch to linux
why use the UI? xD
when cli is a thing
UI?
user interface
Can we all appreciate the code style md_5 uses?
what the fuck

:md5:
myep
is that more than 1 space?
nah it's one
looks like 1 to me
The one developer in HC who uses that formatting shall not be named
does it start with an a
hmm or maybe they should be named
starts with an n and end with an 3w0k
oh
I think I had enough development for my entire life tho. Time to switch careers
I wonder if they still have a free post as a homeless
man, kyori spoiled me
Will anything bad happen if I press Cancel?
dkim you already asked this question today
yes
intellij will stop performing a code analysis
it will crash your windows
very bad
the fact that bungee chat api components are mutable makes me want to vomit
;-;
and then you'll win $1 Mil
oh can u link to answer
but then you'll lose 5
how do I port forward 25565
@steel heart ;-;
mineraft?
xD
lol
love it
perfectly balanced
your message has been placed in a queue
Like all things should be
🥲
your message queue has been placed in a queue
your message queue has been placed in a queue
your (message queue) queue has been placed in a queue
Okay you want it,
(your ((message queue) queue) queue has been placed in a queue) has been placed in a queue
your ((your ((message queue) queue) queue has been placed in a queue) has been placed in a queue) queue has been placed in a queue
COC someone?
how big?
Im having a headache from working on this
oh I forgot a K
oh fuck you
Give me dev role and will play
(your (your (message (queue (queue (queue (has (been (placed (in (a (queue (has (been (placed (in (a (queue (queue (has (been (placed (in (a (queue))))))))))))))))))))))))
@old wyvern @steel heart @half harness @obtuse gale @onyx loom @ocean quartz @hot hull @prisma wave @jovial warren @stuck harbor @forest pecan wanna join?
uh
Staff abuse
link's here
ah
lol
halp
ill join if its a good mode
I cant COC I'm too busy sleeping
link here
since im a little busy rn
Reverse shortest pls
ew
ew
ew
Lol
I shall not! You have fallen prey to the slumber
Code vim with vim
Fancy!
who did I not ping?
@static zealot
I must've forgotten someone
ive never done a coc before
how does it work

mhm u can do multiple cocks
You forgot matt as well
wait
But hes probs asleep
I did matt
so what do i do
he coc'ed matt
we wait xD
and then when it starts we get a task
and you select the language you want to do it in
Kotlin
o o o i wanna do it in russian
Cyka Blyat!!!
shortest = you have to have the least chars, fastest = finish it the fastest
and revers you don't actually get instructions
you have to figure it out yourself
Fastest is gae
its reverse rn
literally iwanio
lol
Lmao
this is actually hard for me to understand
BM what you doing?
you're not batman
we can see you
i am batman
is it something to do with ascii?
Still trying to figure it out
maybe not
||Multiply||
||Mod||
||Char||
no idea what that even means lmao
Sounds like an item rarity tier
putStrLn $ [chr $ (a * b `mod` 26) + ord 'a']
?
Haskell doesnt have that operator
F
Share code senseiju
lmaoo
what did you do lol
wow xD
gg
well sensei's code almost makes sense
I don't actually understand what's meant to do
its just ((a*b % 26) + 'a')
I know that
u do remainder of how many chars in alphabet
then just index in the alphabnet
but i should of used chararray
alphabet
not make my own alphabet
((a*b % 26) + 'a')
how does that work tho, does a get converted to some numbers n shit?
ascii
and then just add the offset essentially
char is one of the numerical datatypes
'a' casted to an int could give you the ascii value of it
hi
hi
It should be noted that java supports more than just ascii
So not every char cast gives you an ascii index
YEAH
I COC'ed
GG
i was confused at the start when i had to make my own lists
i was tryna find on the screen the premade lists
-_-
lol
lmao
By god
this is a disgrace
xD
i would have finished like 4 minutes earlier if i had realized they dont provide the lists of words
😦
i was clicking so many random ass buttons
something's really wrong with this https://i.imgur.com/6SRK7XY.png
tf is playin
can we do another coc
ye I'll start one
start
@prisma wave @winter iron @half harness
@onyx loom
hello
coc
join my coc
nah
😮
blitz do be horny
Lmfao
if auto complete on coc was like intellij
its done out
im running these challenges in under 30 seconds
flat
scratch file 🙂
What did the stef guy do xD
Maybe we could have coc in NetBeans
is there a way to integrate coc with intellij?
Normally i copy it to IJ and test it there because of that
who knows man
Piggy was maybe gonna do that
but #off-topic aint looking so good rn
hes being bullied in vc lol
and that
The field, constructor or member 'Item' is not defined. ???
i dont have a field called that
yea
Can you show us what your soln? I assume this is something implicit
lol
ahh
bye
I remember a game which is popular that has been like this in code:
color = RED
} else if (choice == 2) {
color = YELLOW
} else if (choice == 3) {
color = CYAN
} else {
color = NONE
}```
It's still popular though
Let me introduce you to ... https://paste.helpch.at/fataluniwo.cs
well it could've been worse. It could've been my code
why
Lol
🥲