gregLoader Documentation

gregLoader ist das Kernmodul-Ladesystem für Data Center, mit nahtloser Integration in gregStore und Steam Workshop durch das greg:// URL-Schema.

Schnellstart

# gregLoader installieren
greg://dl/gregLoader/1.0.0

# Mod installieren
greg://dl/greg.mod.myextension/1.0.0

# Abhängigkeit installieren
greg://dep/MoonSharp/2.0.0

greg:// URL-Schema

BefehlBeschreibung
greg://dl/{modId}/{version}Mod installieren
greg://dep/{depId}/{version}Abhängigkeit installieren
greg://update/{modId}Mod aktualisieren
greg://info/{modId}Mod-Info anzeigen

Mod erstellen

Erstelle eine .greg Datei im Projektstammverzeichnis:

[Project]
Id=greg.mod.myextension
Name=MyExtension
Version=1.0.0

[Compatibility]
MinimumGregCoreVersion=1.0.0.33

[Dependencies]
gregCore=1.0.0.33

Steam Workshop: 3D-Modelle

Für Modell-Packs: Platziere Dateien in StreamingAssets/Mods/workshop_{ID}/

workshop_3701139349/
├── config.json       # Mod-Konfiguration
├── model.obj         # 3D Modell (OBJ Format)
├── texture.png       # Diffuse Textur
└── preview.png       # Vorschaubild

config.json Format für Modelle:

{
  "modName": "My Model Pack",
  "staticItems": [{
    "itemName": "Custom Poster",
    "modelFile": "model.obj",
    "textureFile": "texture.png",
    "modelScale": 1.0,
    "position": [11.036, 2.654, -22.051],
    "rotation": [0.0, 90.0, 0.0]
  }]
}

manifest.json für Steam Workshop

{
  "name": "MySteamWorkshopMod",
  "version": "1.0.0",
  "isGregLoader": true,
  "author": "YourName",
  "description": "Mod description",
  "minimumGregCoreVersion": "1.0.0.33",
  "mods": ["MyMod.dll"],
  "libs": []
}

MelonInfo Attribute

using MelonLoader;
using greg.Sdk.Services;

[assembly: MelonInfo(typeof(MyMod.Main), "MyMod", "1.0.0", "Author", "Description")]
[assembly: MelonGame("Waseku", "Data Center")]

public class Main : GregLoaderMod
{
    protected override string MinimumGregCoreVersion => "1.0.0.33";
}