MarvinBeym / MscModApi

An api for the game My Summer Car that allows mod creators to make their objects installable.
MIT License
10 stars 138 forks source link

MscModApi

A help for mod makers

Table of contents


Requirements

Requirement Version Link
MySummerCar
(game => open console => type ver => buildID)
Steam
MscModLoader GitHub

Installation

Users

Move files to Mods folder

  1. Open the GitHub releases page
  2. Download the .zip file under Assets
    • Note that different mods may require different versions, only one version can be installed, meaning mods may not be compatible.
    • Mod authors are advised to have a clear version requirement and to watch out for updates.
  3. Extract or Open the archive with your favorite archiving tool.
    Archiving tool examples:
  4. Inside the Extracted or Opened Archive should be a single folder. Usually called MscModApi (\).
    • Open that folder.
  5. Inside that folder should be 2 files and 1 folder (with more files in it).
    • Assets folder.
    • MscModApi.dll (depending on how your Windows is setup, you will not see the extension .dll).
    • Changelog (<version>).txt (this is just a text file, not needed to use the mod).
  6. Open the Mods folder for your game.
    • Where that folder is, depends what you selected when you installed MscModLoader using the MSCPatcher tool.
      Possible locations are:
      • Steam\steamapps\common\My Summer Car\Mods
      • C:\Users\<your windows username>\Documents\My Summer Car\Mods
      • C:\Users\<your windows username>\AppData\LocalLow\Amistech\My Summer Car\Mods
  7. COPY the Assets folder AND the MscModApi.dll file into that Mods folder
  8. When asked if you would like to overwrite existing files, select Yes.
  9. Launch the game and the Mod should be running.

Mod Authors

The best way to use MscModApi while developing a mod is to clone the entire repository.
This will guarantee that your IDE (Visual Studio) can "look" into the code of the MscModApi.

  1. Clone the repository to a folder of your choosing.
  2. Open your IDE and open the .svn file located in the Source code folder.
  3. Select the Debug Profile in the top bar
  4. Press CTRL + SHIFT + B to compile the source
    • It's possible that references are missing. Make sure to add those. They are all located inside your games mysummercar_Data\Managed** folder. Required references for MscModApi
  5. Navigate to \/Source code/MscModApi/bin/Debug
  6. Copy the MscModApi.dll & MscModApi.pdb file into your games Mods folder.
  7. run the debug.bat file that should be located inside that folder (See MscModLoader documentation, this is general mod dev information).
    • The MscModApi documentation also has instructions on how to automate the copying & debug.bat executing steps.
  8. Inside your mod, add a new reference pointing to that MscModApi.dll file
    (similar to how you did earlier for files like Assembly-CSharp and such)
  9. Happy developing.

Features

Important info about Features

Interpret this list as a "Showcase",
exact information of each individual feature and how to use, what they do, ...
should be researched in the actual Documentation.