Commit graph

1753 commits

Author SHA1 Message Date
Anon
ecc88fac06 Fixed a crash on Entity Metadata 2024-02-25 16:11:33 +01:00
Anon
798a24e8be
Fixed a crash on chat parsing. + Returned the commended try catch block
Fixed a crash on chat parsing. + Returned the commended try catch block
2024-02-21 17:41:37 +01:00
Anon
3522a16b0d Removed a comment 2024-02-21 17:40:39 +01:00
Anon
13de67b6f8 Fixed a crash on chat parsing.
Returned the commended try catch block.
2024-02-21 17:38:32 +01:00
oldkingOK
8e1822b0d2 feat(DeclareCommands.cs): Remove 1.20.2+ version check 2024-02-21 10:10:03 +08:00
oldkingOK
8be66daab1 fix(Protocol18Forge.cs): Version bigger or equal 1.18 is FML3 2024-02-20 22:23:46 +08:00
oldkingOK
092854532a docs(Protocol18Forge.cs): Move comment to mechod head 2024-02-20 22:22:11 +08:00
oldkingOK
6949276779 docs(Protocol18Forge.cs): Replace code with packet definition 2024-02-20 22:13:10 +08:00
oldkingOK
970ba19172 refactor(ForgeInfo.cs): Remove unused code and edit comments 2024-02-20 22:02:22 +08:00
oldkingOK
f749840d89 refactor(KeyUtils.cs): Replace Newtonsoft.Json with JSONData 2024-02-20 20:31:22 +08:00
oldkingOK
576575ff65 refactor(DeclareCommands.cs): Move forge to switch version block 2024-02-20 20:22:37 +08:00
oldkingOK
e569ffe0cc fix: IndexOutOfRange on packet reading (Forge)
Add two missing forge Command Packet Parsers, which won't affect the vanilla parsers.
The ids of the two Command Packet Parsers `forge:enum` and `forge:modid` [Forge once added in order](19f8d2a793/src/main/java/net/minecraftforge/common/ForgeMod.java (L175)) are the maximum value of the Vanilla Parser id plus 1 or plus 2. `forge:enum` has a [String Type argument](https://wiki.vg/Command_Data#forge:enum).
The specific id is from [wiki.vg](https://wiki.vg/Command_Data) or Forge-generated minecraft source code.
2024-02-20 15:37:57 +08:00
breadbyte
b2ef5cb23b
(skip ci) update supported versions (visual change) 2024-02-19 02:47:07 +08:00
Anon
7edf458135
Fixed a crash with Reconfiguration... screen
Fixed a crash with Reconfiguration... screen
2024-02-18 18:55:52 +01:00
Anon
3fab7eb78f Fixed a crash with Reconfiguration... screen 2024-02-18 18:54:45 +01:00
Anon
9a147b57e5
Fixed crashing on Reconfiguration... screen phase
Fixed crashing on Reconfiguration... screen phase
2024-02-18 18:45:21 +01:00
Anon
d7e898c6d4 Fixed crashing on Reconfiguration... screen phase 2024-02-18 18:44:36 +01:00
Anon
317d8cca49
Fixes for 1.20.3
Fixes for 1.20.3
2024-02-18 17:57:58 +01:00
Anon
35cfd4a7db Fixed a NBT crash < 1.20.2 and Fixed a crash with parsing 'extra' section in Chat 2024-02-18 17:56:02 +01:00
ReinforceZwei
6d016332fb 1.20.4: Update NBT chat parser to handle text color 2024-02-11 18:15:52 +08:00
ReinforceZwei
4546e6946e 1.20.4: Update entity, item and block palette 2024-02-11 18:13:48 +08:00
ReinforceZwei
a9f1ad4433 1.20.3: Update chat parser to parse new NBT format 2024-02-04 18:14:09 +08:00
Anon
975aab88e3 NBT Changes, needs fixing 2024-01-31 13:53:09 +01:00
Anon
790e0bfe55 Implemented 1.20.3 2024-01-30 12:51:47 +01:00
Anon
1e60b611e9
fix(Protocol18.cs): OperationCanceledException when /reco or /quit
fix(Protocol18.cs): OperationCanceledException when /reco or /quit
2024-01-30 10:15:56 +01:00
oldkingOK
350c1cdd51 fix(Protocol18.cs): OperationCanceledException when /reco 2024-01-30 11:22:37 +08:00
Anon
1479c646d1
Fixed a crash on non 1.20.2 versions
Fixed a crash on non 1.20.2 versions
2024-01-29 22:42:17 +01:00
Anon
4f89e4fe36 Fixed a crash on non 1.20.2 versions 2024-01-29 22:40:17 +01:00
Anon
db1fade2c2
Added Configuration packets mapping + removed a debug log
Added Configuration packets mapping + removed a debug log
2024-01-29 15:50:31 +01:00
Anon
ad684fb5b6 Removed debug log for keys 2024-01-29 15:46:42 +01:00
Anon
e13ba93f47 Added Configuration Packets mapping 2024-01-29 15:39:39 +01:00
Anon
7aabe8ba28
Fixed a crash with a chat message
Fixed bad code and the bug
Fixed a crash when a chat message was received on a server that uses protocol lib and viaversion.
2024-01-28 21:57:47 +01:00
Anon
f325dd7475 Fixed bad code and the bug 2024-01-28 21:56:06 +01:00
Anon
3bfe5aa855
Fixed a crash
Fixed a crash when a chat message was received on a server that uses protocol lib and viaversion.
2024-01-28 21:43:21 +01:00
Peaches_MLG
88bca839f7 boink 2024-01-28 01:27:16 +00:00
Anon
6faddae16e
Implement Forge FML3 protocol (MC 1.18+) and Fix yggdrasil-auth chat issue
Implement Forge FML3 protocol (MC 1.18+) and Fix yggdrasil-auth chat issue
2024-01-14 17:07:15 +01:00
Anon
ae5e016f5f
[skipci] Bump follow-redirects from 1.15.2 to 1.15.4 in /docs
Bump follow-redirects from 1.15.2 to 1.15.4 in /docs
2024-01-14 12:02:11 +01:00
oldkingOK
a8643d85fc Remove QQbot scripts for fml3 pull request 2024-01-14 10:48:45 +08:00
oldkingOK
8eee50044f Edit outdated links in comments and add FML3 stuff
Add FML3 extra packetID 5 and 6 recognition based on
https://github.com/MinecraftForge/MinecraftForge/blob/1.18.x/src/main/java/net/minecraftforge/network/NetworkInitialization.java

Changed the way of selecting FML version for "Force Forge" from forced FML3 to game version based.
MC 1.12 and lower: FML, MC 1.13 to 1.17: FML2, MC 1.18 and greater: FML3

Edit outdated links in comments:
Accessing the link below will result in a message that the file cannot be found
https://github.com/MinecraftForge/MinecraftForge/blob/master/src/main/java/net/minecraftforge/fml/network/FMLNetworkConstants.java
Presumably it's version 1.13 based on the original commit and issue, then change to
https://github.com/MinecraftForge/MinecraftForge/blob/1.13.x/src/main/java/net/minecraftforge/fml/network/FMLNetworkConstants.java
https://github.com/MCCTeam/Minecraft-Console-Client/issues/1184
2024-01-14 01:45:38 +08:00
oldkingOK
79fa297e2b Merge branch 'dev' of github.com:oldkingOK/Minecraft-Console-Client into dev
Sync files
2024-01-13 03:40:01 +08:00
oldkingOK
2c8b15b02e Fix bug: Yggdrasil client can't send message upper 22w17a
When try to send message in yggdrasil-auth server with `enforce-secure-profile=true`
and `online-mode=true` enabled, will fail with message in red:
Chat disabled due to missing profile public key. Please try reconnecting.
So yggdrasil-auth-client also has to encrypt chat messages like Microsoft-auth-client
to send out messages.
2024-01-13 03:29:00 +08:00
oldkingOK
e7d519e4aa Fix bug: Yggdrasil client can't send message upper 22w17a
When try to send message in yggdrasil-auth server with `enforce-secure-profile=true`
and `online-mode=true` enabled, will fail with message in red:
Chat disabled due to missing profile public key. Please try reconnecting.
So yggdrasil-auth-client also has to encrypt chat messages like Microsoft-auth-client
to send out messages.
2024-01-13 03:00:02 +08:00
oldkingOK
22cf7a046b 添加支持 Fml3 ,并暂时设置force forge时为fml3 2024-01-12 13:28:03 +08:00
oldkingOK
725510d3ef 修改 OkWsBot.cs,获取玩家列表时排除自己
删除群号指定,因为在py-server.py里已经指定
2024-01-12 13:25:26 +08:00
oldkingOK
9ae3bc4d0d Fix: 群友未设置群昵称时无法在服务器显示名称
先判断是否有群昵称,然后再设置
2024-01-11 11:01:40 +08:00
oldkingOK
644014e42f Add QQbot scripts and python script 2024-01-10 17:48:03 +08:00
dependabot[bot]
269a890a23
Bump follow-redirects from 1.15.2 to 1.15.4 in /docs
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.15.2 to 1.15.4.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.15.2...v1.15.4)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-01-10 07:56:35 +00:00
oldkingOK
734de2a9ac Login with yggdrasil server 'hitmc.cc' will get
```
Login failed : Invalid server response.
```

Print the raw response which is `result` in [/MinecraftClient/Protocol/ProtocolHandler.cs#L554](f6797cb4b5/MinecraftClient/Protocol/ProtocolHandler.cs (L554))
(Every test shows like this)

```
HTTP/1.1 200 OK
...

1e1
{"accessToken":"...","clientToken":"...","availableProfiles":[{"id":"..","name":".."},{"id":"..","na
f
me":"ok_bot"}]}
0
```

After splited by line:
- 1e1
- {"accessToken": ... ,"na
- f
- me":"ok_bot"}]}
- 0

The response when Login with 'littleskin.cn' which works fine is:

```
HTTP/1.1 200 OK
...

1e1
{"accessToken":"...","clientToken":"...","availableProfiles":[{"id":"..","name":".."},{"id":"..","name":"ok_bot"}]}
0

```

After splited by line:
- 1e1
- {"accessToken": ... ,"name":"ok_bot"}]}
- 0
-
-

So adding [1] and [3] will make both 'hitmc.cc' and 'littleskin.cn' work fine.
2024-01-10 11:00:04 +08:00
Anon
f6797cb4b5
Implemented 1.20.2
Implemented 1.20.2
2023-12-15 09:58:10 +01:00
Anon
ba2402ee11
Fixed merge conflicts
Fixed merge conflicts
2023-12-02 13:35:29 +01:00