These are chat archives for netherrack/netherrack

17th
Apr 2016
mhsjlw
@mhsjlw
Apr 17 2016 00:12
the public chat
mhsjlw
@mhsjlw
Apr 17 2016 00:24
no idea why i started this project.
it probably won't go far
but i did it anyway ;)
109C
@109C
Apr 17 2016 00:27
Because messing around with java is fun :P
mhsjlw
@mhsjlw
Apr 17 2016 00:27
it is :D
if you feel like contributing @109C mostly this is just a project for fun, i'll add you to the org
you don't need to actually contribute
and i don't expect you too
but whatever, why not
109C
@109C
Apr 17 2016 00:28
I'll do inventory handles... oh wait no we don't have entities yet.
mhsjlw
@mhsjlw
Apr 17 2016 00:28
lol
right now actually
i think we should do the world
hmm
109C
@109C
Apr 17 2016 00:28
sounds good
mhsjlw
@mhsjlw
Apr 17 2016 00:28
we need to make the server object global
then i can easily send the chunks on login
109C
@109C
Apr 17 2016 00:28
Server singleton?
mhsjlw
@mhsjlw
Apr 17 2016 00:29
(we're using mcprotocollib)
they handle all of the world stuff
so i can just set and get block :D
(you're invited)
109C
@109C
Apr 17 2016 00:29
thnx
mhsjlw
@mhsjlw
Apr 17 2016 00:29
feel free to do whatever you want
im on a new computer
im just setting up my dev enviroment
then ill try adding the worlds
i recommend you read up on mcprotocollib's docs if you've never used it before
it's really easy and event-based
so you shouldn't have too much trouble
109C
@109C
Apr 17 2016 00:30
like nmp?
mhsjlw
@mhsjlw
Apr 17 2016 00:30
a lot like it yes
and it's easy to send packets back too
here is a perfect example one sec
we wait for a packet, check if it's a chat packet, get the user who sent it and send them one back
obviously, i need to make that global though
so that every player can see it
that's easy i just haven't done it yet
anyway, yeah if you feel like working on it
be my guest
maybe ill do positioning later too
109C
@109C
Apr 17 2016 00:33
Yeah, I was just looking at mcprotocollib
mhsjlw
@mhsjlw
Apr 17 2016 00:33
now you get to use it :P
109C
@109C
Apr 17 2016 00:33
It's very enterprise-y
mhsjlw
@mhsjlw
Apr 17 2016 00:33
it is yeah
(it's probably used for private projects)
(which is why it seems enterprise-y)
109C
@109C
Apr 17 2016 00:34
Makes sense.
mhsjlw
@mhsjlw
Apr 17 2016 00:34
yeah
you can write clients in it too hmm
maybe ill write tests one day lol
pretty much the 'goal' here is to literally have a minecraft server that is seriously the lowest a mc server can be
so super optimized
and fast
but is good enough to play survival
109C
@109C
Apr 17 2016 00:35
Erm, survival is... big.
mhsjlw
@mhsjlw
Apr 17 2016 00:36
what i mean by that is
109C
@109C
Apr 17 2016 00:36
I was thinking more along the lines of minigame servers xD
mhsjlw
@mhsjlw
Apr 17 2016 00:36
inventory, basic world gen, health
@109C yup that's fine
lets do that instead
honestly, i don't care
lets just throw things at it
:P
but yeah that could actually work well
what plugin api should we support?
109C
@109C
Apr 17 2016 00:36
ugh plugins...
bukkit?
mhsjlw
@mhsjlw
Apr 17 2016 00:37
sure
if it's going to be minigames lol
but yeah, plugins won't be in for a while
we need to actually get things working first
109C
@109C
Apr 17 2016 00:37
spigot, paper, gpp all support bukkit's api
mhsjlw
@mhsjlw
Apr 17 2016 00:37
yeah sounds good
109C
@109C
Apr 17 2016 00:37
true, there's not much point to an API that doesn't do anything.
mhsjlw
@mhsjlw
Apr 17 2016 00:37
yeah
ok. so a really bare-bones minecraft server that's great for minigames?
or a minecraft server that has bare-bones survival support
no entities, no redstone, no vehicles, no elytra
just good ol' classic mc
:P
oh i remember 109c said he wanted to brush up on his java or something like that
maybe he wants to get in on this
the more the merrier
one sec
lol
i mean egoscio
109C
@109C
Apr 17 2016 00:40
All the devs are belong to netherrack
mhsjlw
@mhsjlw
Apr 17 2016 00:40
xd xd xd
@109C what do you mean?
109C
@109C
Apr 17 2016 00:41
I'm joking that you're trying to recruit everybody :P
mhsjlw
@mhsjlw
Apr 17 2016 00:41
lol
if you create a stupid project, they will come to you!
if i've learned anything lol
flying-squid, dazed-sheep, numerous-alpaca :P
all prime examples
109C
@109C
Apr 17 2016 00:42
heh but flying-pony isn't.
mhsjlw
@mhsjlw
Apr 17 2016 00:42
i still don't get what that is
an attempt to browserify flying-squid?
109C
@109C
Apr 17 2016 00:43
It's an mc server, like flying squid, except completly different code base.
mhsjlw
@mhsjlw
Apr 17 2016 00:43
i detect sarcasm
but im not sure
109C
@109C
Apr 17 2016 00:44
That's a proxy thingy I wrote, not the server.
mhsjlw
@mhsjlw
Apr 17 2016 00:44
oh
109C
@109C
Apr 17 2016 00:44
Funny thing is, the repo for flying pony is not in the flying pony org. :D
'A ultramodern JSON Minecraft server written in ES9 with the HTML8 boilerplate and cutting edge jQuery enabled node.js ModernizrifyJS. Because of the new ES9 quantum JIT emitters, it's guaranteed 110% uptime, even when restarting. (As long as you don't observe it.)'
109C
@109C
Apr 17 2016 00:45
Yeah, that's it.
mhsjlw
@mhsjlw
Apr 17 2016 00:45
well
you've sold me
109C
@109C
Apr 17 2016 00:45
where are the VCs?
brb founding startup around it.
mhsjlw
@mhsjlw
Apr 17 2016 00:46
sounds good
you can have my $3 in bitcoin
from 2002
that's like 100000 million dollars
109C
@109C
Apr 17 2016 00:46
could you convert it to videocoin first thought?
mhsjlw
@mhsjlw
Apr 17 2016 00:46
done
yup
now it's worth uhhh
let me check
oh yeah $0
109C
@109C
Apr 17 2016 00:48
But seriously, even with the sarcastic readme, it actually works.
mhsjlw
@mhsjlw
Apr 17 2016 00:50
kewl
ok, so i think i am going to go sleep
then ill work on netherrack in the morning
109C
@109C
Apr 17 2016 00:51
ok, see ya tomorrow.
mhsjlw
@mhsjlw
Apr 17 2016 00:51
you're welcome to hack away if you wish
109C
@109C
Apr 17 2016 00:51
flashing green text, while smashing keyboard
mhsjlw
@mhsjlw
Apr 17 2016 00:51
sounds good
109C
@109C
Apr 17 2016 01:13
um, mvn package fails.
mhsjlw
@mhsjlw
Apr 17 2016 01:21
wtf left my notifications on
what's the error?
then I can go back to sleep
:P
109C
@109C
Apr 17 2016 01:22
Failed to execute goal on project netherrack: Could not resolve dependencies for project org.netherrack:netherrack:jar:0.0.1-SNAPSHOT: Failed to collect dependencies for [org.spacehq:mcprotocollib:jar:1.9.2-SNAPSHOT (compile), junit:junit:jar:3.8.1 (test), org.spacehq:opennbt:jar:1.0 (compile), org.spacehq:packetlib:jar:1.0 (compile), org.spacehq:mcauthlib:jar:1.0 (compile)]: Failed to read artifact descriptor for org.spacehq:mcprotocollib:jar:1.9.2-SNAPSHOT: Could not transfer artifact org.spacehq:mcprotocollib:pom:1.9.2-SNAPSHOT from/to spacehq-releases (https://repo.spacehq.org/content/repositories/releases/): Received fatal alert: internal_error -> [Help 1]
mhsjlw
@mhsjlw
Apr 17 2016 01:22
lol
109C
@109C
Apr 17 2016 01:22
Classic java error messages.
mhsjlw
@mhsjlw
Apr 17 2016 01:22
hmm
just run mvn?
then see if the output is different
109C
@109C
Apr 17 2016 01:23
It still give the same error.
mhsjlw
@mhsjlw
Apr 17 2016 01:23
ok hmm
you're Java 1.8 right?
109C
@109C
Apr 17 2016 01:23
do you have extra JARs?
mhsjlw
@mhsjlw
Apr 17 2016 01:23
and what version of maven
109C
@109C
Apr 17 2016 01:23
yes I have java 8
maven 3.0.4
mhsjlw
@mhsjlw
Apr 17 2016 01:24
interesting
hmm
are you behind blocked internet?
109C
@109C
Apr 17 2016 01:25
might be related
[WARNING] Some problems were encountered while building the effective model for org.netherrack:netherrack:jar:0.0.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ line 129, column 15
mhsjlw
@mhsjlw
Apr 17 2016 01:25
Or using a VPN/proxy?
109C
@109C
Apr 17 2016 01:25
I shouldn't be, and my SSL certs aren't that old.
mhsjlw
@mhsjlw
Apr 17 2016 01:26
mvn clean install?
109C
@109C
Apr 17 2016 01:26
oo, it's doing some downloading, which shouldn't be bad.
and it failed.
With the same error message ¯\_( :sad: )_/¯
ah well, I'll deal with this tomorrow.
mhsjlw
@mhsjlw
Apr 17 2016 01:29
ok
mvn dependency:go-offline
mvn package
try that ^ if you want
109C
@109C
Apr 17 2016 01:30
kk
Egoscio
@Egoscio
Apr 17 2016 02:39
Woah!
Interesting
mhsjlw
@mhsjlw
Apr 17 2016 10:09
good morning.
back to work ;)
you've all been added btw
so just do stuff when you feel like it
@Egoscio hopefully you read the chat above but yeah, pretty much we're using an evented lib to do most of the work for us
MCProtocolLib
read the javadocs to catch up i guess
Egoscio
@Egoscio
Apr 17 2016 11:28
alright
mhsjlw
@mhsjlw
Apr 17 2016 11:28
so yeah you're added
so hack away
right now im trying to add chunks
:P
because, why not
Egoscio
@Egoscio
Apr 17 2016 11:28
First I have to feel confident in java :P
I didn't even do a hello world yet
mhsjlw
@mhsjlw
Apr 17 2016 11:28
yeah, get comfortable
it's easy
Egoscio
@Egoscio
Apr 17 2016 11:29
system.println
mhsjlw
@mhsjlw
Apr 17 2016 11:29
:P
Egoscio
@Egoscio
Apr 17 2016 11:29
idk
mhsjlw
@mhsjlw
Apr 17 2016 11:29
System.out.println("Hello, world");
Egoscio
@Egoscio
Apr 17 2016 11:29
oh
mhsjlw
@mhsjlw
Apr 17 2016 11:29
in a main function
just read the src, it's a lot like javascript
also, make sure you've got java 8
Egoscio
@Egoscio
Apr 17 2016 11:29
yeah i've decompiled java aloooot
mhsjlw
@mhsjlw
Apr 17 2016 11:29
because we're using lambdas
Egoscio
@Egoscio
Apr 17 2016 11:29
last thing i decompiled was scriptcraft
I'ma get some sleep tho, gn :P
mhsjlw
@mhsjlw
Apr 17 2016 11:30
ok
Egoscio
@Egoscio
Apr 17 2016 11:31
hopefully by september ill be ahead of my game in AP compsci
mhsjlw
@mhsjlw
Apr 17 2016 11:31
lol
sounds good
'yeah, don't mean to brag....'
but i wrote an mc server in java
ha nerd
;)
:P
Egoscio
@Egoscio
Apr 17 2016 11:31
lol
mhsjlw
@mhsjlw
Apr 17 2016 11:47
ok step one
i need to reorganize this geez
hmm
i wonder if i have to make the user agree to an eula
i really don't want to lol
mhsjlw
@mhsjlw
Apr 17 2016 11:59
hmm
ill just make a flat chunk i guess
mhsjlw
@mhsjlw
Apr 17 2016 12:06
ok first attempt
this can only end badly
oh wow im stupid
lol
arrays in java are soo stupid
mhsjlw
@mhsjlw
Apr 17 2016 12:20
ok wtf
why null pointer
im initializing it
so why?
Chunk[] chunks = new Chunk[16];
why no work?!
mhsjlw
@mhsjlw
Apr 17 2016 12:25
oh wait
that's just a list of null pointers
in the loop i need to new Chunk
that doesn't fix it though
this is the problem: set(x, 50, z, grass);'
java.lang.IndexOutOfBoundsException>
?
ok well
i fixed a memory leak that i would have caused
but wtf
mhsjlw
@mhsjlw
Apr 17 2016 12:31
hmm
do i have to initialize it?
mhsjlw
@mhsjlw
Apr 17 2016 12:39
hmm
should i post an issue?
wtf is the problem
it's confusing me :P
Chunk[] chunks = new Chunk[16];

for (int amount = 0; amount < 16; amount++) {
    chunks[amount] = new Chunk(true);
        for (int x = 0; x < 16; x++) {
            for (int z = 0; z < 16; z++) {
                chunks[amount].getBlocks().set(x, 50, z, new BlockState(2,0));
        }
    }
}

Column column = new Column(1, 1, chunks);

session.send(new ServerChunkDataPacket(column));
that should in theory make one chunk
that is filled with grass
but why no work!?
mhsjlw
@mhsjlw
Apr 17 2016 12:49
netherrack/netherrack#2
hm
i must point out though
that's awesome that it's that easy
mhsjlw
@mhsjlw
Apr 17 2016 14:27
ok well
for the record
i think im an idiot
you're supposed to divide the x,y by 16
then round down
mhsjlw
@mhsjlw
Apr 17 2016 15:15
Steveice10/MCProtocolLib#156
mhsjlw
@mhsjlw
Apr 17 2016 18:50
@109C ? any ideas for chunk sending?
or are you not used to that low-level
109C
@109C
Apr 17 2016 18:52
I don't know how mcprotocollib sends chunks.
mhsjlw
@mhsjlw
Apr 17 2016 18:53
mcprotocollib for sending anything is pretty easy
and go to the ServerChunk packet
but yeah, i'll keep working on it hmm
nmp's client says im getting the chunkj
but idk wtf im doing wrong
cause it's not showing up to the notchian client
@109C anything you want to work on ?
i can probably get you started in the right direction
109C
@109C
Apr 17 2016 18:56
I'm working on a build script, so I can compile xD
mhsjlw
@mhsjlw
Apr 17 2016 18:57
sounds good :P
i may be able to help you more now that im on my computer
want my maven settings?
109C
@109C
Apr 17 2016 18:57
Yes.
mhsjlw
@mhsjlw
Apr 17 2016 18:57
ok one sec
uhh
where are they?
they're not in m2 weird
109C
@109C
Apr 17 2016 18:59
I don't know, but remember not to include any passwords :P
mhsjlw
@mhsjlw
Apr 17 2016 18:59
wow
that hurts lol
Matthewacon
@Matthewacon
Apr 17 2016 19:00
Hi
mhsjlw
@mhsjlw
Apr 17 2016 19:00
heyo
@109C im looking for it lol
ill make sure to send my shadow file xD xd
109C
@109C
Apr 17 2016 19:01
and your videocoin wallet.
Hi @Matthewacon
mhsjlw
@mhsjlw
Apr 17 2016 19:01
sure, it's about 10000gb should i zip it?
nah, i'll send it raw
109C
@109C
Apr 17 2016 19:01
10Tb...
Matthewacon
@Matthewacon
Apr 17 2016 19:01
Hey @109C
mhsjlw
@mhsjlw
Apr 17 2016 19:02
lol @109C it says it's reading from a file that doesn't exist
:P
oh wait found it
Matthewacon
@Matthewacon
Apr 17 2016 19:03
I'ma go restart my computer.... 23 / 28GB of ram used just because of google chrome... IntelliJ is having a fit just typing....
mhsjlw
@mhsjlw
Apr 17 2016 19:03
no, this doesn't have what you want
@Matthewacon lol, you do that
@109C what's the error again?
mvn package
or just mvn
109C
@109C
Apr 17 2016 19:05
Caused by: javax.net.ssl.SSLException: Received fatal alert: internal_error at sun.security.ssl.Alerts.getSSLException(Alerts.java:208) at sun.security.ssl.Alerts.getSSLException(Alerts.java:154) at sun.security.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:2023) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1125) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375) at sun.security.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:747) at sun.security.ssl.AppOutputStream.write(AppOutputStream.java:123) at org.apache.maven.wagon.providers.http.httpclient.impl.io.AbstractSessionOutputBuffer.flushBuffer(AbstractSessionOutputBuffer.java:131) at org.apache.maven.wagon.providers.http.httpclient.impl.io.AbstractSessionOutputBuffer.flush(AbstractSessionOutputBuffer.java:138) at org.apache.maven.wagon.providers.http.httpclient.impl.AbstractHttpClientConnection.doFlush(AbstractHttpClientConnection.java:270) at org.apache.maven.wagon.providers.http.httpclient.impl.AbstractHttpClientConnection.flush(AbstractHttpClientConnection.java:275) at org.apache.maven.wagon.providers.http.httpclient.impl.conn.AbstractClientConnAdapter.flush(AbstractClientConnAdapter.java:197) at org.apache.maven.wagon.providers.http.httpclient.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:258) at org.apache.maven.wagon.providers.http.httpclient.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123) at org.apache.maven.wagon.providers.http.httpclient.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:645) at org.apache.maven.wagon.providers.http.httpclient.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:464) at org.apache.maven.wagon.providers.http.httpclient.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820) at org.apache.maven.wagon.providers.http.httpclient.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754) at org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.execute(AbstractHttpClientWagon.java:674) at org.apache.maven.wagon.shared.http4.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:793) ... 8 more
mhsjlw
@mhsjlw
Apr 17 2016 19:05
? oh
update your maven
you're on linux?
109C
@109C
Apr 17 2016 19:05
osx
mhsjlw
@mhsjlw
Apr 17 2016 19:06
hmm
in that case
brew update
brew upgrade?
or maybe brew install maven
i think that updates it
actually
try doing this
System.setProperty("https.protocols", "TLSv1");
109C
@109C
Apr 17 2016 19:07
Doesn't that only effect the current running JVM?
And where would I even put that?!?
mhsjlw
@mhsjlw
Apr 17 2016 19:07
hmm yeah ok
you would put it...
ah yeah no where
:P
i'll keep looking
java --version returns 1.8 right?
109C
@109C
Apr 17 2016 19:08
java version "1.8.0_77"
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)
yup
mhsjlw
@mhsjlw
Apr 17 2016 19:08
ok good
just checking
try updating maven
if you're not already
109C
@109C
Apr 17 2016 19:09
I updated maven with brew, I'm currently running maven.
mhsjlw
@mhsjlw
Apr 17 2016 19:09
ok
109C
@109C
Apr 17 2016 19:09
it's downloading poms.
Matthewacon
@Matthewacon
Apr 17 2016 19:10
Okay I'm back
109C
@109C
Apr 17 2016 19:10
Anyway I got the JARs from the website.
Matthewacon
@Matthewacon
Apr 17 2016 19:11
The netherrack deps?
I have them saved locally if you need them
109C
@109C
Apr 17 2016 19:11
Ya.
Matthewacon
@Matthewacon
Apr 17 2016 19:11
Can you share files in gitter?
mhsjlw
@mhsjlw
Apr 17 2016 19:12
yeah
just drag them
but i'd zip them
Matthewacon
@Matthewacon
Apr 17 2016 19:12
Yeah I will
@109C What IDE are you using?
109C
@109C
Apr 17 2016 19:13
Xcode, but that shouldn't matter.
Matthewacon
@Matthewacon
Apr 17 2016 19:13
You can use Xcode for other languages?
109C
@109C
Apr 17 2016 19:14
yup, you can even use xcode for ARM assembly
Matthewacon
@Matthewacon
Apr 17 2016 19:14
I didn't know that, I'll have to test it out on a vm
109C
@109C
Apr 17 2016 19:15
Don't know if it's any good with it thought ;)
Matthewacon
@Matthewacon
Apr 17 2016 19:16
Can you decompress tar balls on a mac?
109C
@109C
Apr 17 2016 19:16
tar
mhsjlw
@mhsjlw
Apr 17 2016 19:16
yeah
109C
@109C
Apr 17 2016 19:16
You need to know the correct flags, which isn't easy...
Matthewacon
@Matthewacon
Apr 17 2016 19:16
@109C tar -zxf on linux
I can just zip if it's too much trouble
mhsjlw
@mhsjlw
Apr 17 2016 19:17
just send it with whatever you want ;)
Matthewacon
@Matthewacon
Apr 17 2016 19:17
There you go
It's uploading
It's only 14MB compressed
mhsjlw
@mhsjlw
Apr 17 2016 19:18
nice
i added opennbt because i was like, meh
we'll need it at some point
Matthewacon
@Matthewacon
Apr 17 2016 19:18
XD
mhsjlw
@mhsjlw
Apr 17 2016 19:18
and idk why i added packetlib
but it's their
*there
Matthewacon
@Matthewacon
Apr 17 2016 19:18
It's like unused imports.... but with entire libraries
mhsjlw
@mhsjlw
Apr 17 2016 19:19
i'll get rid of them eventually
Matthewacon
@Matthewacon
Apr 17 2016 19:19
Anyways
I'm going to read the src now
mhsjlw
@mhsjlw
Apr 17 2016 19:19
yeah, still working on chunks :P
good idea
see if you can figure out why this isn't working
ok so in f3
the client says:
'Waiting for chunk...'
hmm
Matthewacon
@Matthewacon
Apr 17 2016 19:20
Yeah
Same problem
mhsjlw
@mhsjlw
Apr 17 2016 19:20
but we're sending it
so wtf
Matthewacon
@Matthewacon
Apr 17 2016 19:20
In the iterative column creator that I put in, I send each column after it's initialized
So
mhsjlw
@mhsjlw
Apr 17 2016 19:20
i wonder if these packets go in order hmm
java executes line by line right?
so it will do the for loop before sending the packet?
109C
@109C
Apr 17 2016 19:21
Ya
mhsjlw
@mhsjlw
Apr 17 2016 19:21
ok good
Matthewacon
@Matthewacon
Apr 17 2016 19:21
Not necessarily...
Wait
You mean the for that creates the columns
?
109C
@109C
Apr 17 2016 19:22
It's only a problem when you have more than one thread.
Matthewacon
@Matthewacon
Apr 17 2016 19:22
atomic variables... or synchronized keyword
XD
Actually volatile keyword also works
mhsjlw
@mhsjlw
Apr 17 2016 19:22
2 many threads 4 me
Matthewacon
@Matthewacon
Apr 17 2016 19:22
But we're not using multiple threads in our code
mhsjlw
@mhsjlw
Apr 17 2016 19:22
ik
Matthewacon
@Matthewacon
Apr 17 2016 19:22
The library is multithreaded in the background, but our code is linear
@mhsjlw Where is the session that's passed into the 'loggedIn()' method set?
mhsjlw
@mhsjlw
Apr 17 2016 19:23
hmm ok
it's in the netherrack.java file
i register listeners
Matthewacon
@Matthewacon
Apr 17 2016 19:23
In the private UserAuthTask class
Wait
Your code is multithreaded
mhsjlw
@mhsjlw
Apr 17 2016 19:24
panics
Matthewacon
@Matthewacon
Apr 17 2016 19:24
You implement runnable and use the run method
mhsjlw
@mhsjlw
Apr 17 2016 19:24
O.o
Matthewacon
@Matthewacon
Apr 17 2016 19:24
But it's not recursive or iterative
So
The thread just dies
Which is probably the packets aren't sent
...
mhsjlw
@mhsjlw
Apr 17 2016 19:24
????
Matthewacon
@Matthewacon
Apr 17 2016 19:24
gg
mhsjlw
@mhsjlw
Apr 17 2016 19:25
yeah gg
let's try that
oh also
just want everyone to recognize
that literally the whole thing keeping this server alive
is a god damn while loop
Matthewacon
@Matthewacon
Apr 17 2016 19:25
But
It's not
no joke
Matthewacon
@Matthewacon
Apr 17 2016 19:25
though
mhsjlw
@mhsjlw
Apr 17 2016 19:25
yeah, remove it and it doesn't work
Matthewacon
@Matthewacon
Apr 17 2016 19:25
Because no packets are sent to the player after login XD
You just time out
mhsjlw
@mhsjlw
Apr 17 2016 19:26
so how do i fix this?
Matthewacon
@Matthewacon
Apr 17 2016 19:26
@mhsjlw When was the last time that you wrote Java, or even OOP
?
mhsjlw
@mhsjlw
Apr 17 2016 19:26
@109C are deps working
5 seconds ago
Matthewacon
@Matthewacon
Apr 17 2016 19:27
Before netherrack
mhsjlw
@mhsjlw
Apr 17 2016 19:27
i just made a new class !
Matthewacon
@Matthewacon
Apr 17 2016 19:27
XD
mhsjlw
@mhsjlw
Apr 17 2016 19:27
um
~6 months ago
Matthewacon
@Matthewacon
Apr 17 2016 19:27
Okay
@mhsjlw Come back into the light
109C
@109C
Apr 17 2016 19:27
Yeah I got it compiling, but it's not running yet.
mhsjlw
@mhsjlw
Apr 17 2016 19:27
oh god please
grabs onto lambda
don't take my functional ! please !
Matthewacon
@Matthewacon
Apr 17 2016 19:28
Really
109C
@109C
Apr 17 2016 19:28
gives mhsjlw eigenvalue
There now you have your lambda
Matthewacon
@Matthewacon
Apr 17 2016 19:28
I'm developing libboostj... it makes it more like a functional oop than anything else... relax
mhsjlw
@mhsjlw
Apr 17 2016 19:28
ok well
how can i fix the chunkjs
Matthewacon
@Matthewacon
Apr 17 2016 19:28
I'm working on it
mhsjlw
@mhsjlw
Apr 17 2016 19:28
oh ok
Matthewacon
@Matthewacon
Apr 17 2016 19:29
@mhsjlw Did you write the massive if blocks in the ServerListener
Oh wait
That's the lib
mhsjlw
@mhsjlw
Apr 17 2016 19:30
lol
Matthewacon
@Matthewacon
Apr 17 2016 19:30
@mhsjlw sorry
XD
109C
@109C
Apr 17 2016 19:30
huehuehue
Matthewacon
@Matthewacon
Apr 17 2016 19:31
Okay
Well I definitely know why it doesn't work now..
@mhsjlw I was just confused... I attached the src for all of the deps to my IDE so I can just read the src without decompiling... And I thought that you wrote the class XD
mhsjlw
@mhsjlw
Apr 17 2016 19:32
lol
Matthewacon
@Matthewacon
Apr 17 2016 19:33
So wait
Hmm
Actually
Okay testing now
I just have to start MultiMC
109C
@109C
Apr 17 2016 19:37
One problem with the while(true) is that it uses up 100% cpu...
mhsjlw
@mhsjlw
Apr 17 2016 19:37
oh
yeah
we should fix that
ideas?
Matthewacon
@Matthewacon
Apr 17 2016 19:37
Therad.currentThread.sleep();
Wait
no
Hold on
I think I figured out the problem... Maybe
We're generating all of the chunks on one login instance for a user, not the entire server...
109C
@109C
Apr 17 2016 19:38
Ya
Matthewacon
@Matthewacon
Apr 17 2016 19:38
All that the login session has to do is send the chunks to the user...
109C
@109C
Apr 17 2016 19:38
Temporarily, so that we know it works
mhsjlw
@mhsjlw
Apr 17 2016 19:38
that's the point ^
once it's working, we'll save it
Matthewacon
@Matthewacon
Apr 17 2016 19:38
But it doesn't
We can generate the chunks before hand, now that we know how to, and then make them publicly accessible, however not mutable so that we can pass them to user login instances
mhsjlw
@mhsjlw
Apr 17 2016 19:39
ill do that right now
then ill push
Matthewacon
@Matthewacon
Apr 17 2016 19:39
That would illuminate alot of the login debugging
Wait
I already made changes
@mhsjlw I'll do it and push
109C
@109C
Apr 17 2016 19:40
This message was deleted
Matthewacon
@Matthewacon
Apr 17 2016 19:41
I'm making a generation package... And we can customize generation types and algorithms in different subclasses
And make the result of generation available to the bulk of the netherrack server threads that need access to them
109C
@109C
Apr 17 2016 19:45
Well I got it building.
Matthewacon
@Matthewacon
Apr 17 2016 19:45
@109C Nice
@109C Does it run now?
109C
@109C
Apr 17 2016 19:46
Yup.
You still need to manually get the libs tho.
Matthewacon
@Matthewacon
Apr 17 2016 19:46
Do you have maven installed
109C
@109C
Apr 17 2016 19:46
Yes, but I skipped that
too buggy / weird
mhsjlw
@mhsjlw
Apr 17 2016 19:49
@109C hmm should there be build scripts in here idk
109C
@109C
Apr 17 2016 19:50
For a rainy day, in case other people can't get maven working.
mhsjlw
@mhsjlw
Apr 17 2016 19:54
k
Matthewacon
@Matthewacon
Apr 17 2016 19:54
I'm working on the generation utility class... It's a first model but it should work just fine. I'll be done in like 10 minutes or less
Matthewacon
@Matthewacon
Apr 17 2016 20:14
Umm
I think I may have found our issue
Wait
Idk why
FOUND IT
But when we create a new column using a chunk[], it just sets the array to null
So we pass empty columns to the user
Matthewacon
@Matthewacon
Apr 17 2016 21:20
Alright
I give up
Idk what is wrong
mhsjlw
@mhsjlw
Apr 17 2016 21:49
hmm
Egoscio
@Egoscio
Apr 17 2016 23:40
question
Matthewacon
@Matthewacon
Apr 17 2016 23:40
@Egoscio hI
Egoscio
@Egoscio
Apr 17 2016 23:40
what's the difference between this and, say glowstone++
howdy o/
Matthewacon
@Matthewacon
Apr 17 2016 23:41
This is just a small MC server project
Egoscio
@Egoscio
Apr 17 2016 23:41
Ah
Are you'all willing to hook it up with a nice API?
Matthewacon
@Matthewacon
Apr 17 2016 23:41
I think eventually we aim to implement easily configurable plugins via Json, and crossover between PE and regular MC
Egoscio
@Egoscio
Apr 17 2016 23:41
and maybe native javascript integration for plugins?
Matthewacon
@Matthewacon
Apr 17 2016 23:41
And yeah
Egoscio
@Egoscio
Apr 17 2016 23:41
Like nashorn
I'm a fan of scriptcraft and running js in java. it's pretty effective comparing to doing wrappers and proxies
Matthewacon
@Matthewacon
Apr 17 2016 23:42
Yeah well I don't have too much experience with nashhorn, but we could probably create a crossover API
For JS
Egoscio
@Egoscio
Apr 17 2016 23:43
awesome
Matthewacon
@Matthewacon
Apr 17 2016 23:43
We just got chunk loading working, so now I have to get position updates, block changes etc