Skip to content

v1.49.12

Latest

Choose a tag to compare

@github-actions github-actions released this 23 Nov 14:52
6410867

Summary

netfox-v1 49 12

After starting with a large-scale rewrite of the internals, and an even longer period of improvements, we're excited to finally bring the next netfox release!

As it's becoming a trend, this release brings a monstrous 80 commits, of which 16 add something new, and a whopping 40 commits' worth of bugfixes.

Rollback No More, aka. FPS netcode

image

In addition to rollback, there were extensive community discussions around implementing something more suitable for FPS netcode, much similar to how Counter Strike works.

Thanks to @TuysuzTavsan's work, there's now an experimental branch that implements FPS netcode for netfox! The branch's current state is packaged and included in this release for use:

  • netfox.rnm.zip
  • netfox.noray.rnm.zip
  • netfox.extras.rnm.zip
  • netfox.docs.rnm.zip

Warning

This branch is still experimental. While it is usable for development, there is no documentation yet. Feedback is much appreciated! If possible, please join the discussion on the Discord thread.

Highlights

More servers for your servers

image

After reading more about Godot's concept of Servers and RIDs, and using its navmesh feature, it clicked instantly.

Godot implements low-level features and exposes them via servers. These are verbose and not very convenient to use by themselves. However, they provide extensive control over what happens and where.

On the other end, Godot provides Nodes, which are easy and convenient, and talk to the servers directly.

Applying the same pattern to netfox unlocked quite a few exciting opportunities, such as respecting tree-order when running _rollback_tick(). This rewrite also unlocked multiple changes that were possibly previously as well, just not as approachable. With servers present, you can now register arbitrary methods to run in rollback, not just _rollback_tick(). It also means all the rollback-related data is centralized, making it easier to access and manipulate.

Frankly, all the changes this unlocks is difficult to list. But if you see a cool new feature in this or the next releases, there's a 85% change it is possible because of the server rewrite 😄

Scheming times

image

The chase for bandwidth improvement continues! This release introduces schemas, which let you customize how each property is turned into bytes and back.

While Godot's default format works for generic data, it needs to include multiple bytes' worth of header per property, so it knows how to interpret the data when parsing it. For multiplayer games, you often know the type of the data in advance. Specifying the data types using schemas lets you avoid a header for each property.

And if you know you don't need full precision, you can also use smaller data types for the same data.

And with custom schemas, you can also transmit data types that were not possible before, like custom objects and resources.

Best of all, it all happens under the hood! All you need to do is register your schema, and the rest is taken care of!

Predicted future

image

Projectiles are usually a separate class of entity in netcode - there's often many of them, and they behave very predictably. Due to the quantity it's not always feasible to synchronize them. Thankfully, them being very predictable, they don't need to be synchronized! Each peer can predict their motion.

This is exactly what the new PredictiveSynchronizer enables! Use it the same way as a RollbackSynchronizer, with the only difference that no data is sent over the wire.

Now you see me, now you don't

With rollback, your game is doing straight up time travel to update the game with newly arrived inputs or state. However, travelling back in time means we may go back to a time where certain nodes didn't exist! Or, some nodes that don't exist currently, have existed in the past we're resimulating.

This is where liveness tracking comes in! In this new release, netfox now tracks what existed and when, and de/activates nodes as needed. It also frees nodes that have been nonexistent for long enough!

Down to the details

While the docs have included guides, it did not include exact function signatures, or even just a list of properties and methods. No more shall we endure this missing content! The online docs now include a class reference, where every single netfox class is listed, with all of their signals, methods, and properties enumerated and cross-linked.

What's Changed

New Contributors

Full Changelog: v1.35.3...v1.49.12