svhaser.blogg.se

Ns2 tutorial
Ns2 tutorial





ns2 tutorial
  1. NS2 TUTORIAL HOW TO
  2. NS2 TUTORIAL MOD
  3. NS2 TUTORIAL CODE
  4. NS2 TUTORIAL SERIES

But wait, what the hell are VMs? (Note that this is my assumption on VMs, based on what I read so far.

NS2 TUTORIAL MOD

You can use spaces in the name, I've seen some mods doing this, but I prefer not to, because it should be a short game identifier and not the full mod name.Īs you can see, we are using three custom files for our VMs. The name is displayed in the server browser later and the description is displayed in the NS2 window title, when you open the game. Randomizealiens Natural Selection 2: Randomize ALL the aliens! lua/a lua/a lua/a lua/a sound/NS2.soundinfo So, go and create a new file called game_setup.xml in your mod directory. In your game setup file, you can set the name of your mod, the Lua entry files for the server, client and predict VMs and your sound info file. Next step is creating a setup file for our new mod. I haven't yet figured out what the option "kind" does, so let's select "Game" as kind, because we are kinda doing a new game type. Your output directory should be located in your NS2 folder and if you haven't created it yet, just create it (mine is called randomizealiens).

ns2 tutorial

I'm going to enter "Randomize Aliens" as name, this will be displayed at the workshop later.

NS2 TUTORIAL CODE

The Spark Launch Pad has a list of all the tools which are available with NS2 like Decoda, which we will use for our Lua code later.īut as we want to create a new mod, let's click on "Create Mod" on the top left. What you want to do is start LaunchPad.exe, so we can go to step 2, which is creating a new mod. Most of the NS2 tools are in this folder and most of the NS2 code and assets are in the ns2 folder. You will notice that NS2 comes with a lot of handy stuff. Your Natural Selection 2 folder is located in your /Steam/common/ folder and if it isn't, go search for it! Let's see, the first step should be easy. Create the lua files for the server, client and predict VMs There are a few steps you have to do which are:Ĥ. So the first thing which might be a bit tricky is: How the hell am I going to start? This includes changes to Lua code and shaders, but not, for example, models or maps! But, because this tutorial is all about Lua and shaders, it restricts exactly what we want to do. However, the problem with client-side mods is, that if servers have enabled consistency checking, which is enabled by default and it would be stupid to turn it off, because people could modify whatever they want, client-side mods won't work.

ns2 tutorial

The difference between both is, that server-side mods run on a server and can change behaviour on both server and client and client-side mods run only on the client. I'm also going to talk about server-side mods, but you can use most of it also for client-side mods. So if you are not familiar with Lua at all, go and read some Lua tutorials first!

NS2 TUTORIAL SERIES

If you have any suggestions, criticism, ideas or questions, just tell me and I will add them or answer them.Ī requirement to work with this series is a solid knowledge of Lua. So if you want to correct me, feel free to do! I'm giving you examples based on a new project I'm planing called Randomize Aliens.Įver dreamed of a belly sliding onos, a lerk with blink or a skulk with stomp? Well, this will be the mod for you.Īs I'm not that familiar with the NS2 code as others might be, some of my definitions may be wrong.

NS2 TUTORIAL HOW TO

The whole series will be about showing you how to start and how to progress while making your own mod. As there isn't anything out yet, I thought, why not write one myself. This will be a tutorial series on how to mod Natural Selection 2. _**How to make a mod for Natural Selection 2**_







Ns2 tutorial