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

Pages: 1 2 3 [4]
46
Scripting / HistoryPlugin - need m_text added to surface in layout
« on: November 09, 2016, 12:12:53 PM »
My layout has all objects drawn to a surface with a filter applied. Id like the same filter to be applied to the history plugin. Maybe some one can steer me in the right direction.

The fe object cant have filters applied. Only to surfaces. I cant pass my surgave object to a plugin, correct?

47
Themes / 15khz crt low resolutions
« on: October 20, 2016, 04:17:46 PM »
Toying around with attractmode while project is on hold for funds to continue. Trying to design everything uniform between front end and neo geo games.

Crt emudriver displays Windows in 640x480 interlaced. It can also display mame in native resolutions. Can crt emudriver display attractmode in a different resolution like 320x240 progressive?

I think mame would display mame games in a close resolution with black borders, such as 320x224 neo geo games at 320x240 progressive and adjust overscan. Am I correct? Trying to make it so front and and games would yield a similar look and transition nicely.

48
Scripting / video not visible after from game transition
« on: July 06, 2016, 03:38:16 PM »
Layout will be contained to 4:3 format. Using a surface because the fe object allows child objects to be shown outside of itself. Boot video (a recording of the neo geo boot screen) is intended to be played when the layout starts and coming from a game.

I created a boot class, with a constructor, play and stop methods. The object could potentially call its own stop method, but I can not find a way for squirrel to sleep/wait/timer. So, I am using the fe.add_ticks_callback to see if the video is not playing and call the stop method on the boot class. It probably waste cpu resources, but it’s the only way I could think of how to do it. Is there a better way?

I am using fe.add_transition_callback method to call the start method on the boot class when ttype is Transition.StartLayout or Transition.FromGame. Currently, It works when the layout is first started. After exiting a game, background is frozen and muted, and audio from boot video can be heard, but it is not visible. The same result occurs in mac 10.11 and windows 7 running attract 2.1. Any ideas of why it is not visible? zorder has no effect. I don’t even think zorder works because I can give the video a zorder of 1000 and it is not visible at any time unless its drawn after the background.

Code: [Select]
// Attract-Mode front end
// mvscomplete layout by keilmillerjr
// http://keilmiller.com

fe.load_module( "fade" );
fe.load_module( "conveyor" );

//
// Screen
//

fe.layout.width = 640;
fe.layout.height = 480;
fe.layout.preserve_aspect_ratio = true;
local screen = fe.add_surface( 640, 480 );

//
// Background
//

local bgx = (640/8)*-1;
local bgy = (480/8)*-1
local bgw = (640/4)*5;
local bgh = (480/4)*5;
local background = FadeArt( "snap", bgx, bgy, bgw, bgh, screen );

//
// Boot
//

class Boot {
  video = null;
 
  constructor( path ) {
    video = screen.add_image( path, 0, 0, 640, 480 );
    video.visible = false;
    video.video_playing = false;
    video.video_flags = Vid.NoLoop;
  }
 
  function Play() {
    if ( background != null ) background.video_flags = Vid.NoAudio;
    video.visible = true;
    video.video_playing = true;
  }
 
  function Stop() {
    video.visible = false;
    if ( background != null ) background.video_flags = Vid.Default;
  }
}

local boot = Boot("intro/boot.mp4");

fe.add_ticks_callback( "boot_tick" );

function boot_tick( ttime ) {
  if ( boot.video.video_playing == false ) {
    boot.Stop();
  }
  return false;
}

fe.add_transition_callback( "transitions" );
function transitions( ttype, var, ttime ) {
  switch ( ttype ) {
    case Transition.StartLayout:
    case Transition.FromGame:
      boot.Play();
      break;
  }
  return false;
}

49
Themes / mvscomplete theme
« on: April 08, 2016, 03:28:02 PM »
NAME
----------
mvscomplete


DESCRIPTION
-----------------
mvscomplete is a layout for the AttractMode front end. It is designed as a better option than a 161-in-1 multicart for the neo geo mvs.


DOWNLOAD
-----------------
https://github.com/keilmillerjr/mvscomplete


VIDEO
-------------
https://vimeo.com/keilmiller/mvscomplete

50
Scripting / fe.plugin_command_bg issue? [RESOLVED]
« on: April 01, 2016, 09:25:50 AM »
I add the following near the top of my layout and it never executes test.exe. The file is in the same location as layout.nut. Am I doing something wrong?

Code: [Select]
fe.plugin_command_bg( "test.exe", "" );

51
Scripting / charsize not filling fe.Text
« on: March 28, 2016, 02:21:23 PM »
I have fe.Text objects. When charsize property is set to default, autosize does not fill the height. Any idea how to remedy? I assume if I explicitly set the charsize, it's using points instead of pixels. Even still, it does not perfectly match the text object. Is this due to the default Arial font having some sort of spacing? I used the set_rgb() function to blue on the text objects to demonstrate.

52
General / Vector Support
« on: March 25, 2016, 09:32:21 PM »
Attract mode scales themes. Fonts scale nicely. Some raster images do not. Any support for vector images?

53
Scripting / Magic Tokens UPPERCASE?
« on: March 18, 2016, 07:16:46 PM »
Having a little trouble making magic tokens uppercase. Tried quite a few things. Anyone know how to achieve this?

http://attractmode.org/docs/Layouts.html#magic
http://attractmode.org/docs/Layouts.html#game_info
http://www.squirrel-lang.org/doc/squirrel3.html <- See section about toupper()

54
General / Filter for Mame platform
« on: March 18, 2015, 04:59:39 AM »
I'm building a dedicated neo geo mvs cabinet. The following example will filter based on manufacturer. However, not all titles by snk are for mvs. Any way to set up filter correctly? Filter based on mvs bios?

Code: [Select]
filter               "Neo Geo MVS"
      rule                 Manufacturer equals SNK

55
General / Feature suggestion: filter rule inherit
« on: November 25, 2014, 12:15:11 PM »
It would be nice to add some sort of rule inheritance for filters to keep our config file DRY (Don't Repeat Yourself). See example below of how this could work.

Code: [Select]
# Generated by Attract-Mode 1.4.0
#
list Arcade
layout               cools
romlist              mame
filter               All
rule                 Category not_contains *Mature*|BIOS|Casino|Fruit Machines|PinMAME|Quiz|Rhythm|Tabletop
rule                 CloneOf not_equals .+
rule                 Control contains 2-way|4-way|8-way|trackball
rule                 DisplayCount equals 1
rule                 Manufacturer not_contains <pirate>|<unknown>|<unlicensed>|bootleg|hack
rule                 Players equals 1P alt|1P sim|2P alt|2P sim|3P alt|4P alt|6P alt
rule                 Status equals good|imperfect
rule                 Year not_contains ?
filter               Favourites
rule                 Favourite equals 1
filter               Atari
rule                 Inherit from All
rule                 Manufacturer contains Atari

The Atari filter would contain all of the rules from the All filter, as well as it's own.

56
General / Attract Mode freezing on me (solved)
« on: November 18, 2014, 12:22:56 PM »
I'm using Windows 8.1 and download attract-mode from the link on the home page. It is supposed to be release 1.4.1 but when I run attract-mode and press tab, it says 1.4.0.

Anyways, as soon as I press a down|up|left|right attract-mode freezes and does not respond. I have to force quit the app via task manager. It did not do this before. Any way I can diagnose what is going on? I thought maybe I messed up a config file or something, so I created another folder, copy the zip file content into it, and no difference. How can I diagnose what is going on?

Pages: 1 2 3 [4]