Making Waves

Workshop addons, a fresh Sandbox Mode and a new menu. Turns out the cloud wasn't the answer to everything. Plus water (finally), scripting, engine NPCs and a big performance pass.

We've been updating and modernizing Sandbox Mode. It's our flagship game on the platform, so I am spending a lot of time with it.
I have been having a really good time developing it. I feel like we're walking the line of making a more modern Garry's Mod really well. I'm excited by all the possibilities of it.
Obviously there aren't a ton of addons right now but what we do have is showing a LOT of potential, and that's only going to grow.

I've been going through improving things that feel outdated or stupid. I'm resisting bending it all too far, I want it to stay kind of familiar for everyone, but I think we can improve a few things in our new engine.
And before you ask.. yes there is a dark mode toggle!
The old menu is now gone. We're really enjoying this new menu, it feels like a breath of fresh air. It's simpler, and easier to understand.. More focus on the game you're actually playing.
You can now install/subscribe to addons via the workshop. These are installed before you start a game, and loaded with the game.  We did have addons previously but they were all runtime - they downloaded when you clicked them in the spawn menu.

This new system isn't really new - it's the exact same system that Garry's Mod uses. I hold my hands up here, I thought that spawning from the cloud was better.. but I was wrong. There definitely is something a lot nicer about installing a big model pack and then having everything right there. I'm sorry it took me so long to come around to realising this.

This Rust vehicle addon is a workshop addon!
The engine now has scripting built in. It's still a bit immature - but we've been stretching it out and is working pretty good.

The script's language is pretty much just c#. It can use all the same APIs as you can use in real c#. You can create classes, implement components etc, just like you would in c#. It was important to me that we don't need to re-learn everything to use the language, we don't have to update docs - it's the same code.

So what's the point? Why not just compile c#? With compiled c# it's easy to get into reference hell. You build your addon against one version of the game, the game updates something, and now the addon won't load. So then you need to re-compile the addon. Which means load times are going up. Then people want addons to be able to reference each other, which is an other big mess of crap.

The scripting language operates kind of like Lua, but with c# language. It allows us to fire all this code at the scripting runtime and it does its best to load. It's additive and permissive. It allows you to do wacky permissive shit that would be impossible in c# like this..
foreach ( object thing in thingsToReset )
{
    thing.Reset();
}

void Refill( object gun )
{
    gun.Ammo = 30;
}

You can use the scripting system as you see fit in your games too. You can make your own scripting system, you can have strings on your components that run as c# code. It's pretty open ended. There is a grander plan for the scripting system in the future, it solves a few other problems for us that we're excited to look at.
Sandbox mode, Flatgrass and a bunch of models are now being bundled with the game. Previously you downloaded these things from the cloud/workshop.. but we decided that it wasn't a very good experience.

This does feel shit-loads better.. from a developer point of view and a player point of view. We should have done it years ago. The only reason we didn't is because I am a bit of an extremist and the system we built was all cloud. I've got over that now and it feels great!
Earlier this month I have worked on reworking a bunch of "classic" Sandbox props - robotics bits, wheels, gears, steel bits. They also come with a new coat of paint and refreshed geometry. They are all available in the "Building Props" spawnlist category.
We've been ran and profiled fully simulated lobbies for several popular games (Sandbox, TTT, Murder, My Summer Cottage...).
This helped us spot a bunch of bottlenecks and performance issues in the engine.

It's hard to quantify this in a single number, since the improvement heavily depends on the game and the scenario in that game.

The biggest win is fewer hitches: the engine now creates 1.6 to 12× less garbage across various scenarios, so garbage collection runs far less often.
But frame times is improved too, by up to 1 ms in games like TTT.

Yep. We got water. We should have had it done a year ago.The challenge with water is to make something that people can use in the bottom of a toilet as well as being the sea.
It has waves. The physics objects get tossed around in the waves.
You can go underwater, and swim, and there's caustics and fog and particles and post process effects and stuff.
There's a water decal component, this allows artists to place things like leaves, scum and foam in the water, to make it a bit more interesting. It's like a decal on top of the water line.
We've got a Game Mount system that lets you play with content from owned and installed Steam games. This week we've shipped a new, easier way of working for developers.

Official mounts have moved out of the engine and into their own repo, sbox-mounts. You can now work on them and contribute right from the .sbproj, with hot-loading and all the other benefits it brings. Our build tool handles packaging and compiling for the client.

It's all open source. If there's a game you love, you can add support for it, or improve the accuracy of one that's already there. We'd love that. We want to support as many games as possible, and mounts are great fun to work on. You can do almost anything.

This week we've added support for models and maps from Quake III Arena, Return to Castle Wolfenstein, Wolfenstein: Enemy Territory, and DOOM + DOOM II. As Lorenz mentioned, we've also shipped NPCs and weapons for Half-Life, Half-Life 2, and Counter-Strike: Source. We've got loads more to come, too. How exciting.
You can now configure servers to use Steam Workshop games, maps, and addons. It works a lot like Garry's Mod, where you can create a Collection for your server to use, and provide it from the command line via  +host_workshop_collection. You can also specify a list of individual workshop IDs in a config file.

The old way of package downloads continues to work for now. But if you're a server admin, you should get yourself set up sooner rather than later, and expect it to be a requirement soon. Read more.

Game Mounts can now work on servers too, so you can play on maps from supported games. Learn how to configure it here.
I spent hours as a child spawning random NPCs in Garry's Mod and watching them fight each other, and even made a whole gamemode about NPCs.

s&box already had all the pieces to build NPCs, but no common way to put them together, so sharing NPCs between games or shipping them in addons was hard.
Now NPCs live directly in the engine. Think of them as the convenience of SNPCs with the extensibility of NextBots.

Here's a very rudimentary showcase of how these NPCs can behave and what capabilities they have:

Subclass BaseNpc, pick a faction, say how it feels about the others and what it should do:

public sealed class CuriousNpc : BaseNpc
{
    public override string Faction => Factions.Citizen;

    protected override void SetupRelationships()
    {
        SetRelationship( Factions.Enemy, Disposition.Fearful );
        SetRelationship( Factions.Monster, Disposition.Fearful );
    }

    protected override BaseSchedule SelectSchedule()
    {
        if ( Senses?.Disturbance is { } disturbance )
        {
            var investigate = GetSchedule<InvestigateSchedule>();
            investigate.TargetPosition = disturbance.Position;
            return investigate;
        }

        return GetSchedule<WanderSchedule>();
    }
}

You can find out how to set up your own here:

https://sbox.game/dev/doc/gameplay/npcs/ 
Mounts can now bring NPCs, weapons and other components into the game.
So instead of just static models, you get weapons you can actually shoot and NPCs that fight each other,
I did another pass on our volumetric fog system with similar optimizations we've done on both clustered light culling and the new particle lighting system.

43% faster with 64 lights, and it only dispatches where fog actually exists.
After a game or map change, leftover textures kept large chunks of VRAM alive, so the game could hold on to over 1 GB it wasn't using.

That memory is now freed after every game or map change. On an 8 GB card, VRAM use after a game switch drops from 3.1 GB to 2.3 GB.
We also added a new VRAM tab to dev tools that makes it easier to analyze what is using up the memory and fragmentation.

Navmesh generation is about 4x faster and crowds simulate a lot faster too.

The navmesh generator can now place jump, drop and ladder links automatically, so agents can get around a map without anyone placing links by hand.

Links now have a type, like Jump, Drop, Ladder, Climb or Teleport. These core types are shared across games, so NPCs from every game can use these links on any map. You can also add your own link types for things specific to your game.


To help people move over to making scenes in the scene editor, there is now an easy vmap converter that turns uncompiled hammer maps into scene mesh geometry.
Hammer-style linked copies inside a scene, without creating prefab assets.
Hammer-style 2D wireframe views and workplanes are now in the scene editor.
Animgraph2 now has IK swivel modes.



We had the ability to compile a scene but we didn't really have anything that pulled compiling a scene into one place. So now we do. From here you can compile DDGI and bake envmaps too, all at the same time.
You can implementEditor.ISceneCompile on your component to make new systems that need to compile with the scene too!
We've updated Skia and replaced Material Icons with Material Symbols. This gives way more icons. The downside is there might be some icons missing, or that have changed names, so you might need to update a few things.

As part of this the UI system got font-variation-settings  and  font-optical-sizing .. which allows us to use fonts with multiple axes.. like Material Symbols.
Lorenz
Facepunch
JoinedAug 2021 Posts37 Score2,875
Making Waves : news/making-waves
Dilly
Member
JoinedJul 2024 Posts6 Score8,676
Sick
edited an hour ago#3
DreamPiece
Member
JoinedJul 2022 Posts22 Score5,511
Awesome! Can't wait to see the future plans for the built-in scripting system. A suggestion I have would be to add accessibility tools to make writing scripts easier and to organize scripts. If done right, it can be better than Visual Scripting or Lua. Also, are there going to be any improvements to 2d views in the editor and the camera for making 2d games? 
Missing
Member
JoinedJul 2022 Posts80 Score3,220
MASSIVE Changes, cant wait for the Free release.
Playeroth
Member
JoinedApr 2026 Posts13 Score360
peak
Arcev
Member
JoinedOct 2022 Posts69 Score155
Godsend Update. Good job FP
PharmaceuticalSodak
Member
JoinedMar 2026 Posts29 Score10,154
Groovy!
CSEliot
Member
JoinedMar 2026 Posts18 Score1,190
This was genuinely uplifting to read. Good job guys!!
MORT
Member
JoinedApr 2026 Posts11 Score3,094
Cloud was the answer even if not to everything.
Right now editing and maintaining game page in steam is less pleasant than on sbox.game.
I just hope that what is left like different kind of metrics and achievements will work as they were at least.

don't care about sanbox game mode though.
Titanovsky
Member
JoinedSep 2021 Posts356 Score5,678
A nice work, guys. Youre finally updating Sandbox Game and making the right decisions: more mounting support, compatibility with GMod assets (including addons), and potentially even Lua script compatibility in the future, which shouldn't be much of a problem in the AI era. It's a great approach, instead of spending 19 years building up content from scratch, you're making use of what your predecessor already has.

My only concern is the platform. s&box has a huge strength that was never properly gave through marketing, it's both an engine and a platform. The pipeline is simple, you make a game on the platform, test it with organic players, earn money through PlayFund, then decide whether to release it on Steam. Because s&box is also an engine, you can turn your game into a standalone. This is the kind of ecosystem Rockstar, Unity, Epic, and more recently Roblox have been moving towards. Basically, steam greenlight 2.0. I don’t like that you removed the games section from the web and switched entirely to Steam Workshop. There are a lot of issues with this: confusing UX, missing reviews, and more limitations overall. Having your own system gives you much more freedom. 

In December, s&box will go free, there'll be a collaboration with Rust, and we'll see what Garry and the team decide. Personally, I want the platform to stay, the engine to stay, and Sandbox Game to be renamed Garry's Mod 2 and remain inside the platform for a long time, or even forever.
simalami
Member
JoinedApr 2026 Posts8 Score4,379
Incredible! Facepunch keeps surprising me more and more! Linked scene instances, Scripting (especially amazing), Sandbox Mode — these are really cool innovations. I'm disappointed that the old menu was removed. What I liked about it was that you could watch the game trailer just by hovering over the card. But overall I agree that the new menu is indeed much cooler, and it's especially unique that I can create my own custom main menu for the game. Just perfect.

Thank you very much, Facepunch! The future is yours!!
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.