Record Windows review build and fix exported maiden QA captures

This commit is contained in:
JariKo
2026-10-28 23:34:17 +02:00
parent e3a85d8dec
commit fcd67109d4
2 changed files with 15 additions and 2 deletions
+4 -2
View File
@@ -1,15 +1,17 @@
extends RefCounted
var failures=0
var capture_folder=""
func check(ok,label):
if not ok:failures+=1;push_error("IRON MAIDEN QA: "+label)
func shot(g,name):
await RenderingServer.frame_post_draw
g.get_viewport().get_texture().get_image().save_png("res://captures/iron-maiden/"+name+".png")
g.get_viewport().get_texture().get_image().save_png(capture_folder+"/"+name+".png")
func run(g):
await g.get_tree().create_timer(.3).timeout
g.start_game();g.set_process(false);g.reset_shift();g.game_started=true;g.paused=false
g.hud.hide();g.menu.show_page("")
DirAccess.make_dir_recursive_absolute("res://captures/iron-maiden")
capture_folder="res://captures/iron-maiden" if OS.has_feature("editor") else OS.get_executable_path().get_base_dir()+"/captures/iron-maiden"
DirAccess.make_dir_recursive_absolute(capture_folder)
var w=g.workshop;var d=w.add_station(3,Vector3(3,0,0))
check(d.device.get_meta("apparatus_model","")=="iron_maiden_v01","Meshy model selected")
check(d.door!=d.second_door and d.door.get_child_count()>0 and d.second_door.get_child_count()>0,"independent populated doors")