Buldozer for Terrain Builder – DayZ
Lou Montana (talk | contribs) m (Text replacement - " (={2,})([^ = ])(.*)([^ = ])(={2,}) * " to " $1 $2$3$4 $5 ") |
Lou Montana (talk | contribs) m (Text replacement - "Category:DayZ:Terrain_Editing" to "{{GameCategory|dayz|Terrain Editing}}") |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{TOC|side}} | |||
== Overview == | == Overview == | ||
Buldozer for [[Terrain Builder]] is an intergral part of Terrain Editing in DayZ. It is a special mode of the game, which allows an in-engine 3D preview and ability to edit. | Buldozer for [[Terrain Builder]] is an intergral part of Terrain Editing in DayZ. It is a special mode of the game, which allows an in-engine 3D preview and ability to edit. | ||
Requirements: | Requirements: | ||
* DayZ and DayZ Tools installed and configured. | * DayZ and DayZ Tools installed and configured. | ||
Line 11: | Line 10: | ||
** Use ''DayZ Tools Launcher > Tools > Extract Game Data'' to prepare data on your work-drive. | ** Use ''DayZ Tools Launcher > Tools > Extract Game Data'' to prepare data on your work-drive. | ||
** Please note that the process of extracting game data should be executed after each major game update to make sure your extracted game data reflect current state in the game. | ** Please note that the process of extracting game data should be executed after each major game update to make sure your extracted game data reflect current state in the game. | ||
== Setup == | == Setup == | ||
To verify Buldozer is setup correctly in your Terrain Builder, check following settings: | To verify Buldozer is setup correctly in your Terrain Builder, check following settings: | ||
* ''Terrain Builder > Tools > | * ''Terrain Builder > Tools > Preferences > Buldozer'' | ||
** ''.exe file path'' is set to ''DayZ_x64.exe'' (from your DayZ installation) | ** ''.exe file path'' is set to ''DayZ_x64.exe'' (from your DayZ installation) | ||
** ''Launch parameters'' are ''-buldozer -window -nopause -mod= -profiles=P:\Buldozer -name=Buldozer'' | ** ''Launch parameters'' are ''-buldozer -window -nopause -mod= -profiles=P:\Buldozer -name=Buldozer'' | ||
** ''Data directory'' is ''P:\'' | ** ''Data directory'' is ''P:\'' | ||
* ''Terrain Builder > Tools > | * ''Terrain Builder > Tools > Preferences > User settings'' | ||
** ''Data directory'' is ''P:\'' | ** ''Data directory'' is ''P:\'' | ||
After checking all of these options, proceed to load your terrain project and click the clapperboard icon in the top toolbar to run and connect Buldozer to the Terrain Builder. | After checking all of these options, proceed to load your terrain project and click the clapperboard icon in the top toolbar to run and connect Buldozer to the Terrain Builder. | ||
== Buldozer Keybinds for Terrain Editing == | == Buldozer Keybinds for Terrain Editing == | ||
This part describes default keybinds for Buldozer when used in default mode (for terrain editing). Please note that these keybinds can be changed simply by pressing Esc key (while you have Buldozer open) and going into the controls options. You may see more options there than on this page, but that is because this menu also shows keybinds for the noland mode of Buldozer, which is used for model preview (more on that at [[DayZ:Buldozer for Object Builder|here]]). These keybinds can be also edited in profile input xml files if one wishes to. | This part describes default keybinds for Buldozer when used in default mode (for terrain editing). Please note that these keybinds can be changed simply by pressing Esc key (while you have Buldozer open) and going into the controls options. You may see more options there than on this page, but that is because this menu also shows keybinds for the noland mode of Buldozer, which is used for model preview (more on that at [[DayZ:Buldozer for Object Builder|here]]). These keybinds can be also edited in profile input xml files if one wishes to. | ||
{| class="wikitable" style="width:100%;" | {| class="wikitable" style="width:100%;" | ||
|- | |- | ||
! Name !! Action name !! Key !! Description | ! Name !! Action name !! Key !! Description | ||
|- | |- | ||
| reset camera || UABuldResetCamera || 0 [NUM] || | | reset camera || UABuldResetCamera || 0 [NUM] || {{hl|c= Resets camera to default state.}} | ||
|- | |- | ||
| turbo || UABuldTurbo || U || | | turbo || UABuldTurbo || U || {{hl|c= While holding it increases cursor speed, camera movement and other miscellaneous actions within Buldozer.}} | ||
|- | |- | ||
| slow || UABuldSlow || J || | | slow || UABuldSlow || J || {{hl|c= While holding it decreases cursor speed, camera movement and other miscellaneous actions within Buldozer.}} | ||
|- | |- | ||
| free look || UABuldFreeLook || 5 [NUM] || | | free look || UABuldFreeLook || 5 [NUM] || {{hl|c= Holding this key together with mouse movement provides a free look around the cursor.}} | ||
|- | |- | ||
| run script || UABuldRunScript || F10 || | | run script || UABuldRunScript || F10 || {{hl|c= Runs a custom script method from a folder called scripts on your work-drive / work-folder.}} | ||
|- | |- | ||
| select toggle || UABuldSelectToggle || space || | | select toggle || UABuldSelectToggle || space || {{hl|c= Toggles a selection on closets object to the cursor.}} | ||
|- | |- | ||
| select and move || UABuldSelect || LMB || | | select and move || UABuldSelect || LMB || {{hl|c= Used for selecting objects (hold for rectangular area selection), moving active selection (hold) and elevation change (hold) in terrain brush mode.}} | ||
|- | |- | ||
| select add modifier || | | select add modifier || UABuldSelectAddMod || 7 || {{hl|c= Holding this key allows to add more objects to your current selection.}} | ||
|- | |- | ||
| select remove modifier || UABuldSelectRemoveMod || 8 || | | select remove modifier || UABuldSelectRemoveMod || 8 || {{hl|c= Holding this key allows to add remove objects from your current selection.}} | ||
|- | |- | ||
| modify selected || | | modify selected || UABuldModifySelected || RMB || {{hl|c= Used for various actions such as rotation, scale and elevation change on current selection.}} | ||
|- | |- | ||
| cycle modifiers || | | cycle modifiers || UABuldCycleMod || 5 || {{hl|c= Cycles through rotation, scale and elevate modifiers which can be applied to active selection.}} | ||
|- | |- | ||
| X axis rotation || UABuldRotationXAxisMod || 1 || | | X axis rotation || UABuldRotationXAxisMod || 1 || {{hl|c= Holding this key together with mouse movement rotates current selection along X axis.}} | ||
|- | |- | ||
| Z axis rotation || UABuldRotationZAxisMod || 3 || | | Z axis rotation || UABuldRotationZAxisMod || 3 || {{hl|c= Holding this key together with mouse movement rotates current selection along Z axis.}} | ||
|- | |- | ||
| cycle coord system || UABuldCoordModCycle || 6 || | | cycle coord system || UABuldCoordModCycle || 6 || {{hl|c= Cycles through two available options (object and world space) for rotations of selected objects.}} | ||
|- | |- | ||
| sample terrain height || UABuldSampleTerrainHeight || RMB || | | sample terrain height || UABuldSampleTerrainHeight || RMB || {{hl|Takes a sample from the cursor position for set height mode of terrain brush.}} | ||
|- | |- | ||
| set terrain height || UABuldSetTerrainHeight || LMB || | | set terrain height || UABuldSetTerrainHeight || LMB || {{hl|c= Sets a previously sampled terrain height in set height mode of terrain brush.}} | ||
|- | |- | ||
| scale modifier || UABuldScaleMod || | | scale modifier || UABuldScaleMod || E || {{hl|c= Holding this key together with 'modify selected' and mouse movement allows to scale all objects (up or down) within the current selection.}} | ||
|- | |- | ||
| elevate modifier || UABuldElevateMod || | | elevate modifier || UABuldElevateMod || T || {{hl|c= Holding this key together with 'modify selected' and mouse movement allows to change relative Y of all objects within the current selection.}} | ||
|- | |- | ||
| brush smooth modifier || UABuldSmoothMod || Left Shift || | | brush smooth modifier || UABuldSmoothMod || Left Shift || {{hl|c= Switches terrain brush into smooth mode while holding it.}} | ||
|- | |- | ||
| brush flatten modifier || UABuldFlattenMod || Left Alt || | | brush flatten modifier || UABuldFlattenMod || Left Alt || {{hl|c= Switches terrain brush into flatten mode while holding it.}} | ||
|- | |- | ||
| Brush inner circle up || UABuldBrushRatioUp || B + wheel up || | | Brush inner circle up || UABuldBrushRatioUp || B + wheel up || {{hl|c= Changes the size of inner (green) circle of terrain brush.}} | ||
|- | |- | ||
| Brush inner circle down || UABuldBrushRatioDown || B + wheel down || | | Brush inner circle down || UABuldBrushRatioDown || B + wheel down || {{hl|c= Changes the size of inner (green) circle of terrain brush.}} | ||
|- | |- | ||
| brush outer circle up || UABuldBrushOuterUp || N + wheel up || | | brush outer circle up || UABuldBrushOuterUp || N + wheel up || {{hl|c= Changes the size of outer (red) circle of terrain brush.}} | ||
|- | |- | ||
| brush outer circle down || | | brush outer circle down || UABuldBrushOuterDown || N + wheel down || {{hl|c= Changes the size of outer (red) circle of terrain brush.}} | ||
|- | |- | ||
| brush strength up || | | brush strength up || UABuldBrushStrengthUp || M + wheel up || {{hl|c= Changes the strength of terrain brush.}} | ||
|- | |- | ||
| brush strength down || | | brush strength down || UABuldBrushStrengthDown || M + wheel down || {{hl|c= Changes the strength of terrain brush.}} | ||
|- | |- | ||
| toggle nearest object arrow || UABuldToggleNearestObjectArrow || H || | | toggle nearest object arrow || UABuldToggleNearestObjectArrow || H || {{hl|c= Toggles a visualisation arrows on object that is closest to the cursor.}} | ||
|- | |- | ||
| cycle brush modifier || | | cycle brush modifier || UABuldCycleBrushMod || G || {{hl|c= Cycles through all available terrain brush modes (smooth, flatten and set height).}} | ||
|- | |- | ||
| cursor mode || UABuldSelectionType || F | | cursor mode || UABuldSelectionType || F || {{hl|c= Switches cursor mode between normal and terrain brush mode.}} | ||
|- | |- | ||
| create last selected object | | create last selected object || UABuldCreateLastSelectedObject || V || {{hl|c= Creates a copy of last selected object with randomized properties as defined in TB template on cursor.}} | ||
|- | |- | ||
| duplicate selection || UABuldDuplicateSelection || C || | | duplicate selection || UABuldDuplicateSelection || C || {{hl|c= Creates an exact copy of a selection on cursor.}} | ||
|- | |- | ||
| delete selection || UABuldDeleteSelection || R || | | delete selection || UABuldDeleteSelection || R || {{hl|c= Deletes an active selection.}} | ||
|- | |- | ||
| undo || | | undo || UABuldUndo || Left Ctrl + X || {{hl|c= Reverts last executed action.}} | ||
|- | |- | ||
| redo || | | redo || UABuldRedo || Left Ctrl + Y || {{hl|c= Reverts undo action.}} | ||
|- | |- | ||
| move left || UABuldMoveLeft || MLEFT<br>A || | | move left || UABuldMoveLeft || MLEFT<br>A || {{hl|c= Moves cursor (camera).}} | ||
|- | |- | ||
| move right || UABuldMoveRight || MRIGHT<br>D || | | move right || UABuldMoveRight || MRIGHT<br>D || {{hl|c= Moves cursor (camera).}} | ||
|- | |- | ||
| move forward || | | move forward || UABuldMoveForward || MUP<br>W || {{hl|c= Moves cursor (camera).}} | ||
|- | |- | ||
| move back || UABuldMoveBack || MDOWN<br>S || | | move back || UABuldMoveBack || MDOWN<br>S || {{hl|c= Moves cursor (camera).}} | ||
|- | |- | ||
| move up || UABuldMoveUp || Q || | | move up || UABuldMoveUp || Q || {{hl|c= Moves cursor (camera).}} | ||
|- | |- | ||
| move down || UABuldMoveDown || Z || | | move down || UABuldMoveDown || Z || {{hl|c= Moves cursor (camera).}} | ||
|- | |- | ||
| left || UABuldLeft || ALEFT || | | left || UABuldLeft || ALEFT || {{hl|c= Moves current selection with cursor (camera) along its axis.}} | ||
|- | |- | ||
| right || UABuldRight || ARIGHT || | | right || UABuldRight || ARIGHT || {{hl|c= Moves current selection with camera along its axis.}} | ||
|- | |- | ||
| forward || UABuldForward || AUP || | | forward || UABuldForward || AUP || {{hl|c= Moves current selection with camera along its axis.}} | ||
|- | |- | ||
| back || | | back || UABuldBack || ADOWN || {{hl|c= Moves current selection with camera along its axis.}} | ||
|- | |- | ||
| look left || UABuldLookLeft || 4 [NUM] || | | look left || UABuldLookLeft || 4 [NUM] || {{hl|c= Rotates camera around the cursor.}} | ||
|- | |- | ||
| look right || UABuldLookRight || 6 [NUM] || | | look right || UABuldLookRight || 6 [NUM] || {{hl|c= Rotates camera around the cursor.}} | ||
|- | |- | ||
| look up || UABuldLookUp || | | look up || UABuldLookUp || 8 [NUM] || {{hl|c= Rotates camera around the cursor.}} | ||
|- | |- | ||
| look down|| | | look down|| UABuldLookDown || 2 [NUM] || {{hl|c= Rotates camera around the cursor.}} | ||
|- | |- | ||
| zoom in | | zoom in || UABuldZoomIn || + [NUM] || {{hl|c= }} | ||
|- | |- | ||
| zoom out || UABuldZoomOut || - [NUM] || | | zoom out || UABuldZoomOut || - [NUM] || {{hl|c= }} | ||
|- | |- | ||
| show texture info || UABuldTextureInfo || I || | | show texture info || UABuldTextureInfo || I || {{hl|c= Shows currently used terrain material on the cursor position.}} | ||
|} | |} | ||
== Buldozer script == | == Buldozer script == | ||
When it comes to the terrain editing in Buldozer, you sometime want to change a time of the day, increase/decrease view distance, reset weather and so on. For this, you can run a simple Enforce script, located on the workdrive inside a folder called scripts. Such folder should be already created when you prepare work-drive correctly using the tools. But in case it isn't, create it. Inside of the folder, create a file called ''buldozer.c'' (it has to have *.c file extension). Open the file in text editor and put following code inside: | When it comes to the terrain editing in Buldozer, you sometime want to change a time of the day, increase/decrease view distance, reset weather and so on. For this, you can run a simple Enforce script, located on the workdrive inside a folder called scripts. Such folder should be already created when you prepare work-drive correctly using the tools. But in case it isn't, create it. Inside of the folder, create a file called ''buldozer.c'' (it has to have *.c file extension). Open the file in text editor and put following code inside: | ||
<syntaxhighlight lang="c++"> | <syntaxhighlight lang="c++"> | ||
static void BuldozerMain() { | static void BuldozerMain() { | ||
// name of this file depends on the user-name (its buldozer.c when buldozer is launched with -name=Buldozer) | |||
// same is applied to the name of this method (<username>Main) | |||
// press F10 (default shortcut) to run this script in Buldozer (only available when connected to Terrain Builder) | |||
/* | |||
// Useful calls | |||
// sets terrain and object view distance and saves the value into the profile | |||
GetGame().GetWorld().SetPreferredViewDistance(1500); | |||
// sets terrain view distance for current bz session / mission | |||
GetGame().GetWorld().SetViewDistance(2200); | |||
// sets an object view distance for current bz session / mission | |||
GetGame().GetWorld().SetObjectViewDistance(2200); | |||
// changes overall brightness of the scene | |||
// 0 dark, 0< < 1 = light, 1 > darker | |||
GetGame().GetWorld().SetAperture(0.55); | |||
// enables/disables water in buldozer | |||
bool waterVisible = true; | |||
GetGame().GetWorld().SetBuldozerWaterEnabled(waterVisible); | |||
// weather setup - sets clear no rain weather with next change happening in 8hrs | |||
Weather wo = GetGame().GetWeather(); | |||
wo.GetRain().Set(0, 28800, 0); | |||
wo.GetFog().Set(0, 28800, 0); | |||
wo.GetOvercast().Set(0, 28800, 0); | |||
// mission date and time setup (y,m,d,hr,mn) | |||
GetGame().GetWorld().SetDate(1985, 6, 1, 12, 0); | |||
*/ | |||
// example usage | |||
GetGame().GetWorld().SetViewDistance(1600); | |||
GetGame().GetWorld().SetObjectViewDistance(1600); | |||
GetGame().GetWorld().SetAperture(0.55); | |||
Weather wo = GetGame().GetWeather(); | |||
wo.GetRain().Set(0, 0, 28800); | |||
wo.GetFog().Set(0, 0, 28800); | |||
wo.GetOvercast().Set(0, 0, 28800); | |||
wo.SetWindMaximumSpeed(1); | |||
wo.SetWindMaximumSpeed(1); | |||
wo.SetWindFunctionParams(0.1, 0.1, 25); | |||
GetGame().GetWorld().SetDate(1985, 6, 20, 16, 0); | |||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{GameCategory|dayz|Terrain Editing}} |
Latest revision as of 00:18, 25 April 2023
Overview
Buldozer for Terrain Builder is an intergral part of Terrain Editing in DayZ. It is a special mode of the game, which allows an in-engine 3D preview and ability to edit.
Requirements:
- DayZ and DayZ Tools installed and configured.
- Work-drive prepared using WorkDrive tool from DayZ Tools package. If you dont have that, follow these steps:
- Choose a path for Work Drive in DayZ Tools Launcher > Settings (uncheck default if you want to use custom).
- Use DayZ Tools Launcher > Tools > Extract Game Data to prepare data on your work-drive.
- Please note that the process of extracting game data should be executed after each major game update to make sure your extracted game data reflect current state in the game.
Setup
To verify Buldozer is setup correctly in your Terrain Builder, check following settings:
- Terrain Builder > Tools > Preferences > Buldozer
- .exe file path is set to DayZ_x64.exe (from your DayZ installation)
- Launch parameters are -buldozer -window -nopause -mod= -profiles=P:\Buldozer -name=Buldozer
- Data directory is P:\
- Terrain Builder > Tools > Preferences > User settings
- Data directory is P:\
After checking all of these options, proceed to load your terrain project and click the clapperboard icon in the top toolbar to run and connect Buldozer to the Terrain Builder.
Buldozer Keybinds for Terrain Editing
This part describes default keybinds for Buldozer when used in default mode (for terrain editing). Please note that these keybinds can be changed simply by pressing Esc key (while you have Buldozer open) and going into the controls options. You may see more options there than on this page, but that is because this menu also shows keybinds for the noland mode of Buldozer, which is used for model preview (more on that at here). These keybinds can be also edited in profile input xml files if one wishes to.
Name | Action name | Key | Description |
---|---|---|---|
reset camera | UABuldResetCamera | 0 [NUM] | Resets camera to default state. |
turbo | UABuldTurbo | U | While holding it increases cursor speed, camera movement and other miscellaneous actions within Buldozer. |
slow | UABuldSlow | J | While holding it decreases cursor speed, camera movement and other miscellaneous actions within Buldozer. |
free look | UABuldFreeLook | 5 [NUM] | Holding this key together with mouse movement provides a free look around the cursor. |
run script | UABuldRunScript | F10 | Runs a custom script method from a folder called scripts on your work-drive |
select toggle | UABuldSelectToggle | space | Toggles a selection on closets object to the cursor. |
select and move | UABuldSelect | LMB | Used for selecting objects (hold for rectangular area selection), moving active selection (hold) and elevation change (hold) in terrain brush mode. |
select add modifier | UABuldSelectAddMod | 7 | Holding this key allows to add more objects to your current selection. |
select remove modifier | UABuldSelectRemoveMod | 8 | Holding this key allows to add remove objects from your current selection. |
modify selected | UABuldModifySelected | RMB | Used for various actions such as rotation, scale and elevation change on current selection. |
cycle modifiers | UABuldCycleMod | 5 | Cycles through rotation, scale and elevate modifiers which can be applied to active selection. |
X axis rotation | UABuldRotationXAxisMod | 1 | Holding this key together with mouse movement rotates current selection along X axis. |
Z axis rotation | UABuldRotationZAxisMod | 3 | Holding this key together with mouse movement rotates current selection along Z axis. |
cycle coord system | UABuldCoordModCycle | 6 | Cycles through two available options (object and world space) for rotations of selected objects. |
sample terrain height | UABuldSampleTerrainHeight | RMB | Takes a sample from the cursor position for set height mode of terrain brush. |
set terrain height | UABuldSetTerrainHeight | LMB | Sets a previously sampled terrain height in set height mode of terrain brush. |
scale modifier | UABuldScaleMod | E | Holding this key together with 'modify selected' and mouse movement allows to scale all objects (up or down) within the current selection. |
elevate modifier | UABuldElevateMod | T | Holding this key together with 'modify selected' and mouse movement allows to change relative Y of all objects within the current selection. |
brush smooth modifier | UABuldSmoothMod | Left Shift | Switches terrain brush into smooth mode while holding it. |
brush flatten modifier | UABuldFlattenMod | Left Alt | Switches terrain brush into flatten mode while holding it. |
Brush inner circle up | UABuldBrushRatioUp | B + wheel up | Changes the size of inner (green) circle of terrain brush. |
Brush inner circle down | UABuldBrushRatioDown | B + wheel down | Changes the size of inner (green) circle of terrain brush. |
brush outer circle up | UABuldBrushOuterUp | N + wheel up | Changes the size of outer (red) circle of terrain brush. |
brush outer circle down | UABuldBrushOuterDown | N + wheel down | Changes the size of outer (red) circle of terrain brush. |
brush strength up | UABuldBrushStrengthUp | M + wheel up | Changes the strength of terrain brush. |
brush strength down | UABuldBrushStrengthDown | M + wheel down | Changes the strength of terrain brush. |
toggle nearest object arrow | UABuldToggleNearestObjectArrow | H | Toggles a visualisation arrows on object that is closest to the cursor. |
cycle brush modifier | UABuldCycleBrushMod | G | Cycles through all available terrain brush modes (smooth, flatten and set height). |
cursor mode | UABuldSelectionType | F | Switches cursor mode between normal and terrain brush mode. |
create last selected object | UABuldCreateLastSelectedObject | V | Creates a copy of last selected object with randomized properties as defined in TB template on cursor. |
duplicate selection | UABuldDuplicateSelection | C | Creates an exact copy of a selection on cursor. |
delete selection | UABuldDeleteSelection | R | Deletes an active selection. |
undo | UABuldUndo | Left Ctrl + X | Reverts last executed action. |
redo | UABuldRedo | Left Ctrl + Y | Reverts undo action. |
move left | UABuldMoveLeft | MLEFT A |
Moves cursor (camera). |
move right | UABuldMoveRight | MRIGHT D |
Moves cursor (camera). |
move forward | UABuldMoveForward | MUP W |
Moves cursor (camera). |
move back | UABuldMoveBack | MDOWN S |
Moves cursor (camera). |
move up | UABuldMoveUp | Q | Moves cursor (camera). |
move down | UABuldMoveDown | Z | Moves cursor (camera). |
left | UABuldLeft | ALEFT | Moves current selection with cursor (camera) along its axis. |
right | UABuldRight | ARIGHT | Moves current selection with camera along its axis. |
forward | UABuldForward | AUP | Moves current selection with camera along its axis. |
back | UABuldBack | ADOWN | Moves current selection with camera along its axis. |
look left | UABuldLookLeft | 4 [NUM] | Rotates camera around the cursor. |
look right | UABuldLookRight | 6 [NUM] | Rotates camera around the cursor. |
look up | UABuldLookUp | 8 [NUM] | Rotates camera around the cursor. |
look down | UABuldLookDown | 2 [NUM] | Rotates camera around the cursor. |
zoom in | UABuldZoomIn | + [NUM] | -No content provided- |
zoom out | UABuldZoomOut | - [NUM] | -No content provided- |
show texture info | UABuldTextureInfo | I | Shows currently used terrain material on the cursor position. |
Buldozer script
When it comes to the terrain editing in Buldozer, you sometime want to change a time of the day, increase/decrease view distance, reset weather and so on. For this, you can run a simple Enforce script, located on the workdrive inside a folder called scripts. Such folder should be already created when you prepare work-drive correctly using the tools. But in case it isn't, create it. Inside of the folder, create a file called buldozer.c (it has to have *.c file extension). Open the file in text editor and put following code inside:
static void BuldozerMain() {
// name of this file depends on the user-name (its buldozer.c when buldozer is launched with -name=Buldozer)
// same is applied to the name of this method (<username>Main)
// press F10 (default shortcut) to run this script in Buldozer (only available when connected to Terrain Builder)
/*
// Useful calls
// sets terrain and object view distance and saves the value into the profile
GetGame().GetWorld().SetPreferredViewDistance(1500);
// sets terrain view distance for current bz session / mission
GetGame().GetWorld().SetViewDistance(2200);
// sets an object view distance for current bz session / mission
GetGame().GetWorld().SetObjectViewDistance(2200);
// changes overall brightness of the scene
// 0 dark, 0< < 1 = light, 1 > darker
GetGame().GetWorld().SetAperture(0.55);
// enables/disables water in buldozer
bool waterVisible = true;
GetGame().GetWorld().SetBuldozerWaterEnabled(waterVisible);
// weather setup - sets clear no rain weather with next change happening in 8hrs
Weather wo = GetGame().GetWeather();
wo.GetRain().Set(0, 28800, 0);
wo.GetFog().Set(0, 28800, 0);
wo.GetOvercast().Set(0, 28800, 0);
// mission date and time setup (y,m,d,hr,mn)
GetGame().GetWorld().SetDate(1985, 6, 1, 12, 0);
*/
// example usage
GetGame().GetWorld().SetViewDistance(1600);
GetGame().GetWorld().SetObjectViewDistance(1600);
GetGame().GetWorld().SetAperture(0.55);
Weather wo = GetGame().GetWeather();
wo.GetRain().Set(0, 0, 28800);
wo.GetFog().Set(0, 0, 28800);
wo.GetOvercast().Set(0, 0, 28800);
wo.SetWindMaximumSpeed(1);
wo.SetWindMaximumSpeed(1);
wo.SetWindFunctionParams(0.1, 0.1, 25);
GetGame().GetWorld().SetDate(1985, 6, 20, 16, 0);
}