Warhammer 40,000: Gladius - Relics of War

Warhammer 40,000: Gladius - Relics of War

Not enough ratings
EBF Random Terrain Densities
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
115.763 KB
4 Feb, 2023 @ 8:05pm
10 Feb, 2023 @ 6:10pm
5 Change Notes ( view )

Subscribe to download
EBF Random Terrain Densities

In 2 collections by Kurziel
Evolving Battlefields
11 items
Mods that work well with EBF
68 items
Description
Evolving Battlefields

Evolving Battlefields (EBF) is a series of mods that bring more fluidity to the game's combat situations. These mods are intended to improve the immersion and lore aspects of the game while making as little impact on vanilla balance as possible. The AI may not be able to take full advantage of some mods, but shouldn't shift the balance significantly.

***Special Shortcut***

To take advantage of this mod's features you must use the short cut in the mod directory to launch the game. It will run a powershell script and then launch Gladius.

Random Terrain Densities

To increase the sense of exploration and uncertainty in the early game this mod adds a Random choice for the following Advanced options when creating the game: Arctic Region Density, Artefact Density, Desert Region Density, Forest Density, Holy Site Density, Imperial Ruins Density, Jokaero Trader Encampment Density, Land Mass, Necron Tomb Density, Orkoid Fungus Density, Region Denstiy, Region Size, River Density, Ruins of Vaul Density, Special Resource Density, Tropical Region Density, Webway Gate Density, Wildlife Density, Wire Weed Density, Volcanic Region Density

You are not required to use the Random option on all or even any of the options.

How This Mod Works

Open the mod folder and use the "EBF Random Densities Launcher" shortcut. If the short cut does not launch the game, you can right click on "launch.ps1" and select "Run with PowerShell"

The default location for this mod to be installed is:

C:\Program Files (x86)\Steam\steamapps\workshop\content\489630\2928659536

When the modded shortcut is used a PowerShell Script is run that adds another option to each of the list categories in the WorldParameters used in Skirata's "More Map Sizes, Options & Difficulties" mod.

The script chooses a value some where between the minimum and maximum values in More Map Sizes, Options & Difficulties. When the game is loaded the label for these new categories displays as "Random." This means the only way to know the value of these particular categories would be to manually open the xml file.

Every time the modded shortcut is used the random values will be overwritten with new random values.

If you create a game, leave the game and then create a new game, the second game will be able to use the random values. But, it will use the same random densities as the first game. To generate a whole new set of density values you will have to close the game entirely and relaunch it with the modded short cut.

The top of the script has a set of Min and Max variables that can be edited to set the random range for each option.


How Safe is this PowerShell Script?

Fair question. Here is the Virus Total review of launch.ps1
https://www.virustotal.com/gui/file/ed4dd4f8e50a7ae2eff2c60a6b19242d0745ada9cd549e46173555ca8766085b/detection

Please take any and all steps you feel appropriate to vet the mod before using it.

Troubleshooting

The script should autodetect your steam install path so editing the script to point to your mod location should not be necessary. If you have a custom steam install location you may need to edit the path in the in the short cut. Picture above has the relevant portion of the shortcut properties highlighted.

Compatibility

This mod requires PowerShell to be present on your computer. If you do not have it installed, it is free and obtainable here: https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.3

This mod should be compatible with all mods that More Map Sizes, Options & Difficulties is compatible with.

This mod should be loaded below More Map Sizes, Options & Difficulties.

As always, I will look at compatibility patches with other mods by request.

Possible Future Plans

This mod is made using PowerShell because I want to be more familiar with it. The current script is a proof of concept that has lots of room to be made more efficient. If there is sufficient popularity I will improve the script.

Have script update shortcut with proper path to the mod folder

May consider adding other random advanced options.
10 Comments
Kurziel  [author] 10 Feb, 2023 @ 7:40am 
@Turambar I'd be happy to provide guidance on what my script is doing to somebody with the Linux skills to adapt this. Unfortunately I don't have the resources (test environment and time) to develop the mod for another environment.
Turambar 10 Feb, 2023 @ 1:12am 
RIP Linux players :'(
Questionable 6 Feb, 2023 @ 6:53pm 
Helpful bunch ya'll are
Erik Taurus 6 Feb, 2023 @ 12:12pm 
No worries! Nice that you got it sorted out. I'm glad to assist whenever I can.
Kurziel  [author] 6 Feb, 2023 @ 11:49am 
@Erik Taurus, Thanks for jumping in to help. I should have followed up here to make it clear. I talked with Questinable in private messages to Questionable. And thanks bringing the flaw in my instructions to my attention. I'll update the mod description to properly reflect both changes that need to be made.
Erik Taurus 6 Feb, 2023 @ 8:52am 
@Questionable: You have to change the path both in the launch.ps1 and the launcher.bat -files.

e.g.
launch.ps1
$Input="<your custom steam install folder>\steamapps\workshop\content\489630\2571507843\Data\World\Blueprints\WorldParameters.xml"

launcher.bat
start "Gladius" "<your custom steam install folder>\steamapps\common\Warhammer 40000 Gladius - Relics of War\Binaries\Windows-x86_64\Gladius.exe"
Questionable 5 Feb, 2023 @ 3:12pm 
Is it supposed to just open the folder location or run the exe of gladius cause it does the former and not the latter--
Kurziel  [author] 5 Feb, 2023 @ 3:11pm 
Notepad or any other text editor should be able to edit the script.
Questionable 5 Feb, 2023 @ 3:03pm 
How do I edit the powershell for if I have a custom game location
Skirata 5 Feb, 2023 @ 10:30am 
Nicely done! Very clever using a Powershell Script to add some randomness to the game :zealous: