Jump to content
joe_thanks_67

Small script needed (paid)

Recommended Posts

I need a lot of screenshots. Currently this is done manually:


1. Select a map.

2. Start editor.

3. View > Center on Random Position (and zoom out a bit with the mouse).

4. Place some vehicle objects - e.g. Artillery SPG Platoon, M5 Sandstorm MLRS HEMTT Ammo.

5. Rotate a few objects so that not all objects are aligned in the same way.

6. Attributes > Environment > set date and time, overcast, fog, rain, wind.

7. Move the camera to a position that could correspond to a drone. Always different distance and angle. The camera view is not centered on the middle of the objects - i.e. the objects can only be in a small area of the screen.

8. Take screenshot 1 (F12).

9. Toggle interface (Backspace).

10. Possibly change Vision Mode.

11. Take screenshot 2 (F12).


The script should perform steps 3 through 7. Steps 3 to 11 would be even better.

 

Trigger for script execution should be a key. If that doesn't work, the script can also be reloaded with Ctrl-O.

 

Some parameters of the script should be configurable via a settings file. I wrote this as an example in JSON. The settings file can also be YAML or SQF.

 

Settings file example:

 

{
  "date": "December 23, 2022 05:24:00", // environment date
  "visionMode": 1, // 0, 1 ,2; only for screenshot 2, screenshot 1 is always 0
  "overcast": 0.6,
  "fog": 0.4,
  "rain": 0.5,
  "wind": 0.2,
  "camera": {
      "minDistance": 75, // place camera randomly between min 75 m from ground ...
      "maxDistance": 500 // ... until 500 m from ground
      },
  "units": [
    {
      "class": "B_Truck_01_covered_F",
      "minNumber“: 0, // place randomly between 0 ...
      "maxNumber": 2 // ... and 2 objects of this type
    },
    {
      "class": "B_APC_Wheeled_01_cannon_F",
      "minNumber“: 1,
      "maxNumber": 2
    },
    {
      "class": "B_Soldier_F",
      "minNumber“: 2,
      "maxNumber": 3
    },
    {
      "class": "Tank_Destroyer_Section", // using compositions is a nice to have
      "minNumber“: 1,
      "maxNumber": 1
    }
  ]
}

 

Here are a few examples of what the results should look like:

 

https://drive.google.com/drive/folders/1XIpOxyvJbg3Fe80dGgys4V9zHJ-0mKx6

 

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×