From 02049f57e0e1d4af874fea4ffec951a2dc4947d6 Mon Sep 17 00:00:00 2001 From: Dev Date: Sat, 6 Jul 2024 22:15:30 +0100 Subject: [PATCH] Further branding changes --- TypeScript/10ScopesAndTypes/README.md | 4 ++-- TypeScript/10ScopesAndTypes/src/mod.ts | 10 +++++----- TypeScript/11BundleLoadingSample/README.md | 4 ++-- TypeScript/11BundleLoadingSample/src/mod.ts | 6 +++--- TypeScript/12ClassExtensionOverride/README.md | 4 ++-- TypeScript/12ClassExtensionOverride/src/mod.ts | 8 ++++---- TypeScript/13AddTrader/README.md | 4 ++-- TypeScript/13AddTrader/src/mod.ts | 16 ++++++++-------- TypeScript/13AddTrader/src/traderHelpers.ts | 8 ++++---- TypeScript/14AfterDBLoadHook/README.md | 4 ++-- TypeScript/14AfterDBLoadHook/src/mod.ts | 12 ++++++------ TypeScript/15HttpListenerExample/README.md | 4 ++-- TypeScript/15HttpListenerExample/src/mod.ts | 6 +++--- TypeScript/16ImporterUtil/README.md | 4 ++-- TypeScript/16ImporterUtil/src/mod.ts | 10 +++++----- .../17AsyncImporterWithDependency1/README.md | 4 ++-- .../17AsyncImporterWithDependency1/src/mod.ts | 10 +++++----- .../17AsyncImporterWithDependency2/README.md | 4 ++-- .../17AsyncImporterWithDependency2/src/mod.ts | 10 +++++----- TypeScript/18CustomItemService/README.md | 4 ++-- TypeScript/18CustomItemService/src/mod.ts | 6 +++--- TypeScript/19UseExternalLibraries/README.md | 4 ++-- TypeScript/19UseExternalLibraries/src/mod.ts | 10 +++++----- TypeScript/1LogToConsole/README.md | 4 ++-- TypeScript/1LogToConsole/src/mod.ts | 6 +++--- TypeScript/20CustomChatBot/README.md | 4 ++-- TypeScript/21CustomCommandoCommand/README.md | 4 ++-- TypeScript/22CustomAkiCommand/README.md | 4 ++-- TypeScript/23CustomAbstractChatBot/README.md | 4 ++-- TypeScript/24WebSocket/README.md | 4 ++-- TypeScript/24WebSocket/src/mod.ts | 6 +++--- TypeScript/2EditDatabase/README.md | 4 ++-- TypeScript/3GetSptConfigFile/README.md | 4 ++-- TypeScript/3GetSptConfigFile/src/mod.ts | 6 +++--- .../README.md | 4 ++-- .../src/mod.ts | 6 +++--- TypeScript/4UseACustomConfigFile/README.md | 4 ++-- TypeScript/4UseACustomConfigFile/src/mod.ts | 6 +++--- TypeScript/5ReplaceMethod/README.md | 4 ++-- TypeScript/5ReplaceMethod/src/mod.ts | 6 +++--- TypeScript/6ReferenceAnotherClass/README.md | 4 ++-- TypeScript/6ReferenceAnotherClass/src/mod.ts | 6 +++--- TypeScript/7OnLoadHook/README.md | 4 ++-- TypeScript/7OnLoadHook/src/mod.ts | 6 +++--- TypeScript/8OnUpdateHook/README.md | 4 ++-- TypeScript/8OnUpdateHook/src/mod.ts | 6 +++--- TypeScript/9RouterHooks/README.md | 4 ++-- 47 files changed, 135 insertions(+), 135 deletions(-) diff --git a/TypeScript/10ScopesAndTypes/README.md b/TypeScript/10ScopesAndTypes/README.md index 3bd5a99..ba4600a 100644 --- a/TypeScript/10ScopesAndTypes/README.md +++ b/TypeScript/10ScopesAndTypes/README.md @@ -1,4 +1,4 @@ -# Welcome to the SPT-AKI Modding Project +# Welcome to the SPT Modding Project This project is designed to streamline the initial setup process for building and creating mods in the SPT-AKI environment. Follow this guide to set up your environment efficiently. @@ -47,7 +47,7 @@ Some resources to get you started: ## **Coding Guidelines** -Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"akiVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. +Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"sptVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. New to Typescript? Find comprehensive documentation on the [official website](https://www.typescriptlang.org/docs/). diff --git a/TypeScript/10ScopesAndTypes/src/mod.ts b/TypeScript/10ScopesAndTypes/src/mod.ts index d75636a..e035ed3 100644 --- a/TypeScript/10ScopesAndTypes/src/mod.ts +++ b/TypeScript/10ScopesAndTypes/src/mod.ts @@ -1,15 +1,15 @@ import { DependencyContainer, Lifecycle } from "tsyringe"; -import { IPreAkiLoadMod } from "@spt/models/external/IPreAkiLoadMod"; -import { IPostAkiLoadMod } from "@spt/models/external/IPostAkiLoadMod"; +import { IPreSptLoadMod } from "@spt/models/external/IPreSptLoadMod"; +import { IPostSptLoadMod } from "@spt/models/external/IPostSptLoadMod"; import { MyMod } from "./MyMod"; import { Processing } from "./Processing"; -class Mod implements IPreAkiLoadMod, IPostAkiLoadMod +class Mod implements IPreSptLoadMod, IPostSptLoadMod { // Perform these actions before server fully loads - public preAkiLoad(container: DependencyContainer): void { + public preSptLoad(container: DependencyContainer): void { // This class is registered as a singleton. This means ONE and only ONE bean // of this class will ever exist. container.register("MyMod", MyMod, {lifecycle: Lifecycle.Singleton}); @@ -19,7 +19,7 @@ class Mod implements IPreAkiLoadMod, IPostAkiLoadMod container.register("Processing", Processing); } - public postAkiLoad(container: DependencyContainer): void + public postSptLoad(container: DependencyContainer): void { // We will run this in a quick 5 loop to show how singletons and transients work for (let i = 0; i < 5; i++) diff --git a/TypeScript/11BundleLoadingSample/README.md b/TypeScript/11BundleLoadingSample/README.md index 3bd5a99..ba4600a 100644 --- a/TypeScript/11BundleLoadingSample/README.md +++ b/TypeScript/11BundleLoadingSample/README.md @@ -1,4 +1,4 @@ -# Welcome to the SPT-AKI Modding Project +# Welcome to the SPT Modding Project This project is designed to streamline the initial setup process for building and creating mods in the SPT-AKI environment. Follow this guide to set up your environment efficiently. @@ -47,7 +47,7 @@ Some resources to get you started: ## **Coding Guidelines** -Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"akiVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. +Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"sptVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. New to Typescript? Find comprehensive documentation on the [official website](https://www.typescriptlang.org/docs/). diff --git a/TypeScript/11BundleLoadingSample/src/mod.ts b/TypeScript/11BundleLoadingSample/src/mod.ts index 3b47133..eb5ed53 100644 --- a/TypeScript/11BundleLoadingSample/src/mod.ts +++ b/TypeScript/11BundleLoadingSample/src/mod.ts @@ -1,11 +1,11 @@ import { DependencyContainer } from "tsyringe"; -import { IPostAkiLoadMod } from "@spt/models/external/IPostAkiLoadMod"; +import { IPostSptLoadMod } from "@spt/models/external/IPostSptLoadMod"; import { ILogger } from "@spt/models/spt/utils/ILogger"; -class Mod implements IPostAkiLoadMod +class Mod implements IPostSptLoadMod { - public postAkiLoad(container: DependencyContainer): void + public postSptLoad(container: DependencyContainer): void { // get the logger from the server container const logger = container.resolve("WinstonLogger"); diff --git a/TypeScript/12ClassExtensionOverride/README.md b/TypeScript/12ClassExtensionOverride/README.md index 3bd5a99..ba4600a 100644 --- a/TypeScript/12ClassExtensionOverride/README.md +++ b/TypeScript/12ClassExtensionOverride/README.md @@ -1,4 +1,4 @@ -# Welcome to the SPT-AKI Modding Project +# Welcome to the SPT Modding Project This project is designed to streamline the initial setup process for building and creating mods in the SPT-AKI environment. Follow this guide to set up your environment efficiently. @@ -47,7 +47,7 @@ Some resources to get you started: ## **Coding Guidelines** -Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"akiVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. +Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"sptVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. New to Typescript? Find comprehensive documentation on the [official website](https://www.typescriptlang.org/docs/). diff --git a/TypeScript/12ClassExtensionOverride/src/mod.ts b/TypeScript/12ClassExtensionOverride/src/mod.ts index f3eb905..567d6b5 100644 --- a/TypeScript/12ClassExtensionOverride/src/mod.ts +++ b/TypeScript/12ClassExtensionOverride/src/mod.ts @@ -1,9 +1,9 @@ import { DependencyContainer } from "tsyringe"; -import { IPreAkiLoadMod } from "@spt/models/external/IPreAkiLoadMod" +import { IPreSptLoadMod } from "@spt/models/external/IPreSptLoadMod" import { MyCustomLauncherCallbacks } from "./MyCustomLauncherCallbacks"; -class Mod implements IPreAkiLoadMod +class Mod implements IPreSptLoadMod { // This example will show you how to override and register your own components and use them // The container will by default register all AKI dependencies, but you can inject into it @@ -12,11 +12,11 @@ class Mod implements IPreAkiLoadMod // for our own custom method that will return "Lets dance" instead of "pong!" // Perform these actions before server fully loads - public preAkiLoad(container: DependencyContainer): void { + public preSptLoad(container: DependencyContainer): void { // Here we register our override for the component and we NEED to use the same // token the server is using to register it. // You can find this tokens here: - // https://dev.sp-tarkov.com/SPT-AKI/Server/src/branch/development/project/src/di/Container.ts + // https://dev.sp-tarkov.com/SPT/Server/src/branch/development/project/src/di/Container.ts // In this scenario we want to override LauncherCallbacks, so we find the proper registry: // // depContainer.register("LauncherCallbacks", { useClass: LauncherCallbacks }); diff --git a/TypeScript/13AddTrader/README.md b/TypeScript/13AddTrader/README.md index 3bd5a99..ba4600a 100644 --- a/TypeScript/13AddTrader/README.md +++ b/TypeScript/13AddTrader/README.md @@ -1,4 +1,4 @@ -# Welcome to the SPT-AKI Modding Project +# Welcome to the SPT Modding Project This project is designed to streamline the initial setup process for building and creating mods in the SPT-AKI environment. Follow this guide to set up your environment efficiently. @@ -47,7 +47,7 @@ Some resources to get you started: ## **Coding Guidelines** -Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"akiVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. +Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"sptVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. New to Typescript? Find comprehensive documentation on the [official website](https://www.typescriptlang.org/docs/). diff --git a/TypeScript/13AddTrader/src/mod.ts b/TypeScript/13AddTrader/src/mod.ts index 668755c..f110e8f 100644 --- a/TypeScript/13AddTrader/src/mod.ts +++ b/TypeScript/13AddTrader/src/mod.ts @@ -1,10 +1,10 @@ import { DependencyContainer } from "tsyringe"; // SPT types -import { IPreAkiLoadMod } from "@spt/models/external/IPreAkiLoadMod"; +import { IPreSptLoadMod } from "@spt/models/external/IPreSptLoadMod"; import { IPostDBLoadMod } from "@spt/models/external/IPostDBLoadMod"; import { ILogger } from "@spt/models/spt/utils/ILogger"; -import { PreAkiModLoader } from "@spt/loaders/PreAkiModLoader"; +import { PreSptModLoader } from "@spt/loaders/PreSptModLoader"; import { DatabaseServer } from "@spt/servers/DatabaseServer"; import { ImageRouter } from "@spt/routers/ImageRouter"; import { ConfigServer } from "@spt/servers/ConfigServer"; @@ -22,7 +22,7 @@ import * as baseJson from "../db/base.json"; import { TraderHelper } from "./traderHelpers"; import { FluentAssortConstructor as FluentAssortCreator } from "./fluentTraderAssortCreator"; -class SampleTrader implements IPreAkiLoadMod, IPostDBLoadMod +class SampleTrader implements IPreSptLoadMod, IPostDBLoadMod { private mod: string; private logger: ILogger; @@ -37,14 +37,14 @@ class SampleTrader implements IPreAkiLoadMod, IPostDBLoadMod * Some work needs to be done prior to SPT code being loaded, registering the profile image + setting trader update time inside the trader config json * @param container Dependency container */ - public preAkiLoad(container: DependencyContainer): void + public preSptLoad(container: DependencyContainer): void { // Get a logger this.logger = container.resolve("WinstonLogger"); - this.logger.debug(`[${this.mod}] preAki Loading... `); + this.logger.debug(`[${this.mod}] preSpt Loading... `); // Get SPT code/data we need later - const preAkiModLoader: PreAkiModLoader = container.resolve("PreAkiModLoader"); + const preSptModLoader: PreSptModLoader = container.resolve("PreSptModLoader"); const imageRouter: ImageRouter = container.resolve("ImageRouter"); const hashUtil: HashUtil = container.resolve("HashUtil"); const configServer = container.resolve("ConfigServer"); @@ -54,7 +54,7 @@ class SampleTrader implements IPreAkiLoadMod, IPostDBLoadMod // Create helper class and use it to register our traders image/icon + set its stock refresh time this.traderHelper = new TraderHelper(); this.fluentAssortCreator = new FluentAssortCreator(hashUtil, this.logger); - this.traderHelper.registerProfileImage(baseJson, this.mod, preAkiModLoader, imageRouter, "cat.jpg"); + this.traderHelper.registerProfileImage(baseJson, this.mod, preSptModLoader, imageRouter, "cat.jpg"); this.traderHelper.setTraderUpdateTime(traderConfig, baseJson, 3600, 4000); // Add trader to trader enum @@ -63,7 +63,7 @@ class SampleTrader implements IPreAkiLoadMod, IPostDBLoadMod // Add trader to flea market ragfairConfig.traders[baseJson._id] = true; - this.logger.debug(`[${this.mod}] preAki Loaded`); + this.logger.debug(`[${this.mod}] preSpt Loaded`); } /** diff --git a/TypeScript/13AddTrader/src/traderHelpers.ts b/TypeScript/13AddTrader/src/traderHelpers.ts index ccd6a3d..ed2e897 100644 --- a/TypeScript/13AddTrader/src/traderHelpers.ts +++ b/TypeScript/13AddTrader/src/traderHelpers.ts @@ -1,4 +1,4 @@ -import { PreAkiModLoader } from "@spt/loaders/PreAkiModLoader"; +import { PreSptModLoader } from "@spt/loaders/PreSptModLoader"; import { Item } from "@spt/models/eft/common/tables/IItem"; import { ITraderBase, ITraderAssort } from "@spt/models/eft/common/tables/ITrader"; import { ITraderConfig, UpdateTime } from "@spt/models/spt/config/ITraderConfig"; @@ -12,14 +12,14 @@ export class TraderHelper * Add profile picture to our trader * @param baseJson json file for trader (db/base.json) * @param modName mod folder name - * @param preAkiModLoader mod loader class - used to get the mods file path + * @param preSptModLoader mod loader class - used to get the mods file path * @param imageRouter image router class - used to register the trader image path so we see their image on trader page * @param traderImageName Filename of the trader icon to use */ - public registerProfileImage(baseJson: any, modName: string, preAkiModLoader: PreAkiModLoader, imageRouter: ImageRouter, traderImageName: string): void + public registerProfileImage(baseJson: any, modName: string, preSptModLoader: PreSptModLoader, imageRouter: ImageRouter, traderImageName: string): void { // Reference the mod "res" folder - const imageFilepath = `./${preAkiModLoader.getModPath(modName)}res`; + const imageFilepath = `./${preSptModLoader.getModPath(modName)}res`; // Register a route to point to the profile picture - remember to remove the .jpg from it imageRouter.addRoute(baseJson.avatar.replace(".jpg", ""), `${imageFilepath}/${traderImageName}`); diff --git a/TypeScript/14AfterDBLoadHook/README.md b/TypeScript/14AfterDBLoadHook/README.md index 3bd5a99..ba4600a 100644 --- a/TypeScript/14AfterDBLoadHook/README.md +++ b/TypeScript/14AfterDBLoadHook/README.md @@ -1,4 +1,4 @@ -# Welcome to the SPT-AKI Modding Project +# Welcome to the SPT Modding Project This project is designed to streamline the initial setup process for building and creating mods in the SPT-AKI environment. Follow this guide to set up your environment efficiently. @@ -47,7 +47,7 @@ Some resources to get you started: ## **Coding Guidelines** -Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"akiVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. +Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"sptVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. New to Typescript? Find comprehensive documentation on the [official website](https://www.typescriptlang.org/docs/). diff --git a/TypeScript/14AfterDBLoadHook/src/mod.ts b/TypeScript/14AfterDBLoadHook/src/mod.ts index 5f395ba..f525f24 100644 --- a/TypeScript/14AfterDBLoadHook/src/mod.ts +++ b/TypeScript/14AfterDBLoadHook/src/mod.ts @@ -1,7 +1,7 @@ import { DependencyContainer } from "tsyringe"; -import { IPreAkiLoadMod } from "@spt/models/external/IPreAkiLoadMod"; -import { IPostAkiLoadMod } from "@spt/models/external/IPostAkiLoadMod"; +import { IPreSptLoadMod } from "@spt/models/external/IPreSptLoadMod"; +import { IPostSptLoadMod } from "@spt/models/external/IPostSptLoadMod"; import { IPostDBLoadMod } from "@spt/models/external/IPostDBLoadMod"; import { ILogger } from "@spt/models/spt/utils/ILogger"; import { DatabaseServer } from "@spt/servers/DatabaseServer"; @@ -9,9 +9,9 @@ import { LogTextColor } from "@spt/models/spt/logging/LogTextColor"; import { LogBackgroundColor } from "@spt/models/spt/logging/LogBackgroundColor"; -class Mod implements IPreAkiLoadMod, IPostAkiLoadMod, IPostDBLoadMod +class Mod implements IPreSptLoadMod, IPostSptLoadMod, IPostDBLoadMod { - public preAkiLoad(container: DependencyContainer): void { + public preSptLoad(container: DependencyContainer): void { // Database will be empty in here const databaseServer = container.resolve("DatabaseServer"); const logger = container.resolve("WinstonLogger"); @@ -24,7 +24,7 @@ class Mod implements IPreAkiLoadMod, IPostAkiLoadMod, IPostDBLoadMod const databaseServer = container.resolve("DatabaseServer"); const logger = container.resolve("WinstonLogger"); logger.logWithColor(`Database item size: ${Object.entries(databaseServer.getTables().templates.items).length}`, LogTextColor.RED, LogBackgroundColor.YELLOW); - // lets do a quick modification and see how this reflect later on, on the postAkiLoad() + // lets do a quick modification and see how this reflect later on, on the postSptLoad() // find the nvgs item by its Id const nvgs = databaseServer.getTables().templates.items["5c0558060db834001b735271"]; @@ -34,7 +34,7 @@ class Mod implements IPreAkiLoadMod, IPostAkiLoadMod, IPostDBLoadMod nvgs._props.CanSellOnRagfair = true; } - public postAkiLoad(container: DependencyContainer): void { + public postSptLoad(container: DependencyContainer): void { // The modification we made above would have been processed by now by AKI, so any values we changed had // already been passed through the initial lifecycles (OnLoad) of AKI. const databaseServer = container.resolve("DatabaseServer"); diff --git a/TypeScript/15HttpListenerExample/README.md b/TypeScript/15HttpListenerExample/README.md index 3bd5a99..ba4600a 100644 --- a/TypeScript/15HttpListenerExample/README.md +++ b/TypeScript/15HttpListenerExample/README.md @@ -1,4 +1,4 @@ -# Welcome to the SPT-AKI Modding Project +# Welcome to the SPT Modding Project This project is designed to streamline the initial setup process for building and creating mods in the SPT-AKI environment. Follow this guide to set up your environment efficiently. @@ -47,7 +47,7 @@ Some resources to get you started: ## **Coding Guidelines** -Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"akiVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. +Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"sptVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. New to Typescript? Find comprehensive documentation on the [official website](https://www.typescriptlang.org/docs/). diff --git a/TypeScript/15HttpListenerExample/src/mod.ts b/TypeScript/15HttpListenerExample/src/mod.ts index 4febe7e..1383f48 100644 --- a/TypeScript/15HttpListenerExample/src/mod.ts +++ b/TypeScript/15HttpListenerExample/src/mod.ts @@ -1,14 +1,14 @@ import { IncomingMessage, ServerResponse } from "node:http"; import { DependencyContainer } from "tsyringe"; -import { IPreAkiLoadMod } from "@spt/models/external/IPreAkiLoadMod"; +import { IPreSptLoadMod } from "@spt/models/external/IPreSptLoadMod"; import { HttpListenerModService } from "@spt/services/mod/httpListener/HttpListenerModService"; import { Type2HttpListener } from "./Type2HttpListener"; -class Mod implements IPreAkiLoadMod +class Mod implements IPreSptLoadMod { // Code added here will load BEFORE the server has started loading - public preAkiLoad(container: DependencyContainer): void + public preSptLoad(container: DependencyContainer): void { const httpListenerService = container.resolve("HttpListenerModService"); httpListenerService.registerHttpListener("Type1HttpListener", this.canHandleOverride, this.handleOverride) diff --git a/TypeScript/16ImporterUtil/README.md b/TypeScript/16ImporterUtil/README.md index 3bd5a99..ba4600a 100644 --- a/TypeScript/16ImporterUtil/README.md +++ b/TypeScript/16ImporterUtil/README.md @@ -1,4 +1,4 @@ -# Welcome to the SPT-AKI Modding Project +# Welcome to the SPT Modding Project This project is designed to streamline the initial setup process for building and creating mods in the SPT-AKI environment. Follow this guide to set up your environment efficiently. @@ -47,7 +47,7 @@ Some resources to get you started: ## **Coding Guidelines** -Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"akiVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. +Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"sptVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. New to Typescript? Find comprehensive documentation on the [official website](https://www.typescriptlang.org/docs/). diff --git a/TypeScript/16ImporterUtil/src/mod.ts b/TypeScript/16ImporterUtil/src/mod.ts index c130ed0..f53b02c 100644 --- a/TypeScript/16ImporterUtil/src/mod.ts +++ b/TypeScript/16ImporterUtil/src/mod.ts @@ -1,18 +1,18 @@ import { DependencyContainer } from "tsyringe"; -import { PreAkiModLoader } from "@spt/loaders/PreAkiModLoader"; -import { IPreAkiLoadMod } from "@spt/models/external/IPreAkiLoadMod"; +import { PreSptModLoader } from "@spt/loaders/PreSptModLoader"; +import { IPreSptLoadMod } from "@spt/models/external/IPreSptLoadMod"; import { ILogger } from "@spt/models/spt/utils/ILogger"; import { ImporterUtil } from "@spt/utils/ImporterUtil"; import { ConfigsModelBase } from "./model/ConfigsModel"; -class Mod implements IPreAkiLoadMod { - public preAkiLoad(container: DependencyContainer): void { +class Mod implements IPreSptLoadMod { + public preSptLoad(container: DependencyContainer): void { // get logger const logger = container.resolve("WinstonLogger"); const importerUtil = container.resolve("ImporterUtil"); - const modImporter = container.resolve("PreAkiModLoader"); + const modImporter = container.resolve("PreSptModLoader"); const path = modImporter.getModPath("16ImporterUtil"); const configPath = `${path}config/`; diff --git a/TypeScript/17AsyncImporterWithDependency1/README.md b/TypeScript/17AsyncImporterWithDependency1/README.md index 3bd5a99..ba4600a 100644 --- a/TypeScript/17AsyncImporterWithDependency1/README.md +++ b/TypeScript/17AsyncImporterWithDependency1/README.md @@ -1,4 +1,4 @@ -# Welcome to the SPT-AKI Modding Project +# Welcome to the SPT Modding Project This project is designed to streamline the initial setup process for building and creating mods in the SPT-AKI environment. Follow this guide to set up your environment efficiently. @@ -47,7 +47,7 @@ Some resources to get you started: ## **Coding Guidelines** -Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"akiVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. +Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"sptVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. New to Typescript? Find comprehensive documentation on the [official website](https://www.typescriptlang.org/docs/). diff --git a/TypeScript/17AsyncImporterWithDependency1/src/mod.ts b/TypeScript/17AsyncImporterWithDependency1/src/mod.ts index 212fa09..4137858 100644 --- a/TypeScript/17AsyncImporterWithDependency1/src/mod.ts +++ b/TypeScript/17AsyncImporterWithDependency1/src/mod.ts @@ -1,18 +1,18 @@ import { DependencyContainer } from "tsyringe"; -import { PreAkiModLoader } from "@spt/loaders/PreAkiModLoader"; -import { IPreAkiLoadModAsync } from "@spt/models/external/IPreAkiLoadModAsync"; +import { PreSptModLoader } from "@spt/loaders/PreSptModLoader"; +import { IPreSptLoadModAsync } from "@spt/models/external/IPreSptLoadModAsync"; import { ILogger } from "@spt/models/spt/utils/ILogger"; import { ImporterUtil } from "@spt/utils/ImporterUtil"; import { ConfigsModelBase } from "./model/ConfigsModel"; -class Mod implements IPreAkiLoadModAsync { - public async preAkiLoadAsync(container: DependencyContainer): Promise { +class Mod implements IPreSptLoadModAsync { + public async preSptLoadAsync(container: DependencyContainer): Promise { // get logger const logger = container.resolve("WinstonLogger"); const importerUtil = container.resolve("ImporterUtil"); - const modImporter = container.resolve("PreAkiModLoader"); + const modImporter = container.resolve("PreSptModLoader"); const path = modImporter.getModPath("16ImporterUtil"); const configPath = `${path}config/`; diff --git a/TypeScript/17AsyncImporterWithDependency2/README.md b/TypeScript/17AsyncImporterWithDependency2/README.md index 3bd5a99..ba4600a 100644 --- a/TypeScript/17AsyncImporterWithDependency2/README.md +++ b/TypeScript/17AsyncImporterWithDependency2/README.md @@ -1,4 +1,4 @@ -# Welcome to the SPT-AKI Modding Project +# Welcome to the SPT Modding Project This project is designed to streamline the initial setup process for building and creating mods in the SPT-AKI environment. Follow this guide to set up your environment efficiently. @@ -47,7 +47,7 @@ Some resources to get you started: ## **Coding Guidelines** -Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"akiVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. +Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"sptVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. New to Typescript? Find comprehensive documentation on the [official website](https://www.typescriptlang.org/docs/). diff --git a/TypeScript/17AsyncImporterWithDependency2/src/mod.ts b/TypeScript/17AsyncImporterWithDependency2/src/mod.ts index fbe7ddb..36808e8 100644 --- a/TypeScript/17AsyncImporterWithDependency2/src/mod.ts +++ b/TypeScript/17AsyncImporterWithDependency2/src/mod.ts @@ -1,18 +1,18 @@ import { DependencyContainer } from "tsyringe"; -import { PreAkiModLoader } from "@spt/loaders/PreAkiModLoader"; -import { IPreAkiLoadModAsync } from "@spt/models/external/IPreAkiLoadModAsync"; +import { PreSptModLoader } from "@spt/loaders/PreSptModLoader"; +import { IPreSptLoadModAsync } from "@spt/models/external/IPreSptLoadModAsync"; import { ILogger } from "@spt/models/spt/utils/ILogger"; import { ImporterUtil } from "@spt/utils/ImporterUtil"; import { ConfigsModelBase } from "./model/ConfigsModel"; -class Mod implements IPreAkiLoadModAsync { - public async preAkiLoadAsync(container: DependencyContainer): Promise { +class Mod implements IPreSptLoadModAsync { + public async preSptLoadAsync(container: DependencyContainer): Promise { // get logger const logger = container.resolve("WinstonLogger"); const importerUtil = container.resolve("ImporterUtil"); - const modImporter = container.resolve("PreAkiModLoader"); + const modImporter = container.resolve("PreSptModLoader"); const path = modImporter.getModPath("16ImporterUtil"); const configPath = `${path}config/`; diff --git a/TypeScript/18CustomItemService/README.md b/TypeScript/18CustomItemService/README.md index 3bd5a99..ba4600a 100644 --- a/TypeScript/18CustomItemService/README.md +++ b/TypeScript/18CustomItemService/README.md @@ -1,4 +1,4 @@ -# Welcome to the SPT-AKI Modding Project +# Welcome to the SPT Modding Project This project is designed to streamline the initial setup process for building and creating mods in the SPT-AKI environment. Follow this guide to set up your environment efficiently. @@ -47,7 +47,7 @@ Some resources to get you started: ## **Coding Guidelines** -Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"akiVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. +Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"sptVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. New to Typescript? Find comprehensive documentation on the [official website](https://www.typescriptlang.org/docs/). diff --git a/TypeScript/18CustomItemService/src/mod.ts b/TypeScript/18CustomItemService/src/mod.ts index a78033f..64d4141 100644 --- a/TypeScript/18CustomItemService/src/mod.ts +++ b/TypeScript/18CustomItemService/src/mod.ts @@ -3,10 +3,10 @@ import { DependencyContainer } from "tsyringe"; import { IPostDBLoadMod } from "@spt/models/external/IPostDBLoadMod"; import { CustomItemService } from "@spt/services/mod/CustomItemService"; import { NewItemFromCloneDetails } from "@spt/models/spt/mod/NewItemDetails"; -import { IPostAkiLoadMod } from "@spt/models/external/IPostAkiLoadMod"; +import { IPostSptLoadMod } from "@spt/models/external/IPostSptLoadMod"; import { DatabaseServer } from "@spt/servers/DatabaseServer"; -class Mod implements IPostDBLoadMod, IPostAkiLoadMod +class Mod implements IPostDBLoadMod, IPostSptLoadMod { public postDBLoad(container: DependencyContainer): void { @@ -71,7 +71,7 @@ class Mod implements IPostDBLoadMod, IPostAkiLoadMod } //Check if our item is in the server or not - public postAkiLoad(container: DependencyContainer): void { + public postSptLoad(container: DependencyContainer): void { const db = container.resolve("DatabaseServer"); const item = db.getTables().templates.items; diff --git a/TypeScript/19UseExternalLibraries/README.md b/TypeScript/19UseExternalLibraries/README.md index 3bd5a99..ba4600a 100644 --- a/TypeScript/19UseExternalLibraries/README.md +++ b/TypeScript/19UseExternalLibraries/README.md @@ -1,4 +1,4 @@ -# Welcome to the SPT-AKI Modding Project +# Welcome to the SPT Modding Project This project is designed to streamline the initial setup process for building and creating mods in the SPT-AKI environment. Follow this guide to set up your environment efficiently. @@ -47,7 +47,7 @@ Some resources to get you started: ## **Coding Guidelines** -Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"akiVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. +Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"sptVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. New to Typescript? Find comprehensive documentation on the [official website](https://www.typescriptlang.org/docs/). diff --git a/TypeScript/19UseExternalLibraries/src/mod.ts b/TypeScript/19UseExternalLibraries/src/mod.ts index 464f2be..efe5e5e 100644 --- a/TypeScript/19UseExternalLibraries/src/mod.ts +++ b/TypeScript/19UseExternalLibraries/src/mod.ts @@ -1,8 +1,8 @@ import path from "node:path"; import { DependencyContainer } from "tsyringe"; -import { IPostAkiLoadMod } from "@spt/models/external/IPostAkiLoadMod"; -import { IPreAkiLoadMod } from "@spt/models/external/IPreAkiLoadMod"; +import { IPostSptLoadMod } from "@spt/models/external/IPostSptLoadMod"; +import { IPreSptLoadMod } from "@spt/models/external/IPreSptLoadMod"; import { ILogger } from "@spt/models/spt/utils/ILogger"; import { VFS } from "@spt/utils/VFS"; import { jsonc } from "jsonc"; @@ -10,8 +10,8 @@ import { jsonc } from "jsonc"; // Our dynamically imported package (via pnpm) not bundled into the server import ora from "ora-classic"; -class Mod implements IPreAkiLoadMod, IPostAkiLoadMod { - public preAkiLoad(container: DependencyContainer): void { +class Mod implements IPreSptLoadMod, IPostSptLoadMod { + public preSptLoad(container: DependencyContainer): void { const vfs = container.resolve("VFS"); const logger = container.resolve("WinstonLogger"); @@ -20,7 +20,7 @@ class Mod implements IPreAkiLoadMod, IPostAkiLoadMod { logger.success(jsonc.stringify(parsedJsonC, null, "\t")); // you could use the built in JSON api here if you really wanted too aswell, i used jsonc to really drive home the point that it works } - public postAkiLoad(container: DependencyContainer): void { + public postSptLoad(container: DependencyContainer): void { // this first timeout is just to prevent a weird formatting problem on the console, you can ignore it, you don't really need it anyways, it's just so that it looks right on the console setTimeout(() => { const spinner = ora({ diff --git a/TypeScript/1LogToConsole/README.md b/TypeScript/1LogToConsole/README.md index 3bd5a99..ba4600a 100644 --- a/TypeScript/1LogToConsole/README.md +++ b/TypeScript/1LogToConsole/README.md @@ -1,4 +1,4 @@ -# Welcome to the SPT-AKI Modding Project +# Welcome to the SPT Modding Project This project is designed to streamline the initial setup process for building and creating mods in the SPT-AKI environment. Follow this guide to set up your environment efficiently. @@ -47,7 +47,7 @@ Some resources to get you started: ## **Coding Guidelines** -Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"akiVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. +Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"sptVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. New to Typescript? Find comprehensive documentation on the [official website](https://www.typescriptlang.org/docs/). diff --git a/TypeScript/1LogToConsole/src/mod.ts b/TypeScript/1LogToConsole/src/mod.ts index bfd4481..4d54e46 100644 --- a/TypeScript/1LogToConsole/src/mod.ts +++ b/TypeScript/1LogToConsole/src/mod.ts @@ -1,14 +1,14 @@ import { DependencyContainer } from "tsyringe"; -import { IPreAkiLoadMod } from "@spt/models/external/IPreAkiLoadMod"; +import { IPreSptLoadMod } from "@spt/models/external/IPreSptLoadMod"; import { ILogger } from "@spt/models/spt/utils/ILogger"; import { LogTextColor } from "@spt/models/spt/logging/LogTextColor"; import { LogBackgroundColor } from "@spt/models/spt/logging/LogBackgroundColor"; -class Mod implements IPreAkiLoadMod +class Mod implements IPreSptLoadMod { // Code added here will load BEFORE the server has started loading - public preAkiLoad(container: DependencyContainer): void + public preSptLoad(container: DependencyContainer): void { // get the logger from the server container const logger = container.resolve("WinstonLogger"); diff --git a/TypeScript/20CustomChatBot/README.md b/TypeScript/20CustomChatBot/README.md index 3bd5a99..ba4600a 100644 --- a/TypeScript/20CustomChatBot/README.md +++ b/TypeScript/20CustomChatBot/README.md @@ -1,4 +1,4 @@ -# Welcome to the SPT-AKI Modding Project +# Welcome to the SPT Modding Project This project is designed to streamline the initial setup process for building and creating mods in the SPT-AKI environment. Follow this guide to set up your environment efficiently. @@ -47,7 +47,7 @@ Some resources to get you started: ## **Coding Guidelines** -Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"akiVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. +Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"sptVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. New to Typescript? Find comprehensive documentation on the [official website](https://www.typescriptlang.org/docs/). diff --git a/TypeScript/21CustomCommandoCommand/README.md b/TypeScript/21CustomCommandoCommand/README.md index 3bd5a99..ba4600a 100644 --- a/TypeScript/21CustomCommandoCommand/README.md +++ b/TypeScript/21CustomCommandoCommand/README.md @@ -1,4 +1,4 @@ -# Welcome to the SPT-AKI Modding Project +# Welcome to the SPT Modding Project This project is designed to streamline the initial setup process for building and creating mods in the SPT-AKI environment. Follow this guide to set up your environment efficiently. @@ -47,7 +47,7 @@ Some resources to get you started: ## **Coding Guidelines** -Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"akiVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. +Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"sptVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. New to Typescript? Find comprehensive documentation on the [official website](https://www.typescriptlang.org/docs/). diff --git a/TypeScript/22CustomAkiCommand/README.md b/TypeScript/22CustomAkiCommand/README.md index 3bd5a99..ba4600a 100644 --- a/TypeScript/22CustomAkiCommand/README.md +++ b/TypeScript/22CustomAkiCommand/README.md @@ -1,4 +1,4 @@ -# Welcome to the SPT-AKI Modding Project +# Welcome to the SPT Modding Project This project is designed to streamline the initial setup process for building and creating mods in the SPT-AKI environment. Follow this guide to set up your environment efficiently. @@ -47,7 +47,7 @@ Some resources to get you started: ## **Coding Guidelines** -Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"akiVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. +Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"sptVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. New to Typescript? Find comprehensive documentation on the [official website](https://www.typescriptlang.org/docs/). diff --git a/TypeScript/23CustomAbstractChatBot/README.md b/TypeScript/23CustomAbstractChatBot/README.md index 3bd5a99..ba4600a 100644 --- a/TypeScript/23CustomAbstractChatBot/README.md +++ b/TypeScript/23CustomAbstractChatBot/README.md @@ -1,4 +1,4 @@ -# Welcome to the SPT-AKI Modding Project +# Welcome to the SPT Modding Project This project is designed to streamline the initial setup process for building and creating mods in the SPT-AKI environment. Follow this guide to set up your environment efficiently. @@ -47,7 +47,7 @@ Some resources to get you started: ## **Coding Guidelines** -Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"akiVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. +Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"sptVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. New to Typescript? Find comprehensive documentation on the [official website](https://www.typescriptlang.org/docs/). diff --git a/TypeScript/24WebSocket/README.md b/TypeScript/24WebSocket/README.md index 3bd5a99..ba4600a 100644 --- a/TypeScript/24WebSocket/README.md +++ b/TypeScript/24WebSocket/README.md @@ -1,4 +1,4 @@ -# Welcome to the SPT-AKI Modding Project +# Welcome to the SPT Modding Project This project is designed to streamline the initial setup process for building and creating mods in the SPT-AKI environment. Follow this guide to set up your environment efficiently. @@ -47,7 +47,7 @@ Some resources to get you started: ## **Coding Guidelines** -Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"akiVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. +Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"sptVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. New to Typescript? Find comprehensive documentation on the [official website](https://www.typescriptlang.org/docs/). diff --git a/TypeScript/24WebSocket/src/mod.ts b/TypeScript/24WebSocket/src/mod.ts index 192f21f..dc35a19 100644 --- a/TypeScript/24WebSocket/src/mod.ts +++ b/TypeScript/24WebSocket/src/mod.ts @@ -1,13 +1,13 @@ import { DependencyContainer } from "tsyringe"; -import { IPreAkiLoadMod } from "@spt/models/external/IPreAkiLoadMod"; +import { IPreSptLoadMod } from "@spt/models/external/IPreSptLoadMod"; import { CustomWebSocketConnectionHandler } from "./CustomWebSocketConnectionHandler"; import { IWebSocketConnectionHandler } from "@spt/servers/ws/IWebSocketConnectionHandler"; import { CustomAkiWebSocketMessageHandler } from "./CustomAkiWebSocketMessageHandler"; import { IAkiWebSocketMessageHandler } from "@spt/servers/ws/message/IAkiWebSocketMessageHandler"; -class Mod implements IPreAkiLoadMod { - public preAkiLoad(container: DependencyContainer): void { +class Mod implements IPreSptLoadMod { + public preSptLoad(container: DependencyContainer): void { // We register our Custom handlers: container.register("CustomWebSocketConnectionHandler", CustomWebSocketConnectionHandler); container.register("CustomAkiWebSocketMessageHandler", CustomAkiWebSocketMessageHandler); diff --git a/TypeScript/2EditDatabase/README.md b/TypeScript/2EditDatabase/README.md index 3bd5a99..ba4600a 100644 --- a/TypeScript/2EditDatabase/README.md +++ b/TypeScript/2EditDatabase/README.md @@ -1,4 +1,4 @@ -# Welcome to the SPT-AKI Modding Project +# Welcome to the SPT Modding Project This project is designed to streamline the initial setup process for building and creating mods in the SPT-AKI environment. Follow this guide to set up your environment efficiently. @@ -47,7 +47,7 @@ Some resources to get you started: ## **Coding Guidelines** -Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"akiVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. +Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"sptVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. New to Typescript? Find comprehensive documentation on the [official website](https://www.typescriptlang.org/docs/). diff --git a/TypeScript/3GetSptConfigFile/README.md b/TypeScript/3GetSptConfigFile/README.md index 3bd5a99..ba4600a 100644 --- a/TypeScript/3GetSptConfigFile/README.md +++ b/TypeScript/3GetSptConfigFile/README.md @@ -1,4 +1,4 @@ -# Welcome to the SPT-AKI Modding Project +# Welcome to the SPT Modding Project This project is designed to streamline the initial setup process for building and creating mods in the SPT-AKI environment. Follow this guide to set up your environment efficiently. @@ -47,7 +47,7 @@ Some resources to get you started: ## **Coding Guidelines** -Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"akiVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. +Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"sptVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. New to Typescript? Find comprehensive documentation on the [official website](https://www.typescriptlang.org/docs/). diff --git a/TypeScript/3GetSptConfigFile/src/mod.ts b/TypeScript/3GetSptConfigFile/src/mod.ts index c4b44b1..8c4ed34 100644 --- a/TypeScript/3GetSptConfigFile/src/mod.ts +++ b/TypeScript/3GetSptConfigFile/src/mod.ts @@ -1,14 +1,14 @@ import { DependencyContainer } from "tsyringe"; -import { IPostAkiLoadMod } from "@spt/models/external/IPostAkiLoadMod"; +import { IPostSptLoadMod } from "@spt/models/external/IPostSptLoadMod"; import { ILogger } from "@spt/models/spt/utils/ILogger"; import { ConfigServer } from "@spt/servers/ConfigServer"; import { ConfigTypes } from "@spt/models/enums/ConfigTypes"; import { ILocationConfig } from "@spt/models/spt/config/ILocationConfig"; -class Mod implements IPostAkiLoadMod +class Mod implements IPostSptLoadMod { - public postAkiLoad(container: DependencyContainer): void + public postSptLoad(container: DependencyContainer): void { // get logger const logger = container.resolve("WinstonLogger"); diff --git a/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/README.md b/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/README.md index 3bd5a99..ba4600a 100644 --- a/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/README.md +++ b/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/README.md @@ -1,4 +1,4 @@ -# Welcome to the SPT-AKI Modding Project +# Welcome to the SPT Modding Project This project is designed to streamline the initial setup process for building and creating mods in the SPT-AKI environment. Follow this guide to set up your environment efficiently. @@ -47,7 +47,7 @@ Some resources to get you started: ## **Coding Guidelines** -Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"akiVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. +Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"sptVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. New to Typescript? Find comprehensive documentation on the [official website](https://www.typescriptlang.org/docs/). diff --git a/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/src/mod.ts b/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/src/mod.ts index 17a8c22..59cc800 100644 --- a/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/src/mod.ts +++ b/TypeScript/4.1UseACustomJson5OrJsonCConfigFile/src/mod.ts @@ -1,16 +1,16 @@ import path from "node:path"; import { DependencyContainer } from "tsyringe"; -import { IPostAkiLoadMod } from "@spt/models/external/IPostAkiLoadMod"; +import { IPostSptLoadMod } from "@spt/models/external/IPostSptLoadMod"; import { ILogger } from "@spt/models/spt/utils/ILogger"; import { VFS } from "@spt/utils/VFS"; import JSON5 from "json5"; import { jsonc } from "jsonc"; -class Mod implements IPostAkiLoadMod +class Mod implements IPostSptLoadMod { - public postAkiLoad(container: DependencyContainer): void { + public postSptLoad(container: DependencyContainer): void { // get logger const logger = container.resolve("WinstonLogger"); diff --git a/TypeScript/4UseACustomConfigFile/README.md b/TypeScript/4UseACustomConfigFile/README.md index 3bd5a99..ba4600a 100644 --- a/TypeScript/4UseACustomConfigFile/README.md +++ b/TypeScript/4UseACustomConfigFile/README.md @@ -1,4 +1,4 @@ -# Welcome to the SPT-AKI Modding Project +# Welcome to the SPT Modding Project This project is designed to streamline the initial setup process for building and creating mods in the SPT-AKI environment. Follow this guide to set up your environment efficiently. @@ -47,7 +47,7 @@ Some resources to get you started: ## **Coding Guidelines** -Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"akiVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. +Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"sptVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. New to Typescript? Find comprehensive documentation on the [official website](https://www.typescriptlang.org/docs/). diff --git a/TypeScript/4UseACustomConfigFile/src/mod.ts b/TypeScript/4UseACustomConfigFile/src/mod.ts index f8554ca..8fba649 100644 --- a/TypeScript/4UseACustomConfigFile/src/mod.ts +++ b/TypeScript/4UseACustomConfigFile/src/mod.ts @@ -1,13 +1,13 @@ import { DependencyContainer } from "tsyringe"; -import { IPostAkiLoadMod } from "@spt/models/external/IPostAkiLoadMod"; +import { IPostSptLoadMod } from "@spt/models/external/IPostSptLoadMod"; import { ILogger } from "@spt/models/spt/utils/ILogger"; -class Mod implements IPostAkiLoadMod +class Mod implements IPostSptLoadMod { private modConfig = require("../config/config.json"); - public postAkiLoad(container: DependencyContainer): void { + public postSptLoad(container: DependencyContainer): void { // get logger const logger = container.resolve("WinstonLogger"); diff --git a/TypeScript/5ReplaceMethod/README.md b/TypeScript/5ReplaceMethod/README.md index 3bd5a99..ba4600a 100644 --- a/TypeScript/5ReplaceMethod/README.md +++ b/TypeScript/5ReplaceMethod/README.md @@ -1,4 +1,4 @@ -# Welcome to the SPT-AKI Modding Project +# Welcome to the SPT Modding Project This project is designed to streamline the initial setup process for building and creating mods in the SPT-AKI environment. Follow this guide to set up your environment efficiently. @@ -47,7 +47,7 @@ Some resources to get you started: ## **Coding Guidelines** -Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"akiVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. +Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"sptVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. New to Typescript? Find comprehensive documentation on the [official website](https://www.typescriptlang.org/docs/). diff --git a/TypeScript/5ReplaceMethod/src/mod.ts b/TypeScript/5ReplaceMethod/src/mod.ts index 04dadbd..61e48a7 100644 --- a/TypeScript/5ReplaceMethod/src/mod.ts +++ b/TypeScript/5ReplaceMethod/src/mod.ts @@ -1,13 +1,13 @@ import { DependencyContainer } from "tsyringe"; -import { IPreAkiLoadMod } from "@spt/models/external/IPreAkiLoadMod"; +import { IPreSptLoadMod } from "@spt/models/external/IPreSptLoadMod"; import { LauncherController } from "@spt/controllers/LauncherController"; import { DatabaseServer } from "@spt/servers/DatabaseServer"; import { ILoginRequestData } from "@spt/models/eft/launcher/ILoginRequestData"; import { ILogger } from "@spt/models/spt/utils/ILogger"; import { SaveServer } from "@spt/servers/SaveServer"; -class Mod implements IPreAkiLoadMod +class Mod implements IPreSptLoadMod { // DO NOT leave static references to ANY resolved dependency. // ALWAYS use the container to resolve dependencies @@ -15,7 +15,7 @@ class Mod implements IPreAkiLoadMod private static container: DependencyContainer; // Perform these actions before server fully loads - public preAkiLoad(container: DependencyContainer): void + public preSptLoad(container: DependencyContainer): void { // We will save a reference to the dependency container to resolve dependencies // that we may need down the line diff --git a/TypeScript/6ReferenceAnotherClass/README.md b/TypeScript/6ReferenceAnotherClass/README.md index 3bd5a99..ba4600a 100644 --- a/TypeScript/6ReferenceAnotherClass/README.md +++ b/TypeScript/6ReferenceAnotherClass/README.md @@ -1,4 +1,4 @@ -# Welcome to the SPT-AKI Modding Project +# Welcome to the SPT Modding Project This project is designed to streamline the initial setup process for building and creating mods in the SPT-AKI environment. Follow this guide to set up your environment efficiently. @@ -47,7 +47,7 @@ Some resources to get you started: ## **Coding Guidelines** -Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"akiVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. +Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"sptVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. New to Typescript? Find comprehensive documentation on the [official website](https://www.typescriptlang.org/docs/). diff --git a/TypeScript/6ReferenceAnotherClass/src/mod.ts b/TypeScript/6ReferenceAnotherClass/src/mod.ts index 5c9ff4d..81a37fa 100644 --- a/TypeScript/6ReferenceAnotherClass/src/mod.ts +++ b/TypeScript/6ReferenceAnotherClass/src/mod.ts @@ -1,12 +1,12 @@ import { DependencyContainer } from "tsyringe"; -import { IPostAkiLoadMod } from "@spt/models/external/IPostAkiLoadMod"; +import { IPostSptLoadMod } from "@spt/models/external/IPostSptLoadMod"; import { ILogger } from "@spt/models/spt/utils/ILogger"; import { MoreCode } from "./MoreCode"; -class Mod implements IPostAkiLoadMod +class Mod implements IPostSptLoadMod { - public postAkiLoad(container: DependencyContainer): void + public postSptLoad(container: DependencyContainer): void { // get logger const logger = container.resolve("WinstonLogger"); diff --git a/TypeScript/7OnLoadHook/README.md b/TypeScript/7OnLoadHook/README.md index 3bd5a99..ba4600a 100644 --- a/TypeScript/7OnLoadHook/README.md +++ b/TypeScript/7OnLoadHook/README.md @@ -1,4 +1,4 @@ -# Welcome to the SPT-AKI Modding Project +# Welcome to the SPT Modding Project This project is designed to streamline the initial setup process for building and creating mods in the SPT-AKI environment. Follow this guide to set up your environment efficiently. @@ -47,7 +47,7 @@ Some resources to get you started: ## **Coding Guidelines** -Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"akiVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. +Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"sptVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. New to Typescript? Find comprehensive documentation on the [official website](https://www.typescriptlang.org/docs/). diff --git a/TypeScript/7OnLoadHook/src/mod.ts b/TypeScript/7OnLoadHook/src/mod.ts index 77aee6b..831aec0 100644 --- a/TypeScript/7OnLoadHook/src/mod.ts +++ b/TypeScript/7OnLoadHook/src/mod.ts @@ -1,12 +1,12 @@ import { DependencyContainer } from "tsyringe"; -import { IPreAkiLoadMod } from "@spt/models/external/IPreAkiLoadMod"; +import { IPreSptLoadMod } from "@spt/models/external/IPreSptLoadMod"; import { ILogger } from "@spt/models/spt/utils/ILogger"; import { OnLoadModService } from "@spt/services/mod/onLoad/OnLoadModService"; -class Mod implements IPreAkiLoadMod +class Mod implements IPreSptLoadMod { - public preAkiLoad(container: DependencyContainer): void + public preSptLoad(container: DependencyContainer): void { const logger = container.resolve("WinstonLogger"); const onLoadModService = container.resolve("OnLoadModService"); diff --git a/TypeScript/8OnUpdateHook/README.md b/TypeScript/8OnUpdateHook/README.md index 3bd5a99..ba4600a 100644 --- a/TypeScript/8OnUpdateHook/README.md +++ b/TypeScript/8OnUpdateHook/README.md @@ -1,4 +1,4 @@ -# Welcome to the SPT-AKI Modding Project +# Welcome to the SPT Modding Project This project is designed to streamline the initial setup process for building and creating mods in the SPT-AKI environment. Follow this guide to set up your environment efficiently. @@ -47,7 +47,7 @@ Some resources to get you started: ## **Coding Guidelines** -Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"akiVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. +Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"sptVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. New to Typescript? Find comprehensive documentation on the [official website](https://www.typescriptlang.org/docs/). diff --git a/TypeScript/8OnUpdateHook/src/mod.ts b/TypeScript/8OnUpdateHook/src/mod.ts index 72da98d..c36134b 100644 --- a/TypeScript/8OnUpdateHook/src/mod.ts +++ b/TypeScript/8OnUpdateHook/src/mod.ts @@ -1,12 +1,12 @@ import { DependencyContainer } from "tsyringe"; -import { IPreAkiLoadMod } from "@spt/models/external/IPreAkiLoadMod"; +import { IPreSptLoadMod } from "@spt/models/external/IPreSptLoadMod"; import { ILogger } from "@spt/models/spt/utils/ILogger"; import { OnUpdateModService } from "@spt/services/mod/onUpdate/OnUpdateModService"; -class Mod implements IPreAkiLoadMod +class Mod implements IPreSptLoadMod { - public preAkiLoad(container: DependencyContainer): void { + public preSptLoad(container: DependencyContainer): void { const logger = container.resolve("WinstonLogger"); const onUpdateModService = container.resolve("OnUpdateModService"); diff --git a/TypeScript/9RouterHooks/README.md b/TypeScript/9RouterHooks/README.md index 3bd5a99..ba4600a 100644 --- a/TypeScript/9RouterHooks/README.md +++ b/TypeScript/9RouterHooks/README.md @@ -1,4 +1,4 @@ -# Welcome to the SPT-AKI Modding Project +# Welcome to the SPT Modding Project This project is designed to streamline the initial setup process for building and creating mods in the SPT-AKI environment. Follow this guide to set up your environment efficiently. @@ -47,7 +47,7 @@ Some resources to get you started: ## **Coding Guidelines** -Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"akiVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. +Focus your mod development around the `mod.ts` file. In the `package.json` file, only alter these properties: `"name"`, `"version"`, `"sptVersion"`, `"loadBefore"`, `"loadAfter"`, `"incompatibilities"`, `"isBundleMod"`, `"author"`, and `"license"`. New to Typescript? Find comprehensive documentation on the [official website](https://www.typescriptlang.org/docs/).