Skip to content
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

Error when joining BDS server with resource packs #71

Open
kabluinc opened this issue Apr 28, 2021 · 8 comments
Open

Error when joining BDS server with resource packs #71

kabluinc opened this issue Apr 28, 2021 · 8 comments
Labels
bug Something isn't working

Comments

@kabluinc
Copy link

kabluinc commented Apr 28, 2021

When joining a server with this code

func main() {
    // Connect to the server.
    conn, err := minecraft.Dialer{
        TokenSource: tokenSource(),
    }.Dial("raknet", "127.0.0.1:19132")
    if err != nil {
        panic(err)
    }
    // Make the client spawn in the world.
    if err := conn.DoSpawn(); err != nil {
        panic(err)
    }
    defer conn.Close()

I get the following error and the connection is closed.
Screenshot_20210427-005409_Termius

Minecraft version: 1.16.220
Target server is running BDS 1.16.220

@Sandertv Sandertv added the bug Something isn't working label May 11, 2021
@Sandertv
Copy link
Owner

Do you by any chance have a public server I could test on?

@kabluinc
Copy link
Author

Hi. Stopped using resource packs for now due to this issue but here's a test server with one:

IP: mc3.mcchosting.tk
Port: 19134

@Sandertv
Copy link
Owner

Thank you!

@JustTalDevelops
Copy link
Collaborator

Are you forwarding the packs from the server? The issue here seems to be that the server forces packs on the client, and if you aren't forwarding the packs, the server will reject your connection, so I'm led to believe that this isn't necessarily a gophertunnel issue.
image

@AsherMaximum
Copy link

I saw this same error when my texture pack was a folder instead of a zip file. Changing it to a zip file fixed the error.

However, the texture pack still isn't being sent to the client.

My server has a texture pack and a behavior pack.
When I dial, I can see the texture pack in serverConn.ResourcePacks(), but not the behavior pack.
Neither of them is downloaded by the client - I see no ResourcePackChunkRequest from the client, and no ResourcePacksInfo or ResourcePackDataInfo from the server.

The behavior pack is still functional though. The texture pack is not.

@TwistedAsylumMC
Copy link
Collaborator

I saw this same error when my texture pack was a folder instead of a zip file. Changing it to a zip file fixed the error.

However, the texture pack still isn't being sent to the client.

My server has a texture pack and a behavior pack. When I dial, I can see the texture pack in serverConn.ResourcePacks(), but not the behavior pack. Neither of them is downloaded by the client - I see no ResourcePackChunkRequest from the client, and no ResourcePacksInfo or ResourcePackDataInfo from the server.

The behavior pack is still functional though. The texture pack is not.

Behaviour packs are not sent over the network, they can only be parsed by the server software and used to implement features etc. The only time they were actually sent was with the abandonded scripting api

@AsherMaximum
Copy link

What about the Texture packs though? I thought the relay would pass that information through, but it doesn't seem to get sent in the first place.
I've added texture packs to the listener config, which works, but I was hoping to be able to just pass them from the server.

@TwistedAsylumMC
Copy link
Collaborator

What about the Texture packs though? I thought the relay would pass that information through, but it doesn't seem to get sent in the first place. I've added texture packs to the listener config, which works, but I was hoping to be able to just pass them from the server.

To do this you would need to pre-dial a connection before creating the listener. They cannot be forwarded immediately due to the way listeners work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants