-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from Muriel-Salvan/add_npcs_head
[Feature] Add NPCsHead tests suite to detect neck seams
- Loading branch information
Showing
4 changed files
with
79 additions
and
1 deletion.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
Scriptname AutoTest_Suite_NPCsHead extends AutoTest_Suite_NPCs | ||
{ | ||
Collection of script functions testing NPCs head (using screenshots of naked actors). | ||
This helps in finding issues with neck seams | ||
Dependencies: | ||
* ConsoleUtil (https://www.nexusmods.com/skyrimspecialedition/mods/24858) | ||
* SKSE for StringUtil (https://skse.silverlock.org/) | ||
} | ||
|
||
int gPreviousFov = 90 | ||
|
||
; Initialize the script | ||
; [API] This function is mandatory and has to use SetTestType | ||
function InitTests() | ||
SetTestType("NPCsHead") | ||
endFunction | ||
|
||
; Prepare the runs of tests | ||
; [API] This function is optional | ||
function BeforeTestsRun() | ||
; Get the fov value so that we can reset it at the end of the tests run | ||
gPreviousFov = Utility.GetINIFloat("fDefault1stPersonFOV:Display") | ||
ConsoleUtil.ExecuteCommand("tgm") | ||
ConsoleUtil.ExecuteCommand("tcai") | ||
ConsoleUtil.ExecuteCommand("tai") | ||
ConsoleUtil.ExecuteCommand("fov 20") | ||
endFunction | ||
|
||
; Finalize the runs of tests | ||
; [API] This function is optional | ||
function AfterTestsRun() | ||
ConsoleUtil.ExecuteCommand("fov " + gPreviousFov) | ||
ConsoleUtil.ExecuteCommand("tai") | ||
ConsoleUtil.ExecuteCommand("tcai") | ||
ConsoleUtil.ExecuteCommand("tgm") | ||
endFunction | ||
|
||
; Register a screenshot test of a given BaseID | ||
; | ||
; Parameters: | ||
; * *baseId* (Integer): The BaseID to clone and take screenshot | ||
; * *espName* (String): The name of the ESP containing this base ID | ||
function RegisterScreenshotOf(int baseId, string espName) | ||
RegisterNewTest(espName + "/" + baseId) | ||
endFunction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters