R3vo/Sandbox1 – User

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{| class="wikitable sortable"
{{Feature|WIP]}
|-
 
! Name !! Classname !! RGBA !! style= "width:50px" | Color
This page explains how to draw a frontline on the map similar to how it is done in the Operation Cobra campaign of the [[Spearhead 1944]] CDLC.
|-
 
| [SPE] Black || SPE_ColorBlack || [0.15, 0.11, 0.11, 1] || style="background-color: rgb(38.25, 28.05, 28.05);" |
< IMAGE GALLERY >
|-
 
| [SPE] Grey || SPE_ColorGrey || [0.5, 0.5, 0.5, 1] || style="background-color: rgb(127.5, 127.5, 127.5);" |
= Usage =
|-
# Create a layer in Eden Editor called ''Frontline Control Points''. This layer is referenced by the function to generate the frontline data points
| [SPE] Red || SPE_ColorRed || [0.73, 0.23, 0.17, 1] || style="background-color: rgb(186.15, 58.65, 43.35);" |
< IMAGE >
|-
 
| [SPE] Brown || SPE_ColorBrown || [0.32, 0.22, 0.21, 1] || style="background-color: rgb(81.6, 56.1, 53.55);" |
 
|-
# Inside that layer, create as many markers as needed to shape the frontline (The wavy black line). These markers act as control points for bezier interpolation and their position will influence the curvature.
| [SPE] Orange || SPE_ColorOrange || [0.84, 0.59, 0.05, 1] || style="background-color: rgb(214.2, 150.45, 12.75);" |
{{Feature|warning|The more markers you place, the more accurate your frontline will be, but the calculation will be more expensive and generating the data will take longer.}}
|-
< IMAGE >
| [SPE] Yellow || SPE_ColorYellow || [0.88, 0.79, 0.1, 1] || style="background-color: rgb(224.4, 201.45, 25.5);" |
 
|-
# Execute the following code in the [[Arma 3: Debug Console]] from within [[Eden Editor]] to create a real-time preview of the frontline
| [SPE] White || SPE_ColorWhite || [0.93, 0.92, 0.73, 1] || style="background-color: rgb(237.15, 234.6, 186.15);" |
 
|-
<sqf>
| [SPE] Green || SPE_ColorGreen || [0.32, 0.55, 0.24, 1] || style="background-color: rgb(81.6, 140.25, 61.2);" |
[[], nil, "preview"] call SPE_MISSIONUTILITYFUNCTIONS_fnc_generateFrontline;
|-
</sqf>
| [SPE] Blue || SPE_ColorBlue || [0.25, 0.31, 0.61, 1] || style="background-color: rgb(63.75, 79.05, 155.55);" |
 
|-
Close the window that shows up for now. We will need it later.
| [SPE] Pink || SPE_ColorPink || [0.93, 0.72, 0.79, 1] || style="background-color: rgb(237.15, 183.6, 201.45);" |
 
|-
# Now, drag the previously placed markers to shape the frontline. You can also add new markers by copy and pasting an existing one.
| [SPE] Khaki || SPE_ColorKhaki || [0.64, 0.6, 0.28, 1] || style="background-color: rgb(163.2, 153, 71.4);" |
 
|-
# Once you are happy with the shape of the frontline, execute the following code again in the [[Arma 3: Debug Console]] from within [[Eden Editor]].
| [SPE] Allies || SPE_ColorAllies || [0.556863, 0.65098, 0.364706, 1] || style="background-color: rgb(142, 166, 93);" |
<sqf>
|-
[[], nil, "high"] call SPE_MISSIONUTILITYFUNCTIONS_fnc_generateFrontline;
| [SPE] Axis || SPE_ColorAxis || [0.337255, 0.423529, 0.443137, 1] || style="background-color: rgb(86, 108, 113);" |
</sqf>
|-
 
|}
Instead of "high", "very high" and "ultra" are available, although data generation will take significantly lower and the visual improvements might be neglegeable.
 
Once the data was generated a window will show. Copy the content of the window and paste it into a script file. Place this script file into your mission folder.
 
In our case we call it ''frontline_data.sqf'' and place it into the root of our test scenario
 
#
 
< IMAGE >
 
  2.  
  3. Execute this function (see examples below) to generate a preview. Be aware that the higher the quality is, the longer it takes to generate the data
  4. Once the function has finished. A window will pop up that shows the generated data. This data is used to create the marker that fill the frontline
  5. Copy that data and past it into a script file. Place that script file into your mission folder
  6. During the mission execute example 1. Modify the parameters as you like.</nowiki>
# Numbered list item

Revision as of 00:28, 27 July 2023

{{Feature|WIP]}

This page explains how to draw a frontline on the map similar to how it is done in the Operation Cobra campaign of the Spearhead 1944 CDLC.

< IMAGE GALLERY >

Usage

  1. Create a layer in Eden Editor called Frontline Control Points. This layer is referenced by the function to generate the frontline data points

< IMAGE >


  1. Inside that layer, create as many markers as needed to shape the frontline (The wavy black line). These markers act as control points for bezier interpolation and their position will influence the curvature.
The more markers you place, the more accurate your frontline will be, but the calculation will be more expensive and generating the data will take longer.

< IMAGE >

  1. Execute the following code in the Arma 3: Debug Console from within Eden Editor to create a real-time preview of the frontline

[[], nil, "preview"] call SPE_MISSIONUTILITYFUNCTIONS_fnc_generateFrontline;

Close the window that shows up for now. We will need it later.

  1. Now, drag the previously placed markers to shape the frontline. You can also add new markers by copy and pasting an existing one.
  1. Once you are happy with the shape of the frontline, execute the following code again in the Arma 3: Debug Console from within Eden Editor.

[[], nil, "high"] call SPE_MISSIONUTILITYFUNCTIONS_fnc_generateFrontline;

Instead of "high", "very high" and "ultra" are available, although data generation will take significantly lower and the visual improvements might be neglegeable.

Once the data was generated a window will show. Copy the content of the window and paste it into a script file. Place this script file into your mission folder.

In our case we call it frontline_data.sqf and place it into the root of our test scenario

< IMAGE >

 2. 
 3. Execute this function (see examples below) to generate a preview. Be aware that the higher the quality is, the longer it takes to generate the data
 4. Once the function has finished. A window will pop up that shows the generated data. This data is used to create the marker that fill the frontline
 5. Copy that data and past it into a script file. Place that script file into your mission folder
 6. During the mission execute example 1. Modify the parameters as you like.</nowiki>
  1. Numbered list item