Addons for building multiplayer games with Godot https://foxssake.github.io/netfox/
  • GDScript 93.2%
  • TypeScript 5.3%
  • Shell 1.5%
Find a file
TuysuzTavsan d5ec2fbd11
fix: Record inputs after gathering in after_tick (#614)
One off inputs are recorded on NetworkTİme.after_tick.
Before that* commit rollback inputs were recorded from rbs after_tick.
After that commit rollback inputs are recorded from network-rollback
after_tick.

Godot calls signals based on their connected order.
Before server update rbs's were connecting their signals with a deferred
call. This was resulting in one off input node winning the race. But
after the server update, since servers are initialized before anything
else, input nodes are always losing the race.

This pr fixes the race condition by explicitly calling NetworkRollback methods, instead of relying on signal connection order.

---------

Co-authored-by: Tamás Gálffy <ezittgtx@gmail.com>
2026-07-04 10:50:19 +02:00
.github doc: Changelogs (#611) 2026-06-10 15:18:45 +02:00
addons fix: Record inputs after gathering in after_tick (#614) 2026-07-04 10:50:19 +02:00
docs docs(faq): Determinism and cheating (#625) 2026-07-01 15:44:03 +02:00
examples fix: Flush network IDs (#583) 2026-04-05 10:48:37 +02:00
script_templates deps: Upgrade vest to 1.3.3 (#484) 2025-08-06 22:06:55 +02:00
sh doc: Changelogs (#611) 2026-06-10 15:18:45 +02:00
test fix: Record inputs after gathering in after_tick (#614) 2026-07-04 10:50:19 +02:00
.gitattributes Initial commit 2023-08-17 18:15:43 +02:00
.gitignore doc: Changelogs (#611) 2026-06-10 15:18:45 +02:00
default_env.tres Initial commit 2023-08-17 18:15:43 +02:00
export_presets.cfg chore: Automate release (#80) 2023-11-10 12:07:25 +01:00
giscus.json doc: Configure giscus origins 2024-12-26 23:59:04 +01:00
icon.png chore: Export icon as png 2023-11-23 15:09:32 +01:00
icon.png.import Initial commit 2023-08-17 18:15:43 +02:00
LICENSE doc: Add LICENSE 2023-10-05 23:00:01 +02:00
mkdocs.yml doc: Changelogs (#611) 2026-06-10 15:18:45 +02:00
project.godot feat: InterpolationServer (#602) 2026-06-27 23:14:17 +02:00
README.md doc: Kick and Hide (#598) 2026-05-16 09:56:26 +02:00
requirements.txt feat: Procedural node configuration (#354) 2024-12-19 17:55:28 +01:00

netfox banner

License GitHub Release Documentation Netfox Sharp Discord ko-fi

A set of addons for responsive online games with the Godot engine.

Features

  • ⏲️ Consistent timing across multiple machines
  • 🖥️ Supports client-server architecture
  • 🧈 Smooth motion with easy-to-use interpolation
  • 💨 Lag compensation with Client-side Prediction and Server-side Reconciliation
  • 🛜 Bullet-proof connectivity with noray integration

Overview

The package consists of multiple addons, each with different features:

  • netfox
    • The core package, implements timing, rollback and other multiplayer features
    • Start here
  • netfox.noray
    • Implements noray integration to establish connection between players
    • Useful for online games
  • netfox.extras
    • Provides high-level, game-specific, convenience features built on top of netfox, like base classes for input management or weapons
    • Check for reusable components for your game
  • netfox.internals
    • Shared utilities for the other addons
    • Included as dependency, no need to install separately

C# Support

For experimental C# support, see the Netfox Sharp repo, and the corresponding Netfox Sharp guide.

Install

Releases

Find the latest netfox under Releases

Each release contains the addons, and a build of Forest Brawl for Windows and Linux. Each addon has its dependencies packed with it - e.g. "netfox.extras.vx.y.z.zip" also contains both netfox and netfox.internals.

Note: For releases before v1.1.1, a separate ".with-deps.zip" version contains the addon and its dependencies, while the regular zips contain only the addon itself.

Asset Library

Search for the addon name in Godot's AssetLib or download from the site:

Source

Download the source and copy the addons of your choice to your Godot project.

Enable the addons

After adding netfox to your project, make sure to enable the addons in your project settings. Otherwise, Godot will present you with errors about undeclared identifiers.

Upgrading

If you're upgrading from an older version of netfox, refer to the upgrade guide.

Usage

See the docs.

Supported versions

Godot 4.x is supported by netfox. If you find any issue using any supported version, please open an issue.

Forest Brawl and the other examples are written against Godot 4.1. They may or may not work when opened with any other version.

Prototyping

To try your game online with noray, a free to use instance is hosted at tomfol.io:8890, the same instance used by Forest Brawl.

You can use this noray instance to quickly test your games online, but is not recommended for shipping games. The instance has configured limits, and no uptime guarantees are made.

Examples

Comparison sample

To provide a short intro on how to get started with netfox, and how it fares compared to built-in multiplayer tools, a simple demo was implemented as a single-player game, which was ported to multiplayer using both a naive approach and netfox.

Feature examples

Each of these examples give a starting point to a specific feature:

Example games

Forest Brawl

To provide examples of netfox usage in an actual game, Forest Brawl was created and included specifically for this purpose.

It's a party game where an arbitrary amount of players compete by trying to knock eachother off of the map.

Godot Rocket League

Play soccer with cars, in Godot, with Godot Rocket League!

Demonstrates netfox's physics rollback capabilities, ensuring smooth and responsive physics-based gameplay.

Built with netfox

Games built with netfox, coming to a Steam near you! See the more on the site's Made with netfox page!

Bubble Battle

PL4no-B

Chrome Carnage

Nitro Turtles

Kick and Hide

Building something cool with netfox? Whether it's released or in progress, feel free to open a PR, adding your game to the list!

License

netfox is under the MIT license.

Note that the repository contains assets made by other people as well. For these cases, the relevant licenses can be found in the assets' directories.

Issues

In case of any issues, comments, or questions, please feel free to open an issue!

Contribution

Contributions are welcome! Please feel free to fork the repository and open a PR. Ideally, your PR implements a single thing, optionally refers to an existing issue, and follows the GDScript style guide.

Please note that depending on the feature/fix you implement, the PR may need to undergo changes, or in some cases, get rejected if it doesn't fit netfox's intended feature set or vision.

If you feel like it, grant the netfox author(s) write permission to your fork, so we can update the PR if needed.

If you're not sure if the PR would fit netfox or not, open an issue first, mentioning that you'd be willing to contribute a PR.

Author(s) at the time of writing:

  • @elementbound

Funding

If you've found netfox useful, feel free to fund us on ko-fi:

ko-fi

Donations are always appreciated and taken as gratitude for the work that has already been done.

If you'd like to fund a specific feature or development, please contact us in email.