Jade_Monkey Posted Thursday at 12:51 AM Posted Thursday at 12:51 AM 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 1 AMD Ryzen 5800X3D | Nvidia RTX 4090 | 32 GB DDR4 | nVME SSD | VR headset: Pimax Dream Air SLAM
AnKor Posted Thursday at 11:58 AM Posted Thursday at 11:58 AM 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: dialog example.zip 4
Jade_Monkey Posted Thursday at 07:39 PM Author Posted Thursday at 07:39 PM Amazing, thank you!! AMD Ryzen 5800X3D | Nvidia RTX 4090 | 32 GB DDR4 | nVME SSD | VR headset: Pimax Dream Air SLAM
AEthelraedUnraed Posted Thursday at 09:17 PM Posted Thursday at 09:17 PM 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: 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? And while I'm at it, is unGTP-Korea.exe coming along?
Jade_Monkey Posted Thursday at 10:20 PM Author Posted Thursday at 10:20 PM 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? 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 Thursday at 10:41 PM Posted Thursday at 10:41 PM 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 🙂
AnKor Posted yesterday at 12:34 PM Posted yesterday at 12:34 PM 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.
Habu Posted 23 hours ago Posted 23 hours ago @AnKor Are you the Ankor who developed the recon script for Rise of flight ? If yes, may you develop one for Korea please ?
AnKor Posted 5 hours ago Posted 5 hours ago 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. 2
Habu Posted 3 hours ago Posted 3 hours ago 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now