{"id":86,"date":"2015-06-27T15:29:21","date_gmt":"2015-06-27T19:29:21","guid":{"rendered":"http:\/\/luniserver.com\/?page_id=86"},"modified":"2015-11-07T14:03:27","modified_gmt":"2015-11-07T19:03:27","slug":"compile-in-visual-studio","status":"publish","type":"page","link":"https:\/\/luniserver.com\/es\/tutorial\/compile-in-visual-studio\/","title":{"rendered":"Compile in Visual Studio"},"content":{"rendered":"<p>Written by lcdr, edited by Timtech<\/p>\n<p><strong>Please note:<\/strong> This tutorial is outdated, and only applies if one needs to build the LUNIServer and lacks the solution file (.sln) or project settings.<\/p>\n<h2>Set up Visual Studio<\/h2>\n<ol>\n<li>Install Visual Studio (VS).<\/li>\n<li>Create a new project (File\/New\/Project).<\/li>\n<li>Select Win32 Console Application and choose a name (to stay with LuniServer\u2019s naming so far, you can name it \u00abluni_test\u00bb \u2013 but I doubt this name will be the final one).<\/li>\n<li>Click OK. On the Application Wizard that shows up, check the Application Settings\/Empty project checkbox.<\/li>\n<li>Click finish.<\/li>\n<li>Open all the files in the LuniServer \/source\/ directory in VS.<\/li>\n<li>For each file, click File\/Move into\/Your Project name.<\/li>\n<\/ol>\n<h2>Set up RakNet<\/h2>\n<ol>\n<li><a href=\"https:\/\/sourceforge.net\/apps\/phpbb\/luniserver\/viewtopic.php?f=7&amp;t=68\">Download RakNet 3.25<\/a>.<\/li>\n<li>In VS, right click your project and choose \u00abProperties\u00bb. In the properties pane, choose Configuration Properties\/C\/C++\/General\/Additional Include Directories and insert the path to the RakNet \/Source\/ directory.<\/li>\n<li>Choose Configuration Properties\/Linker\/General\/Additional Library Directories and insert the path to the RakNet \/Lib\/ directory.<\/li>\n<li>Choose Configuration Properties\/Linker\/Input\/Additional Dependencies and add <span class=\"skimlinks-unlinked\">RakNetLibStatic.lib<\/span> and ws2_32.lib. Seperate using semicolons (;).<\/li>\n<li>You might get some message like \u00abUse of library &#8216;LIBCMT&#8217; conflicts with other libraries\u00bb 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.<\/li>\n<li>Click OK to close the properties panel.<\/li>\n<\/ol>\n<h2>Compilation<\/h2>\n<ol>\n<li>Right click your project and choose \u00abBuild\u00bb.<\/li>\n<li>You\u2019ll get a lot of \u00ablinking object as if no debug info\u00bb messages. Ignore them.<\/li>\n<li>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\u2019ll have to copy them from the LuniServer directory corresponding to the function of your server.<\/li>\n<\/ol>\n<h2>Modify<\/h2>\n<ul>\n<li>To modify the server, change what you need in the source files, then follow the steps from \u00abCompilation\u00bb above.<\/li>\n<\/ul>\n<p>If you\u2019ve got any further questions after following these steps:<\/p>\n<ol>\n<li>Check if you set it up like in this walkthrough.<\/li>\n<li>Google your problem.<\/li>\n<\/ol>\n<p>If it\u2019s still not fixed, try asking for help in the forums.<\/p>","protected":false},"excerpt":{"rendered":"<p>Written by lcdr, edited by Timtech Please note: This tutorial is outdated, and only applies if one needs to build the LUNIServer and lacks the solution file (.sln) or project settings. Set up Visual Studio Install Visual Studio (VS). Create a new project (File\/New\/Project). Select Win32 Console Application and choose a name (to stay with [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":80,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"class_list":["post-86","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/luniserver.com\/es\/wp-json\/wp\/v2\/pages\/86","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/luniserver.com\/es\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/luniserver.com\/es\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/luniserver.com\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/luniserver.com\/es\/wp-json\/wp\/v2\/comments?post=86"}],"version-history":[{"count":1,"href":"https:\/\/luniserver.com\/es\/wp-json\/wp\/v2\/pages\/86\/revisions"}],"predecessor-version":[{"id":2024,"href":"https:\/\/luniserver.com\/es\/wp-json\/wp\/v2\/pages\/86\/revisions\/2024"}],"up":[{"embeddable":true,"href":"https:\/\/luniserver.com\/es\/wp-json\/wp\/v2\/pages\/80"}],"wp:attachment":[{"href":"https:\/\/luniserver.com\/es\/wp-json\/wp\/v2\/media?parent=86"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}