-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rewrite MOTD parser #335
Rewrite MOTD parser #335
Conversation
fef59cd
to
223d6f2
Compare
43db85e
to
4e2ff9e
Compare
Found something strange, when I read about the protocol, found that all text in MOTD can be formatted with one tag on top level. See this. Should I implement parsing for this? |
That's interesting, good catch, yeah it probably should be respected, even though I don't think I've seen that before. If you are going to be adding support for that here, make sure to also add a unit-test for that. Otherwise, you can reference this comment in a new issue about this and let someone else handle it later. |
4e2ff9e
to
9618efb
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is just a quick review of some issues I noticed when reading over the code for the first time, I'll make another review after inspecting the code in greater detail and doing some manual testing later, when these issues will be resolved.
This also needs addressing the failed unit tests and validation github workflows
NOTE: If this PR wasn't yet supposed to be reviewed, please mark it back as draft PR and feel free to ignore this review up until you think the PR will be ready.
This is ready to review, but not for merge. I'm keep doing |
9618efb
to
bccee99
Compare
I pretty sure, few big moments here still needs more work. |
b09a9e2
to
4ca2f0d
Compare
4ca2f0d
to
5cfd1e4
Compare
Hmmmmmmm... I wonder, how many things was broken in first implementation from Iapetus-11... |
fbb8556
to
fe247ea
Compare
Adding do-not-merge label, as requested. This do-not-merge is here because this PR relies on renaming Note that this PR can be still reviewed and approved, it just shouldn't yet be merged. But when reviewing, this blocking status should be taken into consideration, and some points on changes in variable naming or other inconsistencies with current code-base may not actually be inconsistencies, as this assumes the pending decision about this rename in 306 will end up on choosing to rename description to motd.
|
fe247ea
to
622d58b
Compare
2e315db
to
3f458bc
Compare
46dabec
to
40774ba
Compare
d6eef53
to
6e15db5
Compare
As flows out of this conversation, we no longer support ANSI 3-bit, 4-bit and 8-bit. At now, we only support 24-bit. If you want this feature - implement it yourself, or raise a feature request. We can reconsider this. Also, I found a public database with 130k servers and their answers. If you need to test this PR on real world - I can give a file with 45mb of raw answers. Just contact me. |
6e15db5
to
0c41416
Compare
0c41416
to
a950e99
Compare
fae1023
to
4277421
Compare
4277421
to
a9e15ec
Compare
04dfac0
to
ab53f18
Compare
ab53f18
to
d9666e9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, is there something else that needs to be done before this can be merged? Do the simplify methods all work properly? Could you do some field testing to make sure that this works with most servers without issues?
I found a database with several hundred thousand unparsed Minecraft servers' answers, and I will run all methods on them. Although, simplifies can be improved in some situations, you said that improving of them should go as separated PR, so this PR will be merged faster. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, the simplifies can just be updated later, forgot I mentioned that before. In that case, after the integration testing is done, assuming it passes, IMO this can be merged.
Although I would like to see @kevinkjt2000's review too for this one, since the PR is pretty big and therefore could contain something I missed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is awesome. Much wow. Much feature. Much appreciate.
Full rewrite of MOTD parser. I also made an API for users, so they can easily write their own parser.
Closes #204.