![ns2 badges ns2 badges](http://cdn.akamai.steamstatic.com/steamcommunity/public/images/clans/2256926/3833cb991b764be970c878b1c1f4cb396c4cf60c.png)
When you connect to a server the main menu VM is destroyed and the Client VM is created and when you disconnect the Client VM is destroyed menu menu VM created again. The optional game_setup.xml file (in a mods directory) controls what the first lua file the Client and Server lua VMs will load, The entrypoint file for the main menu VM is lua\a this is the very first lua file the game loads when starting up.
![ns2 badges ns2 badges](https://us-static.z-dn.net/files/d57/4665aa8b5ad767b347b190370553c004.png)
#NS2 BADGES MOD#
When the running game tries to load a particular game definition file (such as lua/a), it will use the file from the mod directory if it exists, otherwise falling back to using the file under NSROOT/ns2.
![ns2 badges ns2 badges](https://unknownworlds.com/ns2/files/2017/08/blog_317.jpg)