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 - Dal1980

Pages: 1 2 3 [4]
46
I loaded up Retroarch to check version and just realised that I didn't have any control in there either. I wonder if that has somehow polluted the settings for AM when I return. I can probably do a bit more testing down this avenue but will report back.

47
Hi

I've started setting up my cabinet with Attract Mode and Debian Linux. Everything seems to be going smoothly so far but I've hit a bit of an issue that I don't understand.

When I first load attract mode up from CLI
Code: [Select]
xinit attract
Everything works and I'm able to use my sticks and my keyboard as normal. After launching a rom which uses the following commands in the mame.cfg file in emulators foloder:
Code: [Select]
executable           retroarch
args                 -L "/home/blackcab/libretro-super/libretro-mame/mame_libretro.so" "[romfilename]"
workdir              /home/blackcab/.attract/romlists/mame-latest/arcade/mame
rompath              /home/blackcab/.attract/romlists/mame-latest/arcade/mame
romext               .zip
system               arcade
info_source          listxml
...

Retroarch runs the rom and I'm able to use my sticks and buttons as normal however upon exiting and returning back to Attract Mode no controller works. The keyboard is non-responsive (although it's still getting power to the lock lights), cabinet sticks and buttons don't do anything and there is only one thing I can do which is press the power button.

I should also point out that Attract Mode is still fully functional even though I'm unable to control anything or supply input.

Debian GNU/Linux 9.4 (Stretch)
Attract Mode V2.3.0-44 (Linux SFML 2.4 +FrontConfig +SWF)
avcodec 57.64.101 / avformat 57.56.101
swscale 4.2.100 / swresample 2.3.100
Xserver 1.19.2
Retroarch 1.3.6


Cheers
Dal1980

48
General / Re: Set attract mode resolution
« on: December 23, 2016, 10:49:03 AM »
Thanks verion

After further testing I've managed to understand that if I set 640x480 in windows on my primary monitor then open AM it opens in a 640x480 mode (it's stretched out to widescreen but this doesn't bother me).

What I would love it to do is to not be dictated to by the current monitor resolution and for me to start attract mode with something line (this is made up):

c:\attract\attract.exe -setscreen 640x480

This would then start attract mode on my monitor that would be set to 1920x1080 but switch the resolution for the program (obviously in full screen mode)

I have to jump through a few hoops doing all of this manually which is a bit of a pain. This functionality would be good for setting it to other resolutions too that would aid in creating themes/layouts

Any thoughts on this?
Cheers
Dal

49
General / Re: Set attract mode resolution
« on: December 22, 2016, 04:34:14 PM »
Bump

Just to clarify too, the 640x480 is only to do with AM only. Basically the screen res would not need to be forced for the emulators.

50
General / Set attract mode resolution
« on: December 21, 2016, 04:56:31 PM »
Hi guys

I've been stuck trying to get AM to start in a particular resolution (640x480). I'm using a windows 10 desktop (Nvidia graphics with dual monitors).

I don't know if the problem lies in the theme or config or if I've missed some other setting or what but can't seem to get it to force 640x480.

If I change one of my monitors to 640x480 and open Attract Mode then the theme is still shrunk (probably to around 120x?? depending on how I resize the window). I've also tried using command line tools to force the 640x480 res but attract mode either errors (or these tools do, they don't give a clear error report on what the problem is).

Is there a way to tell attract mode to go full screen with 640x480 as the res?

Kind regards
Dal

51
Scripting / Re: Squirrel setting conveyor() (wheel) fall-back image logos
« on: December 12, 2016, 10:34:48 AM »
#BUMP#

Anyone got any suggestions for activating the on_progress in WheelEntry?

52
Scripting / Re: I'm stumped: basic array
« on: December 11, 2016, 11:31:27 AM »
Thanks liquid8d!

It's funny seeing your reply here as I've been using your ScrollingText module for this theme.

Anyway, I think I managed to get it sorted after trying to break it down and try various things. I ended up making a crack with .push which made sense. The information you've left though will be valuable for me in the future so thank you.

53
Scripting / I'm stumped: basic array
« on: December 09, 2016, 09:41:47 AM »
This is directly from a Squirrel manual

Code: [Select]
local numberStringArray;
numberStringArray[5] = "five";

Results in default layout (i.e. error)
Trying to set null on local numberStringArray

Source: https://electricimp.com/docs/squirrel/squirrelcrib/

Quote
Arrays

Array variables are specified using square brackets: [ and ]. Component elements are accessed through their indices; the first item is always placed at index 0.

local numberStringArray;
numberStringArray[5] = "five";

Does anyone know of a good squirrel guide as step one, creating an array has ended very badly  ;D


54
Scripting / Squirrel setting conveyor() (wheel) fall-back image logos
« on: December 09, 2016, 03:03:57 AM »
Hi Guys

I'm using the following additional code below to check for object file_name (i.e. no wheel logo). Works great except the missing wheel logo fallbacks only pop-on after I move the wheel. The constructor method is triggered then only the on_progress method is activated at the point where the wheel moves so I need a way to loop through and check file_name properties at the point of load.

Code: [Select]
     class WheelEntry extends ConveyorSlot {
     
          constructor() {
               base.constructor( ::fe.add_artwork( myConfig["orbit_art"] ));
               //base.constructor( ::fe.add_image( "parts/no-logo.png" ) ); //this loads but doesn't then place the wheel art
     }
         
          function on_progress( progress, var ) {
               local p = progress / 0.1;
               local slot = p.tointeger();
               p -= slot;
               slot++;

               if ( slot < 0 ) slot=0;
               if ( slot >= 10 ) slot=10;

/* ADDITIONAL */
               if(m_obj.file_name == ""){
                    m_obj.file_name = "parts/no-logo.png";
                    m_obj.preserve_aspect_ratio = true;
               }
/* ADDITIONAL */

               m_obj.x = wheel_x[slot] + p * ( wheel_x[slot+1] - wheel_x[slot] );
               m_obj.y = wheel_y[slot] + p * ( wheel_y[slot+1] - wheel_y[slot] );
               m_obj.width = wheel_w[slot] + p * ( wheel_w[slot+1] - wheel_w[slot] );
               m_obj.height = wheel_h[slot] + p * ( wheel_h[slot+1] - wheel_h[slot] );
               m_obj.rotation = wheel_r[slot] + p * ( wheel_r[slot+1] - wheel_r[slot] );
               m_obj.alpha = wheel_a[slot] + p * ( wheel_a[slot+1] - wheel_a[slot] );


          }
     };

Ideally a solution should not touch the main conveyor.nut file (which I've not been able to successfully locate actually: is it this one "/usr/local/share/attract/modules/conveyor.nut" ?).

So close but not close enough.
Many thanks
Dal

Pages: 1 2 3 [4]