{"id":107080,"date":"2020-01-10T18:32:31","date_gmt":"2020-01-10T18:32:31","guid":{"rendered":"http:\/\/gamefromscratch.com\/post.aspx?id=9ebb58ec-f6b4-4fce-9dd0-e35074a4eb2c"},"modified":"2020-01-10T18:32:31","modified_gmt":"2020-01-10T18:32:31","slug":"building-armorpaint-from-source","status":"publish","type":"post","link":"https:\/\/sickgaming.net\/blog\/2020\/01\/10\/building-armorpaint-from-source\/","title":{"rendered":"Building ArmorPaint From Source"},"content":{"rendered":"<p><a href=\"https:\/\/armorpaint.org\">ArmorPaint<\/a> is an open source competitor to Substance Painter, from the creator of the Armory game engine (tutorial series <a href=\"https:\/\/www.gamefromscratch.com\/post\/2018\/06\/12\/Armory-Game-Engine-Tutorial-Series.aspx\">available here<\/a>).&nbsp; It is available for just 16 Euro in binary form, but can also be built from source code.&nbsp; This guide walks you step by step through the process of building ArmorPaint from source.<\/p>\n<p>There are a few requirements before you can build.&nbsp; Download and install the following programs if not already installed:<\/p>\n<p>First step, we clone the repository.&nbsp; Make sure to add the \u2013recursive flag(that\u2019s two \u2018-\u2018 by the way).<\/p>\n<p>Open a command prompt, cd to the directory where you want to install ArmorPaint\u2019s source code and run the command:<\/p>\n<p><strong>git clone \u2013recursive <a title=\"https:\/\/github.com\/armory3d\/armorpaint.git\" href=\"https:\/\/github.com\/armory3d\/armorpaint.git\">https:\/\/github.com\/armory3d\/armorpaint.git<\/a><\/strong><\/p>\n<p>Depending on your internet speed this could take a minute to several minutes while all of the files are downloaded.&nbsp; <\/p>\n<p>In Explorer, go the installation directory, then navigate to <strong>armorpaint\\Kromx\\V8\\Libraries\\win32\\release <\/strong>and using 7zip extract <strong>v8_monolith.7z<\/strong> to the same directory as the .7z file.<\/p>\n<p>Next in the command prompt run the following commands<\/p>\n<p>(Assuming you are reusing the same CMD that you did the git clone from)<\/p>\n<p><strong>cd armorpaint<\/strong><\/p>\n<p><strong>node Kromx\/make \u2013g direct3d11<\/strong><\/p>\n<p><strong>cd Kromx<\/strong><\/p>\n<p><strong>node Kinc\/make \u2013g direct3d11<\/strong><\/p>\n<p><strong>explorer .<\/strong><\/p>\n<p>If you receive any errors above, the most likely cause is node not being installed.&nbsp; The final command will now open a Windows Explorer window in the Kromx subdirectory.&nbsp; Open the build directory and load the file <strong>Krom.sln<\/strong>.<\/p>\n<p><a href=\"https:\/\/www.gamefromscratch.com\/image.axd?picture=image_3476.png\"><img loading=\"lazy\" decoding=\"async\" width=\"505\" height=\"215\" title=\"image\" alt=\"image\" src=\"https:\/\/www.sickgaming.net\/blog\/wp-content\/uploads\/2020\/01\/building-armorpaint-from-source.png\" border=\"0\"><\/a><\/p>\n<p>This will open the project in Visual Studio.&nbsp; If you haven\u2019t run VS yet,you may have to do some initial installation steps.&nbsp; Worst case scenario run through the initial install, close and double click <strong>Krom.sln<\/strong> again.<\/p>\n<p>First make sure that you are building for x64 and Release mode at the top:<\/p>\n<p><a href=\"https:\/\/www.gamefromscratch.com\/image.axd?picture=image_3473.png\"><img loading=\"lazy\" decoding=\"async\" width=\"349\" height=\"74\" title=\"image\" alt=\"image\" src=\"https:\/\/www.sickgaming.net\/blog\/wp-content\/uploads\/2020\/01\/building-armorpaint-from-source-1.png\" border=\"0\"><\/a><\/p>\n<p>In the Solution Explorer, select Krom then hit <strong>ALT + ENTER<\/strong> or right click and select Properties.<\/p>\n<p>Then select Debugging, in Command Arguments enter <strong>..\\..\\build.krom<\/strong> then click Apply.<\/p>\n<p><a href=\"https:\/\/www.gamefromscratch.com\/image.axd?picture=image_3474.png\"><img loading=\"lazy\" decoding=\"async\" width=\"704\" height=\"491\" title=\"image\" alt=\"image\" src=\"https:\/\/www.sickgaming.net\/blog\/wp-content\/uploads\/2020\/01\/building-armorpaint-from-source-2.png\" border=\"0\"><\/a><\/p>\n<p>You are now ready to build ArmorPaint.&nbsp; Select <strong>Ctrl + SHIFT + B<\/strong> or select Build-&gt;Build Solution.<\/p>\n<p><a href=\"https:\/\/www.gamefromscratch.com\/image.axd?picture=image_3475.png\"><img loading=\"lazy\" decoding=\"async\" width=\"570\" height=\"128\" title=\"image\" alt=\"image\" src=\"https:\/\/www.sickgaming.net\/blog\/wp-content\/uploads\/2020\/01\/building-armorpaint-from-source-3.png\" border=\"0\"><\/a><\/p>\n<p>Assuming no errors, are exe should be built.&nbsp; Now go to the folder <strong>armorpaint\\Kromx\\build\\x64\\Release<\/strong> and copy the file <strong>Krom.exe<\/strong>, then copy to<strong> armorpaint\\build\\krom<\/strong>.&nbsp; You can now run <strong>Krom.exe<\/strong> and you\u2019re good to go.&nbsp; <\/p>\n<p><a href=\"https:\/\/www.gamefromscratch.com\/image.axd?picture=image_3477.png\"><img loading=\"lazy\" decoding=\"async\" width=\"704\" height=\"412\" title=\"image\" alt=\"image\" src=\"https:\/\/www.sickgaming.net\/blog\/wp-content\/uploads\/2020\/01\/building-armorpaint-from-source-4.png\" border=\"0\"><\/a><\/p>\n<p>Step by step instructions are available in the <a href=\"https:\/\/youtu.be\/y6h2KOP47ZY\">video<\/a> below.<\/p>\n<p align=\"center\">[youtube https:\/\/www.youtube.com\/watch?v=y6h2KOP47ZY&#038;w=853&#038;h=480]<\/p>\n<p class=\"under\"> <span class=\"categories\"><a href=\"https:\/\/www.gamefromscratch.com\/category\/Art.aspx\">Art<\/a> <a href=\"https:\/\/www.gamefromscratch.com\/category\/Programming.aspx\">Programming<\/a><\/span> <span class=\"tags\"><a href=\"https:\/\/www.gamefromscratch.com\/?tag=\/3D\" rel=\"tag\">3D<\/a> <a href=\"https:\/\/www.gamefromscratch.com\/?tag=\/Applications\" rel=\"tag\">Applications<\/a><\/span> <\/p>\n<hr>\n<p> &lt;!&#8211;<\/p>\n<p>&#8211;&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ArmorPaint is an open source competitor to Substance Painter, from the creator of the Armory game engine (tutorial series available here).&nbsp; It is available for just 16 Euro in binary form, but can also be built from source code.&nbsp; This guide walks you step by step through the process of building ArmorPaint from source. There [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":107081,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[71,64],"tags":[74,73],"class_list":["post-107080","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-game-development","category-programming","tag-art","tag-programming"],"_links":{"self":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/posts\/107080","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/comments?post=107080"}],"version-history":[{"count":0,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/posts\/107080\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/media\/107081"}],"wp:attachment":[{"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/media?parent=107080"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/categories?post=107080"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sickgaming.net\/blog\/wp-json\/wp\/v2\/tags?post=107080"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}