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

Pages: 1 2 3 [4] 5 6
46
Themes / Re: PanAndScan module v1.2 release
« on: March 21, 2016, 06:33:03 AM »
Thanks bionictoothpick,

I've uploaded a bugfix to the original post (version 1.2) .. give it a try and see what you think.

47
Themes / Re: PanAndScan module v1.1 release
« on: March 20, 2016, 08:18:14 PM »
If you choose horizontal, is it supposed to bounce back and forth? It seems to stop when using Horiz when it reaches edge.

could you please post a code sample and the image you are using that is causing the bug?
also, which version of the module are you using?

48
Scripting / Re: Magic Tokens UPPERCASE?
« on: March 20, 2016, 12:41:43 AM »
Quote
Magic tokens can also be used to run a function defined in your layout or plugin's squirrel script to obtain the desired text. These tokens are in the form [!<function_name>]. When used, Attract-Mode will run the corresponding function (defined in the squirrel "root table"). This function should then return the string value that you wish to have replace the magic token. The function defined in squirrel can optionally have up to two parameters passed to it. If it is defined with a first parameter, Attract-Mode will supply the appropriate index_offset in that parameter when it calls the function. If a second parameter is present as well, the appropriate filter_offset is supplied.

from https://github.com/mickelson/attract/blob/master/Layouts.md#magic-tokens

49
Announcements / Re: Version 2.0.0 Release Candidate #3
« on: March 17, 2016, 08:24:57 PM »
Just downloaded the new build and it's looking good :)

50
Scripting / Re: Enhanced Intro video script
« on: March 17, 2016, 12:13:48 AM »
bump, updated script!

51
Themes / Re: PanAndScan module v1.1 release
« on: March 16, 2016, 11:34:17 PM »
This looks great!  I hope you don't mind but I'm going to include this in the package for the next version of Attract-Mode

Hey raygun!

By all means, I'm happy for it to be included with AM :)

You may also want to include a couple of other things I've posted today - an updated LEDBlinky plugin that resolves the crashes at startup, and an enhanced version of the intro video script that handles aspect ratios and monitor rotation.

52
Scripting / Enhanced Intro video script
« on: March 16, 2016, 11:29:59 PM »
I've been working on some layout code to handle monitor rotation and various aspect ratios in a nice way and thought the old intro video script could do with a bit of sprucing up.

My enhanced version of the intro script now supports playback of different video files depending on the aspect ratio of the monitor, and if you've rotated the screen.

Installation:
Extract the archive to the intro directory and overwrite the existing intro.nut file.

From the main menu, select the Intro item and you can configure a bunch of things like your monitor rotation orientation, aspect ratio detection, and the video files to play when different aspect ratios are detected.  It should be all pretty straightforward.


EDIT:
updated script to have a fallback to use the default video file if there is no match for the current aspect ratio video. (this should allow the video to play using a stock install of AM without having set up anything yet).

53
Themes / Re: [download] NEVATO theme
« on: March 16, 2016, 10:16:28 PM »
the option to have both, marquee and emulator-name would be nice!
like if marquee is missing, it show emulator-name-marquee

You can! Simply place an image file with the name of the emulator in to your marquee directory. For example, your emulator is named "mame" in AM, go into your marquee directory and put an image in there with the filename "mame.png" (or whatever image type) and AM will automatically use that in cases where it cant find a match for the game name.

54
General / Re: Attractmode hanging on startup with LEDblinky
« on: March 16, 2016, 10:01:13 PM »
Here's a proper fix instead of working around the issue with a batch file...

I noticed that raygun recently added additional support for plugins spawning processes in the background, so I updated the built in LEDBlinky.nut plugin script to use this new function call and voila, no more hangs and no need to manually start LEDBlinky beforehand, yay!  ;D

To use this updated script, simply extract the archive into your plugins directory and replace the original LEDBlinky.nut file.


55
General / Re: Attractmode hanging on startup with LEDblinky
« on: March 16, 2016, 05:10:04 AM »
Necro!

I just recently started playing around with a ServoStik using LEDBlinky to trigger the servo motor to switch the restrictor plate between 4/8 way.

It all works great until I bring AM into the picture.  As artyfarty mentioned, AM crashes magnificently when it spawns the LEDBlinky process at startup.

To work around this issue, I wrote a simple Windows batch file to start LEDBlinky running in the background immediately before launching AM.  See the below batch file:

attractblinky.bat
Code: [Select]
@echo off
start ..\ledblinky\ledblinky.exe
attract.exe

I have this file in my AM directory, with the LEDBlinky program files in the adjacent LEDBlinky directory.  Modify to suit your setup and it should be sweet!

Hope this helps for anyone else that is keen to get their Pac-Man on without getting stuck trying to turn around corners :)

56
Themes / Re: PanAndScan module v1.1 release
« on: March 15, 2016, 09:40:02 PM »
Ninja update - 1.1a

No changes to the PanAndScan module, I just noticed that I had left debug mode enabled in the PreserveArt module by mistake.  Debug mode is now disabled by default.

I have updated the original post with a new download link.

57
Themes / Re: PanAndScan module v1.1 release
« on: March 14, 2016, 04:23:23 AM »
What I mean is say your image is 1000,1000 but you want the end of the zoom to show the center as 300,325.

I see.  I don't currently have plans to add support for zooming in to an arbitrary location of the image other than the current anchor points, I'll certainly keep it in mind for future updates to the module.

Alternatively, I don't have any issues with people making changes to the module to suit their own needs.  If you want to add the functionality you want, go right ahead! :)

58
Themes / Re: PanAndScan module v1.1 release
« on: March 14, 2016, 04:07:08 AM »
Would it be time consuming to have the zoom choose an x,y to be the center of the final zoom?

If you just want it to zoom without panning around, you can simply omit the set_animate() function call.

Upon reflection set_animate() is probably a misleading name, but it will only set the panning animation, which is handled separately from the zoom animation.

Also, while it is not possible to set x,y coordinates for the zoom direction, you can use the set_anchor() function to make the zoom to go towards one of the edges instead of the center of the image.

The ::Anchor table includes the following members: Left, Top, Center, Centre (same as Center), Right, Bottom.

So you could call:
Code: [Select]
my_art.set_anchor(::Anchor.Left);and it will make the zoom go towards the left edge of the image.

Is that what you are looking for?

59
Themes / Re: PanAndScan module v1.1 release
« on: March 13, 2016, 10:22:31 PM »
VERSION 1.1 RELEASED

added the following functions:

set_randomize_on_transition(bool)
set_start_scale(float)

See initial post for updated download and explanation.

60
General / Re: Some lists in Mame
« on: March 13, 2016, 08:32:20 PM »
Yep!

AM supports multiple lists for each emulator through the use of "Filters", which are comprised of a series of rules and exceptions that you set up.  Check out the following link for some details:

https://github.com/mickelson/attract/blob/master/Readme.md#further-customization

Pages: 1 2 3 [4] 5 6