[Mod Question] Are there any mods for reference points management?
Posted: Thu Mar 04, 2021 3:16 pm
I'm curious, are there any mods for the following:
1) Batch renaming of selected or all reference points from GUI
2) Copy and paste of selected, group of, or all reference points and/or waypoints from GUI
3) Rotation/translation of selected, group of, or all reference points and/or waypoints by mouse dragging from GUI
for the easy & quick management of RPs and WPs for both scenario design and gameplay.
Or, are there any ways to achieve these via CMO Lua console without GUI?
Regarding #1, I know there are some Linux/Unix commands or shell scripts with a for-loop for batch renaming, for example. But I don't know anything about Lua so I'm not sure if Lua can achieve batch renaming of RPs and WPs of interest.
Maybe I can open Lua, copy and paste contents to txt file, batch rename from Linux environment, and copy and paste back. But this will be bothering me if I need to open a Linux console to write a new script every time I wish to rename a bunch of reference points. So I wish to have an option of batch renaming inside the CMO.
Regarding #2, I guess this might be feasible from Lua, by copy and paste a group of reference points or waypoint of interest including coordinates. But I didn't try Lua so I'm not sure if this is OK.
Regarding #3, I think the best option would be the mouse-dragging from GUI because it is quick, intuitive, and simple. But if such an option is not possible, maybe Lua can help?
I think this may be possible by writing a converting function of 2D (latitude and longitude) coordinates of a group of RPs and WPs of interest, to rotate them A degree in CW/CCW direction, and translate them B nautical mile/km/mile in X & Y direction. If there is a way to create a small window of such a coordinate converter for a selected group of RPs or WPs and appear them in the CMO screen, that will be great. But I don't know if Lua can achieve this as I have no idea in Lua scripting with CMO.
I could write a shell script from Linux to covert them and copy and paste results to Lua. But this will be really bothering and time-consuming to do such actions every time I wish to move/rotate a group of RPs and WPs, this will break concentration and immersion. So I think it will be better to finish these actions inside the CMO.
1) Batch renaming of selected or all reference points from GUI
2) Copy and paste of selected, group of, or all reference points and/or waypoints from GUI
3) Rotation/translation of selected, group of, or all reference points and/or waypoints by mouse dragging from GUI
for the easy & quick management of RPs and WPs for both scenario design and gameplay.
Or, are there any ways to achieve these via CMO Lua console without GUI?
Regarding #1, I know there are some Linux/Unix commands or shell scripts with a for-loop for batch renaming, for example. But I don't know anything about Lua so I'm not sure if Lua can achieve batch renaming of RPs and WPs of interest.
Maybe I can open Lua, copy and paste contents to txt file, batch rename from Linux environment, and copy and paste back. But this will be bothering me if I need to open a Linux console to write a new script every time I wish to rename a bunch of reference points. So I wish to have an option of batch renaming inside the CMO.
Regarding #2, I guess this might be feasible from Lua, by copy and paste a group of reference points or waypoint of interest including coordinates. But I didn't try Lua so I'm not sure if this is OK.
Regarding #3, I think the best option would be the mouse-dragging from GUI because it is quick, intuitive, and simple. But if such an option is not possible, maybe Lua can help?
I think this may be possible by writing a converting function of 2D (latitude and longitude) coordinates of a group of RPs and WPs of interest, to rotate them A degree in CW/CCW direction, and translate them B nautical mile/km/mile in X & Y direction. If there is a way to create a small window of such a coordinate converter for a selected group of RPs or WPs and appear them in the CMO screen, that will be great. But I don't know if Lua can achieve this as I have no idea in Lua scripting with CMO.
I could write a shell script from Linux to covert them and copy and paste results to Lua. But this will be really bothering and time-consuming to do such actions every time I wish to move/rotate a group of RPs and WPs, this will break concentration and immersion. So I think it will be better to finish these actions inside the CMO.