{"id":54,"date":"2006-08-29T13:13:25","date_gmt":"2006-08-29T13:13:25","guid":{"rendered":"http:\/\/www.dereckson.be\/blog\/2006\/08\/29\/howto-configure-visual-studio-to-debug-runuo\/"},"modified":"2006-08-29T13:13:25","modified_gmt":"2006-08-29T13:13:25","slug":"howto-configure-visual-studio-to-debug-runuo","status":"publish","type":"post","link":"https:\/\/www.dereckson.be\/blog\/2006\/08\/29\/howto-configure-visual-studio-to-debug-runuo\/","title":{"rendered":"Howto configure Visual Studio to debug RunUO ?"},"content":{"rendered":"<p>When I was dev on a french strict roleplaying oriented RunUO shard, Kocham (ex Si\u00e8cle de Fer), I loved Visual Studio not only to code but almost to debug and track errors.<\/p>\n<p>Here a quick howto to configure your IDE.<\/p>\n<p><!--more--><\/p>\n<h4>RunUO scripts project<\/h4>\n<p><img decoding=\"async\" src=\"\/blog\/images\/RunUO\/runuo1.png\" alt=\"\" \/><\/p>\n<p>Create a new project from existing code, from your script directory.<\/p>\n<p>Name it as you wish e.g. RunUO scripts.<\/p>\n<p>Select <strong>Class Library<\/strong> as output type.<\/p>\n<p><img decoding=\"async\" src=\"\/blog\/images\/RunUO\/runuo2.png\" alt=\"\" \/><\/p>\n<p>Go to project properties from Project menu or right clicking project in the solution explorer.<\/p>\n<p>Specify <strong>Server<\/strong> as default namespace. So when you&#8217;ll create SpellsDreamsOniricCommunication.cs script, your namespace will be Server.Spells.Dreams and not RunUO_Scripts.Spells.Dreams.<\/p>\n<p><img decoding=\"async\" src=\"\/blog\/images\/RunUO\/runuo3.png\" alt=\"\" \/><\/p>\n<p>We&#8217;ve to add a reference to RunUO executable. Again, a right click on solution explorer is the easiest way.<\/p>\n<p>Instead, you can add to your solution RunUO sources and choose it in projects tab. If you edit the core and your scripts, it&#8217;s a requirement to correct debugging.<\/p>\n<p><img decoding=\"async\" src=\"\/blog\/images\/RunUO\/runuo4.png\" alt=\"\" \/><\/p>\n<p>We also need a couple of references to .Net framework assemblies :<\/p>\n<ul>\n<li>System<\/li>\n<li>System.Data<\/li>\n<li>System.Drawing<\/li>\n<li>System.Web<\/li>\n<li>System.Windows.Forms<\/li>\n<li>System.Xml<\/li>\n<\/ul>\n<p>That&#8217;s it !<\/p>\n<p>Build the project (key F6 by default) to test if all is correct.<\/p>\n<h4>RunUO Core project<\/h4>\n<p>The modus operandi is rather the same:<\/p>\n<ul>\n<li>Create a new project from existing code<\/li>\n<li>Set Server as default namespace<\/li>\n<li>Add references : System, System.Data and System.Xml<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"\/blog\/images\/RunUO\/runuo5.png\" alt=\"\" \/><\/p>\n<p>Some portions of RunUO core are unsafe code. Let&#8217;s allow it in project properties.<\/p>\n<p><img decoding=\"async\" src=\"\/blog\/images\/RunUO\/runuo6.png\" alt=\"\" \/><\/p>\n<p>Don&#8217;t forget the most important detail : the RunUO icon :p<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When I was dev on a french strict roleplaying oriented RunUO shard, Kocham (ex Si\u00e8cle de Fer), I loved Visual Studio not only to code but almost to debug and track errors.<\/p>\n<p>Here a quick howto to configure your IDE.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[3],"class_list":["post-54","post","type-post","status-publish","format-standard","hentry","tag-csharp"],"_links":{"self":[{"href":"https:\/\/www.dereckson.be\/blog\/wp-json\/wp\/v2\/posts\/54","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dereckson.be\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dereckson.be\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dereckson.be\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dereckson.be\/blog\/wp-json\/wp\/v2\/comments?post=54"}],"version-history":[{"count":0,"href":"https:\/\/www.dereckson.be\/blog\/wp-json\/wp\/v2\/posts\/54\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dereckson.be\/blog\/wp-json\/wp\/v2\/media?parent=54"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dereckson.be\/blog\/wp-json\/wp\/v2\/categories?post=54"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dereckson.be\/blog\/wp-json\/wp\/v2\/tags?post=54"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}