Compile LuniServer in Visual Studio

How to compile LuniServer in Visual Studio by lcdr here:

      VS Setup:
  1. Install Visual Studio.
  2. Create a new project (File/New/Project).
  3. Select Win32 Console Application and choose a name (to stay with LuniServer’s naming so far, you can name it “luni_test” – but I doubt this name will be the final one).
  4. Click OK. On the Application Wizard that shows up, check the Application Settings/Empty project checkbox.
  5. Click finish.
  6. Open all the files in the LuniServer /source/ directory in VS.
  7. For each file, click File/Move into/Your Project name.

    RakNet Setup:

  1. Download RakNet 3.25.Link is here:
  2. In VS, right click your project and choose “Properties”. In the properties pane, choose Configuration Properties/C/C++/General/Additional Include Directories and insert the path to the RakNet /Source/ directory.
  3. Choose Configuration Properties/Linker/General/Additional Library Directories and insert the path to the RakNet /Lib/ directory.
  4. Choose Configuration Properties/Linker/Input/Additional Dependencies and add RakNetLibStatic.lib and ws2_32.lib. Seperate using semicolons (;) .
  5. You might get some message like “Use of library ‘LIBCMT’ conflicts with other libraries” on compilation. This is not fatal, but to remove the annoying line of text, you can add LIBCMT to Configuration Properties/Linker/Input/Ignore Specific Default Libraries.
  6. Click OK to close the properties panel.


  1. Right click your project and choose “Build”.
  2. You’ll get a lot of “linking object as if no debug info” messages. Ignore them.
  3. Your files will be in the directory of your project /Debug/. This does not generate the config file or packet answer files needed, you you’ll have to copy them from the LuniServer directory corresponding to the function of your server.

To modify the server, change what you need in the source files, then follow the steps from “Compilation” above.

If you’ve got any further questions after following the steps:

  1. Check if you set it up like in this walkthrough.
  2. Google your problem.
    If it’s still not fixed:
  3. Go to TimTech Software LU or LUNIServer thread.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s