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

Pages: 1 [2]
16
Scripting / [solved] global video-sound-mute switch via layout options
« on: December 13, 2015, 02:48:23 PM »
I would like to provide a global switch via layout options that will mute video sound (for every video in layout).
Below you will find my code.


Code: [Select]
//define layout option entry
class UserConfig {
</ label="Mute video snaps sound", help="yes = sound disabled, no = sound enabled", options="yes,no" /> mute_videoSnaps="no";
}



//when mute sound = YES in layout options - define variable "videoSound" (that will be used globally)
//that will mute sound
if ( my_config["mute_videoSnaps"] == "yes")
{
 local videoSound = Vid.NoAudio;
}


//video an cab screen
local cabScreen = fe.add_artwork ("snap", 300, 300, 400, 300);
cabScreen.video_flags = videoSound;

Unfortunately - this is not working :(

If I hard code
local videoSound = Vid.NoAudio;
it is working correctly.
But when I try to make this happend via layout options - no go.

---

I'll just add that I know that video sound can be disabled globally in AM (in SOUND options) - but I want it to be disabled for particular layout, not for all layouts.

17
I'm working on layout that will adapt to screen ratio (responsive) for 16:9 and 16:10 aspects.

Everything is almost finished except that annoying skew/pinch that is somehow related to screen height!
I think the best way to deal with that is to use liquid8d solution - settings table http://forum.attractmode.org/index.php?topic=273.msg1818#msg1818

but... I don't know how to code it properly

Please help me out put it all together into a working code.


Below you'll find a description of what I want to achieve.





==================================
define diffrent coordinate sets for different aspects
==================================

IF (condition #1)

Code: [Select]
fe.layout.width/fe.layout.height < 1.75    //for 16:10 aspect
THEN DEFINE VARIABLES

Code: [Select]
local snap_pos_x = 10;
local snap_pos_y = 10;
local snap_width = 400;
local snap_height = 300;

local snap_skew_y = -8;
local snap_skew_x = 42;
local snap_pinch_y = 27;
local snap_pinch_x = 5;
local snap_rotation = 3;



IF (condition #2)

Code: [Select]
fe.layout.width/fe.layout.height > 1.75    //for 16:9 aspect
THEN DEFINE VARIABLES

Code: [Select]
local snap_pos_x = 8;
local snap_pos_y = 12;
local snap_width = 420;
local snap_height = 320;

local snap_skew_y = -12;
local snap_skew_x = 32;
local snap_pinch_y = 17;
local snap_pinch_x = 3;
local snap_rotation = 6;





==================================
use that variables sets in layout code
==================================

Code: [Select]
local snap = fe.add_image( "snap", snap_pos_x, snap_pos_y, snap_width, snap_height);
snap.skew_y = snap_skew_y;
snap.skew_x = snap_skew_x;
snap.pinch_y = snap_pinch_y;
snap.pinch_x = snap_pinch_x;
snap.rotation = snap_rotation;

18
I'm trying to position right aligned text.
But I'm not sure if (right aligned) text position is calculated from top left or top right corner?

Code: [Select]
local manufacturer = fe.add_text( "[Manufacturer]", flx*0.5, fly*0.5, flw*0.3, flh*0.05 );
manufacturer.set_rgb( 59, 45, 3 );
manufacturer.align = Align.Right;

I'm trying to achieve something like this:

19
Themes / [download] NEVATO theme
« on: September 10, 2015, 11:57:34 PM »
============
      UPDATE
============

FINALLY! The NEVATO theme is ready for download.
I hope you'll like it.



download
- - - - - - - - - - - - - - -
you can download the theme from a dedicated webpage:
www.ONYXarcade.com/nevato


a quick summary:
- - - - - - - - - - - - - - -

  • it works with 16:9, 16:10, 4:3, 5:4 aspects
  • it does not work with vertical aspects
  • it's hi-res, native resolution is 1920x1200, but of course it scales down and up
  • led-style marquees for gaming platforms are included in download
  • you can switch to that marquees in NEVATO layout options MARQUEE ARTWORK > emulator-name
  • you can rename the marquees artwork to match your emulator name [ snes-marquee.jpg, mame-marquee.jpg, etc ]
  • you can use your own marquee (if you have one) -  in NEVATO layout options choose MARQUEE ARTWORK > my-own and replace "my-own-marquee.jpg" file with your own.
  • Default size is 400x123px, but it will stretch-to-fit, so any other resolution should be fine.
  • if you are using FANART as a background artwork, be sure you have fanart path defined in settings GENERAL > EMULATORS > MAME > fanart > enter-the-path
  • it's a good idea to add flyer path to fanart path, this way you'll see flyer artwork if you are missing fanart for a particular game
  • the copy of a font "digital_7" is included in a download - you have to install it in your system if you want that LCD screen font to display correctly. This is free for personal use.

testing and reporting bugs
- - - - - - - - - - - - - - -
Please test it and report any issues.
It is working perfectly on my setup (i5, intel HD, OS X 10.10, AM v. 1.6.2), but it can be broken on yours - please let me know.

OTHER EMULATORS (than mame)
I was testing it only with mame, since I'm not using any other emulators.
So please test it with other emulators and let me know if it is ok.
The most problematic can be using flyers with different aspect than arcade ones - especially if emulator is using cd-covers or cartrige photos. This is because mame flyers are vertical rectangles and with horizontal or square artwork the background artwork coordinates may require some fixing.

USER FIXES AND CHANGES
If you'll come up with a fix or a change to this theme - please let me know so I can incorporate it in a theme. I would prefer to have one perfectly working theme than a bunch of forks fixing various issues.


4:3 (or 5:4) ASPECT
- - - - - - - - - - - - - - -
I don't have 4:3 monitor - so I was testing theme in a window with fixed resolution. It should emulate 4:3 screen, buy I can't be sure. Please test it with 4:3 screen and let me know if it works or if something needs fixing








==========
initial #1 post archive below:

I'm working on a new theme.

main design goals:
  • square snap placeholder, works equally good for vertical and horizontal snaps
  • marquee on top (with the option to swap it for emulator logo)
  • segment LCD display for various info - like played games count or emulator name or any info that AM can scrap
  • gorgeous wheel list (by omegaman)
  • fanart or flyer heavily styled background

The layout is for wide screens - mainly because I have a wide screen :) and we don't have that much of a widescreen layouts in AM. But when it will be finished - I can modify it to fit 4:3 screen.

20
Themes / [download v1.0] FLAT BLUE theme released
« on: June 18, 2015, 04:16:26 PM »
FLAT BLUE theme v 1.0 released

Finally it is ready to download.
Get it here:
www.ONYXarcade.com/flat_blue


SPECIAL THANKS
to Chris Van Graas (chrisvg) for coding this theme. Without his work and great coding skills this wouldn't be possible.


BUGS
If something is not working - please report it in this thread.
We didn't test it on RPi - please report if this theme works on RPi. To get maximum performance on RPi - do not enable CRT shader effect and do not enable video icons in sidebar (see the options description below)


SCREENSHOTS







VIDEO
You can see the video of a FLAT BLUE theme working on Blast City arcade cab - HERE



MAIN FEATURES:
  • clean modern design
  • "responsive" layout that auto-adapts to screen aspect
  • works for normal (landscape) and rotated (portrait/tate) screens
  • looks good on hi-res screens and TVs
  • special (auto) settings to look good on low-res CRTs



LAYOUT OPTIONS

Layout rotation
options="None, Right, Flip, Left"
default="None"

description:
Set the rotation of the layout to suit your monitor.
You don't have to use this function if you have rotated monitor AND your graphic card set to ROTATE (i.e. your desktop/console displays normally on rotated display, not sideways). Theme layout will auto-adapt to resolution like 1080x1920.
But this function is useful if you graphic drivers doesn't have rotate function - you can set this to rotate and this will force to display layout in portrait mode regardless of desktop not being rotated. And this is very useful if you are usually using your monitor in landscape mode and only rotating it occasionally to play vertical games.
 

   
Menu artwork
options="Snap, Flyer, Icon"
defaulf="Snap"

description:
Set menu panel artwork type (round icon).
Snap is a static game screenshot - you can have video icons instead (see the menu settings below).
"Icon" is reserved for future use - Later I'll create separate thread for this - you can see it in screenshot here




Menu videos
options="Enabled, Disabled"
default=|"Disabled"

description:
Toggle video playback for menu artwork.
If you switch your icon to Snap, you can enable video here.
CAUTION! It's very resource hungry - especially on not-so-fast hardware and with mp4 videos.




Wheel logo
options="Enabled, Disabled"
default="Enabled"

description:
Toggle display of game wheel logos in top-right corner.



Game info 1
options="Year, ROM Name"
default="Year"

description:
Set game information to display in dark blue info panel (top line)



Game info 2
options="Manufacturer, Played Count"
default="Played Count"

description:
Set game information to display in dark blue info panel (bottom line)



Panel shadows
options="Strongest, Strong, Medium, Weak, Weakest, Disabled"
default="Medium"

description:
Left menu sidebar and info panel cast shadows for eye-candy effect. You can adjust effect strength here - because if looks different for different types of screen.



CRT Shader
options="Enabled, Disabled"
default="Disabled"

description:
Enables CRT Shader for snaps. It doesn't add curvature, only graphics effect simulating CRT pixels/phosphor effect.
It helps if your snaps or videos are low-res and displayed on hi-res screen.
CAUTION! It's very resource hungry - especially on not-so-fast hardware and on slow integrated graphic cards.
Disabled for resolutions under 1024x768 - as it is not needed for low res screens and CRTs
You can disable it if your videos/snaps are high-res (like for PC games)



Scanline overlay
options="Strongest, Strong, Medium, Weak, Weakest, Disabled"
default="Weakest"

description:
Set scanline overlay effect strength. Only used if CRT Shader is disabled.
It's a good replacements for CRT shader effect if you don't have enough oomph to run the shader.








=====================================
BELOW YOU CAN FIND ARCHIVED PART OF FIRST POST
=====================================

UPDATE:


FLAT BLUE theme development is back on track!

We started this theme with my mockup graphics and Luke Nukem's code. But since Luke can't find the time to finish the project - it's time for  re-boot.

---

This time chrisvg is doing all the hard work with theme coding - from scratch.

This theme will be:
- truly aspect aware
- working on horizontal screens
- working on vertical screens

Vertical screen support will be universal - it will work with systems set up for vertical screen and with normal (horizontal) setups with screen just rotated 90 or 270 deg.

---

We have a working prototype. You can see the preview video of a FLAT BLUE theme working on Blast City arcade cab - HERE

---

END OF UPDATE








The main goal was to create simple layout with different screen aspects in mind. From 16:9 to 4:3.

---

Additional design goals:

1.
design layout that is usable without additional artwork (wheel, marquee, flyers) except snaps - because it is a really tedious work to collect all artwork if you have a huge library of games. And even if frontend has build-in scrapper (like ATTRACT MODE) the quality of scrapped graphics is not always acceptable.

2.
layout will need only game snaps (screenshots) since game screenshots are widely available or easy to make (press F12)

3.
list icons are simply cropped (masked) snaps

4.
gamelist can be replaced with marquees or wheel graphics

5.
additional game info can be displayed on bredcrumbs-like strip - filter name, year, developer/producer etc.

-------------------

What do you think? Would you like to use layout/theme like that?

21
Themes / where I can change default font for AM GUI (Arial Black)?
« on: June 17, 2015, 10:19:08 AM »
Where I can change default font for AM GUI (Arial Black)?

22
I was wondering how many of you are proud users of good old 4:3 screens and how many have 16:9 or 16:10 screens.
The purpose of this poll is mainly to see if there is a need for widescreen layouts (16:9/16:10).

23
General / AM crashes regularly on OS X
« on: June 14, 2015, 04:56:29 AM »
AM crashes on OS X. It happens from time to time.

Finally, I found a way how to replicate this behavior.

1. open AM in window mode (to be able to ALT-TAB to another program)
2. don't start the game, and ALT-TAB to another program
3. let AM idle in the background for a few minutes.
4. bam... I crashes.

----

If you open AM and start the game in a short time - it doesn't crash.
Because when the game is running - AM sits in the background in some kind of "freeze" state. Activity monitor reports that AM is "not responding".

----

OS X Crash report in attachment.

24
Themes / ATTRACT MODE video intro
« on: June 07, 2015, 10:33:18 PM »
I've made an intro for ATTRACT MODE
https://youtu.be/MudtLiowUes



I've also prepared 16:9 and 4:3 aspect version.
Both videos are in 1080p, mp4 file.

You can download it from the links below.
About 6MB each.

16:9 aspect version
https://github.com/mickelson/attract/releases/download/v1.6.2/ATTRACT.MODE.intro.16-9.v6.1080p.mp4

4:3 aspect version
https://github.com/mickelson/attract/releases/download/v1.6.2/ATTRACT.MODE.intro.4-3.v6.1080p.mp4

25
General / what is the best video format (codec) for snaps?
« on: June 06, 2015, 06:17:34 PM »
AM with video snaps in .mp4 format uses 60-70% cpu (i5 1.3 Ghz) - just for front-end displaying video.
This is too much for my system, because fan ramps up quickly and gets annoyingly loud.

With static images it is about 3-5%

I know mp4 is cpu-intensive - maybe switching to XviD or something else can lower cpu usage?

26
General / [tutorial] how to make favourites list
« on: May 31, 2015, 03:51:20 AM »
Maybe I'm stupid or something but it took me more that 3 hours to figure out how to make favourites :)
So I was thinking that quick tutorial can be handy for someone with the same mental problems.

============================================================
           adding shortcut key for adding a game to favourites list (or remove it from favs)
============================================================

In AM - go to settings [press TAB]
choose [Controls]
scroll to [add/remove favourites]
press ENTER and type your shortcut key (mine is "F" - you know, like favourites :) )



===================================================
          how to add game to favourites or remove it from fav.
===================================================

when in game list select your game (don't start it of course)
and press F key

"Add GAME-NAME to fav Yes/No" - select YES

---

If you want to remove game from favs. do the same - press F and in "Remove GAME-NAME to fav Yes/No" select YES



===================================================
         disable confirmation dialog on adding/removing game from favs
===================================================

SETTINGS > GENERAL > [Confirm Favourites] set to NO if you don't want that confirmation dialog



===================================================
          how to make a fav-only layout (display)
===================================================

SETTINGS > DISPLAYS

[Add New Display]
or
click existing display that you want to convert to fav-only

---

There are 2 filters by default
Filter [all]
Filter [favourites]

---

Just delete "filter [all] and leave "filter [favourites]"



===================================================
      I have a favs list already in txt file, how to add it without using GUI?
===================================================

all the above makes mame.tag file (when tagging mame games) located in .attract/romlists
this is simply a list of rom names (without the .zip extension)

It will look like this

Code: [Select]
1941
mslug

with 2 games added to favs

- 1941
- Metal Slug

So if you want make that list manually - just open/create mame.tag file and copy-paste your fav. rom list (remember - without .zip)

27
It seems that I can't read the code without syntax highlighting :)

So if that is your case - and you want code editor with syntax highlighting for .nut files - use links below.
And if you know any editor that highlights .nut syntax - post your links using this scheme:

++++++++++++++++++++++
start of how to format info
++++++++++++++++++++++

operating-system
=============

#name-of-software

editor:
link-to-download-editor

plugins/extension:
link-to-plugin-extension (if needed)

info:
additional-info-about-how-to-make-it-work (if needed)

++++++++++++++++++++++
end of how to format info
++++++++++++++++++++++





Windows
----------
#notepad++ (info from liquid8d)

editor:
http://notepad-plus-plus.org/download/

plugin/extension:
http://forum.liberty-unleashed.co.uk/index.php?topic=442.0


OS X
------
#Brackers

editor:
http://brackets.io

plugin/extension:
Language switcher extension for Brackets https://github.com/p4bl1t0/brackets-languageswitcher/archive/master.zip

info:
- install extension as above
- from top menu select File Language
- select language from list (there is no squirrel syntax, but for me Groovy works quite ok - and that is most important for me - properly marking comments)


#Sublime Text 3 (not free)

editor:
http://brackets.io

plugin/extension:


info:
Just download all files from link abowe, open your sublime text and go to "preferences > browse packages ", then open 'user' folder and drop all downloaded files there. Restart your sublime text and that's all - autocomplete and squirrel syntax highlighting should work.

28
Themes / ATTRACT MODE logo
« on: May 24, 2015, 05:12:23 PM »
EDIT:

TL;DR

AM logo final version at the end of this post http://forum.attractmode.org/index.php?topic=208.msg1576#msg1576
you can check out my AM video intro in this post http://forum.attractmode.org/index.php?topic=252.0

=========

I was wondering - maybe AM logo could use a little refreshment?
What do you think?

29
General / Seeing Desktop on OS X when launching & ending games
« on: May 23, 2015, 03:58:34 PM »
EDIT: cleaned up post a little

SYSTEM: OSX 10.10 + AM 1.5.2
PROBLEM: when I launch a game AM dissappears for a moment showing desktop

To be exact it shows mission control - OS X specific function, something like "show all windows" (it looks like this - http://isolve.isolve.netdna-cdn.com/wp-content/uploads/2015/05/1-Preview-on-Mission-Control.jpg)

And it gets worse after that because when exiting mame it doesn't get back to Attract Mode - I have to ALT-TAB back to AM.

----

All this above happend with GENERAL > WINDOW MODE > set to FULL SCREEN
When it is set to WINDOW, everything works like it should.

----

status on all 3 window modes:

WINDOW MODE > WINDOW
- all ok

WINDOW MODE > FILL SCREEN
- shows desktop
- gets back to AM on game exit (but looses focus from time to time, with cursor showing on the top of AM window)

WINDOW MODE > FULL SCREEN
- shows desktop
- doesn't get back to AM on game exit

----

CPU: intel i5
SYSTEM: OS X 10.10.3
SLDMAME: 0.149
ATTRACT MODE: 1.5.2

Pages: 1 [2]