From 8331c886a4d9bfd42af1ce70fac7080deab9d07f Mon Sep 17 00:00:00 2001 From: Miguel Pacheco Date: Sat, 11 May 2024 11:14:29 -0300 Subject: [PATCH] add giants editor path --- README.md | 4 ++-- execute_TestRunner.ps1 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7357709..d574434 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ This PowerShell script executes the Test Runner for a Farming Simulator 22 mod. - `$testRunnerPath`: Path where the Test Runner executable (`TestRunner_public.exe`) is installed. - `$gamePath`: Path where Farming Simulator 22 is installed. - `$outputBasePath`: Base output folder where the results will be stored. - - `$giantsEditorPath` : Path where Giants Editor is Installed (Coming Soon) + - `$giantsEditorPath` : Path where Giants Editor is Installed 4. **Run the Script:** - Open PowerShell. @@ -48,4 +48,4 @@ This PowerShell script executes the Test Runner for a Farming Simulator 22 mod. - This script uses PowerShell to execute the Test Runner command with the specified parameters. - Ensure that the paths to `TestRunner_public.exe`, the game folder, and the output base folder are correctly defined in the script. - Exercise caution when running scripts from untrusted sources. -- For issues or suggestions, please contact [Miguel Pacheco](mailto:minipachru@gmail.com). +- For issues or suggestions, please contact [Miguel Pacheco](mailto:minipachru@gmail.com) or create an issue on the Repository. diff --git a/execute_TestRunner.ps1 b/execute_TestRunner.ps1 index 1f28c0c..46019a4 100644 --- a/execute_TestRunner.ps1 +++ b/execute_TestRunner.ps1 @@ -30,7 +30,7 @@ $gamePath = "D:\SteamLibrary\steamapps\common\Farming Simulator 22" $outputBasePath = "D:\testingmods\testRunnerOutput" # Define the Giants Editor Path (In case it's added in future versions) -$giantsEditorPath = "" +$giantsEditorPath = "D:\GIANTS_Editor_9.0.6_64-bit\editor.exe" # Check if the mod folder path is provided if (-not $modFolderPath) { @@ -56,7 +56,7 @@ if (-not $modFolderPath) { Write-Host "Loading Giants TestRunner located on: $testRunnerPath, with GamePath: $gamePath, and output: $outputFolderPath for mod: $modFolderPath" # Build the command - $command = "$testRunnerPath $modFolderPath -g '$gamePath' --outputPath $outputFolderPath" + $command = "$testRunnerPath $modFolderPath -e '$giantsEditorPath' -g '$gamePath' --outputPath $outputFolderPath" # Execute the command Invoke-Expression -Command $command