---
description: >-
  This page describes how to make your own custom screensaver using Visual
  Studio.
---

# Your Screensaver

You're looking to create a screensaver for Nitrocid KS! That's great! Make sure that you have Visual Studio installed. Follow the steps to create your first screensaver.

1.  Press `Create a new project` on Visual Studio homepage

    <figure><img src="https://3415716535-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRoaqpM3GSf9vXxRAagbV%2Fuploads%2Fgit-blob-ef80f48788ce390bd1235543c8f5453de3a5133d%2Fimage%20(65).png?alt=media" alt=""><figcaption></figcaption></figure>
2.  Find `Class Library` and double-click it

    <figure><img src="https://3415716535-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRoaqpM3GSf9vXxRAagbV%2Fuploads%2Fgit-blob-f4761b11949b914cd5fe2c6e7078ae28d981b598%2Fimage%20(41).png?alt=media" alt=""><figcaption></figcaption></figure>
3.  Write your screensaver name, like in our example, `MyFirstScreensaver`.

    <figure><img src="https://3415716535-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRoaqpM3GSf9vXxRAagbV%2Fuploads%2Fgit-blob-4a9f89a6a30419f8907436b196113eba649ac37d%2Fimage%20(57).png?alt=media" alt=""><figcaption></figcaption></figure>
4.  Make sure that `.NET 6.0` is used. Press `Create`.

    <figure><img src="https://3415716535-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRoaqpM3GSf9vXxRAagbV%2Fuploads%2Fgit-blob-6543ef15f62d0befe35f785e738449ae5cbaab50%2Fimage%20(43).png?alt=media" alt=""><figcaption></figcaption></figure>
5.  Right-click on `Dependencies` -> `Manage NuGet Packages`, find `KS`, and install it.

    <figure><img src="https://3415716535-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRoaqpM3GSf9vXxRAagbV%2Fuploads%2Fgit-blob-76df1000e0256f53c147b8ba510b5621ac7f403f%2Fimage%20(12).png?alt=media" alt=""><figcaption></figcaption></figure>
6.  Once the package is installed, go to the `Class1.cs` source file

    <figure><img src="https://3415716535-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRoaqpM3GSf9vXxRAagbV%2Fuploads%2Fgit-blob-9f507242c678f9cb52ef29147b9380bcf1b4785c%2Fimage%20(67).png?alt=media" alt=""><figcaption></figcaption></figure>
7.  In your class, implement both `BaseScreensaver` and `IScreensaver`, ensuring that `KS.Misc.Screensaver` is imported.

    <figure><img src="https://3415716535-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRoaqpM3GSf9vXxRAagbV%2Fuploads%2Fgit-blob-4906c1fbbaebcdc00e5fe627d402b9a4c1903fac%2Fimage%20(20).png?alt=media" alt=""><figcaption></figcaption></figure>
8.  Override the methods and properties that start with Screensaver (`ScreensaverPreparation()` and `ScreensaverOutro()` are optional), just like below:

    <figure><img src="https://3415716535-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRoaqpM3GSf9vXxRAagbV%2Fuploads%2Fgit-blob-26165f0cf2087724a4c49d88b1e83691f084c923%2Fimage%20(3).png?alt=media" alt=""><figcaption></figcaption></figure>
9.  Once you have all the required methods and properties overridden like below, you can start working on your state-of-the-art screensaver using the available console tools.

    <figure><img src="https://3415716535-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRoaqpM3GSf9vXxRAagbV%2Fuploads%2Fgit-blob-782d9371eabe68f5d1b520f5c54e9bfb349b7f63%2Fimage%20(77).png?alt=media" alt=""><figcaption></figcaption></figure>
10. Once you're done, click on `Build Solution`.

    <figure><img src="https://3415716535-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRoaqpM3GSf9vXxRAagbV%2Fuploads%2Fgit-blob-0a592f154f5350a44b9af29b03e2b94ebc1eb00c%2Fimage%20(4).png?alt=media" alt=""><figcaption></figcaption></figure>
11. Once the solution is built, open the file explorer to the solution directory by right-clicking on the solution and selecting `Open Folder in File Explorer`.

    <figure><img src="https://3415716535-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRoaqpM3GSf9vXxRAagbV%2Fuploads%2Fgit-blob-97b2f984acbf0553986990e1b6e55ea46f72ba63%2Fimage%20(71).png?alt=media" alt=""><figcaption></figcaption></figure>
12. Navigate to the output directory and copy the `.dll` file to `KSMods` under the `%localappdata%/KS` folder.

    <figure><img src="https://3415716535-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRoaqpM3GSf9vXxRAagbV%2Fuploads%2Fgit-blob-2e3f33e241ea9c8c6933aa56caefb0e7ef0109e4%2Fimage%20(33).png?alt=media" alt=""><figcaption></figcaption></figure>
13. Open Nitrocid KS to test your mod. Ensure that `savescreen YourSaver` shows your own screensaver.

    <figure><img src="https://3415716535-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FRoaqpM3GSf9vXxRAagbV%2Fuploads%2Fgit-blob-efade7d4aa7585d6cfd72009b04ded8c47e97738%2Fimage%20(78).png?alt=media" alt=""><figcaption></figcaption></figure>
