Jump to content

Recommended Posts

Posted (edited)

I am hosting a server with my mod on it. I have the exact same built version of that mod on my client. Both the server and the client are using Forge version 27.0.17. My mod specifies that it is made for Forge version 27.

 

Channels [luckyblock:main] rejected their server side version number

is the error I get on the client whenever I try to join the server. Forge tells me that I have a mismatched mod channel list.

 

Information:

Spoiler

 

I set the version in the mods.toml 


version="${file.jarVersion}"

the build.gradle


version = '1.0'

the build.gradle again


"Implementation-Version": "${version}",

and the build.gradle again


"Specification-Version": "1.0"

 

 

 

I'm wondering if my dependencies in my mods.toml might be the cause of this:

Spoiler

 


# A dependency - use the . to indicate dependency for a specific modid. Dependencies are optional.
[[dependencies.mymod]] #optional
    # the modid of the dependency
    modId = "forge" #mandatory
    # Does this dependency have to exist - if not, ordering below must be specified
    mandatory = true #mandatory
    # The version range of the dependency
    versionRange = "[27,)" #mandatory
    # An ordering relationship for the dependency - BEFORE or AFTER required if the relationship is not mandatory
    ordering = "NONE"
    # Side this dependency is applied on - BOTH, CLIENT or SERVER
    side = "BOTH"
# Here's another dependency
[[dependencies.mymod]]
    modId = "minecraft"
    mandatoryversionRange = "[1.14.3]"
    ordering = "NONE"
    side = "BOTH"

 

 

 

 

Edited by jasonhaxstuff
Solved
Posted
8 minutes ago, PhilipChonacky said:

 

Logs?

 

Client:

Spoiler
[20:28:30] [main/INFO]: ModLauncher running: args [--username, JasonHaxStuff, --version, 1.14.3-forge-27.0.17, --gameDir, C:\Users\Jason\AppData\Roaming\.minecraft, --assetsDir, C:\Users\Jason\AppData\Roaming\.minecraft\assets, --assetIndex, 1.14, --uuid, 4606ca2c99a44d4cbec66beaf21c1c99, --accessToken, ????????, --userType, mojang, --versionType, release, --launchTarget, fmlclient, --fml.forgeVersion, 27.0.17, --fml.mcVersion, 1.14.3, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20190624.152911]
[20:28:30] [main/INFO]: ModLauncher starting: java version 1.8.0_51 by Oracle Corporation
[20:28:31] [main/INFO]: Added Lets Encrypt root certificates as additional trust
[20:28:31] [main/INFO]: Launching target 'fmlclient' with arguments [--version, 1.14.3-forge-27.0.17, --gameDir, C:\Users\Jason\AppData\Roaming\.minecraft, --assetsDir, C:\Users\Jason\AppData\Roaming\.minecraft\assets, --username, JasonHaxStuff, --assetIndex, 1.14, --uuid, 4606ca2c99a44d4cbec66beaf21c1c99, --accessToken, ????????, --userType, mojang, --versionType, release]
[20:28:33] [Client thread/INFO]: Setting user: JasonHaxStuff
[20:28:34] [Client thread/INFO]: Loading Network data for FML net version: FML2
[20:28:40] [Client thread/INFO]: LWJGL Version: 3.2.2 build 10
[20:28:42] [modloading-worker-9/INFO]: Forge mod loading, version 27.0.17, for MC 1.14.3 with MCP 20190624.152911
[20:28:42] [modloading-worker-9/INFO]: MinecraftForge v27.0.17 Initialized
[20:28:44] [Client thread/INFO]: Narrator library for x64 successfully loaded
[20:28:44] [Client thread/INFO]: Built for minecraft version 1.14.3
[20:28:46] [Forge Version Check/INFO]: [forge] Starting version check at https://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[20:28:46] [modloading-worker-2/INFO]: LuckyBlock initialized.
[20:28:47] [Forge Version Check/INFO]: [forge] Found status: BETA Current: 27.0.17 Target: 27.0.17
[20:28:49] [Client thread/INFO]: OpenAL initialized.
[20:28:49] [Client thread/INFO]: Sound engine started
[20:28:49] [Client thread/INFO]: Created: 512x512 textures-atlas
[20:28:50] [Client thread/INFO]: Created: 256x256 textures/particle-atlas
[20:28:50] [Client thread/INFO]: Created: 256x256 textures/painting-atlas
[20:28:50] [Client thread/INFO]: Created: 128x128 textures/mob_effect-atlas
[20:28:59] [Netty Client IO #0/ERROR]: Channels [luckyblock:main] rejected vanilla connections
[20:28:59] [Netty Client IO #0/ERROR]: Channels [luckyblock:main] rejected vanilla connections
[20:29:00] [Netty Client IO #0/ERROR]: Channels [luckyblock:main] rejected vanilla connections
[20:29:00] [Client thread/INFO]: Connecting to localhost, 25565
[20:29:01] [Netty Client IO #1/ERROR]: Channels [luckyblock:main] rejected their server side version number
[20:29:01] [Netty Client IO #1/ERROR]: Terminating connection with server, mismatched mod list
[20:37:56] [Netty Client IO #2/ERROR]: Channels [luckyblock:main] rejected vanilla connections
[20:37:56] [Netty Client IO #4/ERROR]: Channels [luckyblock:main] rejected vanilla connections
[20:37:56] [Netty Client IO #3/ERROR]: Channels [luckyblock:main] rejected vanilla connections
[20:37:58] [Client thread/INFO]: Connecting to localhost, 25565
[20:37:59] [Netty Client IO #5/ERROR]: Channels [luckyblock:main] rejected their server side version number
[20:37:59] [Netty Client IO #5/ERROR]: Terminating connection with server, mismatched mod list

Server:

Spoiler
[01Jul2019 20:28:29.376] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--gameDir, ., --launchTarget, fmlserver, --fml.forgeVersion, 27.0.17, --fml.mcpVersion, 20190624.152911, --fml.mcVersion, 1.14.3, --fml.forgeGroup, net.minecraftforge, nogui, pause]
[01Jul2019 20:28:29.380] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher starting: java version 1.8.0_181-1-redhat by Oracle Corporation
[01Jul2019 20:28:29.695] [main/INFO] [net.minecraftforge.fml.loading.FixSSL/CORE]: Added Lets Encrypt root certificates as additional trust
[01Jul2019 20:28:30.225] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'fmlserver' with arguments [--gameDir, ., nogui, pause]
[01Jul2019 20:28:31.748] [main/INFO] [net.minecraftforge.fml.ModLoader/CORE]: Loading Network data for FML net version: FML2
[01Jul2019 20:28:39.573] [main/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, destination] and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498]
[01Jul2019 20:28:39.652] [main/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[01Jul2019 20:28:39.668] [main/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0]
[01Jul2019 20:28:39.670] [main/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498]
[01Jul2019 20:28:39.671] [main/WARN] [net.minecraft.command.Commands/]: Ambiguity between arguments [teleport, targets, location] and [teleport, targets, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[01Jul2019 20:28:39.786] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: Starting minecraft server version 1.14.3
[01Jul2019 20:28:40.008] [modloading-worker-9/INFO] [net.minecraftforge.common.ForgeMod/FORGEMOD]: Forge mod loading, version 27.0.17, for MC 1.14.3 with MCP 20190624.152911
[01Jul2019 20:28:40.015] [modloading-worker-9/INFO] [net.minecraftforge.common.MinecraftForge/FORGE]: MinecraftForge v27.0.17 Initialized
[01Jul2019 20:28:40.808] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: Loading properties
[01Jul2019 20:28:40.819] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [forge] Starting version check at https://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[01Jul2019 20:28:40.825] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: Default game type: SURVIVAL
[01Jul2019 20:28:40.847] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: Generating keypair
[01Jul2019 20:28:41.008] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: Starting Minecraft server on *:25565
[01Jul2019 20:28:41.059] [Server thread/INFO] [net.minecraft.network.NetworkSystem/]: Using default channel type
[01Jul2019 20:28:41.291] [Forge Version Check/INFO] [net.minecraftforge.fml.VersionChecker/]: [forge] Found status: BETA Current: 27.0.17 Target: 27.0.17
[01Jul2019 20:28:43.697] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: Preparing level "world"
[01Jul2019 20:28:44.210] [Server thread/INFO] [net.minecraft.resources.SimpleReloadableResourceManager/]: Reloading ResourceManager: luckyblock-1.0.jar, Default, forge-1.14.3-27.0.17-universal.jar
[01Jul2019 20:28:45.008] [Server thread/INFO] [net.minecraft.item.crafting.RecipeManager/]: Loaded 6 recipes
[01Jul2019 20:28:45.957] [Server thread/INFO] [net.minecraft.advancements.AdvancementList/]: Loaded 811 advancements
[01Jul2019 20:28:46.248] [Server thread/INFO] [net.minecraft.server.MinecraftServer/]: Preparing start region for dimension minecraft:overworld
[01Jul2019 20:28:48.184] [Server thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0%
[01Jul2019 20:28:48.185] [Server thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0%
[01Jul2019 20:28:48.186] [Server thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0%
[01Jul2019 20:28:48.186] [Server thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0%
[01Jul2019 20:28:48.249] [Server-Worker-4/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 0%
[01Jul2019 20:28:50.871] [Server-Worker-1/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 83%
[01Jul2019 20:28:50.876] [Server-Worker-6/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 83%
[01Jul2019 20:28:50.880] [Server-Worker-2/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 83%
[01Jul2019 20:28:50.884] [Server-Worker-2/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 83%
[01Jul2019 20:28:50.884] [Server-Worker-4/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 83%
[01Jul2019 20:28:51.249] [Server-Worker-4/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 83%
[01Jul2019 20:28:51.749] [Server-Worker-7/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 83%
[01Jul2019 20:28:52.251] [Server-Worker-7/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 83%
[01Jul2019 20:28:52.749] [Server-Worker-1/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 88%
[01Jul2019 20:28:53.251] [Server-Worker-1/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Preparing spawn area: 97%
[01Jul2019 20:28:53.367] [Server thread/INFO] [net.minecraft.world.chunk.listener.LoggingChunkStatusListener/]: Time elapsed: 7118 ms
[01Jul2019 20:28:53.368] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: Done (9.766s)! For help, type "help"
[01Jul2019 20:28:53.527] [Server thread/INFO] [net.minecraft.world.chunk.ChunkManager/]: ThreadedAnvilChunkStorage (DIM-1? All chunks are saved
[01Jul2019 20:28:53.528] [Server thread/INFO] [net.minecraft.world.chunk.ChunkManager/]: ThreadedAnvilChunkStorage (DIM1): All chunks are saved
[01Jul2019 20:29:01.096] [User Authenticator #1/INFO] [net.minecraft.network.login.ServerLoginNetHandler/]: UUID of player JasonHaxStuff is 4606ca2c-99a4-4d4c-bec6-6beaf21c1c99
[01Jul2019 20:29:01.176] [Server thread/INFO] [net.minecraft.network.login.ServerLoginNetHandler/]: com.mojang.authlib.GameProfile@19d8c392[id=4606ca2c-99a4-4d4c-bec6-6beaf21c1c99,name=JasonHaxStuff,properties={textures=[com.mojang.authlib.properties.Property@4420a523]},legacy=false] (/127.0.0.1:60348) lost connection: Disconnected
[01Jul2019 20:29:13.819] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: Unknown command
[01Jul2019 20:29:13.821] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: forge<--[HERE]
[01Jul2019 20:29:16.316] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: Incorrect argument for command
[01Jul2019 20:29:16.316] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: forge help<--[HERE]
[01Jul2019 20:29:19.114] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: Incorrect argument for command
[01Jul2019 20:29:19.115] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: forge mod<--[HERE]
[01Jul2019 20:29:20.815] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: Mod List: forge:27.0.17(DONE),luckyblock:1.0(DONE)
[01Jul2019 20:29:24.714] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: /forge dimensions
[01Jul2019 20:29:24.715] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: /forge entity list [<filter>]
[01Jul2019 20:29:24.716] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: /forge generate <pos> <count> [<dim>]
[01Jul2019 20:29:24.716] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: /forge mods
[01Jul2019 20:29:24.716] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: /forge setdimension <targets> <dim> [<pos>]
[01Jul2019 20:29:24.717] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: /forge tps [<dim>]
[01Jul2019 20:29:24.717] [Server thread/INFO] [net.minecraft.server.dedicated.DedicatedServer/]: /forge track (entity|reset|start|te)
[01Jul2019 20:37:59.129] [User Authenticator #2/INFO] [net.minecraft.network.login.ServerLoginNetHandler/]: UUID of player JasonHaxStuff is 4606ca2c-99a4-4d4c-bec6-6beaf21c1c99
[01Jul2019 20:37:59.217] [Server thread/INFO] [net.minecraft.network.login.ServerLoginNetHandler/]: com.mojang.authlib.GameProfile@4ec20822[id=4606ca2c-99a4-4d4c-bec6-6beaf21c1c99,name=JasonHaxStuff,properties={textures=[com.mojang.authlib.properties.Property@24821cee]},legacy=false] (/127.0.0.1:60485) lost connection: Disconnected

 

Posted (edited)
10 hours ago, diesieben07 said:

Where you register your network channels. I don't know your code, you wrote it so I would assume you know.

Ohhhh, that kind of code, I thought you meant code.

 

private static final String PROTOCOL_VERSION = "490";

public static final SimpleChannel INSTANCE = NetworkRegistry.newSimpleChannel(
        new ResourceLocation(MyMod.MODID, "main"),
        () -> PROTOCOL_VERSION,
        PROTOCOL_VERSION::equals,
        PROTOCOL_VERSION::equals
);

 

I looked up the protocol versions and found that 490 is for 1.14.3. I also tried version 1 (from the example code).

I have a feeling that I shouldn't be comparing the protocol versions directly and should actually be checking if the version is one of many versions. I just don't know what those versions would be.

Edited by jasonhaxstuff
Posted (edited)
6 hours ago, diesieben07 said:

This is for your own version. So that you can check if certain versions of your mod are compatible when used together on server / client.

So really, this should work, unless you are starting a vanilla server.

 

From the docs: "Here, we simply compare with the PROTOCOL_VERSION field directly, meaning that the client and server  PROTOCOL_VERSIONs must always match or FML will deny login."

 

No, I'm not starting a vanilla server.

Edited by jasonhaxstuff
Posted
16 minutes ago, diesieben07 said:

First thing I noticed is that all your packets use the same packet ID ("index").

Then, you are registering your SimpleChannel in a static intializer. Do not do this, you have no control over when this code runs. It should happen during FMLCommonSetupEvent.

You then register your packets only on the client (FMLClientSetupEvent). This must also happen on both sides.

This fixed my problem, but do you also know why none of my server commands are being registered?

Posted (edited)
19 minutes ago, diesieben07 said:

For a start, do not use @OnlyIn on your commands. In fact, do not use @OnlyIn at all.

You register your FMLServerStartingEvent event handler to the mod event bus, but that event is fired on the forge event bus.

My new code (in the repo) throws this error on the server whenever I try to send a packet to a player

Received invalid message me.jasonhaxstuff.luckyblock.packets.JumpScarePKT

 

Edited by jasonhaxstuff
Posted (edited)
7 minutes ago, jasonhaxstuff said:

My new code (in the repo) throws this error on the server whenever I try to send a packet to a player


Received invalid message me.jasonhaxstuff.luckyblock.packets.JumpScarePKT

 

Nevermind. I had to register the packets on the `FMLServerStartingEvent` event. That fixed it.

Edited by jasonhaxstuff
Posted
21 minutes ago, diesieben07 said:

The current code in your repo still shows you registering packets in FMLClientSetupEvent. It must happen on both sides, in FMLCommonSetupEvent.

Ohhhhhh! Whenever you said "You then register your packets only on the client (FMLClientSetupEvent)." I though you meant that I should do that.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.