Skip to main content

Godot Rollback Netcode addon

Submitted by David Snopek on Monday, 2022-01-24 @ 8:58 AM

This is an addon for implementing rollback and prediction netcode in the Godot game engine.

Beyond the basics (gathering input, saving/loading state, sending messages, detecting mismatches, etc) this library aims to provide support for many of the other aspects of implementing rollback in a real game, including timers, animation, random number generation, and sound - along with high-quality debugging tools to make solving problems easier.

Implementing rollback and prediction is HARD, and so every little bit of help is important. :-)

Category status:
Open Source
Release status:
Alpha / Beta

Tutorials

Rollback netcode in Godot (part 11): Advanced Input Prediction

Rollback netcode in Godot (part 11): Advanced Input Prediction

In this part, we discuss the true goal of input prediction, the related challenges and some more advanced techniques for handling them.

Video Tutorial
Monday, 2022-06-13 @ 9:08 am Read more
Rollback netcode in Godot (part 10): Random Numbers

Rollback netcode in Godot (part 10): Random Numbers

In this part, we learn about generating random numbers in a rollback-safe way, which we use to add a teleport ability to our demo game.

Video Tutorial
Monday, 2022-05-30 @ 9:00 am Read more
Rollback netcode in Godot (part 9): Sound Effects

Rollback netcode in Godot (part 9): Sound Effects

In this part, we learn how to play sound effects in a rollback-safe way, which we use to add explosion sounds to the bombs in our demo game.

Video Tutorial
Monday, 2022-05-16 @ 9:03 am Read more
Rollback netcode in Godot (part 8): Animation Players

Rollback netcode in Godot (part 8): Animation Players

In this part, we learn the do's and don'ts of using the NetworkAnimationPlayer node, and animate the bombs and explosions in our demo game.

Video Tutorial
Monday, 2022-05-02 @ 9:07 am Read more
Rollback netcode in Godot (part 7): Input Delay and Interpolation

Rollback netcode in Godot (part 7): Input Delay and Interpolation

We discuss input delay and interpolation, and use interpolation in our demo project to reduce the simulation rate to 30fps.

Video Tutorial
Monday, 2022-03-28 @ 8:16 am Read more
Video thumbnail

Rollback netcode in Godot (part 6): Playing offline!

In this part, we add offline play to our demo, using the exact same gameplay code as the online version.

Video Tutorial
Monday, 2022-03-14 @ 9:00 am Read more
Rollback netcode in Godot (part 5): State, hashing and mismatches

Rollback netcode in Godot (part 5): State, hashing and mismatches

In this part, we talk about all about state in the context of rollback netcode, and get started using the Log Inspector tool for debugging.

Video Tutorial
Monday, 2022-02-28 @ 8:00 am Read more
Rollback netcode in Godot (part 4): Spawning scenes and NetworkTimer

Rollback netcode in Godot (part 4): Spawning scenes and NetworkTimer

We add some more gameplay to our demo (exploding bombs!) and cover spawning scenes and using the NetworkTimer node.

Video Tutorial
Tuesday, 2022-02-15 @ 7:11 am Read more
Rollback netcode in Godot (part 3): Making a custom MessageSerializer

Rollback netcode in Godot (part 3): Making a custom MessageSerializer

We create a custom MessageSerializer, to facilitate quickly and reliably sending input data.

Video Tutorial
Monday, 2022-02-07 @ 5:03 am Read more
Rollback netcode in Godot (part 2): Getting Started with the Godot Rollback Netcode addon!

Rollback netcode in Godot (part 2): Getting Started with the Godot Rollback Netcode addon!

We install the Godot Rollback Netcode addon, and create the simplest possible demo game from scratch.

Video Tutorial
Monday, 2022-01-31 @ 6:00 am Read more
Rollback netcode in Godot: Part 1: What is rollback and prediction?

Rollback netcode in Godot (part 1): What is rollback and prediction?

In this part, we talk about what rollback netcode is, when you'd want to use it, and how it works.

Video Tutorial
Monday, 2022-01-24 @ 8:58 am Read more