Attract-Mode Support Forum

Attract-Mode Support => General => Topic started by: MuZila on November 28, 2018, 01:45:11 AM

Title: Attract only works in window mode.
Post by: MuZila on November 28, 2018, 01:45:11 AM
Hello. I have the following setup.
Win 10
AM V2.5.1
Mame 0.203

Its taken me a long time to get everything working.
I can run/play games in Mame. I can play games from AM in windows mode.
But as soon as I change back to fillscreen or fullscreen no games play. Even in windows (No boarder) wont work.
I just get a black screen and have to Esc out to the menu.

I have tried using the Attack.exe as well as the console mode.

Any help appreciated.
Title: Re: Attract only works in window mode.
Post by: hermine.potter on November 28, 2018, 10:08:49 PM
@ MuZila
"no games play" => do you hear the game sound playing, but no pictures is shown?

could you test mame version 0.204 (without setting anything; just copy a game in rom-folder of mame and setup it to AM).
Title: Re: Attract only works in window mode.
Post by: MuZila on November 28, 2018, 11:09:31 PM
My roms play fine in Mame. They work fine in AM in windows mode setting only. They wont work in any of the other screen settings. Just get black screen. no sound, Nothing. ESC key gets me back to my layout. I am using the pacman layout that comes with AM.

I not sure what changing the screen setting has to do with running the roms (games) unless it is a 64bit problem. Strange...

Me bad. Just realized there is a new version. Will d/l and try it out now.....

No different. It must be a setting I have wrong somewhere....
Title: Re: Attract only works in window mode.
Post by: hermine.potter on November 29, 2018, 02:26:27 AM
@ MuZila
same problem here (http://forum.attractmode.org/index.php?topic=2598.0)
I think AM-window is keeping in front, your emulator is playing in background.

on my test-system I've got the same problems you describe:
Windows 10 x64 LTSB 1607
AM 2.5.1 (x86; normal and XP-Version)
zsnes emulator + game (I'm hearing the gamesound; no picture; can't switch to emulator with ALT + TAB)

at the moment => i do not know / no solution from me
try version 2.4.0 (https://github.com/mickelson/attract/releases/download/v2.4.0/attract-v2.4.0-win32.zip) => report us
Title: Re: Attract only works in window mode.
Post by: raygun on November 30, 2018, 09:23:00 PM
Hi MuZila,

Would you mind testing the version of Attract-Mode linked here and reporting whether it addresses your issue?:  https://forum.attractmode.org/index.php?topic=2598.msg17907#msg17907 (https://forum.attractmode.org/index.php?topic=2598.msg17907#msg17907)

Try out the "Fill screen" window mode, that is the one that should (hopefully) work now
Title: Re: Attract only works in window mode.
Post by: MuZila on December 01, 2018, 03:29:03 PM
I am able to get the default (Fillscreen) working now. The others still dont work but I not to bothered about them.


Thank you for your help!

Title: Re: Attract only works in window mode.
Post by: MuZila on December 01, 2018, 11:51:49 PM
Dam it... now nothing works....  >:( >:( >:( >:( >:(

Went good for about 3 hours of game playing. Shutdown AM, came back later now I cant get any games to work again.

I going to do a full reinstall and start from scratch.

I shall try the 32 bit options...


Title: Re: Attract only works in window mode.
Post by: Steven Campoli on December 02, 2018, 12:09:51 PM
also happens for me
when i launch am in full screen or fill or window no border..theirs a black screen and i have to exit the emulator....
Title: Re: Attract only works in window mode.
Post by: Steven Campoli on December 03, 2018, 07:44:45 PM
Dam it... now nothing works....  >:( >:( >:( >:( >:(

Went good for about 3 hours of game playing. Shutdown AM, came back later now I cant get any games to work again.

I going to do a full reinstall and start from scratch.

I shall try the 32 bit options...

Did u get it working? I still haven’t.
Title: Re: Attract only works in window mode.
Post by: MuZila on December 03, 2018, 11:45:48 PM
Not yet. I think I may have a mame issue. I select a game press enter/select play button and it says Initiating then reverts back to AM game menu.

Did a console start with debug logging turned on...

heres the logfile. If anyone sees a problem let me know. :-)

Title: Re: Attract only works in window mode.
Post by: Steven Campoli on December 04, 2018, 05:59:42 AM
well like i said i cant run games in fillscreen, fullscreen or window (border)
i get just a black screen.

i tried 32 bit exe but same thing. the windows doesnt change to the rom their for just a black screen.
this is with all emulators....
Title: Re: Attract only works in window mode.
Post by: raygun on December 04, 2018, 07:47:11 AM
Not yet. I think I may have a mame issue. I select a game press enter/select play button and it says Initiating then reverts back to AM game menu.

Did a console start with debug logging turned on...

heres the logfile. If anyone sees a problem let me know. :-)

in config->emulators->mame try setting your working directory to ‘C:\Games\Mame’ (its currently using your attract mode directory). I’m guessing mame isn’t finding your rom files when launching from AM.
Title: Re: Attract only works in window mode.
Post by: MuZila on December 04, 2018, 04:00:42 PM
That worked!! Rookie mistake i guess.  ;D

Ok so now it is all working. I can get the default Fillscreen and Window modes to work.

I am using win 10 64bit super stripped down version.
AM 2.5.2 (its actually 2.5.1-1)
Mame 0.204

I am happy with the setup. Going to copy all the config files to a backup drive in case it goes wonky.

Cheers for all the ideas and help.

Title: Re: Attract only works in window mode.
Post by: Steven Campoli on December 04, 2018, 04:04:01 PM
That worked!! Rookie mistake i guess.  ;D

Ok so now it is all working. I can get the default Fillscreen and Window modes to work.

I am using win 10 64bit super stripped down version.
AM 2.5.2 (its actually 2.5.1-1)
Mame 0.204

I am happy with the setup. Going to copy all the config files to a backup drive in case it goes wonky.

Cheers for all the ideas and help.

Is that you’re actual working directory?
My working directory of the emulator Is where they actually are and I get a black screen if not in windowed mode and this is for all emulators not just mame
Title: Re: Attract only works in window mode.
Post by: Steven Campoli on December 04, 2018, 04:19:45 PM
I’m jealous what am I doing wrong?
My working directory Is where the emulator is and windowed mode is the only one working...
Title: Re: Attract only works in window mode.
Post by: Steven Campoli on December 04, 2018, 05:17:54 PM
Just to make it clear
In windowed mode everything works fine!
In fillscreen or any other mode but windowed it’s a black screen when loading a rom.

On the latest nightly build
Title: Re: Attract only works in window mode.
Post by: raygun on December 04, 2018, 07:59:21 PM
On the latest nightly build

please try one of the builds linked here and report back whether it fixes your problem:  https://forum.attractmode.org/index.php?topic=2598.msg17907#msg17907 (https://forum.attractmode.org/index.php?topic=2598.msg17907#msg17907)
Title: Re: Attract only works in window mode.
Post by: Steven Campoli on December 04, 2018, 09:57:48 PM
On the latest nightly build

please try one of the builds linked here and report back whether it fixes your problem:  https://forum.attractmode.org/index.php?topic=2598.msg17907#msg17907 (https://forum.attractmode.org/index.php?topic=2598.msg17907#msg17907)

ok so after using this, fillscreen and window work but the other options like full screen mode and full screen borderless and window (border) still have a black screen but at least fillscreen works...thanks again...still not all options work...is this happening for you guys to?
Title: Re: Attract only works in window mode.
Post by: MuZila on December 07, 2018, 03:38:02 PM
Yea I just get Fillscreen and window mode working. I happy with that and so far after a few days of testing all is good. I havnt play with any other layouts yet.

Title: Re: Attract only works in window mode.
Post by: Oomek on December 08, 2018, 04:02:02 AM
Since a lot of people are still getting a black screen or backbuffer flashes maybe it's time to reconsider implementing that change I did a while back. I created another window (just black with extended size to prevent optimized borderless mode) that sits behind the Window with layout. When you launch the emulator instead of shuffling order of windows AM can just hide the main window, and show it back when the emulator exits. ( this may not be possible with multimonitor mode though)
Title: Re: Attract only works in window mode.
Post by: Oomek on December 10, 2018, 10:35:23 AM
Would someone please experiencing the black screen on exit provide the following:

mame.ini
gpu brand and model
Windows 10 version and build number.
(Press Win+R and type winver and press enter)

When we are able to reproduce the problem maybe we could also find a solution for a black screen in fullscreen mode.
Title: Re: Attract only works in window mode.
Post by: MuZila on December 11, 2018, 06:35:14 PM
I have sent my details but as I am using my laptop it might not be enough info. I will set up on one of my other systems and see if it happens on one of those as well.....

Title: Re: Attract only works in window mode.
Post by: MuZila on December 13, 2018, 01:20:03 AM
I had a play with the layouts today. Only trouble I had was with the 2 Grid layouts. But that could be because I am running it on my laptop atm...

I am very impressed with Attract Mode so far.
My next mission is to start adding other emulators to it... I.E. Genisis/Megadrive PSP and playstation 1,2,&3

Title: Re: Attract only works in window mode.
Post by: Oomek on December 13, 2018, 02:30:46 AM
Do you mean that the black screen on exiting emulator only appears on Grid and Filter Grid layouts?
Title: Re: Attract only works in window mode.
Post by: MuZila on December 16, 2018, 07:03:33 PM
No the grid layouts seemed to overwhelm my laptop and it just lagged so much the graphics shutdown.

I never got to test selecting a game from them so I have no idea if the layouts worked ok or just blacked out like the old problem.

As for the old problem I have not had any issues since the V 2.5.1-1.
Title: Re: Attract only works in window mode.
Post by: popoklo on December 18, 2018, 05:14:13 PM
Thank you Raygun for fixes. Tested .5.1-1

I also had this very annyoing problem since ever.
- Now with Fillscreen it is working. Mame gets focus and shows up.
- Fullscreen keeps Blackscreen problem

Oomek my PC:
Integrated Graphics with HD Radeon 4290.
Tested Windows 7 and Windows 10 with this Graphic. For AM its the same Problem.

I suggest that people with Integrated Graphics could suffer from that problem!
My second PC is with dedicated modern GPU. No problems there.
Title: Re: Attract only works in window mode.
Post by: Bgoulette on December 18, 2018, 09:43:50 PM
Hi all, rather than start a new topic, I wanted to add my two cents, since I think my issue might be related.

If I run AM in windowed mode, things are fine. If I run it set to Fill screen, everything starts out fine, but after I launch a game and attempt to exit back to AM, nothing happens. I have to Alt-Tab to get out of things, and then the process repeats.

Any ideas? I'm running AM 2.5.1 on a Windows 10 machine (ver 1803, OS build 17134471) with a GTX 1050 Ti card. Thanks for your time!
Title: Re: Attract only works in window mode.
Post by: Oomek on December 20, 2018, 01:46:39 PM
Good news,  I tested AM on all the PCs and laptops I've had access to and finally I was able to reproduce the black screen on my mom's laptop. Poor her, she is not going to see it until I figure out why it's happening and how to fix it ;)
Title: Re: Attract only works in window mode.
Post by: popoklo on December 23, 2018, 04:09:43 AM
Nice to here OOmek.
Did you also get not only Fill-Screen, but FULL-Screen working?
It is nice that a Fillscreenfix now exists but for my Arcade lowend PC it is useless because the performance is poor in Fillscreen. Only fullscreen has smooth performance with surface animation i.e.
Title: Re: Attract only works in window mode.
Post by: Oomek on December 24, 2018, 07:50:00 PM
Would you please test this build and check if the black screen in Fullscreen mode has been resolved

https://1drv.ms/u/s!Ag7uFeM0f_fzhYI-RuXIJbha7ar6lQ
Title: Re: Attract only works in window mode.
Post by: dark1973 on December 26, 2018, 05:03:06 AM
I'm trying it with windows 8.1 Pro. for now it seems to work... (intel core Duo E8500 at 3.8Ghz,4GB Ram, NVIDIA Geforce GTX550Ti) Thanks
can you also send the 32-bit version? bye
Title: Re: Attract only works in window mode.
Post by: Oomek on December 26, 2018, 08:36:55 AM
Sure. I've updated the file. Just redownload it.
Title: Re: Attract only works in window mode.
Post by: dark1973 on December 26, 2018, 08:58:03 AM
thank you very much
Title: Re: Attract only works in window mode.
Post by: Oomek on December 27, 2018, 03:42:51 AM
So, is the issue resolved? We need more testers please.
Title: Re: Attract only works in window mode.
Post by: MuZila on December 27, 2018, 03:12:30 PM
I have just downloaded it. Will try it out this arvo and get back with results....

Thank you for the hard work Oomek.

Title: Re: Attract only works in window mode.
Post by: MuZila on December 27, 2018, 05:08:48 PM
Tested it.

Win 10
Integrated Graphics on a laptop.

X64 Attract:             Window (No Boarder) not working. All the rest work fine.
x64 Attract-console: Window (No Boarder) not working. All the rest work fine.

X86 Attract:             Window (No Boarder) not working. All the rest work fine.
x86 Attract-console: Window (No Boarder) not working. All the rest work fine.



Title: Re: Attract only works in window mode.
Post by: Oomek on December 27, 2018, 05:20:07 PM
So the fullscreen works, but now window (no border) well that's a bit unexpected. Can you describe the details please? Is the sound playing?
Title: Re: Attract only works in window mode.
Post by: Oomek on December 27, 2018, 05:22:40 PM
Also can you check your window.am file and see if the size matches the display resolution. If it does try changing it to smaller and try again
Title: Re: Attract only works in window mode.
Post by: Oomek on December 27, 2018, 05:49:29 PM
If this is what I think it is then it's easy to fix.
There are 2 issues that contribute to this problem with Window (no border) showing black screen:
1. When the values in window.am are position 0,0 and size (your display resolution) windows treats it as exclusive fullscreen, but AM still thinks it's windowed.
2. There is a bug that causes the window.am values being overridden by previously selected window mode (fullscreen and fillscreen) this should change only when you adjust in Window mode using a mouse.

I can push this final commit, after you confirm it works when you:
1. Set window mode to No Border.
2. Exit AM
3. Adjust size in window.am to be less than your display resolution
4. Relaunch AM and try playing game
Title: Re: Attract only works in window mode.
Post by: MuZila on December 28, 2018, 10:09:37 PM
Worked!

Window mode (no border) actually set the screen larger than my display but when I edited the window.am file to a smaller screen size it worked as it is meant to.

My screen size is set at 1280 x 768

Window mode (no border) sets it to 1282 x 770.
and the position changes from (position -0,-0) to (position -1,-1) in Window mode (no border)

Hope that all helps...

Title: Re: Attract only works in window mode.
Post by: MuZila on December 30, 2018, 06:06:44 PM
Yup I had a small miss configuration. After fixing it, everything works great now.

I can show my config files if that helps you out...

Title: Re: Attract only works in window mode.
Post by: Oomek on December 30, 2018, 06:09:21 PM
I did all the mentioned fixes. Just waiting for Andrew to review my commits.
Title: Re: Attract only works in window mode.
Post by: dark1973 on December 31, 2018, 07:40:04 AM
Tried a new emulator, PinballFx2. After several tests with rocketlauncher and bezel, with the old version black screen, with the new version all is ok
Title: Re: Attract only works in window mode.
Post by: Oomek on December 31, 2018, 09:00:58 AM
Thank you for confirming.
Title: Re: Attract only works in window mode.
Post by: popoklo on January 01, 2019, 12:38:07 PM
My god! My problems are all gone with new commit of you oomek. Thank you so much.

No hang or blackscreen. Finally in Fullscreen Mode, smooth animations work. Was very sloppy in windowed mode. Now i can use my Themes with Attractmode. Without that i didn't use AM at all.

- tested x64
- Win10
- integrated gfx.

Title: Re: Attract only works in window mode.
Post by: Oomek on January 01, 2019, 01:11:59 PM
You're welcome :)
Title: Re: Attract only works in window mode.
Post by: MoB73 on January 05, 2019, 07:01:18 AM
Would you please test this build and check if the black screen in Fullscreen mode has been resolved

https://1drv.ms/u/s!Ag7uFeM0f_fzhYI-RuXIJbha7ar6lQ

I had this very same problem with AM versions later than 2.40. Now with attract-v2.5.1-win64-25.12.2018 all window modes works just like they used to with version 2.40. Thanks!
Title: Re: Attract only works in window mode.
Post by: rand0m on January 05, 2019, 10:58:40 AM
@Oomek. I had no problems with fixed 2.5.1 version. Checked this version briefly for compatibility's sake and it runs perfectly without a hitch.
Title: Re: Attract only works in window mode.
Post by: Oomek on January 05, 2019, 11:50:17 AM
Great. Thanks for your reports. I know my approach is a bit unconventional, but it's doing its job, so now it's all in Andrew's hands.