Welcome, Guest. Please login or register.

Author Topic: VistaPro on expanded/RTG systems  (Read 2474 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Matt_HTopic starter

VistaPro on expanded/RTG systems
« on: October 12, 2015, 10:47:55 PM »
Having now spent the better part of the afternoon trying to get VistaPro to run on my system, I finally know why. The program throws up no errors, no errors, no shell output, nothing in SnoopDos. Nothing. The answer? My Workbench is set to an RTG/CGX screenmode. If I change it over to an Amiga native mode first, VistaPro starts right up, no problem. Not sure if this workaround was generally known previously, but I've spent years being unable to run VistaPro and finally decided to give it another try today. Success!

To make things a little easier, I put together a little script so that I don't need to go into the ScreenMode prefs utility every time I want to run the program. First, I saved a basic NTSC:High-Res Laced screenmode as a preset in my VistaPro directory (vistapro_screenmode.prefs).
Code: [Select]
ScreenMode vistapro_screenmode.prefs USE
Wait 5 ;you may need to adjust this higher depending on how quickly your WB resets
Stack 200000
VistaPro3.0
ScreenMode ENVARC:Sys/screenmode.prefs USE
Save the script in the VistaPro directory, slap an icon on it, set the default tool to IconX, and you're done.

The caveat is that by changing the screenmode, there needs to be a Workbench reset, so if you have any windows open that delay the reset, VistaPro will probably still fail to start. Could probably overcome this problem by replacing the Wait command with a looped command that checks the screenmode ID and breaks out of it when it returns a specific ID (i.e., matching the one in vistapro_screenmode.prefs). There's got to be a shell utility somewhere that does that.

Still, hopefully this saves some others some sanity, and if anyone knows a more elegant solution, please chime in!
« Last Edit: October 12, 2015, 10:55:09 PM by Matt_H »
 

Offline Matt_HTopic starter

Re: VistaPro on expanded/RTG systems
« Reply #1 on: October 12, 2015, 11:04:28 PM »
@ dschallock

Interesting idea. NewMode isn't normally part of my system, so I didn't try it initially. But a quick test just now resulted in a crash :\

EDIT: Actually, let me clarify. A quick test to force promote it to NTSC High-Res Laced caused a crash. A quick test to never promote it resulted in the same inaction as simply clicking on the program icon.
« Last Edit: October 12, 2015, 11:07:10 PM by Matt_H »
 

Offline Matt_HTopic starter

Re: VistaPro on expanded/RTG systems
« Reply #2 on: October 12, 2015, 11:33:41 PM »
@ paul1981

Unfortunately it's not a simple matter of what modes/monitors are available to the system. I've got NTSC, PAL, the Double modes, etc. all in Devs:Monitors, but VistaPro just chokes if the Workbench isn't actually set to one of those modes.
 

Offline Matt_HTopic starter

Re: VistaPro on expanded/RTG systems
« Reply #3 on: October 13, 2015, 12:08:35 AM »
Quote from: dschallock;797323
Oh I see.  It's checking what WB is set to and it wants to copy that. I am surprised forcing it via new mode to an appropriate screen mode didn't work,  but I guess it's just one of those oddities.


I think that's pretty close. It doesn't attempt an exact clone of the WB screenmode, but it seems to want to open the 400px (NTSC) or 512px (PAL) version of whatever base screenmode is currently active. Not a great programming practice, but the fact that it doesn't throw up an error message when it fails to do so is a really not great programming practice :). Still, it's from the pre-RTG era, so I understand the oversight. I'm surprised, though, because most pre-RTG programs will try to force open a specific mode, not an intuited variant of a mode.

But those mode promotion utilities are sneaky system hacks, so I know why they can cause unpredictable/unstable behavior.