GithubHelp home page GithubHelp logo

trombonechamp.gamelibs's Introduction

Unity Game Libs Nuget Creator

Creates nugets with stripped and publicized libraries for Unity game modding.

If the game gets updated, this package needs to get updated too.

strip-assembiles.bat does two things:

  • Strips game assembiles using NStrip. This removes game code and leaves only API definitions.
  • Publicizes Assembly.CSharp.dll and AAssembly-CSharp-firstpass.dll. This makes all types, methods, properties and fields public, to make modding easier.

Usage

Nuget account

Prepare your repository

  • Create a new repository based on this template.
  • Add a secret called NUGET_KEY to this repository. Give it the value of the API key you created earlier.
  • Update the repository's name. This will be used as your Nuget ID, so it can't clash with another nuget package on nuget.org.
  • Update the repository's description. This will be used as the nuget's description too.

Generate the stripped libraries

  • Make sure you start off with a clean version of the game files, with no extra/modified dlls.
  • Drag the game's exe and drop it on strip-assembiles.bat.
  • Dlls are stripped, publicized, and placed in package\lib.

Updating the Nuget

  • Edit the .nuspec file, make <version> match the game version where these assemblies come from.
  • Push to the default branch.
  • Updating the default branch will trigger a workflow that will pack the dlls and update the NuGet package.

Publicized assemblies

By default, only Assembly-CSharp.dll and Assembly-CSharp-firstpass.dll are publicized. All other dlls are stripped only. To publicize other dlls, edit strip-assemblies.bat and add the dll names to the toPublicize variable.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.