Skip to content

Instantly share code, notes, and snippets.

@lenicyl
Last active December 15, 2023 15:50
Show Gist options
  • Save lenicyl/804786c928c6e97fa25c23836e2b06b3 to your computer and use it in GitHub Desktop.
Save lenicyl/804786c928c6e97fa25c23836e2b06b3 to your computer and use it in GitHub Desktop.
How to build ArmorPaint

Before you Start

  1. Visual Studio Downloads:
    Official Website
  2. Node Downloads:
    Official Website
    OR
    If you have winget installed on powershell
    winget install node
  3. Git Downloads:
    Official Website
    OR
    If you have winget installed on powershell
    winget install git
  4. 7zip
  5. Downloads:
  6. Official Website
  7. OR
  8. If you have winget installed on powershell
  9. Winget install 7zip

Instructions to build

Step 1

I recommend using Windows Terminal but you can use normal powershell as well since there is no difference.

  1. Make a temporary folder anywhere on your computer
  2. Shift + Right Click > Open in Windows Terminal OR Open Powershell window here
  3. Follow the instructions below
  git clone --recursive https://github.com/armory3d/armorpaint
  cd armorpaint
  git apply patch/window_handling.diff --directory=Kinc

DO NOT CLOSE THE TERMINAL/POWERSHELL YET. Now open explorer and go to the folder you had created. Now go to [The Folder you created]/armourpaint/armorcore/v8/libraries/win32/release
You should find a .7z file named v8_monolith.7z. We now have to extract that file.

To do so Right click the .7z file > 7-Zip > Extract here
a fole named v8_monolith.lib should be extracted
Now delete the original .7z file.

Enter the final command in powershell/Terminal

   node Kinc/make -g direct3d11

You can now close the command line

Step 2

Open explorer and go to [The Folder you created]/armourpaint/armorcore/build
You should find a file named Krom.sln
Open the file, It should open with Visual Studio but if it does not then open it manually

In Visual Studio you change Debug to Release and find the Solution explorer. If you have trouble then refer to the picture Now Right click and open Properties and do all the changes shown in the image After changing the properties, click apply and exit the properties

Now right click the Krom folder in Solution explorer and then click Build


Running Armorpaint

If there are no errors you are good to go !!! Follow the final steps to run Armorpaint

You can either choose to run the Local Window Debugger (NOT RECOMMONDED)

OR

You can follow these steps to launch using the exe directly.

  1. Navigate to [The Folder you created]/armorpaint/armorcore/build/x64/Release You should now find an exe named Krom.exe. Running the executable does nothing so keep following
  2. Copy Krom.exe then navigate to [The Folder you created]/armorpaint/build/krom
  3. Paste the Krom.exe in the krom folder you navigated to
  4. Run the Krom.exe

Armorpaint should now be working fine !!!
You can Rename Krom.exe to Armorpaint.exe and it will still be working

Extra steps : Copy the krom folder in which you pasted Krom.exe ([The Folder you created]/armorpaint/build/krom) and paste it anywhere !!!
You should be able to Delete all the [Folder you created].
Armorpaint should run fine in the krom folder. All the other folders are NOT needed since they were used ONLY to build the project

This means you can zip and send this file to your friends !!!
I do NOT recommend posting the compiled version publicly.
You can buy the pre-compiled binaries at the official website since this supports the dev.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment