July 2, 20214 yr Those of you who launch Active Sky with a batch file kindly share your script text here. Thanks,
July 2, 20214 yr Have you thought of using FSUIPC to launch it? Works great and closes it again when you shutdown P3D. Just add the following lines to your FSUIPC.INI file. [Programs] RunIf1=Close,C:\Program Files\HiFi\ASP3D\ASP3D.exe Obviously, you have to change the path to where you have Active Sky installed. 🙂 Edited July 2, 20214 yr by Caveney737 Update to post.
July 2, 20214 yr 2 hours ago, Dirk98 said: Those of you who launch Active Sky with a batch file kindly share your script text here. Sure, here you go, I launch ASN as part of a batch file that brings a whole lot of items together. Needless to say paths / file names would need to be changed to use the use. REM Check for ASN and start if not already running. tasklist /nh /fi "imagename eq AS_P3Dv4.exe" | find /i "AS_P3Dv4.exe" > nul ||(START "Active Sky Next P3D v4" /HIGH /D "E:\FSX Addons\ASNext_P3Dv4\AS_P3Dv4" /I "E:\FSX Addons\ASNext_P3Dv4\AS_P3Dv4\AS_P3Dv4.exe") Cheers Ryzen 5800X clocked to 4.7 Ghz (SMT off), 32 GB ram, Samsung 1 x 1 TB NVMe 970, 2 x 1 TB SSD 850 Pro raided, Asus Tuf 3080Ti P3D 4.5.14, Orbx Global, Vector and more, lotsa planes too. Catch my vids on Oz Sim Pilot, catch my screen pics @ Screenshots and Prepar3D
July 2, 20214 yr Author 4 hours ago, Caveney737 said: Have you thought of using FSUIPC to launch it? Works great and closes it again when you shutdown P3D. Just add the following lines to your FSUIPC.INI file. [Programs] RunIf1=Close,C:\Program Files\HiFi\ASP3D\ASP3D.exe Obviously, you have to change the path to where you have Active Sky installed. 🙂 I needed a batch file to set Affinity for ASP3D.exe in it so FSUIPC method didn't suit me.
July 2, 20214 yr 14 minutes ago, Dirk98 said: I needed a batch file to set Affinity for ASP3D.exe in it so FSUIPC method didn't suit me. This is one of my batchfiles that starts apps as Admin and with a certain affinity : @Echo off net sess>NUL 2>&1||(powershell try{saps '%0'-Verb RunAs}catch{}&exit) pushd "C:\Program Files (x86)\PCGameBoost\Smart Game Booster" start /affinity 5 SgbMain.exe In your case : @Echo off net sess>NUL 2>&1||(powershell try{saps '%0'-Verb RunAs}catch{}&exit) pushd "C:\Program Files\HiFi\ASP3D" start /affinity 5 C:\Program Files\HiFi\ASP3D\ASP3D.exe Edited July 2, 20214 yr by GSalden 5950x3d 5.4-5.7 GHz - Asus ROG 870 Crosshair Apex - GSkill Neo 2x 24 Gb 6000 mhz / cas 26 - MSI RTX 5090 Gaming Trio OC - 1x SSD M2 6000 2TB - 1x SSD M2 2800/1800 1Tb - Corsair 5400 case - Corsair 360 liquid cooling set - 3x 75’ TCL tv. 13600 6 cores @ 5.1 GHz / 8 cores @ 4.0 GHz (hypterthreading on) - Asus ROG Strix Gaming D - GSkill Trident 4x Gb 3200 MHz cas 15 - Asus TUF RTX 4080 16 Gb - 1x SSD M2 2800/1800 2TB - 2x Sata 600 SSD 500 Mb - Corsair D4000 Airflow case - NXT Krajen Z63 AIO liquide cooling - FOV : 200 degrees My flightsim vids : https://www.youtube.com/user/fswidesim/videos?shelf_id=0&sort=dd&view=0
July 2, 20214 yr Author Just in case somebody would like to launch ASP3D with a batch file on a 8-Core/16-LP CPU with HT=ON allocating LP15 and LP13 to ASP3D.exe I've ended up with the following script: ----------------------------------------------------------------------------------------- REM --add the following to the top of your bat file-- @echo off :: BatchGotAdmin :------------------------------------- REM --> Check for permissions >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system" REM --> If error flag set, we do not have admin. if '%errorlevel%' NEQ '0' ( echo Requesting administrative privileges... goto UACPrompt ) else ( goto gotAdmin ) :UACPrompt echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs" set params = %*:"="" echo UAC.ShellExecute "cmd.exe", "/c %~s0 %params%", "", "runas", 1 >> "%temp%\getadmin.vbs" "%temp%\getadmin.vbs" del "%temp%\getadmin.vbs" exit /B :gotAdmin pushd "%CD%" CD /D "%~dp0" :-------------------------------------- Start "" /affinity 5000 "C:\MSFS\HiFi\ASP3D\ASP3D.exe" exit -------------------------------------------------------------------------------------- Cheers.
July 2, 20214 yr I use a very simple .bat file for this: C:\Windows\System32\cmd.exe /c start "Active Sky for P3D5" /affinity F00 "D:\HiFi\ASP3D\ASP3D.exe" Of course, adjust the folder locations accordingly. You can even redirect your desktop icon to the .bat file instead of the .exe, then you wont notice any difference when firing up. And also be aware that the affinity defined by "F00" might not be what you want, "F00" lets ActiveSky run on the last two cores plus HT. If you have something else than a six core with HT CPU, you need to change this string accordingly. Greetings, Chris AMD Ryzen 7 9800X3D, 2x32GB DDR5 6000MT/s RAM, MSI RTX 4090 Ventus 3X, Windows 11 Home, MSFS2024
July 2, 20214 yr Here's the batch file I use for Active Sky. I don't have Active Sky automatically start with P3D. I start P3D, then just double click the batch file. You can add other apps such as FFTF Dynamic if you want, so you can start all the auxiliary apps at once. I find I have less problems when P3D starts separately. I do not use an affinity mask for P3D itself. REM SET AFFINITY MASKS FOR P3D AUXILIARY APPLICATIONS REM Set batch file short cut to run as administrator or affinity setting will not take effect. REM PARAMETERS REM /Elevate Run as Administrator. REM /B Suppress Command Prompt Window. REM /wait Starts an application and waits for it to end. REM /affinity Applies the specified processor affinity mask (expressed as a hexadecimal number) to the new application (e.g. /affinity A808). @echo off REM Start Active Sky REM Affinity mask binary 0101 0101 0100 0000. Hex 5540 Give Active Sky at least 4 LPs (Three doesn't seem to be enough). Also prevent use on LPs 0,2,4 (cores 0, 1, 2) start "" /B /affinity 5540 "E:\FS APPS\ASP3D\ASP3D.exe" /Elevate /wait exit Version: P3Dv5.4, P3Dv6 CPU: Core i7-13700K @ 5.5 GHz with HT on, GPU: RTX 3080 12GB, RAM: 32GB DDR-5, MONITOR: 32" 4K with G-Sync enabled, OS: Win10 22H2, Target Frame Rate: P3D 120, NCP Max Frame Rate 35.
July 2, 20214 yr 4 hours ago, AnkH said: I use a very simple .bat file for this: C:\Windows\System32\cmd.exe /c start "Active Sky for P3D5" /affinity F00 "D:\HiFi\ASP3D\ASP3D.exe" Yep, this is what I use. Simple and gets the job done. 👍
July 2, 20214 yr Moderator Has this turned into a “my batch file is more powerful than your batch file” competition? 🤣 Some impressive code there! Ray (Cheshire, England). System: P3D v5.3HF2, Intel i9-13900K, MSI 4090 GAMING X TRIO 24G, Crucial T700 4Tb M.2 SSD, Asus ROG Maximus Z790 Hero, 32Gb Corsair Vengeance DDR5 6000Mhz RAM, Win 11 Pro 64-bit, BenQ PD3200U 32” UHD monitor, Fulcrum One yoke, Fulcrum Throttle Quadrant. Cheadle Hulme Weather website.
July 2, 20214 yr Author 1 hour ago, Ray Proudfoot said: Has this turned into a “my batch file is more powerful than your batch file” competition? 🤣 No by any means Ray. This is about free choice and variety in the first hand init? Edited July 2, 20214 yr by Dirk98
July 2, 20214 yr Author Thank you All for contributing to this thread! PS: properly saved and archived )) Edited July 2, 20214 yr by Dirk98
July 2, 20214 yr Moderator 4 minutes ago, Dirk98 said: No by any means Ray. This is about free choice and variety in the first hand init? Dirk, I hope you realise I was jesting. 😉 Ray (Cheshire, England). System: P3D v5.3HF2, Intel i9-13900K, MSI 4090 GAMING X TRIO 24G, Crucial T700 4Tb M.2 SSD, Asus ROG Maximus Z790 Hero, 32Gb Corsair Vengeance DDR5 6000Mhz RAM, Win 11 Pro 64-bit, BenQ PD3200U 32” UHD monitor, Fulcrum One yoke, Fulcrum Throttle Quadrant. Cheadle Hulme Weather website.
July 2, 20214 yr Author Just now, Ray Proudfoot said: Dirk, I hope you realise I was jesting. 😉 C'mon Ray, I was just messing.. of course you were!
October 17, 20214 yr Thanks to all the batch file contributors with their ideas I will adjust mine to improve it... the problem I have with ActiveSky though is getting it to cleanly shut down... without it being seen as a forced shutdown. If I shut it down using my Batch file script then the next time I try and load it the ActiveSky startup window flags an error that the last session did not shut down properly. If I do this a few times in a day , I get locked out by ActiveSky until the next day..... This happens in P3D5 and when I use ActiveSky to feed weather to my EFB for FS2020 Thanks for your ideas.... snippet - All the other programs automatically shut down completely when I exit MSFS2020 or P3D5.... (the file waits until FSUIPC7 is not running anymore, executed when sim is shutdown) ... uses similar method for P352. Edited October 17, 20214 yr by aerostar
Archived
This topic is now archived and is closed to further replies.