#(zemenus) flags vs yaml
53 messages · Page 1 of 1 (latest)
(zemenus) flags vs yaml
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
flags
Just to be clear: flags stored in the server's active memory (RAM), right? Isn't a lot of this stuff gonna lower the performance?
They are, but they shouldn't... at least idt they should (unless you're saving an obscene amount of data at once i guess)
I'm working on a pretty massive project rn that saves a lot of data and I've never ran into performance issues
with yaml, you're either keeping it persistently loaded, which just makes it a worse flag, or loading and unloading it for every operation, which is dramatically more expensive, unless you have a really weird hardware setup where you have top-tier everything except ram
It's unlikely to create any noticable problems
and for the record, not all flags are persistently loaded
it differs depending on what it is you're flagging
player flags, for instance, aren't loaded unless the player is online or they are accessed
Well, I'm flagging server with discord data, I'm making custom whitelist system
The only thing I have in YAML is the nicknames and ID's these nicknames linked to
I assumed most of the data we're talking about would be in server flags, and so my comment wasn't necessarily relevant to this project, but I just wanted to make sure you understood how it worked
flags stored in the server's active memory (RAM), right?
^ just wanted to clear this up
only sometimes
Player flags active when player online
Location flags active if the location is loaded then?
And server flags are active all the time I assume
I mean, just for example, is it right?
I'm not certian if locations require the chunk to be loaded, or just the world itself
one of the two
someone else surely knows if it's important
iirc location flags are loaded on demand, could be wrong
Okay then. Back to the faction and flag theme question:
What if I want to edit some data in these flags?
Of course I can make a command or override flag value with mine, but what if I want to edit it, well, like in a file?
I know that it's pretty simple to do it in yaml file, but what about flags? (Last time I checked my server flags - I couldn't read a thing)
Is there any tip to make flag be formatted more appropriately for manual editting?
Also, can I save flags in the different files? Or is it unnecessary?
you shouldnt be messing with the flags folder at ALL
yaml is the appropriate choice if you somehow needed to manually input data but
yeah denizen handles the transfer of flags from ram to permanent memory for you
I see no reason why you'd want/need to here
flags are attached to objects
any rare instances where it's needed you can just use a command
what
what is that in responce to lol
Hmm, okay then, thanks for the info and help, guess I'll be using flags for these kind of things
Buuut last question(s):
What are the benefits of using YAML then? Or do you have any example of you using it instead flags?
interop with other plugins
^ or manual data
yml aint for data
98.6% of the time flags are better
in half of the remaining 1.4% of the time, a database is actually a better idea
(this is not such an instance, to be clear)
I... Don't know how to use or work with database AT ALL
I heard it's very useful
rarely
I've never made use of one for minecraft
flags have always served my purposes better
Okie-dokie then, thanks for helping me out, again, I guess it's resolved now