These are chat archives for PrismarineJS/prismarine-server

10th
Mar 2015
Dennis Bartlett
@dcbartlett
Mar 10 2015 01:10
@wtfaremyinitials did you get a chance to look that over?
Will Franzen
@wtfaremyinitials
Mar 10 2015 03:44
@dcbartlett This is the first free moment I’ve had all day
I’ll check it out now
Dennis Bartlett
@dcbartlett
Mar 10 2015 03:45
heh
ok
i think its going to be giving you what you want
but not sure
you’ll need to create a world directory and place a file in the 0,-1.mca
or similar
i can provide you those if you need
but should be able to pull from any server
Will Franzen
@wtfaremyinitials
Mar 10 2015 03:45
if you don’t mind that’d be great
Dennis Bartlett
@dcbartlett
Mar 10 2015 03:46
one sec
zip or tar?
Will Franzen
@wtfaremyinitials
Mar 10 2015 03:46
zip
although it doesn’t really matter
Dennis Bartlett
@dcbartlett
Mar 10 2015 03:50
huh
i can’t send files here
lol
Will Franzen
@wtfaremyinitials
Mar 10 2015 03:51
Wait
Will Franzen
@wtfaremyinitials
Mar 10 2015 03:51
where are you requiring prismarine-chunk?
Dennis Bartlett
@dcbartlett
Mar 10 2015 03:51
too late
i’m not?
Will Franzen
@wtfaremyinitials
Mar 10 2015 03:51
then how are you making chunk objects...
Dennis Bartlett
@dcbartlett
Mar 10 2015 03:51
i was thinking chunk would require me
i’m not
i’m READING them
lol
i will need to require it to create them for the .save
Will Franzen
@wtfaremyinitials
Mar 10 2015 03:51
I figured the way it would work is
when you call load on a provider
the provider does a var chunk = new (require(‘prismarine-chunk’))();
and then populates chunk
and returns it
Dennis Bartlett
@dcbartlett
Mar 10 2015 03:52
that the thing
the chucks are already in the mca files
in chunk format i think
thats what i’m wanting you to find out with that
heh
Will Franzen
@wtfaremyinitials
Mar 10 2015 03:53
but I really doubt the chunk objects you’re getting back are in the same format that prismarine-chunk is
anyway
Dennis Bartlett
@dcbartlett
Mar 10 2015 03:53
yeah
probably not
may need to do some conversion
i’m worried about ram usage doing that though
Will Franzen
@wtfaremyinitials
Mar 10 2015 03:54
yeah
Robin Lambertz
@roblabla
Mar 10 2015 07:35
a single chunk is 16x16x256x4 bytes, aka 200kb, at most. It's far from being a lot
Dennis Bartlett
@dcbartlett
Mar 10 2015 18:23
@roblabla correct, however files don’t store single chunks, they store a region. therefor you have to load 32x32 chunks into memory and keep them there. In order to write back, you have to have the entire region.
we could probably do live reads/writes without storing in memory, but they would be blocking and slow
:/