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.


Messages - bjose2345

Pages: [1] 2 3 ... 7
1
set the preserve_aspect_ratio = true?

2
Scripting / Re: Last played games
« 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.

3
Scripting / Re: Last played games
« on: August 14, 2017, 11:52:06 PM »
I sorted this through a shell script, if some one want it I can post it, but still I'm perfecting it.

4
General / Re: debug Attract-mode with Microsoft Visual Studio?
« on: August 11, 2017, 03:39:58 AM »
I've not had a chance to try Attract-Mode in Visual Studio myself.  Is Visual Studio able to import project files from other programs?  If it can there is a codeblocks project in the attract-mode source directory that you might be able to use to get you started...

Sorry for resurrecting such old thread but I am looking to do the same now, where I can get the code block project? my main idea is starting to debug the code and try to learn more, go to the next step, or any other way to start to debug the code in windows.

thanks and kind regards

5
General / Re: Game info
« on: August 11, 2017, 12:47:00 AM »
Its depends on the system, for example when you scrap against thegamedb.net, you need to put exactly the name of the system ...

hit tab > emulators > search your system (Atari 2600 for example), be sure that your system indentifier name is Atari 2600 and that is.

6
General / Re: So is this thing dead then?
« on: August 11, 2017, 12:30:16 AM »
Only in the freezer for some time but being as it is very functional and practical to use, I love attract mode that any other frontend because you can made almost (not all but almost all) from scratch.

7
Scripting / Re: Shell call to Attract Mode "exit emulator" function.
« on: August 11, 2017, 12:25:11 AM »
I think you need to search is for the pid for the emulators (if you are using retropie, searh for the route opt/retropie/emulators/ ) and if one of those are running you send the kill -QUIT command to that pid

8
Scripting / Last played games
« on: August 11, 2017, 12:19:07 AM »
Hi good fellas, i have the next question and I hope someone could help me on this

I'm looking to keep a list of the last 10 games played, there's a way to do that? I know that there is a functionality but I have not seen anything in the official documentation or forums.

Thanks and kind regards.

9
General / Re: Broken new user registrations
« on: August 06, 2017, 03:54:42 AM »
Thanks for sorted this out Ray.

Hope to see more updates in the future  ::)

10
Maybe my words were misinterpreted, I did not mean to say that it was an intentional behavior, but it is something that often happens  because of the way the code is made.

11
Themes / Re: Animate selected text color ?
« on: July 28, 2017, 11:29:14 AM »
I think you cant (maybe im wrong) ... but you can use for example 2 Overlays, one overlapping the other , Overlay A with blue color and Overlay B with a red color, then only put Overlay A alpha = 255 and Overlay B = 0 (hiding one and showing another), and animated the alpha property, from Overlay A to go from 255 to 0 and Overlay B do the opposite 0 to 255 and there you go.

12
It is the carousel script, the way it works

13
Themes / Re: ArcadeSD theme
« on: July 25, 2017, 11:55:30 AM »
+1 for this theme for the Pi  ;D

14
Scripting / Re: overview text (not History.dat)
« on: July 25, 2017, 11:33:57 AM »
I did it for the games, but is this overview text available for the main menu systems? If so, how do I configure it? thanks

There is not direct way to do this for the main menu system, the only way is to hack in some way the history plug-in, i mean, copy and paste the functio where you get the bios of the history.dat, make your own history.dat and try it out (I haven't done it so I would not know if it would work)

Another way is do it  with images, i think is the most easy way.

15
General / Broken new user registrations
« on: July 25, 2017, 11:16:12 AM »
Hi guys, there are a lot of complaints about this, someone PM me in the retropie forums (im registered there too) and bring me out this, looks like there is no way to register a new account (Verify emails are not being sent out) so please any mod can give the alert to Raygun.

Thanks and kind regards

Pages: [1] 2 3 ... 7