# Changing the Game & Map on Your s&box Server (/docs/sbox/change-game-and-map)



import { Step, Steps } from 'fumadocs-ui/components/steps';

In s\&box, every game mode is a **package** with its own ident (e.g. `facepunch.sandbox`). Maps are also packages (e.g. `facepunch.flatgrass`). Which one your server loads is controlled by the `+game` launch switch.

The +game Switch [#the-game-switch]

```
+game <packageIdent> [mapPackageIdent]
```

* `<packageIdent>` — the game package to load (required)
* `[mapPackageIdent]` — optional starting map package

Example [#example]

Load the Facepunch sandbox game on the Flatgrass map:

```bat
sbox-server.exe +game facepunch.sandbox facepunch.flatgrass +hostname "My Dedicated Server"
```

Changing the Game [#changing-the-game]

<Steps>
  <Step>
    Stop Your Server [#stop-your-server]

    Stop the running server before editing your launch script or panel startup.
  </Step>

  <Step>
    Edit the +game Argument [#edit-the-game-argument]

    Replace the package ident with the one you want to host. For example, to host a different game:

    ```bat
    sbox-server.exe +game some.othergame some.othergame_map +hostname "My Server"
    ```
  </Step>

  <Step>
    Restart [#restart]

    Start the server. It will load the new game package and (if specified) the starting map.
  </Step>
</Steps>

> 📝 **Note:** Both the game package and the map package are downloaded through s\&box's package system. Make sure the idents you specify exist and are public.

Hosting a Local Project [#hosting-a-local-project]

If you're developing your own game, point `+game` at a local `.sbproj` file instead of a package ident — see [Local Projects](/docs/sbox/local-projects).

Related Guides [#related-guides]

* [Launch Parameters](/docs/sbox/launch-parameters)
* [Local Projects](/docs/sbox/local-projects)
