Recent Posts

Pages: [1] 2 3 ... 10
General / Re: Attract only works in window mode.
« Last post by Bgoulette on Today at 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!
Scripting / Re: reset - reload layout
« Last post by keilmillerjr on Today at 07:14:59 PM »
I am very confused on your goal. Are you still looking to reset an animation? If you read the comments on the module. There is functions like restart(). This should help you.

Possibly share some code?
Scripting / Re: reset - reload layout
« Last post by spud1 on Today at 05:59:27 PM »
I'm also looking to adapt keilmillerjr's plugin so that I can call on it automatically either at time intervals or without pressing a key, rather than having to press the R key to invoke it.  Not quite sure how to do that and would be grateful for any help please. 

In the meantime, using  keilmillerjr's code, I just stripped out the framerate code leaving the reload layout code. 

I place "plugin.nut" in a sub-folder of "plugins" called "Reload", then enable it and set it to the R key under Controls.

Code: [Select]
// --------------------
// Load Modules
// --------------------

// --------------------
// Plugin User Options
// --------------------
class UserConfig </ help="A plugin that reloads layouts with a key press." /> {
</ label="Reload Layout Key",
help="The key that triggers the layout to reload. Use Custom 2.  Remember to set the key in Controls.  Set the key to R",
options="Custom1, Custom2, Custom3, Custom4, Custom5, Custom6",
order=1 />

// --------------------
// Reload
// --------------------
class Reload {
config = null;

reloadKey = null;

constructor() {
// Config
config = fe.get_config();

// Reload Layout
reloadKey = config["reloadKey"].tolower();
fe.add_signal_handler(this, "reload");


// Reload Layout on Key Press - R key
function reload(str) {
if (str == reloadKey) fe.signal("reload");
return false;
fe.plugin["Reload"] <- Reload();
General / Re: Attract only works in window mode.
« Last post by popoklo on Today at 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.
General / Re: Intro Video Looping Looping Looping Looping Looping
« Last post by gusgorman on Today at 10:08:09 AM »
Hi keilmillerjr,
   Thanks so much for helping with this.

Yes, the intro.nut file matches your link. Just to be safe (in case I missed some small detail when comparing the two files), I copy and pasted your source into my intro.nut file. But unfortunately it didn't change anything; the video continues to loop repeatedly.

But thank you for helping regardless.
General / Re: CPU Usage 100%!! PC User
« Last post by UnknownFigure on Today at 08:09:33 AM »
Understood. We'll have to wait and see.
General / Play sound on wake up
« Last post by Dddienst on Today at 06:43:11 AM »
 I don’t know if this is a pi thing or even an attract mode thing but in the tab menu under screen saver you can specify a command or script to run when the screen turns back on. I put a Python script in there that issues two system.os commands. The first turns on the display and the second plays an mp3 file. It turns on the display but it does not play the mp3 file. However, if I run the script from commandline it does play The mp3 file.

 Does anyone know how to get the mp3 file to play when the attract mode comes back from screen blanking?

system.os (‘mpg123 pathtosound’)

General / Re: CPU Usage 100%!! PC User
« Last post by mgerety on Today at 06:34:40 AM »
SWEET.   I might grab the source and compile this myself if this doesn't get in a new build in the next day or so.  This issue had originally turned me off to Attract Mode, the crazy high CPU usage.   I've decided to come back because of the community and some themes designed for 240p.  If the CPU usage is under control, I'm all in.
General / Re: CPU Usage 100%!! PC User
« Last post by Oomek on Today at 04:37:48 AM »
What you see in the link is a pull request with my commit that fixes the Attract Mode high CPU usage. You don't need to do anything but just wait for the next AM iteration of course if Andrew approves, merges and recompiles AM with my fix in it.
Pages: [1] 2 3 ... 10