Badger-Imager 1.6.0.3201203

dotnet add package Badger-Imager --version 1.6.0.3201203
                    
NuGet\Install-Package Badger-Imager -Version 1.6.0.3201203
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Badger-Imager" Version="1.6.0.3201203" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Badger-Imager" Version="1.6.0.3201203" />
                    
Directory.Packages.props
<PackageReference Include="Badger-Imager" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Badger-Imager --version 1.6.0.3201203
                    
#r "nuget: Badger-Imager, 1.6.0.3201203"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Badger-Imager@1.6.0.3201203
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Badger-Imager&version=1.6.0.3201203
                    
Install as a Cake Addin
#tool nuget:?package=Badger-Imager&version=1.6.0.3201203
                    
Install as a Cake Tool

Badger

Habbo badge imager library.

How to Use

Extract badges.zip in the folder that the app is running.

Shockwave badges - v18 - v31+

Will automatically export as .gif

var badge = GetFromServer.ParseBadgeData(new BadgeSettings
{
    IsShockwaveBadge = false
}, "b00534Xs317315s321324s317313");

var badgeRendered = badge.Render();

if (badgeRendered != null)
{
    File.WriteAllBytes("badge_shockwave.gif", badgeRendered);
}

Guild badge support

Will automatically export as .png

You will need to re-export badge.resource.json from the database with the columns matching if you wish to support the specific emulator being used, as some of these badge resource guild data structures are different depending on the emulator.

var badge = GetFromServer.ParseBadgeData(new BadgeSettings
{
    IsShockwaveBadge = true
}, "b10074s170011s139196s29168");
File.WriteAllBytes("badge_flash.png", badge.Render());

Available on NuGet

NuGet link: https://www.nuget.org/packages/Badger-Imager/1.0.0

Package:

NuGet\Install-Package Badger-Imager -Version 1.0.0

As a web server?

See: https://github.com/Quackster/Minerva

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.6.0.3201203 307 3/20/2025
1.5.0.5051513 253 5/5/2024
1.5.0.5051507 215 5/5/2024
1.5.0.3201137 221 3/20/2025
1.4.0.5051450 208 5/5/2024
1.3.0.5040351 203 5/4/2024
1.2.0.5040330 213 5/4/2024
1.1.0.5040121 196 5/4/2024
1.0.0 346 2/11/2024