#dev-general
1 messages · Page 420 of 1
I’d never used mongo or even looked at it properly prior to docdex
okay now to come up with a cool idea that uses mongo
i believe mongo is used whenever you have to store a lot of data
I mean, same as RDBs
Make a replay system, serialize the server every tick 
yeah so they store lots of interconnected data
There's your data
ah Isee
even with this in mind, you’re still meant to use a consistent schematic in mongo
although you don’t have to
yeah I presumed so
isn't the selling point of mongo it's flexibility
though surely Mongo is very good at serializing/deserializing objects quite easily right?
since it's JSON and all that
it's great for json
cause mapping an object to a SQL database is kinda funky
it also has a great capacity to search through string values
so if you want to pattern match or look for keywords
it's nice for that, i think
I mean since it’s json it’s naturally going to be easier to convert to ur objects
mongo has a java lib for it
awe yeah I knew it
there’s like 2 mongo livs
libs
one is a full on orm iirc and the other is a bit more manual
I went the more manual route
is there an advantage to that?
dunno
true developers use documents instead of classes everywhere in their app, so that they never have to mess around with converting them when inserting to mongodb 😎
I went the manual route because i wanted to create my own orm
wait no that was for the mysql bit not mongo
idk why I went manual, can’t remember
lol
i feel like it'd be more exciting to use docker than to use mongo in a project
if you're just making a project for the sake of using one of those
well if you're using docker
redis
go all the way and use k8s
k8s orchestrates
I don't really know much about kubernetes or docker
you can use redis to have communication between different instances of the app for communication I think
redis is also a cache so you can try use that functionality
k8s gives you easy access to actually deploy and manipulate launched docker containers
docker alone can't exactly do much programatically
oh I see they're a combo
ye
btw if you’re getting into docker
would like to introduce you to lemmotresto, our chief docker expert
😮
oooh!
I presume so. It's the language I am most comfortable with by far
Though I strive everyday to get better at Kotlin lol
you can try making artifacts and pushing them to a maven repo
not that it's much to do with the actual project but
wow why do I know nothing lol
github actions yucky
but that's not self-hosted :(
^
well that's not strictly true
You can host your own runners and customize the environment used to run jobs in your GitHub Actions workflows.
well there's no reason to self host runners
you can just use the provided ones at that point
dangerous to host your own?
yeah
ah makes sense
it's because people can execute code in your runner via pull requests on public repos
it runs your runner on other people's forks?
are there settings to prevent pull requests being run?
no but if you have a workflow that checks prs, when they pr back to your main repo, the workflow will execute using your runner
yes ivan you can simply not have a workflow for prs
ah
You can host your own runners and customize the environment used to run jobs in your GitHub Actions workflows.
do you have a vps capable of running a repo and jenkins star?
i mean I have free credits lol
record class?
because i have never used either but also feel that i should start on that soon
well they're both CI, so presumably they're quite similar
don't think they're similar at all
use wise
sure they can produce the same results but to get to that stage, the process is completely different
wait records are java 16 or 15?
15
Why does it not exist then
try 16
lmao
bruh what, yea I have it set to 15
you might have to enable preview features or something
ah it's 16 language level
sheesh just found out why the initial perlin method didn't work
forgot a /2
@hot hull @quiet depot for reference 👀 https://advancedweb.hu/a-categorized-list-of-all-java-and-jvm-features-since-jdk-8-to-16/
That's quite an awesome way of putting everything
No
It's 9am
It's almost 4 am and I'm going nowhere
Maybe
Probably
But I don't care enough about my health anyway
sleep is for the weak
@obtuse gale they're missing the only jep that matters
the only jep that ever mattered
enhanced class redefinition
oh what's that one about
Yo that seems v cool
Too bad it says
Status Closed / Withdrawn
lol
yeah 😦
is that not what you had before
oh it seems very similar
from my cursory glance lol
did you guys know Oracle makes restaurant POS and KDS systems?
What kind of player data?
Sure
No, the second part are the return types
pog
now that's pretty good Frosty!
uuid -> location[]
made them all y 1 cause I need my fps lmao
i mean flat file
efe, what area of coding you looking at, as in what kind of things are you willing to code
Oh I mean, SQL if you know how to use it works nicely
I guess MongoDB maybe?
There's a lot of storage solutions lol
If you're desperate, you could use a yaml config
but thats 😬
pathfinding?
ooh A* is really cool!
forget hypixel exists, thank you
but the dev blogs are so cool!
oh my god
that's almost as many hours as I have in Garry's Mod
I think you're an addict efe
I still don't get why this fucks the fps so much
i mean i skip class to sleep sometimes
though im in uni and attendance is not mandatory
yeah im just storing it temp, and mysql is giving me a hard time
follow any JDBC tutorials?
If you don't need persistency, why use a db
though if you already have the SQL written, consider SQLite! A flatfile that uses SQL
i mean, it's versus other players
though 99% of gamemodes are
that's uh, kinda what tends to make multiplayer games fun lol
then only support 1.16
problem solved
then cps doesn't matter? lmao
well you're not gonna get far by avoiding the biggest part of this game lol
hypixel players?
I was gonna "cache" values for this renderer, but I don't think that'll fix any of my fps issues, anyone got any recommendations for a java 3d rendering lib
oh I didn't even realize there was other data besides the yellow haha
second highest being hypixel china?
use raw OpenGL and C++ 😉
Star, my lack of brain cells might get in the way of that
Hypixel china doesn't exist anymore btw
SFML kinda cute tho
Wrong reply
wrong reply lol
Smh
@Deprecated
void sendBlockChange(@NotNull Location loc, @NotNull Material material, byte data)```
Magic value
Send a block change. This fakes a block change packet for a user at a certain location. This will not actually change the world in any way.
loc - The location of the changed block
material - The new block
data - The block data
wanna link code Star
my poing?
Yes Star
poing!
void sendBlockChange(Location loc, BlockData block)
that's not deprecated
the args you have is
it's a block
public enum Material
extends Enum<Material>
implements Keyed```
Material has 1 extensions, 1 implementations, 28 methods, 5 all implementations, and 1542 fields.
An enum of all material IDs accepted by the official server and client
no not maerial
and no it extends an Enum
of itself as the type
generics go brrr
it means it gets to override the Enum class methods?
as far as I can tell
awe nice level 34
cause it's a generic
you gotta specify what type
make bedwars
the gauntlet of every true hypixel player
make a better one than dkim
that'll prove you're a good coder
wtf ew
skywars sucks
bedwars is where it's at
yikes
Why would you need nms
to uh
net the minecraft server or whatever
that's uh, kinda static abuse?
just do DI
uih
for what
No
yeah probably
What does it actually include?
considering constructors are things you put in classes to make instances of them lol
core seems more like a module bame
What part do you consider that?
GameObjects?
Events?
Then decide that first
oof
Yugi really telling you to map out your whole plugin shcema
oh yikes
you'll need some multiworld shit going on
dis is not static abuse
If it contains the main game entry points, a good package name would just be game
ur not abusing static by doing that
well DI is better, certainly?
doesn't really make a difference for your javaplugin instance imo
correction: efe vaguely throwing out ideas for an actual good plugin
star generally yes, di is better
but in this very specific case there's not much reason to use di over a static instance getter
especially when using a static getter is so much easier
saves you a line in every class
But even so? Wouldn’t it be a more unit testable approach (yea you probably also need MockBukkit)
uh
I mean are you actually gonna check the status?
usually you just log if it fails
I’d wrap the if statement with curly braces efe but else I guess nice
Oh so in principle that variable may be -1 or 1?
If that’s the case maybe a boolean is better suited
ok
so what about boolean
yeahj
efe you literally read a boolean from your config
why would you not assign it to a boolean
lel
Collections size cant be lower than 0
also turns out it's a boolean lol
Idk if any other dev does this but I use enums with 2 elements/constants instead of boolean many times.
that uh, sounds like a waste unless you plan on adding more options down the road?
Its more cause of readability
is your boolean name not readable?
:))

Not that specifically, but I do often make enums with only 2 constants because adding stuff in the future
then I go and use a switch on it
and ij has a little rant at me saying I should use an if
So if I have an arena for an event (50x100 blocks or smth) with 40+ players there, is there any way to lower the impact to the client and/or server that many players in a single area will have?
what kind of event is it?
Was thinking about making them semi transparent
can't see that changing anything
do all players need to see each other?
you could just make it so they can only see a limited amount of people
don't think 40 players is going to stress the client much though?
Hmm, how would this be achieved?
i mean, LOS detection sounds like the easiest one
obviously packet editing is required
Los?
line of sight
though to render only a certain number of players will require a reason for hiding them
so if you only want like the 5 nearest players, might be worth it to give them like blindness or something
Maybe you could use something like potion effects 
it still sends packets, which would still stress connections
Minecraft /teams command maybe
Or would that also send packets even tho you’d essentially hide players
Hmm yeah I don’t remember tbf
hmmm yeah seems like you're gonna need to get some packet stuff to stop packets from being sent
Wont LOS require a constant check?
i mean, you can do like every few ticks
and it's just some maths
i dunno, it's what video game renderers do lol
I don't see why you would have a single server mode boolean when you could just set max-games to 1
gameLimit = boolean ? 1 : max-games;
I thought about LOS but the problem is people can turn their heads very fast
very true, the minecraft server tick system was probably not intended for this kind of stuff
maybe just radius then?
i dunno
that's why I just recommended hiding random players
that would be so weird
you wouldn't know
i guess not, but then it's like you're not even in the same server as them
you'd see people getting attacked by nothing lol
no you wouldn't
it's all synced
you'd have groups of players that could see each other
well doesn't that defeat the purpose of having a big deathmatch?
didn't realise it was a deathmatch
It doesnt
i presumed it was im not sure
So I can split the players in groups of ten and hide each group from the others?
oh yeah that would be an excellent idea if you can do it without messing the game up
Or you could setup a party system
People in the same party can see each other
You cant see epeople from other partys
well that would work if you're not supposed to like fight random people
Oh it's pvp?
we don't know
nobody knows except Gaby
Oh
and he's writing a 5 paragraph essay right now
xD
5 paragraphs
It consist of an arena with two regions, one for O (true) and one for X (false). Players get asked a question and have like 10 seconds to go the the area for X or for O and those who choosed the wrong answer get removed from the event.
Party
yeah that took a lot longer than the amount of content I presumed there'd be lol
Im on phone su
Negative
i mean similar concept
you go to a series of blocks
instead of giving you a color, it asks you a question lol
I guess
Thi is trivia I think
well yeah then you could totally do the party thing
yeah in that case gaby, my idea would work or parties
but 10 is low
I don't think 40 would even lag your client
I work on a clan system but is not done, will implement this when it is
Will see how it goes without hiding them
is uhhhh... is this open source?
No its for the dutch server I think
oh very sad
dutch?
Yugi ..
look at the flag
Idk what that flag is
Romania?
it just shows as RO to me
basically dutch
Ye the flag works only on mobile
😂
is this for royalsaga.net?
Yes
ah very cool
||woah im gonna hack ur server kid||
Im mostly worried about the server itself @quiet depot last night we had the weekly giveall event and well .. 75 players got us down to 8tps :))
💀
this sounds like an oof
oh my god how
Switch to kronos
@quiet depot fix the timezone smh
🥲
Btw piggy
i think the problem is ubuntu here
One hour behins :((
Linux and windows times seem to conflict
Behind
gaby it's set t your timezone
yes they do
what's your timezone
The console shows the wrong time
Fixing on neither sides work
lol
🥲
you need to set one of them to use the others time
But anything related to time form the panel works
are you using arch yugi?
Manjaro
ah perfect
Gmt+2
this is a server, not a hobbyist's pc
we use real operating systems
if it's a server, you use Debian lol
ubuntu big dumb
pf
😂
no
you be hating on ubuntu but canonical is basically solely responsible for linux's popularity these days
8tps doesnt feel like 8tps but still xd
bruh
canonical bad company
same with red hat
the only purity in this world is Debian and Arch
no
scroll down to the windows thing
and it'll coordinate
gaby I'm pretty sure your timezone issue stems from the fact that your servers are all in docker containers
and they might be using their own timezones
and god that just sounds like so much effort to fix
Yugi, 
i am liking the look of that!
though make sure you do your meshes so you don't render like all bazillion of those unused sides
meh
It's ran by some lib Yugi used, and the performance is just non existant, so I mean kek
will have to be, but certainly not if it's written in java
oof my poor java boi
fps = 60;
👀
while (true) fps += fps;
damn exponential fps
it generates the entire thing every time you move, hence why it's so inefficient
need to probably cache already generated stuff
you mean double negation?
lol
Don't think I'm able to check if the block is visible with this tho to not draw it
well you can just check if it has air on a side
and add that side to the mesh
and only draw those ones
as my year 7 maths teacher said, if a bad thing happens to a bad person that's a good thing 🥲
Not how this works Star kek
But if a bad thing happening to a bad person is a good thing, its a good thing happening to the bad person which is a bad thing which is a bad thing happening to a bad person which is a good thing....
lol
Hmm do I apply for support role
On the one hand I would be able to see when dkim deletes his messages
lmao
On the other hand I wouldn't be able to shitpost in showcase anymore
I improved performance a ton, however
Super duper quality
That looks cool
Would be much faster in rust
It would be much faster in any other language
Haskell 
however I sm0ll brain so
minecraft?
Hmm
what other games are written in java lol
Uh
I guess papi would count
MC's rendering engine is written in what?
LWJGL
my brain borked
or OpenGL
yeah definitely LWJGL
Yeah
OpenGL would probably be the way to go no?
Which is just an OpenGL wrapper
Isn’t that like natively implemented (with C++ or smtng)
For what
renderer
not worth it 🙁
hmm maybe
we need the shitpost for best of helpchat
OpenGL is quite complex but yeah
cause as soon as I start adding more terrain variation, and actually scale it up it'll shit itself with this
oooh you get a lot with LWJGL
I'm sure they wouldn't mind a bit of shitposting from support staff
OpenGL, OpenCL, OpenAL, GLFW, Vulkan
It’s quite nice the way mojang actually abstracts it if you’ve worked with modding
Pog
I'll be back in a bit when I need help, kbye
it's quite interesting
you're pretty much writing C code in java
Bbcode
idk why but I thought I would apply for support lol
I mean I'm support and I support noone :dab:
gonna press a big fat X there and doubt I'm getting in but ya know, worth a go
lol
that's why they're hiring more
Blitz can only help so many people
Lol
He’s da man in the plugin help channels
bardy have fun with the random people dming and pinging u 💀
did Blitz rename himself btw?
I've had a lot more brain cells since I stopped helping people in there
turn off dm's 🧠
turn off computer 
lmao frosty same
Plugin help channels are horrendous
general plugins is pain only
Terrifying places
someone's gotta toil through the pain

some people just need it explained to them what placeholders are, ya know?
Are u fucking with me or ?
oh btw, BM, I got something for you
Hence why you shouldn’t look up my history on the server
recently went through and documented the server-side of Krypton, I want you to make sure that I've done the author tags correctly
someone found the real truth
🥲
yes new embed
I tried to base it off of the really accurately named Git Blame
Ngl I tried spring and it’s not that bad
and I say really accurately named because it tells you who to blame something on if it goes wrong lol
yeah it's really good
just blame it all on bm
https://github.com/BomBardyGamer/BardyBot I made a bot using it
it was his project
oh actually, wanna see what BM said in Krypton when I talked about the good old days when server only did a few things
I'm a professional already
pog frosty
amazing
thats epic
i heard google are hiring frosty

google is too low level for me
lol
Rust OpenGL
u might wanna take the chance with those skills
that reminds me
thinking of adding a GUI to Krypton at some point
ngl this actually looks hella nice
optional ofc, and disabled by default I think
no annoying java -jar Krypton.jar nogui
what 😂
*you're
ok buddy
java -jar Krypton.jar --idiot-mode enables the GUI 😎
👍👍👍
not worth the time bardy
i heard 0% use the gui on spigot
web control???
might add RCON for that
more like -1%
a web control panel would be very cute
could make a Pterodactyl egg
Recreating the wheel is a traditionally good idea 
Such pioneering
i bet pterodactyl isn't written in kotlin
PHP 🤢
The Daemon is in Go though 🤤
used to be in JS
go is good
Pokémon Go
"if you want to use an imperative languages, don't. If you have to use an imperative language, use Go or Rust"
- Mother Mary
dude working with JavaScript and Google's APIs made me want to go back to Java so much
Yes!
not knowing what types things are and not knowing what methods you can do to things until runtime is infuriating
Star, give elm a try, its very easy
typescript
sheesh
The compiler is much better than haskell at telling you what to do
except everything is const 🙂
we got vsync in this bish
but it doesn't give me types
Lol
Did you rewrite the rendered frost?
like the way you interact with this API is by defining 5 functions
Which API is it star?

Lmao
doing it rn Yugi
What in the
yup
that's how you gotta do it
gotta define the schema, then gotta define the data
also they use plain Objects as maps, and fields are accessed using bracket notation
A lot of it seems to be repeated
it's unique, I assure you
one of those thiccy switches is for defining the schema
and the other is for actually retrieving the data
Why not just define an object with properties for each case in a separate file
then import it
becuase
you can't in Google Apps Script
wdym?
Lemme check
it uses clasp to upload it and then it reformats it back down to shitty javascript
also this is what the like 3 tutorials I read said to do
so I just did it
That switch just feels like a complete mess
I mean I completely agree
Why wouldnt the object approach work btw?
you can't import things in Google Apps Script
Damn
also I don't really see the point
making a new object for each type is no different than having a switch
You wouldnt need to create a new object
I'd still need something to map the strings I'm given to objects
that's what you just said, no?
You would only need to write the "builder" logic once
No star
I meant keeping a singel instance of an object like a configuration
Even a json files does well
Would you be able to import json files in it?
not that I know of
I mean I need to specify types and methods for each thing
That doesn't really store well in JSON
hmm
I see what you're trying to go for in combining the switches into one
but they do separate things that can't really be combined
plus it's already done and I already got clout from it
it might be the reason I get a development internship this summer 😉
So I mean nice
Im not sure I understand
They seem to just differ in Id and names
they differ in functionality
Yeah well let me copy ur nicely written readme thank you
yeah my dad typed it up in google docs and I formatted it into Markdown lol

Man my dad does like uh well tbf Idk
Java issues
Tbf just anonymously instantiate efe lol
what if the whole world is just anonymously instantiated

for example lets take a small segment
case 'LogonTrackerVersion':
fields
.newDimension()
.setId('LogonTrackerVersion')
.setName('LogonTracker Version')
.setType(dsTypes.NUMBER);
break;
case 'ProcessTrackerStatus':
fields
.newDimension()
.setId('ProcessTrackerStatus')
.setName('ProcessTracker Status')
.setType(dsTypes.TEXT);
break;
case 'ProcessTrackerVersion':
fields
.newDimension()
.setId('ProcessTrackerVersion')
.setName('ProcessTracker Version')
.setType(dsTypes.NUMBER);
we can shift it to..
var configuration = {
'LogonTrackerVersion' : {
'id' : 'LogonTrackerVersion',
'name' : 'LogonTracker Version',
'type' : dsTypes.NUMBER,
},
'ProcessTrackerStatus' : {
'id' : 'ProcessTrackerStatus',
'name' : 'ProcessTracker Status',
'type' : dsTypes.TEXT,
},
'ProcessTrackerVersion' : {
'id' : 'ProcessTrackerVersion',
'name' : 'ProcessTracker Version',
'type' : dsTypes.NUMBER,
},
}
...
let section = configuration[fieldID]
fields
.newDimension()
.setId(section.id)
.setName(section.name)
.setType(section.type);
Would this not work?
you also need to know the metric vs dimension thing
but I mean I guess? doesn't really save too much code
The* point was to reduce the repeating part
the word case?
no the repeating builders in the cases
i mean what difference does it make
Also yea I didnt notice the metric thing
that's essentially the same thing
Shortens the use site mostly
just stored in weird javascript object map instead of copied a lil
Easier to manage
i guess?
🤷
would it eliminate the absolutely massive array I have that it iterates through?
cause that'd be interesting
oh shit wait
could I also add the other switch statement property in there somehow
oh damn this is getting interesting
wdym?
you know the other switch statement that tells it how to format it
You could probably throw in a construction function for creating the metric/dimension thing
surely I could implement that into this thiccy object?
is there any downsides to using NBT data on items?
k so now I need to draw an image of my terrain, and then update the image to the buffer
How hard can that be
wdym?
in the object thing?
i can only declare maps right?
i mean per map object
i can put functions inside of each separate one?
Yes
Yeah I mean a downside can be that it is stored persistently
Of a function in a js object?
like, combine the two switch statements like you did above for just the one
Lemme see
one ultimate class that holds all relevant information
but will it actually cause any performance issues?
I feel like it might still look weird
Maybe map it to actual functions
Gimme a moment
god yugi if you can save me you'd be a true hero
like if you can map a string key to a function
Oh yea we're back at libgdx
i bet that's possible right? javascript is really janky
If we assume they’re stored persistently that means it writes and reads IO at some point (takes some performance altho insignificant) and nevertheless can it be corrupted also
This would be the one with inline function there
can I not put it inside the other one?
Okay thank you
But id recommend writing the functions separately and just mapping there so the functions dont look horrible
wdym?
var configuration = {
'LogonTrackerVersion' : {
'id' : 'LogonTrackerVersion',
'name' : 'LogonTracker Version',
'type' : dsTypes.NUMBER,
},
'ProcessTrackerStatus' : {
'id' : 'ProcessTrackerStatus',
'name' : 'ProcessTracker Status',
'type' : dsTypes.TEXT,
},
'ProcessTrackerVersion' : {
'id' : 'ProcessTrackerVersion',
'name' : 'ProcessTracker Version',
'type' : dsTypes.NUMBER,
},```
can I not put those functions in that
Are those fiedl id's the same?
yes
Line 644
on alrighty
it is literally copy pasted
Thn just add another field to it
ohhhhhhhhhhhhh
this might be good
cause 99% of these are one liners anyways
and I can just add squiggly brackets surely?
'hostName' : (entity) => {
entity['hostname']
}
yes
You can have them be multiline
You can even use the normal function syntax
But I recommend just sticking with the lambda syntax
There might be some difference with what it captures for this tho
I dont remember well
Try that out somewhere first maybe
I think I read somewhere that the capture is different
😇
oh shoot it doesn't take the overarching boi as this?
hmmm
best way to embed the dimension vs metric?
just make a boolean and call two separate methods in the builder?
also it uses the right this as far as I can tell
Yea a factory function basically
okay so I don't know what that is
okay sick tysm
anyone know if there's an easy way to do wildcards with curl or wget? trying to make a script to download the Krypton JAR, but it's named Krypton-VERSION.jar, and there's no way for my script to be able to figure out the version without already knowing it
you can literally do wildcards in bash
I wonder if Jenkins' API allows me to query all artifacts from a build
oh probably
you want to download the latest one I presume?
try http://example.com/jenkins/job/my-job/lastBuild
dw I got this
That should be it
just call build on any parameter then
could I not just... put that inline?
configuration[id].build()
'primaryIpv4Address' : {
'dim' : (fields) => fields.newDimension(),
'id' : 'primaryIpv4Address',
'name' : 'Primary IPv4 Address',
'type' : dsTypes.TEXT,
'data' : (entity) => entity[this.id]
},```
that's what I've been doing
though build is a better name ngl
Well youd end up with a lot of unneccessary functions
oh I see
And refactoring that at some point will be hard
If it all points to the same function, you can just modify that if needed
Wouldnt have been nice if it was possible to keep this file separte tbh xD
so i'd do like, configuration[id].build().setId(configuration[id].id).setName(configuration[id].name).setType(configurationId[id].type)
afaik, Google Apps Script just literally copy pastes any code you write in another file into the main one
christ
Yes
same as C importing
at some point you shouldn't oneline things
Yea thats fine
it will be prettily indented
Only the visible sources clarity matters
oh so I can make another file to declare all my shit?
hey star
Atleast for this, if possible
wanna see the script I wrote?
😇
#!/bin/bash
BASE_URL="https://ci.kryptonmc.org/job/Krypton/lastSuccessfulBuild"
ARTIFACT=`curl "${BASE_URL}/api/json?tree=artifacts%5BrelativePath%5D" | jq '.artifacts[0].relativePath' | sed 's/"//g'`
curl -o Krypton.jar "${BASE_URL}/artifact/${ARTIFACT}"
ah now that's pretty nice
I would make the user do it manually cause you are their overlord and you need to assert dominance
make things too easy for the user and they might start thinking for themselves
they might even start to PR
ew kypton
🥲
also i think I see jenkins
okay how tf do I import another file in TypeScript
start using go then do that
Does google appscript inline it by itself?
probably?
If not, you might need a compiler beforehand
but I need it to know that my other class exists in my IDE
the clasp utility converts it down to GoogleScript
Warning: Apps Script's runtime/execution is different than Node or web browsers. In particular, you cannot use the terms export or require in the same way you would with Node. You cannot use window like in web browsers.
bruh
Some posts seem to suggest appscript doesnt require the import statement
Try creating a second file and trying to use variables from it in your main one
oh btw, Krypton Pterodactyl egg anyone?
8th point
Oh alright
lol
@jovial warren Will Krypton have a built in anticheat? (Better than vanillas)
lol
it won't allow invalid packets at all
So no forge?
doesn't Forge append something to the handshake packet?
I think it puts FML in the address, which will break Krypton completely
Uh it might actually
I will add support for those null-separated strings though at some point, since I need to for Bungee support
But like a max packets setting aswell
yeah there will be rate limiting if I can get it to work
:( ok
packets aren't handled in ticking though, that's why rate limiting packets/s might be difficult
bro calm down, Bardy doesn't even have a fully functioning game yet, let him think about anticheat after it works lol
Lol ik, was just wondering
lol fair
So a low TPS won't make pvp awful?
player movement won't be limited by the tick scheduler's speed
Nice
that's handled asynchronously with the power of Netty
ooh
no packets will be handled sync generally
they're handled from the Netty thread that calls the handle function
Mhm, ok
if you've got time I can show you what it's like so far if you want
Ok, sure
how do I loop over every item in that object?
when you try to make things cleaner and you just break them
Use Object.keys or Object.values depending on what you need
Pass your object as an argument
so like
