Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - wrybread

Pages: [1] 2
1
Themes / Possible to format text in a layout? Trying to make "headers"
« on: April 12, 2021, 10:34:24 PM »
I'm trying to make section headers inside my layout's romlist. For example, in the following screenshot:



In that layout, the "Just the Classics" stays at the top of the screen, which is great. And the romlist scrolls, which is great. But I'd like to be able to have different sized entries in that romlist.

For example, maybe there would be a large item called "vertical games" in the romlist, that kind of thing. It would scroll with the other items in the romlist, but would be larger.

Is anything like that possible currently in the theme scripting?

Thanks for any help.

2
General / Issue when changing screen resolution
« on: March 30, 2021, 03:13:37 AM »
I have a game that changes the screen resolution, and when I exit the game AM is no longer fullscreen. In other words:

- I start Attract Mode in 1024x768 resolution

- I launch a game that changes the screen resolution to 1680x1050

- when AM exits the game (and the screen resolution is still 1680x1050) the AM window now only takes up a small part of the screen.

I think I remember seeing a setting for dealing with this, maybe redrawing the window after exiting a game? I can't remember though.

Does anyone happen to have an idea?

Thanks for any help.

3
Scripting / A plugin to choose and run a random ROM...
« on: November 02, 2020, 01:28:45 AM »
It's always driven me a bit nuts that the "random" button in Attract Mode doesn't actually run the ROM, it just chooses it. Maybe there should be a second "random" control to choose and then run it?

Anyway, in the meantime, I made a plugin to choose *and* run the ROM. Whoo hoo! Loving having it choose all these crappy old games for me, ha.

EDIT: attaching the updated version here, this should work on all platforms. The rest of the thread is about the old version, before rand0m helped fix it and made it cross platform.

To use, put this plugin in Attract Mode's plugin folder, then go to AM's Controls menu and assign whatever key you'd like to "custom2", which is what the plugin listens for. You can edit the plugin to change that.


4
Scripting / Possible to have two text sizes in rom list?
« on: October 28, 2020, 08:20:17 PM »
I'm trying to modify my layout.nut to have category headings in the ROM list.

For example:


Quote
*** Atari 2600 ***

Pitfall
Combat
Adventure


*** NES ***

Mario Brothers
Maniac Mansion

The ***text*** would be larger.

Is there some way to do that?

Maybe there's some way to process the romlist text, and I could look for special characters that would indicate a different text size?

5
General / Snapshots for Atari roms?
« on: October 14, 2020, 08:32:52 PM »
I don't imagine anyone has a bunch of good snapshots, or pics of the cartridges, for Atari 2600 roms?

Or know where to get them?

I'm also needing a list of the best Atari 2600 roms. I know that's very subjective, but my current Stella romlist is something like 1000 roms, and there's tons and tons of crap. Looking for something a little pared down.

I'm at my username @ gmail.com if anyone feels like sending them over...

6
General / Good emulator for SNES and AM?
« on: October 14, 2020, 03:32:21 PM »
There's a couple of SNES roms I'd like to add to my system, and I'm using ZSNES. That works on my other cabinet, which has a horizontal monitor. But this one has a vertical monitor...

I found the -v parameter, which sets the video mode. However it changes the screen resolution on my system in general, so when I exit the game my monitor resolution has changed.

I'm wondering if anyone knows a way around this?

Or is there some other SNES emulator people recommend?

7
Scripting / Possible to put an icon next to game name in rom list?
« on: September 24, 2020, 09:10:13 PM »
I made my layout show a little cocktail glass icon in the bottom right when the currently selected game supports cocktail mode (let me know if anyone is interested in that, email me at my username at gmail), but I think it would be nicer if it put that icon in the romlist next to each game that supports cocktail mode.

So I'm wondering: how do I put icons next to each game in the list?

Here's the part of my layout that deals with the romlist:

Code: [Select]
// this is the ROM list
local lb = fe.add_listbox( 0, 220, fe.layout.width, fe.layout.height-450);
lb.charsize = 40
lb.set_sel_rgb( 200, 200, 64 );
lb.sel_style = Style.Bold;
lb.selbg_alpha=0;
lb.rows = 15;

Attached is a screenshot of my layout, note the cocktail glass at bottom right.

Is there some way to put an icon next to each game name? I can work out the conditionals, just need help putting any static icon next to the text.

8
Scripting / Joystick button to choose and launch a random game?
« on: September 24, 2020, 03:32:14 PM »
I'm giving one of my cabinets some update love, and trying to set a button to choose and launch a random game.

When I last worked on this I saw that AM can choose a random game, but still requires the user to confirm the choice by pressing the "go" button.

Can anyone think of some clever way to map a button to choose and launch a game with a single press?

Ideally it would be a joystick button, since all my buttons use a joystick encoder.

I had a way to do this before using a Python script, and if all else fails I can use that, but it's a bit kludgey since it needs to close Attract Mode and then relaunch AM when the game ends.

9
Scripting / Possible to execute some command when an emulator closes?
« on: September 26, 2018, 08:04:32 PM »
I'm wondering if I can run some script when an emulator closes? In other words, if I start GameA from a Layout using EmulatorX, can a script run automatically when GameA exits?

I need to clean up a couple of extra windows that I'm running with my emulator, and trying to figure out a method.

10
I'd like to make a screensaver that cycles through games, as opposed to videos of games. And when a user presses a button, no need to exit the cycling, just stay in that game and let the user play it.

Would this be possible?

Any advice for a starting point?

Or maybe something already exists?

11
I have a multi monitor layout, that shows my romlist on both monitors. This lets me choose a ROM from either monitor. Everything works great.

However, when I run the KeyboardSearch plugin, the search dialog appears only on monitor 1. The results, however, properly appear on both monitors.

Looking at KeyboardSearch.nut, the dialog is initted with:

         _last_search = fe.overlay.edit_dialog(
            "Search for:",
            _last_search );

If I add a second dialog after that, they're executed sequentially, not simultaneously.

Maybe there's some way to clone that dialog box to monitor 2?

Or some way to simply move it to monitor 2? If so I could make two separate search plugins, one for when I'm using Monitor 1, and one for Monitor 2, with different triggers to launch each one.

Anyway, thanks for any help, and let me know if any of the above isn't clear.




12
Scripting / How to make a web server plugin?
« on: March 13, 2018, 07:43:28 PM »
I'd like to be able to send my arcade cabinet commands over the network. I was thinking the way to do that might be with a plugin?

Does anyone have any tips on that?

Open to using either Python or Squirrel.

On Linux if that matters.

13
I've been making progress in my video player "emulator" for Attract Mode, and it now plays videos on the arcade cabinet while sending a second stream to a projector. That took a bit of doing since the two monitors have different resolutions. Working great now though.

But unfortunately the Attract Mode "display" doesn't appear on the projector screen, which just turns black when I exit out of Attract Mode. And I can't see the arcade cabinet screen from where we typically watch movies.

So I was wondering if there was some way to use my wireless keyboard as a blind remote for Attract Mode? Pressing ESC exits out of the movie and returns to Attract Mode, but I can't see the Display. So I was wondering if I could somehow map keys from the wireless keyboard to play specific items in Attract Mode? For example, pressing the S key plays the entry on my Videos display that plays a random South Park?

Or maybe there's a way to achieve the same thing via a Squirrel or Python script? Or an AM plugin?

Or some other other clever way? I noticed the "custom" commands in the General Preferences, but don't know how to trigger them, or what they can do.

Anyway, any theories invited!

I'll try to post some pics of the setup tomorrow.


14
General / Showing Attract Mode Displays on multiple monitors?
« on: March 07, 2018, 01:32:37 AM »
I have two different monitors, each a different resolution. I'm wondering if it's possible to show a Display on both simultaneously?

I've enabled multi monitor support, but currently it simply blacks out the secondary monitor.

I see the "fe.monitors()" function in the layout docs, but it's not very clear how to use it:

https://github.com/mickelson/attract/blob/master/Layouts.md#monitors

Is there some way to make a second instance of the RomList on monitor 2? Or some other clever way to mirror the RomList Display?

15
General / How to rotate monitor automatically for cocktail cabinet?
« on: March 05, 2018, 03:27:22 PM »
I'm just finishing up a cocktail cabinet build, and can't figure out how to get games to rotate automatically for player 2 in MAME. Is there a way?

I see that some games have dip switches for cabinet type, but of course I'd love to set this globally.


Pages: [1] 2