BrettMayson / HEMTT

Build System for Arma 3
http://hemtt.dev/
GNU General Public License v2.0
113 stars 40 forks source link

[Feature Request] hemtt.launch - start into editor mission-parameter #561

Closed OverlordZorn closed 1 year ago

OverlordZorn commented 1 year ago

Based on https://community.bistudio.com/wiki/Arma_3:_Startup_Parameters

"<path>\mission.sqm" | Load a mission directly in the editor. Example: "c:\arma3\users\myUser\missions\myMission.intro\mission.sqm"

a parameter like

[hemmt.launch.test]
parameters = [
    "C:\Users\myUser\Documents\Arma 3 - Other Profiles\ProfileName\missions\test.Stratis\mission.sqm",
    "-skipIntro",           # These parameters are passed to the Arma 3 executable
    "-noSplash",            # They do not need to be added to your list
    "-showScriptErrors",    # You can add additional parameters here
    "-debug",
    "-filePatching",
    "-window",
]

should work, but instead, when launching, hemtt throws the following issue

ERROR Toml Error: TOML parse error at line 60, column 10
   |
60 |     "C:\Users\myUser\Documents\Arma 3 - Other Profiles\ProfileName\missions\test.Stratis\mission.sqm",
   |          ^
invalid unicode 8-digit hex code
BrettMayson commented 1 year ago

Need to use double \\

OverlordZorn commented 1 year ago

for each? - might be worth putting in the hemtt book as an example then :)

OverlordZorn commented 1 year ago

Can confirm, \\ does the trick!