Recent Posts

Pages: 1 [2] 3 4 ... 10
11
General / Re: How to set up a new "Trackball Games" category/screen?
« Last post by keilmillerjr on Yesterday at 07:26:51 PM »
rule                 Control contains joystick

I assume you could substitute „joystick“ for „trackball“. If it does not work, use mame to generate xml list and check what the spelling is on that xml tag.
12
General / How to set up a new "Trackball Games" category/screen?
« Last post by nullvalue on Yesterday at 07:22:31 PM »
I'm very new to attract mode. I started with an image which was already set up very well. A bunch of categories are already configured for each emulator, then there are a number of categories which pull a list with ROMs from different emulators such as "Fighting Games" and "Zelda Games". I would like to add a new category for "Trackball Games" and select which ROMs are in that list - but I'm not really sure where to start. I'm running on a Raspberry Pi. Any guides for doing something like this?
13
General / Re: Daily Windows Build available.
« Last post by dabone on Yesterday at 06:49:20 PM »
Build is now fixed to include curl.


Link is the same as always.


Later,
dabone
14
General / Re: Raspberry-Pi-MAME-Setup-Guide
« Last post by AdmiralSnackbar on Yesterday at 03:18:26 PM »
This is great, thank you! I have a good part of my MAME set up but there are things listed in that tutorial I didn't know I could do or will be doing. I'll let ya know if I think of anything else for it.
15
General / Re: Screensaver showing black screen
« Last post by AdmiralSnackbar on Yesterday at 02:50:47 PM »
Yeah I assumed there was a safety around those variables. I can't assume that sort of thing with a system I'm not familiar with. That was completely my bad but a good learning experience. Perhaps I can go into the code and add those safeties to keep others from running into the same issue. I need to learn more of the actual code behind it.
16
Scripting / Know the width of a listbox item when using magic tokens?
« Last post by Bgoulette on Yesterday at 02:19:38 PM »
Hey all,

I'm using magic tokens in the entries for a listbox. Mostly just so I can force them to uppercase. But it got me thinking...

I don't want to have to use the smallest common denominator when choosing char_size based on the longest title in my list. Initially, I added a block in my function that chopped off anything over x characters and appended an ellipsis character. It works, but because proportional fonts means, say, a string 50 Ms would be wider than a string of 50 Is (for example), that approach left me with a weird case where an entry with plenty of space left over might get the ellipsis treatment. Clear as mud? Sorry! I'll attach a picture to show what I'm talking about.

I know there's a "msg_width" property for fe.Text instances, but a) is it accessible from fe.Listbox instances, and b) is it accurate? I searched and found another post where the indication was that it wasn't quite up to snuff. If those properties are barking up the wrong tree, does anyone have any other suggestions on how to accurately gauge the width of a non-word-wrapped list item? Thanks!
17
Scripting / Re: shuffle-module: First official release
« Last post by jedione on Yesterday at 09:54:29 AM »
word..that looks so clean....bro
18
Scripting / Re: shuffle-module: First official release
« Last post by rand0m on Yesterday at 06:18:16 AM »
Taken from the readme is an example with three text objects. They are passed as an array to the class constructor. The index of these objects is handled by the class. You place or style the objects however.

You could create 12 text objects with Title as a magic string. Position them in a visually stacked manner. Extend the class select function to make object bold. Now you can see which object is selected. It should operate similar to attract’s built in listbox object, but allows for much more freedom.

Best I can do on iPhone until Saturday. Feel free to hit me up on discord if you need to.

Thanks a lot Keil, I finally got both the text and images working with the new version (1.0) of shuffle :D. I will now try my luck shuffle on larger lists following your suggestions.

I think fast browsing is working in shuffle, though my list (of 5 items) seems to be too short for the fast browsing option of AM to be truly noticeable as it reaches the end too fast and (like AM) stops at the last item before looping. I've uploaded a small video of my current shuffle setup (displaymenu only) and you can check the fast browsing part near the end (around 08 secs).

Video Link: https://youtu.be/rb4ttP4QKq4

PS: A shout out to @jedione too, it was his theme which helped a lot in figuring out the image part!
19
General / Re: Having trouble running PC games from attract mode
« Last post by KTURNER on Yesterday at 05:54:29 AM »
What type of file do you have AM looking for?
20
Scripting / Exclude plugin from operating for a particular Display or Layout
« Last post by spud1 on Yesterday at 05:20:58 AM »
I've got a Plugin that works for every Layout/Display.  However, I'd like it to work with every Layout/Display EXCEPT one.  Is it possible to do this with an if/else statement or some other way please?

Code: [Select]
// This plugin adds a newly "favourited" game to the "Favourites.txt" romlist
fe.add_transition_callback( "favourites" );
function favourites( ttype, var, ttime )
{
switch ( ttype )
{
case Transition.ChangedTag:
fe.plugin_command( "/usr/bin/printf5.sh", "\"" + fe.game_info(Info.Name) + "\"" );
fe.plugin_command( "/usr/bin/printf6.sh", "\"" + fe.game_info(Info.Name) + ";" + fe.game_info(Info.Title) + ";" + fe.game_info(Info.Emulator) + ";" + fe.game_info(Info.CloneOf) + ";" + fe.game_info(Info.Year) + ";" + fe.game_info(Info.Manufacturer) + ";" + fe.game_info(Info.Category) + ";" + fe.game_info(Info.Players) + ";" + fe.game_info(Info.Rotation) + ";" + fe.game_info(Info.Control) + ";" + fe.game_info(Info.Status) + ";" + fe.game_info(Info.DisplayCount) + ";" + fe.game_info(Info.DisplayType) + ";" + fe.game_info(Info.AltRomname) + ";" + fe.game_info(Info.AltTitle) + ";" + fe.game_info(Info.Extra) + ";" + fe.game_info(Info.Buttons) + "\"" );
system( "sudo /bin/bash /bin/addfavourite.sh" );
}
return false;
}
fe.add_transition_callback( "favourites" )

Thanks.
Pages: 1 [2] 3 4 ... 10