These are chat archives for netherrack/netherrack

1st
May 2016
mhsjlw
@mhsjlw
May 01 2016 13:02
i got to get my mind off this chunk stuff lol
so i'll clean it up and push
(bukkit and spigot)
mhsjlw
@mhsjlw
May 01 2016 13:20
ok basic bukkit stuff is added
more needs to be done, matthewacon and I will do it
some compat issues that need to be fixed
mhsjlw
@mhsjlw
May 01 2016 13:29
@109C did you test multi-player ?
it doesn't seem to work
i get a network exception
109C
@109C
May 01 2016 14:16
network exception is mcprotocollib's way of saying that it doesn't like what you're doing.
mhsjlw
@mhsjlw
May 01 2016 14:22
yeah
i need to fix it
109C
@109C
May 01 2016 14:25
gah I hate debugging that library -_-
mhsjlw
@mhsjlw
May 01 2016 14:26
lmao
109C
@109C
May 01 2016 14:36
It was the entity metadata.
mhsjlw
@mhsjlw
May 01 2016 14:36
rofl, really ?
109C
@109C
May 01 2016 14:37
Yup, when it doesn't like null metadata.
mhsjlw
@mhsjlw
May 01 2016 14:37
xD ok
109C
@109C
May 01 2016 14:37
I really don't like that it doesn't give a reason WHY is went wrong.
try{...}catch(Exception e){}
Oh and btw when spawning players they need to already be in the player list for them to show up.
109C
@109C
May 01 2016 15:16
What are the bukkit api's dependencies?
mhsjlw
@mhsjlw
May 01 2016 15:19
there's a lot of crap
I'll check
just get a shaded jar though
i'll link one sec
spigot api ^
109C
@109C
May 01 2016 15:21
thnx
bukkit api ^
choose a shaded with the heighest build number
(scroll down)
109C
@109C
May 01 2016 15:24
thnx, it works for me now.
mhsjlw
@mhsjlw
May 01 2016 15:25
:D
put it in the repo maybe
109C
@109C
May 01 2016 15:25
k
mhsjlw
@mhsjlw
May 01 2016 15:29
(netherrack-libraries)
109C
@109C
May 01 2016 15:29
tfw when browser uses more ram than two mc instances :(
mhsjlw
@mhsjlw
May 01 2016 15:30
lmao
happens to me all the time
oh btw
i figured it out
use multimc, then click play offline on a profile
and you can select an offline username
109C
@109C
May 01 2016 15:31
That does sound simpler than editing json.
mhsjlw
@mhsjlw
May 01 2016 15:31
it is, I'm now using it all the time
for testing netherrack
Matthewacon fixed it I think
Check the repo
109C
@109C
May 01 2016 15:37
Which repo?
Matthewacon
@Matthewacon
May 01 2016 15:38
@109C I haven't posted it yet
Pushed*
Matthewacon
@Matthewacon
May 01 2016 15:47
Okay
pushed and fixed
mhsjlw
@mhsjlw
May 01 2016 15:48
nice ok
Matthewacon
@Matthewacon
May 01 2016 15:48
btw
Why don't you just link the files and folders from the 'netherrack-libraries' repo in the 'netherrack' repo
?
mhsjlw
@mhsjlw
May 01 2016 15:49
because, netherrack works
Matthewacon
@Matthewacon
May 01 2016 15:49
So you don't have to individually clone each of them, and they can remain separate repos
Okay
Well
mhsjlw
@mhsjlw
May 01 2016 15:49
you guys are just weird
lmao
Matthewacon
@Matthewacon
May 01 2016 15:49
Clearly not XD
mhsjlw
@mhsjlw
May 01 2016 15:49
well , it's working now
let's see if multi-player is working now
Matthewacon
@Matthewacon
May 01 2016 15:50
cough you're welcome cough
mhsjlw
@mhsjlw
May 01 2016 15:50
then i have to fix trees
109C
@109C
May 01 2016 15:50
Thank you.
mhsjlw
@mhsjlw
May 01 2016 15:50
thank you
Matthewacon
@Matthewacon
May 01 2016 15:50
XD
jk
Test out the scripts
Make sure that they work on your systems
mhsjlw
@mhsjlw
May 01 2016 15:51
ubuntu :+1:
Matthewacon
@Matthewacon
May 01 2016 15:52
They're Unix scripts so they should work on everything... Unless you're using zsh or a version of bash older than 4.2
109C
@109C
May 01 2016 15:52
OSX :+1:
Matthewacon
@Matthewacon
May 01 2016 15:53
Nice
Okay cool
mhsjlw
@mhsjlw
May 01 2016 15:53
alright , currently testing multi-player
after out hot-fix for player metadata
*our
Matthewacon
@Matthewacon
May 01 2016 15:54
keegan
whoops
mhsjlw
@mhsjlw
May 01 2016 15:54
now that we have bukkit btw, just please abuse all of dem features
Matthewacon
@Matthewacon
May 01 2016 15:54
@mhsjlw Do you use vim
mhsjlw
@mhsjlw
May 01 2016 15:54
no lol
Matthewacon
@Matthewacon
May 01 2016 15:54
dammit
mhsjlw
@mhsjlw
May 01 2016 15:54
emacs ftw
Matthewacon
@Matthewacon
May 01 2016 15:54
Does anybody know how to exit a vim editor
109C
@109C
May 01 2016 15:55
:quit
Matthewacon
@Matthewacon
May 01 2016 15:55
I always forget it
Thanks
mhsjlw
@mhsjlw
May 01 2016 15:55
Shift ZZ
Matthewacon
@Matthewacon
May 01 2016 15:56
@109C lol
mhsjlw
@mhsjlw
May 01 2016 15:56
OH SHT
packs bags and runs
oh no what if he find out im going to be in the new movie https://en.wikipedia.org/wiki/Keanu_(film)
that would be bad
Matthewacon
@Matthewacon
May 01 2016 15:58
l3l
my name is already there anyway
(scroll down)
Matthewacon
@Matthewacon
May 01 2016 15:58
"Keegan no last name"
Anonymity at it's finest
mhsjlw
@mhsjlw
May 01 2016 15:58
my last name is
unkown
im not sure why my own last name is
ok so
Matthewacon
@Matthewacon
May 01 2016 15:59
gg
Anyways
mhsjlw
@mhsjlw
May 01 2016 15:59
wtf network exception
109C
@109C
May 01 2016 15:59
e?
mhsjlw
@mhsjlw
May 01 2016 15:59
yeah im fixing it
Matthewacon
@Matthewacon
May 01 2016 16:02
Wait
mhsjlw
@mhsjlw
May 01 2016 16:02
well
fixed
Matthewacon
@Matthewacon
May 01 2016 16:03
did you get a neetwork exception when you joined?
mhsjlw
@mhsjlw
May 01 2016 16:03
players still don't spawn though
Matthewacon
@Matthewacon
May 01 2016 16:03
Because I didn't
mhsjlw
@mhsjlw
May 01 2016 16:03
no it's fixed
it was another problem that i created
players still don't spawn
we need a send to others function i guess
Matthewacon
@Matthewacon
May 01 2016 16:03
Or just an update function
That would be a better
idea
Update all player info
On join
mhsjlw
@mhsjlw
May 01 2016 16:04
yeah
Matthewacon
@Matthewacon
May 01 2016 16:04
Lol
Trees that spawn on the borders of chunks get cut off
mhsjlw
@mhsjlw
May 01 2016 16:04
yeah ik
if you want to try fixing it you can
Matthewacon
@Matthewacon
May 01 2016 16:04
Or on other trees
Okay
Which class
mhsjlw
@mhsjlw
May 01 2016 16:04
also they only spawn on one corner of the map too
idk why
well it'd be good if you made a section for objects
109C
@109C
May 01 2016 16:05
So when generating a chunk, you would have too look at the neighboring chunks trees
Matthewacon
@Matthewacon
May 01 2016 16:05
Are you individually placing trees?
mhsjlw
@mhsjlw
May 01 2016 16:05
then make a tree class
maybe do a limit too
2 trees per chunk
also, hmm
once i get this working
we need to have a system for sending more chunks
so infinite worlds
Matthewacon
@Matthewacon
May 01 2016 16:06
You don't need to look at other trees, just the blocks... If they're leaves then whichever tree spawns last can grow through the other, but if it's anything else, then the tree will be cut off because leaves don't grow through stone
Wait wtf
No
@109C Your original javac script outputs the classes to the directory that the raw files are located... I just realized that
I'm changing that now
">.<"
109C
@109C
May 01 2016 16:07
\>.<
mhsjlw
@mhsjlw
May 01 2016 16:08
also i need to make weeds and flowers more common
or someone needs too
109C
@109C
May 01 2016 16:20
We should have done that 11 days ago.
mhsjlw
@mhsjlw
May 01 2016 16:20
why is that ?
109C
@109C
May 01 2016 16:20
Because then we could have made 420 jokes.
weeds
mhsjlw
@mhsjlw
May 01 2016 16:20
darb
*darn
ok so hmm
109C
@109C
May 01 2016 16:23
I'm working on the player list.
mhsjlw
@mhsjlw
May 01 2016 16:23
ok cool
then we can actually get players to spawn lmao
i'll try and fix up generation i guess ?
109C
@109C
May 01 2016 16:23
Zombies work show up tho.
mhsjlw
@mhsjlw
May 01 2016 16:24
cool
we need players to see each other tho lmao
109C
@109C
May 01 2016 16:24
That's what I'm doing..?
mhsjlw
@mhsjlw
May 01 2016 16:25
my goals for netherrack are:
  • super minimal bukkit api support
  • nice minimal generation (no biomes, but awesome population)
  • ores
  • inventories
  • crafting
  • furnaces
  • super basic entities like sheep and cows that walk around the map
@109C ok nice
hmm i need to make the world heigher
so that it's normal
oh i forgot to add : configuration too
i was like wtf my computer is lagging so hard, i'll im doing is running 2 instances of minecraft and eclipse
turns out i had counter strike source online in the background too lmao
109C
@109C
May 01 2016 16:27
oooo cs:s
r u 1.6 legend? :P
mhsjlw
@mhsjlw
May 01 2016 16:28
no
just source
I got banned on csgo for 3 weeks
and got banned for using it on one of my severs
i can't play multiplayer at all
nothing
anyway
i'll get back to work
109C
@109C
May 01 2016 16:29
w8 VAC works on all csgo servers?
mhsjlw
@mhsjlw
May 01 2016 16:29
no it wasn't vac
109C
@109C
May 01 2016 16:29
oh.
mhsjlw
@mhsjlw
May 01 2016 16:29
my server had my custom mod for knife skins
valve was like fck you and banned me for 3 weeks
so yeah
cs:source is just as good if not better ;)
hmm how should I do configuration though
109C
@109C
May 01 2016 16:30
In server.properties?
mhsjlw
@mhsjlw
May 01 2016 16:30
generating files in the work dir could be bad
@109C yeah no that's easy
I'm talking about working in the main dir
yeah whatever
i'll just do it
but later
mhsjlw
@mhsjlw
May 01 2016 16:48
alright im doing some refactoring and making generation objects much nicer
im making it per-chunk
so not column
that should fix some problems
109C
@109C
May 01 2016 16:49
This message was deleted
mhsjlw
@mhsjlw
May 01 2016 16:49
and make a max 2 trees per chunk
or actually, no
let's make it 4
we'll see
i may change it
Matthewacon
@Matthewacon
May 01 2016 16:50
Okay
the build scripts are completely automated, they build to a separate 'build' folder and if you run the server without a build dir, it automatically runs the build script
mhsjlw
@mhsjlw
May 01 2016 16:51
coolio
ok per chunk is harder
mhsjlw
@mhsjlw
May 01 2016 17:00
hmm
109C
@109C
May 01 2016 17:01
Having second thoughts on per chunk generation?
mhsjlw
@mhsjlw
May 01 2016 17:03
nah nah
im pushing through
i want to see what will happen
how does minecraft do it ?
mhsjlw
@mhsjlw
May 01 2016 17:09
ok first test
cant wait to see my fault logic
*faulty
woah
i'll send a screenshot
what is up with that weird thing under the cursor
it follows me arround
it's so strange
109C
@109C
May 01 2016 17:12
It's the attack recovery thingy
mhsjlw
@mhsjlw
May 01 2016 17:12
oh lmao
109C
@109C
May 01 2016 17:12
*cooldown
mhsjlw
@mhsjlw
May 01 2016 17:12
why is that there ?
ahem
metadata
109C
@109C
May 01 2016 17:12
Probably.
mhsjlw
@mhsjlw
May 01 2016 17:12
lol
and well
i am an idiot
want to see a screen ?
109C
@109C
May 01 2016 17:15
?
like honestly
what is my problem
so yeah
109C
@109C
May 01 2016 17:16
Too many pistons :P
mhsjlw
@mhsjlw
May 01 2016 17:16
well
Matthewacon
@Matthewacon
May 01 2016 17:17
HAH
Wtf
Pistons much
mhsjlw
@mhsjlw
May 01 2016 17:17
wiat !
Matthewacon
@Matthewacon
May 01 2016 17:17
How even
mhsjlw
@mhsjlw
May 01 2016 17:17
i've got an improvement
there
random flowers
but now they need to be on the ground
and not stacked like that
it's weird
Matthewacon
@Matthewacon
May 01 2016 17:18
;D
I'm dying
Nah
Keep the generation like that, spot on
It's perfect
mhsjlw
@mhsjlw
May 01 2016 17:18
yo
these flowers go up
infinite
like im way past 256
109C
@109C
May 01 2016 17:18
Helium flowers!
Matthewacon
@Matthewacon
May 01 2016 17:19
XD
mhsjlw
@mhsjlw
May 01 2016 17:19
i'd say
this is a win
definitely
Matthewacon
@Matthewacon
May 01 2016 17:20
Maybe it's just because you don't have block update events
All blocks above 256 cant be placed and if they're spawned up there they should be deleted
mhsjlw
@mhsjlw
May 01 2016 17:21
no
but whatever not an issue
ok wtf
WHY DO YOU GO UP FLOWERZ
oh wait
these chunk things are stacked right ?
is that why ?
109C
@109C
May 01 2016 17:22
If we had block updates the server would crash from that amount of flowers.
Matthewacon
@Matthewacon
May 01 2016 17:22
They're stacked into columns but unless you make new chunks past the max column height, their shouldn't be any flowers
So idk why they're all the way past 256
There shouldn't even be chunks there
mhsjlw
@mhsjlw
May 01 2016 17:23
@109C lmao
@Matthewacon well
Matthewacon
@Matthewacon
May 01 2016 17:23
Like
mhsjlw
@mhsjlw
May 01 2016 17:23
im trying to figure out why it relapses
Matthewacon
@Matthewacon
May 01 2016 17:23
you can only stack 16 chunks on top of eachother
mhsjlw
@mhsjlw
May 01 2016 17:23
yes
Matthewacon
@Matthewacon
May 01 2016 17:23
And you can't stack columns
So
how
mhsjlw
@mhsjlw
May 01 2016 17:23
but i only want the flowerz
right on top of the grazzz
Matthewacon
@Matthewacon
May 01 2016 17:24
Is the code pushed?
mhsjlw
@mhsjlw
May 01 2016 17:24
no
i'll put it in a new branch
Matthewacon
@Matthewacon
May 01 2016 17:24
k
kk
kkkk
kkkkkkkk
tons of refactoring btw
Matthewacon
@Matthewacon
May 01 2016 17:25
kk
Checking out rn
109C
@109C
May 01 2016 17:25
This message was deleted
mhsjlw
@mhsjlw
May 01 2016 17:26
netherrack/netherrack#11
by the end, this pr will have ores, trees and flowers
oh and grass
Matthewacon
@Matthewacon
May 01 2016 17:27
What's the name of the branck
branch*
mhsjlw
@mhsjlw
May 01 2016 17:27
improved_generation
Matthewacon
@Matthewacon
May 01 2016 17:27
k
Lol flowers
XD
That's weird
They're all off center
From the hitboxes
109C
@109C
May 01 2016 17:29
That's normal.
Matthewacon
@Matthewacon
May 01 2016 17:29
1.9.2?
109C
@109C
May 01 2016 17:29
I know for sure in 1.8 that's normal.
Matthewacon
@Matthewacon
May 01 2016 17:29
Oh
Okay
Well I modded for 1.7.10 and stopped playing mc after that so :p
Lol 800 fps what the hell
109C
@109C
May 01 2016 17:30
800fps modded? IMPOSSIBLE!
Matthewacon
@Matthewacon
May 01 2016 17:31
No, I meant on my vanilla 1.9.2 game... And with a GTX 650 stock speed, I got an average of 200FPS in my modpack
@mhsjlw BTW, My flowers only go up to 256 and then they stop
Alright, well I'm going to go finish my interpreter, so I'll be here just not working on Netherrack
mhsjlw
@mhsjlw
May 01 2016 17:32
added grass
generation still hates me, though
109C
@109C
May 01 2016 17:34
Matthewacon
@Matthewacon
May 01 2016 17:34
Such professional, much w33d
109C
@109C
May 01 2016 17:34
Ah yes, the tried and test search-with-google profession.
mhsjlw
@mhsjlw
May 01 2016 17:38
OH
i know why it's doing this
109C
@109C
May 01 2016 17:39
W h y ?
h
y
?
mhsjlw
@mhsjlw
May 01 2016 17:40
i raised the height to make it 80
and that height is too high because my code is stupid
so i am fixing my code
lmao
it's worse xD xD
109C
@109C
May 01 2016 17:44
Well at least your code doesn't freeze the client.
mhsjlw
@mhsjlw
May 01 2016 17:47
lol
yours is ?
109C
@109C
May 01 2016 17:47
Player spawning.
I had this issue when I working on another minecraft server too ._.
mhsjlw
@mhsjlw
May 01 2016 17:48
hmm
see how flying-squid does it lmao?
mhsjlw
@mhsjlw
May 01 2016 18:27
arg
@109C any progress ?
109C
@109C
May 01 2016 18:28
Some progress.
mhsjlw
@mhsjlw
May 01 2016 18:28
kewl
players spawning ?
lol
why not
getProfile().getName() ?
that's probably why it's crashing
109C
@109C
May 01 2016 18:34
Because entities don't have profiles?
mhsjlw
@mhsjlw
May 01 2016 18:34
lmao
sorry
i thought it was player codes
wait no
then why is it ther
*there
that should be in NetherPlayer then right ?
109C
@109C
May 01 2016 18:34
Because entities can have names.
mhsjlw
@mhsjlw
May 01 2016 18:34
hmm
that would be more metadata, but yeah
i get it
109C
@109C
May 01 2016 18:35
Anyway I figured out why it was freezing
mhsjlw
@mhsjlw
May 01 2016 18:35
what was it ?
109C
@109C
May 01 2016 18:35
Sending the player spawn packet too soon.
mhsjlw
@mhsjlw
May 01 2016 18:35
ah
@109C do you know why stuff isn't on the right level ?
it's so strange
the height has to be right though
mhsjlw
@mhsjlw
May 01 2016 18:38
but sometimes it isn't
@109C yeah that was my crap code
// yeah idk if this works, probably not lol
did that actually fix it ?
like make everything work ?
109C
@109C
May 01 2016 18:39
Yes xD
mhsjlw
@mhsjlw
May 01 2016 18:39
ROFL
well i mean, i'm not surprised
but that's funny
109C
@109C
May 01 2016 18:40
Fixed with minus code!
Is there a player logout handler?
mhsjlw
@mhsjlw
May 01 2016 18:41
uh
Yeah
Well, no
But the code is there
Just put it in a new file
it's in netherserver
just sitting there lol
arg
this is upsetting
idk why it doesn't want to work
oh wait
darn
i need a function for getting the block height for x,y,z
ahem x,y,
how should i do it @109C ?
109C
@109C
May 01 2016 18:46
dude.
the heightmap.
that's literally what it is :smile:
mhsjlw
@mhsjlw
May 01 2016 18:47
hmm where is that
private final OpenSimplexNoise grassHeightmap; ?
109C
@109C
May 01 2016 18:50
Yes
mhsjlw
@mhsjlw
May 01 2016 18:50
hmm
int height = (int) heightmap.eval(x, z); ?
@109C ^
109C
@109C
May 01 2016 18:50
Yes, that's the height of the ground.
mhsjlw
@mhsjlw
May 01 2016 18:51
ah so not what i want
109C
@109C
May 01 2016 18:51
so you would put the flower one above it.
mhsjlw
@mhsjlw
May 01 2016 18:51
ah ok
  • 1
        int x = random.nextInt(15) + 1;
        int z = random.nextInt(15) + 1;

        int type = (Math.random() <= 0.5) ? 1 : 2;

        int height = (int) heightmap.eval(x, z);

        setBlock(column, x, height + 1, z, new BlockState(36 + type, 0));
nah
that doesn't seem to do it
ideas @109C ?
109C
@109C
May 01 2016 18:52
What does that do?
mhsjlw
@mhsjlw
May 01 2016 18:52
place a flower
i get the heightmap from grasslayer
hmm
109C
@109C
May 01 2016 18:54
It does have the correct seed right?
mhsjlw
@mhsjlw
May 01 2016 18:54
i have no idea, i just send the heightmap into the function
i'd say yes
do I need all this though:
                double absX = column.getX() * 16 + x;
                double absZ = column.getZ() * 16 + z;

                double dx = absX / grassStretch;
                double dz = absZ / grassStretch;

                int height = (int) (grassHeightmap.eval(dx, dz) * grassBumpyness + grassHeight);
109C
@109C
May 01 2016 18:56
O yeah the bumpyness & height are probably important.
mhsjlw
@mhsjlw
May 01 2016 18:56
ok
arg
YES !
IT WORKS !
109C
@109C
May 01 2016 19:00
:D
mhsjlw
@mhsjlw
May 01 2016 19:00
that's a lot of flowers though lmao
easy fix
ok now stuff is much smoother
mhsjlw
@mhsjlw
May 01 2016 19:08
ok testing trees
brace yourself for impact
JESUS CHRIST LOL
that's a win
109C
@109C
May 01 2016 19:09
Jungle trees :D
mhsjlw
@mhsjlw
May 01 2016 19:10
lmao yeah
why are they clumped like that though
weird
and they're not anywhere else
109C
@109C
May 01 2016 19:12
Did you remember to stretch the heightmap output?
mhsjlw
@mhsjlw
May 01 2016 19:13
hmm
oh also
can i start a random with a seed in java ?
that way everything will be the same
(each time)
109C
@109C
May 01 2016 19:13
Even if it was the same ever time, the order of chunk generation is not always the same.
mhsjlw
@mhsjlw
May 01 2016 19:14
so this will be different every restart hmm
109C
@109C
May 01 2016 19:14
Maybe use another open simplex noise?
mhsjlw
@mhsjlw
May 01 2016 19:15
yeah let's get it to work first
then we can do that
ok so
firstly, why aren't there trees everywhere
each stone is supposed to be a tree... how should i reduce this ?
109C
@109C
May 01 2016 19:26
Add some extra condition for the position for it to be a tree?
e.g. only put tree if (x+y+z + "").hashCode() % 5 == 0
As long as it's consistent, it's ok.
mhsjlw
@mhsjlw
May 01 2016 19:28
got it
already did it
i just set a limit of trees per chunk
109C
@109C
May 01 2016 19:29
decrease the limit of trees?
mhsjlw
@mhsjlw
May 01 2016 19:29
yeah
still though why is there so few trees
sorry
i need to rephrase that lmao
only 1 chunk has trees
it's weird
how's players doing ?
109C
@109C
May 01 2016 19:32
Pretty well, except for some desync problems.
mhsjlw
@mhsjlw
May 01 2016 19:32
cool
did you manage getting look to work ?
109C
@109C
May 01 2016 19:33
No I'm not sending the head yaw yet, just body yaw.
mhsjlw
@mhsjlw
May 01 2016 19:33
ok cool
hmm
can we send biome data that will make this forest/plains
because i dont like the look of ocean
any idea how to change the biome array to reflect that ?
let me try filling it with 1
109C
@109C
May 01 2016 19:36
This message was deleted
mhsjlw
@mhsjlw
May 01 2016 19:37
it is yeah
can i fill it with 1s ?
it's right there
109C
@109C
May 01 2016 19:37
I think so.
mhsjlw
@mhsjlw
May 01 2016 19:38
yup
it worked like a charm
ah that colour is much nicer ;)
arg trees
109C
@109C
May 01 2016 19:38
:ok_hand:
mhsjlw
@mhsjlw
May 01 2016 19:40
it's the strangest thing
why treez
fixed :smile:
but trees are glitchy just like last time :(
109C
@109C
May 01 2016 19:43
Well, at least they work somewhat.
mhsjlw
@mhsjlw
May 01 2016 19:45
lol
why grass
the grass is straight savag
*savage
it cuts the trees right off
so sometimes they look like they're floating and weeds hold them up
109C
@109C
May 01 2016 19:49
That's why you let the weeds go first, or else they will kill your trees.
mhsjlw
@mhsjlw
May 01 2016 19:50
well idk why the heck this is happening
why don't the trees override
mhsjlw
@mhsjlw
May 01 2016 20:01
im so done with tree generation jesus
its so difficult
109C
@109C
May 01 2016 20:02
You don't have to get it to work perfectly, just get it to an okish state.
mhsjlw
@mhsjlw
May 01 2016 20:02
its just leaves though
the logs are fine
but the leaves are sooo buggy
and they need to be more spaces
*spaced
omg they are so close
why doesn't getBlock work btw
it always returns 0
ok well i pushed what i've got
if you want to test it
109C
@109C
May 01 2016 20:06
it would help if I could see what you're talking about :P
mhsjlw
@mhsjlw
May 01 2016 20:06
netherrack/netherrack#11
checkout the branch
and test it locally
unless you want an imgur image
109C
@109C
May 01 2016 20:07
Yeah I'll test it locally
mhsjlw
@mhsjlw
May 01 2016 20:07
ok cool
tell me what you think ;)
mhsjlw
@mhsjlw
May 01 2016 20:14
@109C any ideas ?
109C
@109C
May 01 2016 20:18
I'm trying to test it locally, but git is being a pain.
mhsjlw
@mhsjlw
May 01 2016 20:18
lol ok
git checkout improved_generation
mhsjlw
@mhsjlw
May 01 2016 20:30
did you get it working ?
109C
@109C
May 01 2016 20:31
I reduced the number of trees.
mhsjlw
@mhsjlw
May 01 2016 20:31
oh nice !
109C
@109C
May 01 2016 20:31
and I'm working on generating the trees on the ground.
mhsjlw
@mhsjlw
May 01 2016 20:31
and they're not all next to each other squished ?
oh thanks
109C
@109C
May 01 2016 20:41
Somehow the grass is overriding trees, even when the trees are populated afterwards ....
Oh I see you got the tree working in all directions :D
mhsjlw
@mhsjlw
May 01 2016 20:46
yeah
did you get it semi-working ?
maybe push if you want
btw netherrack/netherrack#12 is broken atm
109C
@109C
May 01 2016 20:47
ik, I just stashed my changes there.
so I could checkout #11
mhsjlw
@mhsjlw
May 01 2016 20:49
yeah
once you make trees work push
Then we can work on ores
then we can get to actual features
And not worry about generation
mhsjlw
@mhsjlw
May 01 2016 21:07
ok back @109C
progress ?
109C
@109C
May 01 2016 21:09
Not really.
mhsjlw
@mhsjlw
May 01 2016 21:09
ok you might as well push though
then i'll take a crack at it
109C
@109C
May 01 2016 21:10
ok
mhsjlw
@mhsjlw
May 01 2016 21:16
uhh
you broke the chunks
109C
@109C
May 01 2016 21:16
Yeah I don't know why it's so wacky.
mhsjlw
@mhsjlw
May 01 2016 21:16
um
i didn't know it was this broken or else i'd tell you not to commit
lmao
actually wait
trees are perfect
so yeah i'll fix this
but wait did i get your player spawning and list stuff in here too
109C
@109C
May 01 2016 21:18
It must be because I was working on the player list branch before
lol git.
mhsjlw
@mhsjlw
May 01 2016 21:20
well is it working ?
because if so, we might as well just close your PR
and then continue it in this
109C
@109C
May 01 2016 21:20
Yes it is.
Players show up.
mhsjlw
@mhsjlw
May 01 2016 21:20
ok good so then
109C
@109C
May 01 2016 21:20
and they're in the tab list.
mhsjlw
@mhsjlw
May 01 2016 21:20
i guess just close yours and link to my pr
109C
@109C
May 01 2016 21:20
kk
mhsjlw
@mhsjlw
May 01 2016 21:21
and i'll attempt to fix this, then we'll merge
we can do ores later
ok fixed
well wait
wtf
one there are just random leaves in one place
109C
@109C
May 01 2016 21:25
wrapping around the chunk.
mhsjlw
@mhsjlw
May 01 2016 21:26
if(xOffset < 0 || yOffset < 0 || zOffset < 0 || xOffset > 15 || yOffset > 15 || zOffset > 15) return;
that's what causes it ^
you see any mistakes there ?
109C
@109C
May 01 2016 21:26
No.
Because the offsets shouldn't be out of the chunk.
mhsjlw
@mhsjlw
May 01 2016 21:27
yeah
but then why does it break everything
109C
@109C
May 01 2016 21:28
hmm, I switched to column.getX(), and it seems to make the chunks work.
except the grass...
mhsjlw
@mhsjlw
May 01 2016 21:28
hm
109C
@109C
May 01 2016 21:28
YES
THAT WORKED.
mhsjlw
@mhsjlw
May 01 2016 21:29
what ?
109C
@109C
May 01 2016 21:29
some of the code doesn't pass the absolute value.
mhsjlw
@mhsjlw
May 01 2016 21:29
ok i guess just push
push it
and i'll merge it
netherrack/netherrack#12
closed
109C
@109C
May 01 2016 21:30
Just changing all the coords to absolute.
mhsjlw
@mhsjlw
May 01 2016 21:30
and linked
cool
ready to merge ?
109C
@109C
May 01 2016 21:35
I think so
mhsjlw
@mhsjlw
May 01 2016 21:35
ill reclone and test
109C
@109C
May 01 2016 21:35
Just in case ;)
mhsjlw
@mhsjlw
May 01 2016 21:36
looks good :D
i'll merge
done !
thanks for the help ;)
im gonna test multi-player now
mhsjlw
@mhsjlw
May 01 2016 21:43
my comp gets soo slow when i do all of this at once
109C
@109C
May 01 2016 21:44
In these kinds of times I feel lucky having 4GB RAM :D
mhsjlw
@mhsjlw
May 01 2016 21:46
you're on like a mac book lol
tablist is broken btw
and players can't see each other
if i am a new player, i see other people
if i am an old player, i see my username twice when a new user joins the server
and i can't see either players
109C
@109C
May 01 2016 21:47
...
Did we lose a commit from #12?
mhsjlw
@mhsjlw
May 01 2016 21:47
if we did , i'll fix it
hmm
did you get the same problem
i don't think you ever commit @109C ...
because the git diff doesn't do that afaik
109C
@109C
May 01 2016 21:53
I am getting that problem now.
mhsjlw
@mhsjlw
May 01 2016 21:53
i'll figure it out hmm
fixed
i'll push
are players supposed to see each other ?
109C
@109C
May 01 2016 21:57
Yes.
mhsjlw
@mhsjlw
May 01 2016 21:57
yeah i dont see that code here
i'll push this i guess
then we can fix that
ok pull
hmm
mhsjlw
@mhsjlw
May 01 2016 22:09
hmm
take a look
109C
@109C
May 01 2016 22:23
2016-05-01_18.23.00.png
My distance code must be messed up
mhsjlw
@mhsjlw
May 01 2016 22:25
hmm
did you push to want to test
109C
@109C
May 01 2016 22:26
No I didn't edit anything...
If you go deep enough into the ground in spawns them for some reason.
mhsjlw
@mhsjlw
May 01 2016 22:29
Hmm
109C
@109C
May 01 2016 22:29
I fixed it.
entity.distanceSquaredTo() was wrong.
now you should see the other player
mhsjlw
@mhsjlw
May 01 2016 22:36
ok testing
uhh
nope
i don't see the other player
109C
@109C
May 01 2016 22:39
Runs ok on my machine...
2016-05-01_18.39.26.png
mhsjlw
@mhsjlw
May 01 2016 22:40
hmm wtf
109C
@109C
May 01 2016 22:40
git pull?
mhsjlw
@mhsjlw
May 01 2016 22:41
yup
i forgot to restart the server lmao
now it's working
ok hmm
let's try doing player looking
mhsjlw
@mhsjlw
May 01 2016 22:42
reading it right now :D
we can also steal from fs
109C
@109C
May 01 2016 22:43
yeah but we can't quite just copy & paste.
mhsjlw
@mhsjlw
May 01 2016 22:43
yeah yeah
I mean the math concept
oops forgot i can't link in javadoc
ServerEntityHeadLookPacket(int entityId, float headYaw)
that's our target
109C
@109C
May 01 2016 22:45
[Locking onto target]
[Target aquihired]
mhsjlw
@mhsjlw
May 01 2016 22:46
*acquired
ok so
109C
@109C
May 01 2016 22:46
This message was deleted
I browser Hacker News too much.
mhsjlw
@mhsjlw
May 01 2016 22:47
?
This message was deleted
109C
@109C
May 01 2016 22:47
news.ycombinator.com
mhsjlw
@mhsjlw
May 01 2016 22:47
yeah lmao
me too
109C
@109C
May 01 2016 22:47
I accidentally deleted it when trying to edit it.
mhsjlw
@mhsjlw
May 01 2016 22:48
ok so hmm
why do we send teleport packet XD
Packet outPacket = new ServerEntityTeleportPacket(this.ueid, this.x, this.y, this.z, this.yaw, this.pitch, false);
ouch
109C
@109C
May 01 2016 22:49
Because I was too lazy to use the correct packet
mhsjlw
@mhsjlw
May 01 2016 22:49
lol
109C
@109C
May 01 2016 22:49
it shouldn't be too difficult to use the correct one tho.
mhsjlw
@mhsjlw
May 01 2016 22:49
so hmm
that needs a yaw and pitch tho
wait wtf ...
it takes a float ?
does it auto-convert ?
yo
nice
i'm going to try that
oh wait
well , not the right packet xD
109C
@109C
May 01 2016 22:53
ServerEntityHeadLookPacket is correct.
mhsjlw
@mhsjlw
May 01 2016 22:53
ok
109C
@109C
May 01 2016 22:54
It only takes a UEID and a yaw.
mhsjlw
@mhsjlw
May 01 2016 22:54
no
ok well sorry
not the wrong packet
teleport id ?
what should that be
109C
@109C
May 01 2016 22:55
Anything iirc
mhsjlw
@mhsjlw
May 01 2016 22:55
xD really ?
jesus
i fcked that packet up
the players now stick to each other
not what i want
hmm ok
we need to better plan this
found it
ServerEntityPositionRotationPacket
that's got to be it
mhsjlw
@mhsjlw
May 01 2016 23:02
why isn't this serializing
hmm
@109C we need to set the pos of the player to get it to spawn
then we can send the updates
where can i set the set pos
109C
@109C
May 01 2016 23:08
The position is specified in the spawn packet.
mhsjlw
@mhsjlw
May 01 2016 23:08
no for other players
i spawn the player for other players
then i need to send the setpos right ?
then i can send updates ?
mhsjlw
@mhsjlw
May 01 2016 23:12
freaking mcpe was easier than this
rofl
ok well
wtf do i send to update look
ServerEntityPositionRotationPacket doesn't work
109C
@109C
May 01 2016 23:13
ofc not, that sets the entity's rotation, not the entity's head's rotation.
the two are different.
mhsjlw
@mhsjlw
May 01 2016 23:13
darn
what should i send ?
109C
@109C
May 01 2016 23:14
ServerEntityHeadLookPacket
mhsjlw
@mhsjlw
May 01 2016 23:14
but that only has 1 value ...
oh
wait
is that the conversion we need to do ...
109C
@109C
May 01 2016 23:15
It converts it to 360 automatically.
mhsjlw
@mhsjlw
May 01 2016 23:15
yeah !
i got it working
but wait
oh
only sideways
not up and down
how 2 do ?
109C
@109C
May 01 2016 23:17
Move a bit while looking up or down ;)
mhsjlw
@mhsjlw
May 01 2016 23:17
should i be concerned that i just escaped my own body ?
109C
@109C
May 01 2016 23:17
that's already kinda implemented.
what?
mhsjlw
@mhsjlw
May 01 2016 23:22
hmm
well
how can i make it so that i dont have to move to update head look ?
@109C ^
109C
@109C
May 01 2016 23:24
I don't know.
It should handle that.
mhsjlw
@mhsjlw
May 01 2016 23:25
yeah it's weird
it doesnt ...
just sideways ?
you can take a look
ill push
oh also
players don't despawn
not sure if you knew that
they're not removed from the array too i think ?
mhsjlw
@mhsjlw
May 01 2016 23:26
ah
i think i can do that
but why does the player spawn back in when i relog ?
ah it's not removed from the array too ?
109C
@109C
May 01 2016 23:27
It should be removed from the array too.
I forgot to mention that.
mhsjlw
@mhsjlw
May 01 2016 23:27
i got this
wait
what do i send to despawn ???
109C
@109C
May 01 2016 23:31
I don't know.
mhsjlw
@mhsjlw
May 01 2016 23:31
hmm
ah
hmm
ServerEntityDestroyPacket ?
109C
@109C
May 01 2016 23:32
Sound correct.
mhsjlw
@mhsjlw
May 01 2016 23:34
i half implemented it
NetherServer.players.remove(outPlayer.getSession()); does that look right ?
cause i don't think it works
109C
@109C
May 01 2016 23:35
Yup, although you shouldn't use that if you're iterating over players.
mhsjlw
@mhsjlw
May 01 2016 23:36
public class LogoutHandler {
    private static final Logger logger = Logger.getLogger(NetherServer.class.getName());

    public void onLogout(NetherPlayer outPlayer) {

        // Remove the player from the other player's listing.
        NetherServer.players.forEach((session, otherPlayer) -> {
            PlayerListEntry[] newPlayerListing = new PlayerListEntry[1];

            newPlayerListing[0] = new PlayerListEntry(outPlayer.getProfile(), GameMode.CREATIVE, 1, new TextMessage(otherPlayer.getName()));

            otherPlayer.sendPacket(new ServerPlayerListEntryPacket(PlayerListEntryAction.REMOVE_PLAYER, newPlayerListing));
            otherPlayer.sendPacket(outPlayer.getDespawnPacket());
        });

        NetherServer.players.remove(outPlayer.getSession());
    }
}
what happens is if 2 players are online
and i log off
i am removed
but if i relog, i see myself and the other player
meaning that i'm not removed ...
@109C ^
109C
@109C
May 01 2016 23:39
That's odd.
I have no clue why.
mhsjlw
@mhsjlw
May 01 2016 23:40
hmm
wtf
why no work
mhsjlw
@mhsjlw
May 01 2016 23:51
i pushed but idk why that doesn't work
109C
@109C
May 01 2016 23:55
The person is removed for the player that didn't relog.