gregCore — MelonLoader-based modding stack for Data Center: translations, Harmony hooks, event handling, a Rust/native bridge, plugin extensions, and optional tooling.
  • C# 95.7%
  • PowerShell 3.5%
  • Python 0.6%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Marvin 7a8cb80a8b
Some checks failed
gregCore CI / build (push) Has been cancelled
Sponsor Tier Sync / sync (push) Waiting to run
Merge branch 'main' of ssh://git.datacentermods.com:2222/teamGreg/gregCore
2026-04-25 02:47:33 +02:00
.github Remove outdated documentation and references 2026-04-25 02:46:52 +02:00
assets feat: implement additional economy hooks for player xp and reputation 2026-04-20 06:42:42 +02:00
bin/Release/net6.0 Remove outdated documentation and references 2026-04-25 02:46:52 +02:00
build chore: sync gregCore workspace updates 2026-04-20 03:02:39 +02:00
ci-stubs fix: improve CI build robustness with better stubs and paths 2026-04-20 06:23:58 +02:00
examples feat(examples): add hook subscription to example mods 2026-04-20 14:57:51 +02:00
framework feat(CableRemoval): Implement mass cable removal feature with user hints and settings 2026-04-23 21:05:49 +02:00
lib Remove outdated documentation and references 2026-04-25 02:46:52 +02:00
mods Add TechnicianHiring module for managing additional technicians 2026-04-21 22:20:33 +02:00
publish Refactor and enhance gregCore framework 2026-04-24 15:45:10 +02:00
publish_full Remove outdated documentation and references 2026-04-25 02:46:52 +02:00
publish_out Refactor and enhance gregCore framework 2026-04-24 15:45:10 +02:00
scripts feat(CableRemoval): Implement mass cable removal feature with user hints and settings 2026-04-23 21:05:49 +02:00
sdk/packs Add TechnicianHiring module for managing additional technicians 2026-04-21 22:20:33 +02:00
src Updated GregCore to PreRelease 40 2026-04-24 21:52:53 +02:00
tests feat: Implement core performance and automation modules 2026-04-20 04:25:54 +02:00
.gitignore Remove outdated documentation and references 2026-04-25 02:46:52 +02:00
AGENTS.md Remove outdated documentation and references 2026-04-25 02:46:52 +02:00
build-debug.log chore: update to latest game version 2026-04-21 03:39:08 +02:00
build.ps1 publ.: Adding Packs to publish 2026-04-21 07:41:28 +02:00
build.sh chore: update to latest game version 2026-04-21 03:39:08 +02:00
CHANGELOG.md Remove outdated documentation and references 2026-04-25 02:46:52 +02:00
dump.csx chore: update to latest game version 2026-04-21 03:39:08 +02:00
game_hooks.json chore: add DataCenter-RustBridge submodule 2026-04-20 14:48:52 +02:00
gregCore.csproj Remove outdated documentation and references 2026-04-25 02:46:52 +02:00
gregCore.sln Remove outdated documentation and references 2026-04-25 02:46:52 +02:00
README.md Remove outdated documentation and references 2026-04-25 02:46:52 +02:00
tea_debug.log feat: Add comprehensive Agent Guide documentation 2026-04-20 05:38:24 +02:00
unknown_hooks.json chore: add DataCenter-RustBridge submodule 2026-04-20 14:48:52 +02:00
VERSION Refactor and enhance gregCore framework 2026-04-24 15:45:10 +02:00

gregCore

A .NET 6 MelonLoader mod framework for Data Center and similar Unity IL2CPP games.

Product Name

The official product name is gregCore. This is a multi-project .NET 6 framework designed for MelonLoader-based modding.

Project Purpose

This repository provides a modular modding framework for Unity-based games using MelonLoader. It includes hooks, patching systems, UI extensions, save handling, and core API services for building game modifications.

Target Users

  • Mod developers building extensions for Data Center or compatible IL2CPP Unity games
  • Contributors familiar with C#, MelonLoader, and Harmony patching
  • AI agents assisting with mod development workflows

Major Capabilities

  • Harmony-based runtime patching system
  • UI overlay and widget management
  • Save engine with versioning and migration support
  • Multi-mod architecture with dependency resolution
  • Wall rack and grid placement systems
  • Custom shop and employee management APIs
  • Logging and diagnostic infrastructure

Repository Layout

GameFramework/
├─ src/                    # Mod source code (multiple independent mods)
├─ framework/              # Shared hook definitions
├─ lib/                   # Reference assemblies and dependencies
├─ tests/                 # Unit and integration tests
├─ build/                 # Build scripts and artifacts
├─ docs/                  # Documentation
├─ .github/               # GitHub workflows and templates
└─ [root files]          # Solution, project, build config

Prerequisites

  • .NET 6 SDK (net6.0)
  • Visual Studio 2022+ or VS Code with C# extension
  • MelonLoaderinstalled game (default: Data Center)
  • Reference assemblies from target game (local paths required)

Quick Start

# Restore and build
./build.ps1

# Output goes to bin/Debug/net6.0/ or bin/Release/net6.0/
# Deploy DLL to your game's MelonLoader Mods folder

Build Instructions

Windows (PowerShell)

./build.ps1

Linux/macOS (Shell)

./build.sh

Options

  • -Configuration Debug|Release - Build configuration
  • -Clean - Clean before build

MelonLoader Deployment

Built DLLs (gregCore.dll) go into your game's Mods folder:

<Data Center>/Mods/gregCore.dll

Ensure reference DLLs (MelonLoader, Harmony, Il2CppInterop) are in the game's MelonLoader directory.

IL2CPP and AI-Assisted Modding

Important: When using AI for mod development against IL2CPP-based games, an IL2CPP unpack/decompilation workflow is strongly recommended.

AI-assisted modding works best when you have readable game references and type information. For practical reverse-engineering and inspection:

  1. Decompile or unpack relevant game assemblies into a browsable C#-oriented reference project
  2. Tools such as dnSpy or dotPeek may be useful in the inspection pipeline where applicable
  3. Note that pure IL2CPP targets require additional metadata extraction steps beyond ordinary managed assembly inspection

A future dedicated helper tool from this project is planned to simplify the IL2CPP reference extraction process.

Contributing

See CONTRIBUTING.md for contribution guidelines.

Security

See SECURITY.md for vulnerability reporting.

Compatibility

  • .NET 6.0 (net6.0)
  • MelonLoader compatible games
  • Unity 2020.3+ (IL2CPP backend)
  • Platform: Windows x64 (primary)

License

See LICENSE file for details.