S&box Wiki

Revision Difference

ProjectTypes#563511

<cat>Dev.Projects</cat> <title>Project Types</title>⤶ # Game⤶ ⤶ This one is obvious, everything exists within a game.⤶ ⤶ # Library⤶ ⤶ The library project is our equivalent of nuget packages. ⤶ You can create a common library of code and publish it as a package. This enables you to re-use the same code over multiple games by adding the package as a reference.⤶ ⤶ Once you have made your library public you should be aware that if you remove or change the public API of the assembly you risk breaking projects that are referencing it. ⤶ ⤶ <note>In the future we'll be offering tools to help avoid this situation, like letting you reference a specific version of a package, and letting you test your library changes against other packages that are referencing it before publishing</note>⤶ <title>Project Templates</title>⤶ # Game - Minimal⤶ ⤶ ⤶ This is a, as the name suggests, minimal template for you to get started, inside it's packaged with a basic plane and three boxes with physics enabled.⤶ ⤶ <note> In the future, there will be more templates, such an FPS. </note>⤶ # Addon <warning>Addons no longer exist. They will come back eventually, but they're low priority.</warning>⤶ Addons allow you to build on top of and modify existing games. ⤶ Addons can target a specific game, or work universally across all games. Though not every game will support loading addons. # Tool⤶ ⤶ https://docs.facepunch.com/s/sbox-dev/doc/editor-project-LuRHQgnNjC <warning>Addons as they were (as in Game Mods essentially) no longer exist. They will come back eventually, but they're low priority. As of now, this is pretty much exclusively for making maps</warning>⤶ ⤶ This is for those wanting to upload a map for a game, you can target the game you want to make a map for by clicking Project on the top left of the editor and going into Settings, from there you will see `Target Game` simply put in the indent of the game you wish to target, and it will prompt you to restart the editor after saving, once restarted, you will have access to the game's components, allowing you to make your own map for it. ⤶ This does require the author of the game to properly support custom maps, however, so do check before mapping! # Walker Map⤶ ⤶ This is for those wanting to wanting to map with the least resistance possible. ⤶ The Walker Map template will automatically create a project that targets the Walker Game, letting you quickly build a map while instantly having access to a player controller. ⤶ ⤶ ⤶ However, this does mean the map will be **exclusive** to the Walker game, so if this is not your goal, do see the above `Addon` template