These are chat archives for netherrack/netherrack

18th
Apr 2016
Egoscio
@Egoscio
Apr 18 2016 00:59
Can you switch to soft tabs?
Github makes tabs look terrible imho
rom gave me the idea to use 2 space soft tabs and I've been doing it ever since
mhsjlw
@mhsjlw
Apr 18 2016 10:45
wait, just curious, say we went back in time back to before CraftBukkit was taken down from a DMCA... can we still use that version of the software and distribute it legall?
*legally?
mhsjlw
@mhsjlw
Apr 18 2016 11:16
ok we should make a proposals repo or a place to put all this, but im thinking for world gen, something nice like flow/noise would work
it's fast, and we can use it easily and it's super customizable meaning we can generate a nice chunk, but then later easily add trees and population with flowers and grass, then maybe even ores (caves come packages right in ;))
mhsjlw
@mhsjlw
Apr 18 2016 11:55
alright , i just made a bunch of changes and created some issues
also, i just went on my mac to setup a dev environment and mvn installed just fine @109C... we should figure out your problem
109C
@109C
Apr 18 2016 18:14
The roadmap says that Item entities are partially working, which branch is that in?
@mhsjlw No you can't distribute craftbukkit, but you can distribute bukkit.
109C
@109C
Apr 18 2016 19:09
I was looking at BasicGenerator, and I noticed it generates all the chunks at once.
Which is a problem, because there are an infinite number of chunks.
mhsjlw
@mhsjlw
Apr 18 2016 19:32
yeah, im going to work on the generator right now
109C
@109C
Apr 18 2016 19:36
I'm working on world currently.
mhsjlw
@mhsjlw
Apr 18 2016 19:37
ok well then do continue
I was just about to work on it but you saved me the trouble :D
What do you think about a player array too?
like one that is global
so we can get and set properties on each user
The roadmap says that Item entities are partially working, which branch is that in?
where does it say that?
mhsjlw
@mhsjlw
Apr 18 2016 19:39
ah yeah
109C
@109C
Apr 18 2016 19:39
under entities
mhsjlw
@mhsjlw
Apr 18 2016 19:39
my mistake sorry
i stole it from another repo
and forgot to change that >_<
:P
109C
@109C
Apr 18 2016 19:40
Such is the danger of reuse :P
mhsjlw
@mhsjlw
Apr 18 2016 19:40
yeah, well, it's just wiki stuff
plus the repo was under MIT
idk if i should leave credit...
that wouldn't make sense idk
netherrack/netherrack#4
ill assign you to that ^
109C
@109C
Apr 18 2016 19:41
k
I've got it generating grass, but there's no light
mhsjlw
@mhsjlw
Apr 18 2016 19:41
ok, cool
are we removing chunks too?
109C
@109C
Apr 18 2016 19:42
I haven't implemented unloading chunks yet.
It's only very basic xD
mhsjlw
@mhsjlw
Apr 18 2016 19:42
yeah, no problem
i'd hope so :P
i don't expect us to have perlin generation yet lol
but i have an idea for that
that could make it easy
but no biomes
with caves, then we could populate it too
and i have an idea for tress too :D
109C
@109C
Apr 18 2016 19:53
I've pushed my world code to the world branch.
mhsjlw
@mhsjlw
Apr 18 2016 19:54
ok, i'll check it out
mhsjlw
@mhsjlw
Apr 18 2016 20:11
yeah it looks good
Bukkit/ O.o
@109C start a PR
109C
@109C
Apr 18 2016 20:11
Hey, I'm just thinking of bukkit plugin support.
mhsjlw
@mhsjlw
Apr 18 2016 20:12
yeah lol
that's the plan
but atm, I'm thinking we should go features first :P
want me to make the PR?
109C
@109C
Apr 18 2016 20:13
1 second thought.
mhsjlw
@mhsjlw
Apr 18 2016 20:13
ok
109C
@109C
Apr 18 2016 20:13
I'm just adding a few more things I forgot.
mhsjlw
@mhsjlw
Apr 18 2016 20:14
no problem
109C
@109C
Apr 18 2016 20:19
Ok, I squashed and merged it.
mhsjlw
@mhsjlw
Apr 18 2016 20:20
nice, I'll test it out
109C
@109C
Apr 18 2016 20:21
One recurring problem is that chunks are not rendering properly, I have not been able to fix that.
mhsjlw
@mhsjlw
Apr 18 2016 20:22
ok just tested it nice ;)
we don't need infinite worlds atm
ok so, I think im going to try adding player spawning
109C
@109C
Apr 18 2016 20:24
Go ahead, I'll work some more on chunks / blocks.
mhsjlw
@mhsjlw
Apr 18 2016 20:26
sounds good
hmm
how should i store all the players?
maybe i'll create a player class
yeah that will be good actually
109C
@109C
Apr 18 2016 20:31
Make an entity class, and make the player a subclass.
mhsjlw
@mhsjlw
Apr 18 2016 20:34
smart
lol
109C
@109C
Apr 18 2016 20:35
Things get messy otherwise, quickly.
mhsjlw
@mhsjlw
Apr 18 2016 20:35
i'll just leave the entity class empty for now i guess
109C
@109C
Apr 18 2016 20:35
?
mhsjlw
@mhsjlw
Apr 18 2016 20:35
well, i mean like no a lot of functions lol
not like actually empty
109C
@109C
Apr 18 2016 20:36
Yeah, stuff like x, y, z, yaw, pitch, health should be in the entity class.
mhsjlw
@mhsjlw
Apr 18 2016 20:36
mmhmm
health will be zero for default i guess
because it will change when we add more entities
109C
@109C
Apr 18 2016 20:38
They start off dead :laughing:
mhsjlw
@mhsjlw
Apr 18 2016 20:41
well, i set it in the player class
should i not?
109C
@109C
Apr 18 2016 20:42
Yes you should override it in the player class.
Come to think of it, the entity class would make sense to be abstract.
mhsjlw
@mhsjlw
Apr 18 2016 20:43
my oop is rusty sorry, can you elaborate?
ah yeah
109C
@109C
Apr 18 2016 20:43
an abstract class is a class that there can't be instances of.
mhsjlw
@mhsjlw
Apr 18 2016 20:43
i remember ok
yup
yeah let's do that
wait there is no push function on arrays in java?!
109C
@109C
Apr 18 2016 20:44
You'll need a list for that.
mhsjlw
@mhsjlw
Apr 18 2016 20:44
yeah you're right
it's been a while since i wrote java lol
109C
@109C
Apr 18 2016 20:45
my oop is rusty
mhsjlw
@mhsjlw
Apr 18 2016 20:46
illuminati confirmed
109C
@109C
Apr 18 2016 20:46
I would refer you to loomynarty.tk, but it has expired. :(
mhsjlw
@mhsjlw
Apr 18 2016 20:47
darn
um
how should i remove the player
hmm
109C
@109C
Apr 18 2016 20:49
list.remove(index)?
mhsjlw
@mhsjlw
Apr 18 2016 20:50
yeah but how do i find the index :P
i need to go from session to player
109C
@109C
Apr 18 2016 20:50
list.indexOf(player)
mhsjlw
@mhsjlw
Apr 18 2016 20:50
yeah i have no idea what the player is
109C
@109C
Apr 18 2016 20:51
Make a hashmap from session -> player?
mhsjlw
@mhsjlw
Apr 18 2016 20:51
yeah i guess that would work
this will get ugly quick
ok well now this will work i guess
let me test it
yup it works
109C
@109C
Apr 18 2016 20:55
:D
mhsjlw
@mhsjlw
Apr 18 2016 20:55
ok ill push it since we added players
then i need to actually make them spawn
mhsjlw
@mhsjlw
Apr 18 2016 21:04
I'll be back later to finish this
how are worlds going?
109C
@109C
Apr 18 2016 21:04
Well, I'm just adding some block getter / setters
109C
@109C
Apr 18 2016 21:10
I was thinking, maybe the entity classes should go in their own directory?
mhsjlw
@mhsjlw
Apr 18 2016 22:45
@109C , that's probably best
UEID?
oh
unique entity id
why 42?
*42
*43
wow i can't type lol
// Years since 1973?
why 1973?
and why is ueid a double?
mhsjlw
@mhsjlw
Apr 18 2016 22:58
hmm
should there be a location class
mhsjlw
@mhsjlw
Apr 18 2016 23:08
aeg
*arg
i hate packages
hmm
i've done some refactoring
but ill put it in a new branch
more stuff needs to be done and cleaned up
mhsjlw
@mhsjlw
Apr 18 2016 23:38
oh god
no