Weird error I am getting on Realism, I checked the file path and there is a file there
Weird error I am getting on Realism, I checked the file path and there is a file there
Boop added a new version:
QuoteDisplay MoreHowdy y'all! A new version is among us. This version doesn't change much but makes it function in newer versions.
None to be seen!
Maybe I'm doing something wrong, but I'm not able to get the location to work. Am I missing something?
CodeDisplay Moreimport { DependencyContainer, Lifecycle, injectable } from "tsyringe"; import type { IPreAkiLoadMod } from "@spt-aki/models/external/IPreAkiLoadMod"; import type { ILogger } from "@spt-aki/models/spt/utils/ILogger"; import type { StaticRouterModService } from "@spt-aki/services/mod/staticRouter/StaticRouterModService"; import { DatabaseServer } from "@spt-aki/servers/DatabaseServer"; import { IPostDBLoadMod } from "@spt-aki/models/external/IPostDBLoadMod"; /* import { PreAkiModLoader } from "@spt-aki/loaders/PreAkiModLoader"; const loader = container.resolve<PreAkiModLoader>("PreAkiModLoader"); const apiPath = loader.getModPath("API"); const api = require(apiPath); */ export class QuestZoneApi implements IPreAkiLoadMod, IPostDBLoadMod { router: StaticRouterModService; dbServer: DatabaseServer; private modConfig = require("../config/config.json"); public preAkiLoad(container: DependencyContainer): void { const logger = container.resolve<ILogger>("WinstonLogger"); this.router = container.resolve<StaticRouterModService>( "StaticRouterModService" ); this._registerStaticRoutes(); } public postDBLoad(container: DependencyContainer): void { this.dbServer = container.resolve<DatabaseServer>("DatabaseServer"); const tables = this.dbServer.getTables(); tables.globals["QuestZones"] = []; } private _registerStaticRoutes(): void { // Get Zones Route this.router.registerStaticRouter( "GetZones", [ { url: "/quests/zones/getZones", action: (url, info, sessionId, output) => { const json = JSON.stringify( this.dbServer.getTables().globals["QuestZones"] ); if (this.modConfig.debugMode) console.log(json); return json; }, }, ], "" ); if (this.modConfig.debugMode) { this.router.registerStaticRouter( "AddDormSupply", [ { url: "/quests/zones/addDormSupply", action: (url, info, sessionId, output)=> { this.dbServer .getTables() .globals["QuestsZones"].push({ zoneId:"dormSupply", zoneName: "Dorm Supply", zoneType: "VisitPlace", zoneLocation: "bigmap", position:{ xPos: "174.2927", yPos: "2.8297", zPos: "173.2282", }, rotation: { x: "0", y: "0", z: "0", }, scale: { x: "2.3", y: "0.9", z: "2.7", }, }); return null; }, }, ], ); } } } module.exports = { mod: new QuestZoneApi() };
You're doing it incorrectly. You don't edit the API Server mod, you create your own server mod and use the examples provided. For example, in another mod I, in the postDbLoad, do the following:
const databaseServer: DatabaseServer =
container.resolve<DatabaseServer>("DatabaseServer");
const tables = databaseServer.getTables();
tables.globals["QuestZones"].push({
zoneId: "Example1",
zoneName: "Example1",
zoneLocation: "Shoreline",
zoneType: "Visit", // also can be PlaceItem
position: {
x: "-499.7202",
y: "-24.9953",
z: "244.6294",
},
scale: {
x: "7.2",
y: "10",
z: "12.5",
},
});
Display More
*Note there is also a rotation parameter you can specify but it just defaults to 0 if not specified*
Boop added a new file:
QuoteThis mod is primarily for developers! Use at your own risk!
This mod allows developers to create custom zones for their custom quests with visiting places, marking things with beacons, and placing items at certain spots!
Documentation: https://dev.sp-tarkov.com/boop_xyz/BoopsQuestZoneAPI/wiki
boop_xyz added a new file:
QuoteThis mod let's you tag any item in the game!
How to Install
Simply drag and drop the files into their respective folders.
boop_xyz added a new version:
QuoteTHIS VERSION IS ONLY COMPATIBLE WITH 3.4.1 OR 3.4 (NOT 3.5 OR ANYTHING OLDER THAN 3.4)
Patch Notes
- Added the new broken leg damage reduction buff
Boop added a new file:
QuoteDisplay MoreWarning! This mod is in a beta state and not everything is fully implemented yet and may contain bugs. Proceed with caution.
This mod adds a brand new skill to Tarkov which affects your ability to withstand injuries and disease.
Skill Information
Resilience has the following buffs:
- Increases walking speed by 0%-25% (50% when elite) while suffering from a leg fracture
- Reduces damage taken while running with a leg fracture by 0%-50%
- Reduces the effects of an infection by 0%-50% (100% when elite) Note: this skill is used by a seperate mod I'll be creating therefore it will never be implemented when standalone
- ELITE Allows you to run with a leg fracture Not Implemented
- ELITE Chance to get the Resilient buff when injured for a period of time Not Implemented
How to level up Resilience: The more damaged you are over a longer period of time will gain skill points
How to Install
Simply drag and drop the files into their respective folders.
Known Bugs
- If you have no progress on the skill, you limp very slowly and is slower then vanilla
Is there a way to have multiple profiles that you can switch through?