Saving custom overlays with scenario

Post new mods and scenarios here.

Moderator: MOD_Command

Post Reply
User avatar
Hestia
Posts: 22
Joined: Tue Feb 28, 2017 10:11 am

Saving custom overlays with scenario

Post by Hestia »

Sorry if this was answered before, but I couldn't find it anywhere.

When creating a scenario is there a way to save any custom overlays inside the scenario so next time you load the scenario those overlays would be loaded as well?
User avatar
michaelm75au
Posts: 12457
Joined: Sat May 05, 2001 8:00 am
Location: Melbourne, Australia

RE: Saving custom overlays with scenario

Post by michaelm75au »

Yes, you need to load them when the scenario is loaded.
Trigger: Scenario loaded
Action: ScenEdit_UseAttachment('68869353-1f37-468b-8890-8eaf780610d7')
ScenEdit_UseAttachment('3ee283bf-b63a-4d68-adb0-5a29dc1a1a66')
ScenEdit_UseAttachment('dc11a06e-f88f-4610-bca1-87c45718b778')
ScenEdit_UseAttachment('478c41cc-6a0b-4db5-9c06-461f013c579d')
ScenEdit_UseAttachment('7ea14ad8-55d4-4212-8fad-df59c7a88e15')
---
The attachments are the overlays
Michael
User avatar
Hestia
Posts: 22
Joined: Tue Feb 28, 2017 10:11 am

RE: Saving custom overlays with scenario

Post by Hestia »

Thank you, Michael!

LE: works like a charm! :)
TYHo
Posts: 67
Joined: Tue May 17, 2016 2:37 pm

RE: Saving custom overlays with scenario

Post by TYHo »

Hmmm... I must be doing something wrong... How do you copy the attachment GUID to the Action Lua script? Type it manually? There should be a more efficient method right? Thanks!
User avatar
Hestia
Posts: 22
Joined: Tue Feb 28, 2017 10:11 am

RE: Saving custom overlays with scenario

Post by Hestia »

Look for the folder named "AttachmentRepo" in the game installation location. Inside it you'll find folders for each attachment you've added. Those folders' names are actually the GUIDs you need to copy in the Action Lua scripts.
I don't know a quicker method.
TYHo
Posts: 67
Joined: Tue May 17, 2016 2:37 pm

RE: Saving custom overlays with scenario

Post by TYHo »

Got it, thanks!
Post Reply

Return to “Mods and Scenarios”