Back to mods

Vintage Story Mod DB · Vintage Story mod

HandleEntitiesPacketCrashFix

Fixes a client crash caused by the server sending an entity packet for an entity type the client cannot resolve Usually happens when first connecting to a server, sometimes multiple times. I don't have a clue why it happens but the fix is to filter out null e

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which HandleEntitiesPacketCrashFix release should I use?

Updated 5 months ago
Latest stable file 1.0.0
Game version 1.21.0, 1.21.1-rc.1, 1.21.1-rc.2
Loader Built-in Vintage Story mod system

HandleEntitiesPacketCrashFix 1.0.0 targets 1.21.0, 1.21.1-rc.1, 1.21.1-rc.2. It must be installed on the client. Installation on the dedicated server is optional. No extra mods listed for this file.

Where it goes

Is HandleEntitiesPacketCrashFix required on the client, server, or both?

It must be installed on the client. Installation on the dedicated server is optional.

Client Required
Dedicated server Optional
Loader for this release Built-in Vintage Story mod system
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This release supports both sides, but the source does not require it on the server.

What else does HandleEntitiesPacketCrashFix 1.0.0 need?

1.0.0. Change the file and its required mods may change too.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add HandleEntitiesPacketCrashFix without breaking your instance.

Built for HandleEntitiesPacketCrashFix 1.0.0. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.0.0. It targets 1.21.0, 1.21.1-rc.1, 1.21.1-rc.2; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    It must be installed on the client. Installation on the dedicated server is optional.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.0.0. It opens that exact file at the source.

About this project

What does HandleEntitiesPacketCrashFix add?

Fixes a client crash caused by the server sending an entity packet for an entity type the client cannot resolve

Usually happens when first connecting to a server, sometimes multiple times. I don't have a clue why it happens but the fix is to filter out null entities and log an error instead.

The crash log looks something like this:

System.InvalidOperationException: Server sent me an entity packet for entity player, but I cannot instantiate/update it, entity is null at Vintagestory.Client.NoObf.ClientSystemEntities.HandleEntitiesPacket(Packet_Server serverpacket) in VintagestoryLib\Client\Systems\Entities.cs:line 248 at Vintagestory.Client.NoObf.ProcessPacketTask.ProcessPacket(Packet_Server packet) in VintagestoryLib\Client\Systems\ProcessPacketTask.cs:line 18 at Vintagestory.Client.NoObf.ProcessPacketTask.Run() in VintagestoryLib\Client\Systems\ProcessPacketTask.cs:line 12 at Vintagestory.Client.NoObf.ClientMain.ExecuteMainThreadTasks(Single deltaTime) in VintagestoryLib\Client\ClientMain.cs:line 786 at Vintagestory.Client.GuiScreenConnectingToServer.RenderToDefaultFramebuffer(Single dt) in VintagestoryLib\Client\MainMenu\Screens\GuiScreenConnectingToServer.cs:line 298 at Vintagestory.Client.ScreenManager.Render(Single dt) in VintagestoryLib\Client\ScreenManager.cs:line 760 at Vintagestory.Client.ScreenManager.OnNewFrame(Single dt) in VintagestoryLib\Client\ScreenManager.cs:line 663 at Vintagestory.Client.NoObf.ClientPlatformWindows.window_RenderFrame(FrameEventArgs e) in VintagestoryLib\Client\ClientPlatform\GameWindow.cs:line 112 at OpenTK.Windowing.Desktop.GameWindow.Run() at Vintagestory.Client.ClientProgram.Start(ClientProgramArgs args, String[] rawArgs) in VintagestoryLib\Client\ClientProgram.cs:line 338 at Vintagestory.Client.ClientProgram.<>cDisplayClass10_0.<.ctor>b1() in VintagestoryLib\Client\ClientProgram.cs:line 133 at Vintagestory.ClientNative.CrashReporter.Start(ThreadStart start) in VintagestoryLib\Client\ClientPlatform\ClientNative\CrashReporter.cs:line 95

Project description from Vintage Story Mod DB.

Pick your setup

HandleEntitiesPacketCrashFix releases for each Vintage Story version.

Choose the version and loader you play, then open the matching release.

13 available setups

Showing the newest 12 of 13 game versions. Older files are in the list below.

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

HandleEntitiesPacketCrashFix versions and loaders

1 of 1 releases match

Looking for an older file? The official Vintage Story Mod DB project page is in Resources.