Page MenuHomeFeedback Tracker

Script command request: modParams to support modDir input
Closed, ResolvedPublic

Description

Currently modParams only takes modClass, which I understand to be a CfgMods class. I'd like an alternate syntax that takes the modDir provided by configSourceMod.

The purpose of this is to allow accessing the properties provided in a mod.cpp as not all mods provide a CfgMods class.

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 7
Category
General

Event Timeline

_connor created this task.Jun 15 2020, 1:20 PM

To expand the purpose a bit: We want/have to replace the mod list in the main menu. The functionality is hardcoded, so we need a scripted replacement. Unfortunately currently this is not fully achievable. Hence the request.

dedmen added a project: Restricted Project.Jun 21 2020, 1:47 PM
dedmen moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.
heyoxe added a subscriber: heyoxe.Aug 19 2020, 1:26 PM
dedmen changed the task status from New to Assigned.Oct 29 2020, 9:13 AM
dedmen set Ref Ticket to AIII-53469.
dedmen moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.

After some cursory digging through the relevant code, it seems to me that configSourceMod provides the mod class that modParams currently accepts. I'll do some more digging, but it seems that it will need some more work than just allowing modParams to accept the output of configSourceMod.

dedmen added a subscriber: dedmen.Jul 5 2022, 11:22 AM

You want it to take the "modDir"

But the code inside modParams literally says "FindByModDir(modDir)"
it already uses "modDir", or atleast its called that in the code.

dedmen closed this task as Resolved.Jul 5 2022, 11:34 AM
dedmen claimed this task.
dedmen added a subscriber: Ace.

I left this ticket lying around for so long because I didn't understand why you are requesting something that is already present...

I'd like an alternate syntax that takes the modDir provided by configSourceMod.

configSourceMod (configfile >> "ACE_Curator")
-> "@Ace"

modParams ["@Ace",["name", "overview"]]
-> ["Advanced Combat Environment 3.15.0","Advanced Combat Environment 3, also known as ACE3, is a joint effort by the teams behind ACE2, AGM and CSE to improve the realism and authenticity of Arma 3."]

You already had what you asked for, and that is how this command has worked since it was added. Have you ever even thought about just trying if what you're requesting maybe already works the way you want it?
Waste of time