Skip to content

Commit

Permalink
add giants editor path
Browse files Browse the repository at this point in the history
  • Loading branch information
Miguel22247 committed May 11, 2024
1 parent 0ad89b7 commit 8331c88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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:[email protected]).
- For issues or suggestions, please contact [Miguel Pacheco](mailto:[email protected]) or create an issue on the Repository.
4 changes: 2 additions & 2 deletions execute_TestRunner.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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
Expand Down

0 comments on commit 8331c88

Please sign in to comment.