Page MenuHomeFeedback Tracker

fileExists returns false for absolute mission paths
Closed, ResolvedPublic

Description

Create some file in your mission. Do:

fileExists getMissionPath "file.format" //false

or simply save the mission and run:

fileExists getMissionPath "mission.sqm"

The relative version works:

fileExists "file.format" //true
fileExists "mission.sqm"

Details

Severity
Minor
Resolution
Not A Bug
Reproducibility
Always
Operating System
Windows 10 x64
Category
Scripting

Event Timeline

Leopard20 created this task.Jan 1 2022, 4:48 PM
Leopard20 updated the task description. (Show Details)

does RPT say something like "Invalid path (only relative paths supported):.... ?

BIS_fnc_KK changed the task status from New to Need More Info.Jan 1 2022, 5:06 PM
Leopard20 added a comment.EditedJan 1 2022, 5:21 PM

Ah yes. So not a bug then.
I'll add it as a note to the wiki.

BIS_fnc_KK closed this task as Resolved.Jan 1 2022, 6:23 PM
BIS_fnc_KK changed Resolution from Open to Not A Bug.