Restore original airborne steering for jumps and jetpack bursts
This commit is contained in:
1 parent
b58138d7ba
commit
976e677019
16 files changed
+357
-54
No files matched your search
@@ -50,14 +50,15 @@ def inside(args):
|
||||
wine_env = dict(os.environ, LIBGL_DRIVERS_PATH='/native/usr/lib/i386-linux-gnu/dri')
|
||||
application = ['/opt/wine-stable/bin/wine', args.game]
|
||||
if args.port_smoke:
|
||||
port_scene = 'VR04' if args.port_jetpack else 'level1b'
|
||||
application = ['/opt/wine-stable/bin/wine', r'Z:\port\GamePort.exe',
|
||||
'--assets', r'Z:\port\assets', '--scene', r'Z:\port\scenes\level1b\scene.json',
|
||||
'--level', 'gam/level1b.gam', '--original-camera', '--with-player',
|
||||
'--frames', '240' if args.port_walk else '12' if args.port_practice else '6' if args.port_window else '2', '--no-validation',
|
||||
'--assets', r'Z:\port\assets', '--scene', rf'Z:\port\scenes\{port_scene}\scene.json',
|
||||
'--level', f'gam/{port_scene}.gam', '--original-camera', '--with-player',
|
||||
'--frames', '300' if args.port_jetpack else '240' if args.port_walk else '12' if args.port_practice else '6' if args.port_window else '2', '--no-validation',
|
||||
'--screenshot', r'Z:\work\port-frame.ppm']
|
||||
application += ['--smoke-walk'] if args.port_walk else ['--smoke-practice-window'] if args.port_practice else ['--story', '--story-time', '12'] if args.port_story else ['--inspect', '--time', '0.05']
|
||||
application += ['--smoke-jetpack'] if args.port_jetpack else ['--smoke-walk'] if args.port_walk else ['--smoke-practice-window'] if args.port_practice else ['--story', '--story-time', '12'] if args.port_story else ['--inspect', '--time', '0.05']
|
||||
application += ['--smoke-window'] if args.port_window and not (args.port_walk or args.port_practice) else []
|
||||
application += [] if args.port_window or args.port_walk or args.port_practice else ['--headless']
|
||||
application += [] if args.port_window or args.port_walk or args.port_practice or args.port_jetpack else ['--headless']
|
||||
if args.port_cutscene_audio:
|
||||
application = ['/opt/wine-stable/bin/wine', r'Z:\port\GamePort.exe',
|
||||
'--assets', r'Z:\port\assets', '--cutscene-audio-smoke',
|
||||
@@ -104,16 +105,18 @@ def main():
|
||||
p.add_argument('--port-story', action='store_true', help='Windows port original-resource story/camera render under Wine64')
|
||||
p.add_argument('--port-practice', action='store_true', help='Windows port practice modal/input/resize under Wine64')
|
||||
p.add_argument('--port-cutscene-audio', action='store_true', help='Windows port cutscene music lifecycle under Wine64')
|
||||
p.add_argument('--port-jetpack', action='store_true', help='Windows port VR04 powered steering/input/resize under Wine64')
|
||||
p.add_argument('--asset-probe', action='store_true', help='Run compiled read-only OMT shape probe inside isolated copy')
|
||||
p.add_argument('--probe-model', default=r'ASE\jimstop.ase')
|
||||
p.add_argument('--probe-executable', type=Path, help='Local probe executable to mount read-only for --asset-probe')
|
||||
p.add_argument('--output', type=Path)
|
||||
args = p.parse_args()
|
||||
args.port_smoke = args.port_smoke or args.port_window or args.port_walk or args.port_story or args.port_practice or args.port_cutscene_audio
|
||||
args.port_smoke = args.port_smoke or args.port_window or args.port_walk or args.port_story or args.port_practice or args.port_cutscene_audio or args.port_jetpack
|
||||
if args.port_smoke and args.asset_probe: p.error('Select either port smoke or asset probe')
|
||||
if args.port_story and (args.port_window or args.port_walk or args.port_practice): p.error('Story comparison uses headless fixed time; select one port check')
|
||||
if args.port_practice and (args.port_walk or args.port_window): p.error('Select one windowed port check')
|
||||
if args.port_cutscene_audio and (args.port_practice or args.port_story or args.port_walk or args.port_window): p.error('Select audio lifecycle or rendering check')
|
||||
if args.port_cutscene_audio and (args.port_practice or args.port_story or args.port_walk or args.port_window or args.port_jetpack): p.error('Select audio lifecycle or rendering check')
|
||||
if args.port_jetpack and (args.port_practice or args.port_story or args.port_walk or args.port_window): p.error('Select one jetpack or other port check')
|
||||
if args.probe_executable and not args.asset_probe: p.error('--probe-executable requires --asset-probe')
|
||||
if not 3 <= args.seconds <= 120: p.error('--seconds must be 3..120')
|
||||
if args.inside: return inside(args)
|
||||
@@ -165,6 +168,7 @@ def main():
|
||||
if args.port_story: cmd += ['--port-story']
|
||||
if args.port_practice: cmd += ['--port-practice']
|
||||
if args.port_cutscene_audio: cmd += ['--port-cutscene-audio']
|
||||
if args.port_jetpack: cmd += ['--port-jetpack']
|
||||
if args.asset_probe: cmd += ['--asset-probe', '--probe-model', args.probe_model]
|
||||
print('Running isolated Windows port' if args.port_smoke else 'Running copied original', 'with no network and no original-directory mount:', work, flush=True)
|
||||
subprocess.run(cmd, check=True, timeout=args.seconds + 40)
|
||||
|
||||
Reference in new issue
Block a user