Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

Client crashes when sent packet 0x02. #221

Open
moorehousew opened this issue Nov 8, 2015 · 7 comments
Open

Client crashes when sent packet 0x02. #221

moorehousew opened this issue Nov 8, 2015 · 7 comments

Comments

@moorehousew
Copy link
Collaborator

No description provided.

@ddevault
Copy link
Owner

ddevault commented Nov 8, 2015

Really? That packet is essential to the connection handshake. You shouldn't even be able to log in if it causes crashes.

@moorehousew
Copy link
Collaborator Author

I don't think I am, I don't start loading chunks or anything. A frame or two is rendered (blue sky with empty hotbar) before the game crashes.

@ddevault
Copy link
Owner

ddevault commented Nov 8, 2015

Weird. I'm able to play without any trouble. Restart the server?

@moorehousew
Copy link
Collaborator Author

I'm playing in singleplayer, I'll try to make a new world and see if that helps.

@ddevault
Copy link
Owner

ddevault commented Nov 8, 2015

Can you get the stack trace?

@moorehousew
Copy link
Collaborator Author

No, I can't replicate it anymore, even with the old world. On another note, how can I access light level for a block (client-side)? Chunk.GetBlockLight seems to always return 0.

@ddevault
Copy link
Owner

ddevault commented Nov 8, 2015

Well, you would use Chunk.GetBlockLight. But it's possible that it's not coming back correctly: https://github.com/SirCmpwn/TrueCraft/blob/master/TrueCraft.Client/Handlers/ChunkHandlers.cs#L41

Also possible that the value from the server is not correct. Use /sl to get the skylight at your current position (/bl does not exist but would be easy to add).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants