Recent Posts

Pages: [1] 2 3 ... 10
1
General / Crash when switching from main menu and emulator
« Last post by carlhungus74 on Today at 07:30:12 AM »
Hello,
When I switch several times from the main menu (using cosmo-theme) and an emulator (sega megadrive) for example, but happens on several... it does not crash on others.
To reproduce it, I launch AM, the open the megadrive emulator, then 'esc' to go back to main menu, then 'megadrive' again ->crash.
perhaps a video or other resource problem ? is there a way to debug this with a log or something.
I'm on windows 7 pro/64bits.

thanks for any ideas
2
Hi,

Is the theme used in the pictures downloadable from somewhere? Otherwise I'd appreciate if someone could zip it up. Looks great :)
3
Themes / Re: Possible to make Robospin scale with aspect ratio?
« Last post by bjose2345 on Today at 01:38:29 AM »
set the preserve_aspect_ratio = true?
4
Themes / Possible to make Robospin scale with aspect ratio?
« Last post by tonberryhunter on Yesterday at 10:42:44 PM »
I have been working for months on a custom Attract Mode theme based off of the original Robospin.  I'm trying to figure out how to scale the wheel images with a 4:3 aspect ratio.  I managed to get the cab (cropped photoshop), snap and background (cropped in photoshop) art to scale correctly but not sure what I need to edit in the layout.nut file to correct the wheel.  Other than intentionally distorting all my 16:9 assets in Photoshop I dont know how to fix this.  Perhaps someone verse with the coding used in these layouts might be of assistance. :)

Here are two example images of my main menu.

16:9


upload and share pictures


4:3 (with distorted wheel images and pointer)


upload and share pictures

5
Themes / Re: Hyperspin joystick anamation
« Last post by jedione on Yesterday at 06:41:37 PM »
repeat = "yoyo",

what code is this iv never seen this?
thought it was

repeat = "true",
repeat = "false",
6
Scripting / Re: Preserve aspect ration in wheel using conveyor
« Last post by calle81 on Yesterday at 11:58:14 AM »
Never mind i figured it out:

conveyor.preserve_aspect_ratio = true;

Example:

// we do it this way so that the last wheelentry created is the Center one showing the current
// selection (putting it at the top of the draw order)
for ( local i=0; i<remaining; i++ )
wheel_entries.insert( num_arts/2, WheelEntry() );

conveyor <- Conveyor();
conveyor.set_slots( wheel_entries );
conveyor.transition_ms = 50;
try { conveyor.transition_ms = my_config["transition_ms"].tointeger(); } catch ( e ) { }
}
conveyor.preserve_aspect_ratio = true;
7
Themes / Re: Hyperspin joystick anamation
« Last post by KTURNER on Yesterday at 11:38:11 AM »
Wow thanks! This is way over my head but I would love to learn it. I'm going to play around with it. What's weird is when I first reinstalled windows 7 they were showing up. The layouts had white bars across them and were all jacked up but the joysticks were there. I downloaded the latest graphics drivers and fixed the issue but the joysticks are gone.
8
Scripting / Re: Last played games
« Last post by bjose2345 on Yesterday at 12:57:30 AM »
Does attract mode load the romlist after return from game? If so, you could use a plugin that will modify the romlist during to game transition, all in squirrel.

yeah i do that but with a shell script, here is the script

first you need to add this code in your theme, remember to register it like a callback function

Code: [Select]
function on_transition( ttype, var, ttime )
{

switch ( ttype )
{
case Transition.ToGame:
fe.plugin_command_bg( "/home/pi/.attract/runcommand-lastplayed.sh", "\"" + fe.game_info(Info.Name) + ";" + fe.game_info(Info.Title) + ";" + fe.game_info(Info.Emulator) + "\"" );
break;
}

and here the shell script

Code: [Select]
#!/usr/bin/env bash

# get the args
args="$1"

IFS=';' read -r -a array <<< "$args"

filename="/home/pi/.attract/romlists/Last Played Games.txt"
NUMOFLINES=$(wc -l < "$filename")

$(grep -q "${array[0]};${array[1]};${array[2]};;;;;;;;;;;;;;" "$filename")
if [ $? -eq 1 ]; then
if [ $NUMOFLINES -lt 11 ]; then
sed -i -e '$a\'"${array[0]};${array[1]};${array[2]};;;;;;;;;;;;;;" "$filename"
else
sed -i '2d' "$filename"
sed -i -e '$a\'"${array[0]};${array[1]};${array[2]};;;;;;;;;;;;;;" "$filename"
fi
fi

you can modify this line

Code: [Select]
if [ $NUMOFLINES -lt 11 ]; then
with any number you want if you want the last 20, put 21, because you need always 1 line in your romlist, the sed command doesnt work in empty files.
9
@pattheaux
hit ESC key > Exit : yes > you're on bash
10
Scripting / Re: Last played games
« Last post by keilmillerjr on August 15, 2017, 07:02:44 PM »
Add in Favorite filter

There already is favorites filter built into attractmode.
Pages: [1] 2 3 ... 10