As with FS19 we are happy to provide our Mod Testing Tool updated for FS22.
TestRunner_public.exe
- checks a mod and shows various errors and violations of ModHub guidelines
- provides test result as html and xml document
- tests are structured in multiple modules/groups
- tool is also used by our QA internally (with an extended feature-set)
Goals
- speed up the process of testing mods by helping the modder to identify and fix problems (before submitting to ModHub)
- detect various errors and provide hints how to fix them
- ensure ModHub guidelines are met
- improve performance and minimize overall mod file-size and memory usage
Key Features / What it does (selected examples)
- check if the descVersion matches current patch level
- check for xml parsing errors
- warn about wrongly exported dds textures
- warn about missing or obsolete files
- show duplicate files (within the mod and in the base game)
- provide information about shader problems, which need fixing for a console release
- and much more, for detailed explanations see "Test Cases" section
- all found problems will be provided in form of an HTML document and and xml file
Example Result HTML
Requirements for using the tool
- Farming Simulator 22 (min. version 1.8)
- GIANTS Editor (min. Version 9.0.3)
=> the path to game installation needs to be correctly set within the editor - latest version of the Farming Simulator 22 TestRunner (0.8.8)
Disclaimer
- the tool is still in beta status, some tests might show errors which are none (so called "false positives")
particularly "unused files" reported by module "ObsoleteFiles" - please report any cases where you think the tool outputs errors which are false positives
when making a bugreport please include testrunner log, the result files (xml and html) and if possible the mod itself (or its id on the ModHub), so we can reproduce the issue
ideally use the "TestRunner" project on our public Bugtracker for reporting any bugs
Instructions / How to use
- drag and drop the directory of an unzipped mod onto TestRunner_public.exe
- note: folder of the mod does not have to be in the same directory as the TestRunner
- a command-line window will open displaying current progress
- if something went wrong an error message is displayed giving details on the problem
all outputs are also saved in the "TestRunner.log"
- if requirements are met the tool will start to analyze the mod
- the command line will display some information on the current progress
unless there is a "critical" message, this can be ignored - GIANTS Editor will be automatically opened and closed during the process
- note: depending on the size of the mod and the speed of the hard drive the process may take several minutes
- the command line will display some information on the current progress
- when the test process has finished, the message "Finished execution" will be displayed inside the command line
- a xml and html file will be generated in the same directory as the TestRunner
- files are named after the directory name of the tested mod and contain the result of the test
- html file only contains all the found errors (per module)
- the xml contains all errors and more detailed (meta)information
- the generated html file will be automatically opened in your browser where you can check if errors were found in your mod
- errors are outlined in red
- explanations are in italics
- instruction on how to correct errors are colored green
Test Cases and explanations
In the following the individual modules and their test cases are explained in detail
Troubleshooting
- problem: game installation can not be found
- problem: editor installation can not be found
- tools searches for installed Giants editors in giantsPackageRegistry xml located in appdata/local
- solution: run in cmd (see instructions below) with argument -p $FS22_EDITOR$ <pathToEditorExe>
- problem: program closes down by itself/crashes
- post/send TestRunner.log, if possible send the tested mod in a private message
- if possible, run the tool from command line and add "--verbose" as an argument and send us the log
this way more information will be included in the log-file and help us with debugging process
Instructions for using with command-line (cmd)
if you need to make additional settings (e.g. game installation cannot be found automatically), you can run the tool from a commandline
- start a command-line or powershell window
- Option A: click the address bar of the windows explorer window, type "cmd", hit enter
this will open a command-line at the current directory of the explorer - Option B: hold shift and right click the background of the explorer window, select "Open Commandline window here" or "Open PowerShell window here"
this will open a command-line/powershell at the current directory of the explorer - Option C: Press "Win" + "R", type "cmd" in the dialog, hit enter
this will open a command line in your user profile
=> navigate to the location of the TestRunner_public.exe
- Option A: click the address bar of the windows explorer window, type "cmd", hit enter
- type "TestRunner_public.exe" ("./TestRunner_public.exe" for PowerShell)
- hit space and enter the path to your unzipped mod, e.g. "D:\mods\FS22_caseIHMagnum724Pro"
- Optional: add additional arguments if required/desired
- hit enter to start the test tool
If you find any bugs I suggest to report them on our public Bugtracker, as its more efficient to manage them there.
We are looking forward to your Feedback and hope the tool will support you creating mods and submitting them to ModHub.