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

Pages: [1]
1
Scripting / Draw a box
« on: July 07, 2018, 05:02:54 AM »
I'm not being stupid right, you can't actually draw a box in AM?  ???

Draw a box
Colour the BG using set_bg_rgb(#,#,#)
Access standard properties like mybox.x and mybox.y

add_text() is the closest I've found but this does not have .x and .y properties for some reason

Surely I'm missing something  :-\

2
Themes / MVS-InsertCoin (Neo Geo) Theme
« on: July 03, 2018, 10:05:51 AM »
Hi guys

Here's another theme (this one I was jumping backwards and forwards with as I had a few issue) but there's just the one issue left which is to pre-populate missing graphic with a place holder but that thing has been an issue for over a year and a half for me (http://forum.attractmode.org/index.php?topic=1132.0)

Anyway, 5:4 again since that's what my cab is but hope you get some use out of it too.









YouTube: https://www.youtube.com/watch?v=ebG0kWYazMc

Download: https://github.com/zombiesbyte/mvs-insertcoin

Enjoy!

3
Themes / Hello-Nintendo Theme
« on: July 03, 2018, 03:23:28 AM »
Hi Guys

Wanted to share my new 5:4 theme I made based on the NES style.

V1.0



Favourites badge at the top




Various grid sizes and art configurations










Let me know if you have any questions

YouTube: https://www.youtube.com/watch?v=M9e8xJY-XY0

Download: https://github.com/zombiesbyte/hello-nintendo


4
General / Keyboard not working after returning from game
« on: June 11, 2018, 03:12:49 PM »
Hi

When I first load up Attract Mode I can control the menu in the normal way using my keyboard. After clicking to launch a game (Retroarch) and exiting (esc key) I return to Attract Mode but I am unable to move the menu. AM hasn't crashed but it just won't accept input from the keyboard.

Strangely, I did find that plugging in a USB controller allowed some control back and after setting that up against the keyboard control mapping I am able to now exit properly (or start a new game).

I can't post logs because there isn't any errors.

Using
Code: [Select]
startx attractDebian 9.4 (no desktop environment installed)

Attract Mode locally compiled from main branch https://github.com/mickelson/attract:
Attract-Mode v2.3.0-48 (Linux, SFML 2.4 +FontConfig +GLES +SWF +7z)
avcodec 57.64.101 / avformat 57.56.101 / swscale 4.2.100 / swresample 2.3.100

Retroarch locally compiled from main branch https://github.com/libretro/RetroArch: 1.7.3

Here's the last log (in it's entirety) but as you can see, nothing here to report:
Code: [Select]
Attract-Mode v2.3.0-48 (Linux, SFML 2.4 +FontConfig +GLES +SWF +7z)
avcodec 57.64.101 / avformat 57.56.101 / swscale 4.2.100 / swresample 2.3.100

Config: /home/blackcab/.attract/attract.cfg

*** Initializing display: 'mame'
 - Loaded master romlist 'mame' in 270 ms (34774 entries kept, 0 discarded)
 - Constructed 10 filters in 275 ms (347740 comparisons)
 - Loaded layout: /usr/local/share/attract/layouts/Basic/ (layout.nut)
*** Running: retroarch -L "/home/blackcab/.config/retroarch/cores/mame_libretro.so" "/home/blackcab/.attract/romlists/mame-latest/arcade/mame/sonicwi2.zip"

attract.cfg
Code: [Select]
# Generated by Attract-Mode v2.3.0-48
#
display mame
layout               Basic
romlist              mame
in_cycle             yes
in_menu              yes
filter               All
filter               "NoMOPMUC Games"
rule                 Title not_contains bootleg|prototype|Trivia|Quiz|Mahjong|Japan
rule                 Manufacturer not_contains bootleg
rule                 Category contains Climbing|Fighter|Misc.|Multiplay|Not Classified|Player|Shooter|Sports|2.5D|3D|Adventure|Asian 3D|Baseball|Boat|Boxing|Command|Darts|Digging|Driving|Driving 1st Person|Driving Horizontal|Drop|Fighter|Fishing|Flying (chase view)|Flying Diagonal|Flying Vertical|Golf|Hang Gliding|Horse Racing|Japanese|Korean|Maze|Misc.|Misc. Vertical|Outline|Pad|Ping Pong|Pool|Race (chase view)|Race 1st P Bike|Race Bike|Racing|Run Jump|Shooter Large|Shooter Small|Shuffleboard|Skiing|Sliding|Tennis|Toss|Versus|Vertical|Walking|1st Person|2D|3rd Person|Armwrestling|Basketball|Bowling|Breakout|Compilation|Dodgeball|Driving (chase view)|Driving Diagonal|Driving Vertical|English|Field|Fighter Scrolling|Flying|Flying 1st Person|Flying Horizontal|Football|Go|Gun|Handball|Hockey|Horseshoes|Mini-Games|Multiplay|Pinball|Plane|Pong|Race|Race (chase view) Bike|Race 1st Person|Race Track|Rugby Football|Run Jump Scrolling|Shooter|Shooter Scrolling|Skateboarding|SkyDiving|Soccer|Sumo|Swimming|Timing|Track & Field|Versus Co-op|Volleyball|Wrestling
rule                 Control contains doublejoy|joy|lightgun|mouse|only_buttons|positional|stick
rule                 Control contains 2-way|4-way|8-way
rule                 Control not_contains paddle|pedal|mechanical
rule                 Status equals good|imperfect
filter               NeoGeo
rule                 AltRomname contains neogeo
rule                 Status equals good|imperfect
filter               SHMUPs
rule                 Title not_contains bootleg|prototype|Sports|Trivia|Quiz|Mahjong
rule                 Manufacturer not_contains bootleg
rule                 Category contains Flying
rule                 Status equals good|imperfect
filter               Mature
rule                 Category contains Mature
filter               Fighter
rule                 Category contains Fighter
filter               Mini-Games
rule                 Category contains Mini-Games
filter               Sports
rule                 Category contains Sports
filter               Tabletop
rule                 Category contains Tabletop
filter               Favourites
rule                 Favourite equals 1

sound
sound_volume         100
ambient_volume       100
movie_volume         50

input_map
next_filter          LControl+Right
edit_game            Escape+Down
next_filter          Joy0 Right+Joy0 Button0
edit_game            Joy0 Down+Joy0 Button1
up                   Up
up                   Joy0 Up
down                 Down
down                 Joy0 Down
left                 Left
left                 Joy0 Left
right                Right
right                Joy0 Right
filters_menu         Joy0 Left+Joy0 Button0
filters_menu         Num5+Num6
configure            Tab
configure            Joy0 Up+Joy0 Button1
configure            Num2
add_favourite        Joy0 Button0+Joy0 Button1
add_favourite        LAlt
next_letter          LControl+Down
next_letter          Joy0 Down+Joy0 Button0
next_letter          F
prev_letter          LControl+Up
prev_letter          Joy0 Up+Joy0 Button0
prev_letter          R
select               Return
select               LControl
select               Num1
select               Joy0 Button0
back                 Joy0 Button1
back                 LShift
default             back exit
default             up prev_page
default             down next_page
default             left prev_game
default             right next_game

general
language             en
exit_command         
default_font         FreeSans
font_path            /usr/share/fonts/;$HOME/.fonts/
screen_saver_timeout 600
displays_menu_exit   yes
hide_brackets        no
startup_mode         default
confirm_favourites   yes
confirm_exit         yes
mouse_threshold      10
joystick_threshold   75
window_mode          default
filter_wrap_mode     default
track_usage          yes
multiple_monitors    no
smooth_images        yes
accelerate_selection yes
selection_speed_ms   40
scrape_snaps         yes
scrape_marquees      yes
scrape_flyers        yes
scrape_wheels        yes
scrape_fanart        no
scrape_videos        no
scrape_overview      yes
video_decoder        software
menu_prompt          Displays Menu
menu_layout         

layout_config mvs-insertcoin
param                optPath /home/blackcab/.attract/layouts/mvs-insertcoin/


plugin History.dat
enabled              yes
param                button H
param                dat_path /home/blackcab/.attract/dat/history.dat
param                generate_index
param                index_clones No
param                rows 30

plugin UtilityMenu
enabled              no

plugin AudioMode
enabled              no
param                dir
param                info_button
param                skip_button

Read through all bugs relating to this but couldn't find anything except these
https://github.com/mickelson/attract/issues/199
https://github.com/mickelson/attract/issues/244
But both relate to focus issues were as I think my issue seems to be that gremlins go pulling wires inside my keyboard (I've tried other keyboards too but I must have a family of gremlins in each)

My video explanation
https://youtu.be/a5YixnhPlfY

Thanks 


5
General / PC Build (X86) Attract Mode with SFML
« on: May 29, 2018, 02:34:02 AM »
Can you hear the splashing of me drowning  :D

I need help (and I'm not talking mentally... that can wait  ;)) I'm currently building a Debian image and after going around the houses for some time I think I've come to terms with the fact that the XOrg/XServer way of doing things is squeezing life out of me and my PC. I've had a few issues which seem to be related to using X.

I have AM on Pi and love it, well big fan of AM anyway  8) but when it comes to standard PC hardware, generally support is limited in this topic.

Anyone got any clues for how I might compile an image of AM with SFML so I don't have to use X?

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
ultimarc Minipac (1313?) <- this PC is actually a Arcade Cab

Stupid questions but I couldn't just use this package could I? https://github.com/mickelson/sfml-pi

Cheers
Dal1980

6
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

7
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

8
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


9
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]