If neither of those of work for you, you can donate any amount by clicking here. |

dmauro
Basic Member-
Posts
64 -
Joined
-
Last visited
Everything posted by dmauro
-
I am experiencing a bug in which, if I tell GameEx_Vertical to boot in the 321x240 resolution, it does some weird rolling and bending across the sreen. If I set the desktop to 321x240 and boot into GameEx_Vertical without specifying to change resolution, it works fine. The problem is that when coming back from playing a rom, GameEx_Vertical goes back to 640x480 (my standard desktop resolution before using AHK to change it to 321x240 in the script). I probably should mention this GameLauncher mode bug to Tom, but it seems like that mode is just really buggy in general and I wouldn't count on it being fixed anytime soon, so I'd like to come up with a workaround. Unfortunately, AHK can't simply patrol to make sure the res doesn't change, because it will and should be changing when playing roms. It just needs to come back to 321x240 when it comes back to GameEx_Vertical.
-
Here's the final code: #SingleInstance Force JoyNumber:= "1" GameEx:= "C:\Program Files\GameEx\GameEx.exe" GameExVertical:= "C:\Program Files\GameEx_Vertical\GameEx.exe" StartTime := A_Tickcount Loop { GetKeyState, State, %JoyNumber%Joy9 If State = D { ChangeDisplaySettings( (ClrDep:=32) , (Wid:=321) , (Hei:=240) , (Hz:=60) ) Run, %GameExVertical% ExitApp } GetKeyState, State, %JoyNumber%Joy2 If State = D { GetKeyState, State, %JoyNumber%Joy3 If State = D { GetKeyState, State, %JoyNumber%Joy6 If State = D { ChangeDisplaySettings( (ClrDep:=32) , (Wid:=640) , (Hei:=480) , (Hz:=60) ) ExitApp } } } If (A_Tickcount - StartTime) > 100 Break } ChangeDisplaySettings( (ClrDep:=32) , (Wid:=640) , (Hei:=480) , (Hz:=60) ) Run, %GameEx% ExitApp ChangeDisplaySettings( cD, sW, sH, rR ) { VarSetCapacity(dM,156,0), NumPut(156,2,&dM,36) DllCall( "EnumDisplaySettings", UInt,0, UInt,-1, UInt,&dM ), NumPut(0x5c0000,dM,40) NumPut(cD,dM,104), NumPut(sW,dM,108), NumPut(sH,dM,112), NumPut(rR,dM,120) Return DllCall( "ChangeDisplaySettings", UInt,&dM, UInt,0 ) } But it's not doing the trick, because that changes the resolution, but it doesn't change the Windows resolution. What I mean is that, for example, it changes to 321x240, boots into GameEx at that res. If I then go into a game and exit the game to go back to GameEx, the res is back to 640x480. Gah, I hate this GameLauncher mode.
-
That ";5 seconds" is causing an error, but it sort of works when I take that out. The problem is that it's not registering the button press. I've checked in the control panel and that is definitely the name of the joystick, and I'm hitting button 9 during the pause, but it still just brings ups the regular GameEx (it's actually bringing up the GameEx folder because we forgot to put \GameEx.exe in the run line). Nevermind, I got it figured out. AHK reads it as "1Joy" I just had to look at a joystick to mouse script I had downloaded.
-
So here's what I want to do based on your code: #SingleInstance Force JoyName:= "JC-PS102U" GameEx:= "C:\Program Files\GameEx" GameExVertical:= "C:\Program Files\GameEx_Vertical" ChangeDisplaySettings( cD, sW, sH, rR ) { VarSetCapacity(dM,156,0), NumPut(156,2,&dM,36) DllCall( "EnumDisplaySettings", UInt,0, UInt,-1, UInt,&dM ), NumPut(0x5c0000,dM,40) NumPut(cD,dM,104), NumPut(sW,dM,108), NumPut(sH,dM,112), NumPut(rR,dM,120) Return DllCall( "ChangeDisplaySettings", UInt,&dM, UInt,0 ) } GetKeyState, State, %JoyName%9 If State = D { ChangeDisplaySettings( (ClrDep:=32) , (Wid:=321) , (Hei:=240) , (Hz:=60) ) Run, %GameExVertical% ExitApp } GetKeyState, State, %JoyName%2 If State = D { GetKeyState, State, %JoyName%3 If State = D { GetKeyState, State, %JoyName%6 If State = D { ChangeDisplaySettings( (ClrDep:=32) , (Wid:=640) , (Hei:=480) , (Hz:=60) ) ExitApp } } } ChangeDisplaySettings( (ClrDep:=32) , (Wid:=640) , (Hei:=480) , (Hz:=60) ) Run, %GameEx% ExitApp So I've altered your code to do what I want. Basically I don't want any notification, just one single check to see which buttons are being pressed as soon as it executes, and then it launches the proper program based on that. And if going into Windows or standard GameEx install, it should go 640x480 in case the resolution was set to 321x240 (if the computer was last booted up in Vertical mode). Does this all look right? Thank for all the help!
-
I found this: http://www.autohotkey.com/forum/topic8355....ion&start=0 But it doesn't make much sense to me and seems much more advanced than it needs to be. I would be supplying it with the rez, refresh rate, and color depth to switch to. and found this too ChangeDisplaySettings( (ClrDep:=32) , (Wid:=1280) , (Hei:=1024) , (Hz:=60) ) ChangeDisplaySettings( cD, sW, sH, rR ) { VarSetCapacity(dM,156,0), NumPut(156,2,&dM,36) DllCall( "EnumDisplaySettings", UInt,0, UInt,-1, UInt,&dM ), NumPut(0x5c0000,dM,40) NumPut(cD,dM,104), NumPut(sW,dM,108), NumPut(sH,dM,112), NumPut(rR,dM,120) Return DllCall( "ChangeDisplaySettings", UInt,&dM, UInt,0 ) } Much smaller, but still doesn't make sense to me being unfamiliar with AHK.
-
In this section: GetKeyState, State, %JoyName%9 If State = D { GameEx := "C:\Program Files\GameEx_Vertical" Break } What would I insert to change the resolution to 321x240 before launching GameEx_Vertical? Thank you!
-
I can't test just yet, but I'm almost certain that my problem is that I need to add "unevenstretch 0" to my mame.ini. I have no idea why this wasn't in my mame.ini by default (or why this would be on by default :/ ), but this is what allows for integer scaling, which is what I need.
-
Another good example is that I get one single line that is line doubled (right down the center of the screen) in games that run at 320x240 because Soft15KHz uses the 321x240 resolution.
-
I tried playing with that and it didn't seem to do anything for me.
-
Okay, so this properly explains the problem I'm having: http://www.mametesters.org/mantis/view.php?id=01803 It's line doubling, not tearing. When I filter and prescale, I don't get that line doubling, but of course it looks like shit. How can I display it without line doubling or streching or filtering (so that it just doesn't take up the entire resolution or fills the rest with blank space)?
-
Okay, this is probably going to get a quick answer, but I can't seem to figure it out. I'm getting tearing in games that scroll horizontally, and there are about 5 or so lines across the screen that it's tearing on. I've tried vsync and triplebuffering and any other video options in the mame.ini file, but I can't get this to go away. I'm running the games on an arcade monitor at their natural resolutions. Some specific examples where I can see it very clearly are Progear and Metal Slug. Any ideas?
-
Oh yeah I tried it again and got it working. Sorry about that, I must have put the inputs in wrong the first time. Thank you. Still looking forward to that guide, but I think I'm all set for now.
-
The name of the joystick is JC-PS102U. Also, I just figured out that when I launch into this vertical version of GameEx, since I'm using GameLauncher mode (which is known to have some quirks), it rolls across my screen when I try 320x240 res even though I know that resolution works fine on this monitor, so it works fine if I tell it to just use the desktop resolution and first change the desktop res to 321x240. So can you add that when booting into GameEx_Vertical it should first change the desktop resolution to 321x240, otherwise it should be 640x480. Thanks so much!
-
I've looked through the mame options, but I can't find where I set the button to exit the program. The best I could find was UI cancel.
-
Is there anyway to specify that the enter key should be sent specifically for this game without creating its own emulator group?
-
I will be using a specific joystick. I can always change the name in the final code because I can't recall it right now, but let's say it's something like PSJOY_1.
-
Yeah I'll really appreciate that when it goes up because right now it's all very confusing how this advanced config stuff works. And then there's the fact that MAME is set up differently from other emulators to make things more confusing. :0
-
Yes, that's the section I'm in.
-
I know I need to make or edit an Advanced Config File, but how do I then use it. I looked at the [MAPPING OFF] Exit (Esc).ini file and changed changed this section: JoymappingEnabled=TRUE Left=TRUE up=TRUE Right= Down= Button1=TRUE Button2=TRUE Button3=TRUE Button4=TRUE Button5= Button6= Button7= Button8= Button9= Button10= Button11= Button12= But that doesn't do anything. How do I actually utilize these advanced config files?
-
Thanks! I don't need anything at all advanced. What I need is something that by default shells into C:\Program Files\GameEx, but if joystick button 9 is held down when it's doing that, it instead boots into C:\Program Files\GameEx_Vertical, and if joystick buttons 3, 2, and 6 are held down, it doesn't shell into anything and windows boots normally. Thanks for the help, I really appreciate it!
-
I guess I'm going to have to install AHK and play around with that because this seems to be the solution for me: http://www.gameex.info/forums/index.php?showtopic=6856
-
Everytime Trouble Witches starts up, a little windows comes up asking what settings I want. They're all fine, but I just need to hit the enter key. Since I'm running this in a cab, what's the best way to script the game to start, then the Enter key is triggered, and then it continues as normal? Thanks!
-
Any luck with a script to relaunch a different version of GameEx? Additionally, it would be really cool if there were some way to hold down a certain joystick button during boot up to get the alternate GameEx installation. Anyone have any ideas?
-
That would be perfect if you get a hold of that script. Now the only trick is finding a way to launch that script with a key combo on the joystick+buttons because if I feed the image over to the low res monitor and it's in 640x480, I won't be able to see it (so I'll need to be able to launch by just hitting a combo rather than navigating to it in the menu). I tried to add a custom 640x480 interlace resolution and it didn't work. I suppose 320x240 for the vertical one would be better anyways. The flicker on Windows in interlaced mode is really bad.
-
So is there a way to do this with a bat file instead of an AHK?