Jump to content
IL-2 Series Forum

UI dialog Scripts - Provide sample?


Recommended Posts

Posted

Similar to the New scripting functionality discussion, would it be possible to get a sampe JSON file for the UI dialog used to skip/relocate to the next waypoint?

It would be really cool to introduce this not only for relocating but to trigger virtually ANYTHING in a mission using the UI.

This is the path of the "Black Thursday" SP mission but i dont think its accessible.

nsdata\dialogs\reposition-from-target.json

image.png.5a01fb0816dec4de285e65709dab9d5c.png

  • Upvote 1

AMD Ryzen 5800X3D  |  Nvidia RTX 4090  |  32 GB DDR4  |  nVME SSD  |  VR headset: Pimax Dream Air SLAM

Posted

Hi!

I've attached an example of a simple dialog and its English localization.
There are two files in this example:
test.json contains the dialog settings, it is the file you specify in a Media Translator and then use a target link from a timer (or any other trigger) to show it. There are comments for all currently available options in this file.
test.locale=eng.json is the localization for dialog text and buttons. "Eng" version is loaded by default if there are nothing else, but you can add separate files for other supported languages as well.
Each dialog must use its own localization, you cannot reuse it for other dialogs, but obviously you can reuse the same dialog in different missions.
Note that the localization is in json format in UTF-8 encoding, it is not the same format as mission localization.

Dialog files may be placed in any folder: we use nsdata\dialogs\ here, but you can also place in in Missions\ folder for example.
Currently these dialogs are intended to be used in singleplayer only. They may work in multiplayer, but will appear for all players and cause chaos 🙂

This is how the attached example should look in game:
image.png.aa25f0a39943887ecfe3d2da18b54764.png

dialog example.zip

  • Thanks 4
Posted

Amazing, thank you!!

AMD Ryzen 5800X3D  |  Nvidia RTX 4090  |  32 GB DDR4  |  nVME SSD  |  VR headset: Pimax Dream Air SLAM

AEthelraedUnraed
Posted

Tha

9 hours ago, AnKor said:

Hi!

I've attached an example of a simple dialog and its English localization.
There are two files in this example:
test.json contains the dialog settings, it is the file you specify in a Media Translator and then use a target link from a timer (or any other trigger) to show it. There are comments for all currently available options in this file.
test.locale=eng.json is the localization for dialog text and buttons. "Eng" version is loaded by default if there are nothing else, but you can add separate files for other supported languages as well.
Each dialog must use its own localization, you cannot reuse it for other dialogs, but obviously you can reuse the same dialog in different missions.
Note that the localization is in json format in UTF-8 encoding, it is not the same format as mission localization.

Dialog files may be placed in any folder: we use nsdata\dialogs\ here, but you can also place in in Missions\ folder for example.
Currently these dialogs are intended to be used in singleplayer only. They may work in multiplayer, but will appear for all players and cause chaos 🙂

This is how the attached example should look in game:
image.png.aa25f0a39943887ecfe3d2da18b54764.png

dialog example.zip 1.26 kB · 10 downloads

That's absolutely wonderful, thanks!

I don't suppose you have an example of a scripted trigger as well?:classic_ninja:

And while I'm at it, is unGTP-Korea.exe coming along?

Posted
1 hour ago, AEthelraedUnraed said:

Tha

That's absolutely wonderful, thanks!

I don't suppose you have an example of a scripted trigger as well?:classic_ninja:

And while I'm at it, is unGTP-Korea.exe coming along?

Use the single mission black Friday and find the trigger for the reposition. You will find this.

AMD Ryzen 5800X3D  |  Nvidia RTX 4090  |  32 GB DDR4  |  nVME SSD  |  VR headset: Pimax Dream Air SLAM

AEthelraedUnraed
Posted
13 minutes ago, Jade_Monkey said:

Use the single mission black Friday and find the trigger for the reposition. You will find this.

No, I'm looking for the contents of a scripted trigger, not how to use the UI dialog. But I can see where the misunderstanding comes from 🙂

Posted

I'm not actually an author of the original ungtp, I just got its source code long ago and made a few tweaks, but in either case it is not happening for Korea. Sorry.

Regarding the scripted trigger sources and support for custom ones, I'm not entirely sure how these will be handled. Will probably get to this topic later, after the full release.

Posted

@AnKor

Are you the Ankor who developed the recon script for Rise of flight ?

If yes, may you develop one for Korea please ?

Posted

Yes, it was me 🙂

The scripted trigger is exactly what should make such features easier to implement in Korea, but again I can't promise anything now and will get back to this later.

  • Like 2
Posted

Thank you for your answer. I hope you take time to develop the recon script for Korea.

 

And, thank you for your script on Rise of flight which gave us many hours of fun, and which provide us many recon missions.

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...