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

Pages: [1]
1
Scripting / UltraStik 360 plugin question
« on: November 06, 2016, 07:45:01 PM »
With the UltraStik 360 plugin, is there a way to modify the script to send a default configuration via UltraMap to the stick on selecting a game if there is no .ugc file found? As I understood it from the plugin's description, that's what it is supposed to do, but it does not do this in practice.

I'm forced to use "control" as the maps_info variable in the Attract Mode plugin settings because I can't realistically hand-create .ugc files for 9000+ games by name (that are all the right type), and while mostly it works by control type, when I load up Battle Zone for example, it tries to locate a .ugc with a null filename, because there's apparently no control type listing associated with the game from MAME's xml & ini files, and it errors out. ("Cannot find C:\Emulation\UltraMap\Maps\.ugc" is pretty close to the error shown in the dialog box, off the top of my head)

I'd like to reconfigure the plugin script to use a routine something like if control.ugc is found, then send control.ugc, else send 8-way_default.ugc in the section for loading a game, so that it will load the default the same way it does in the game exit section if no other file is found.

Transition.ToGame is the part I mean:
Code: [Select]
function ultra_plugin_transition( ttype, var, ttime ) {

if ( ScreenSaverActive )
return false;

switch ( ttype )
{
case Transition.ToGame:
fe.plugin_command( config["command"],
"\"" + maps_dir
+ fe.game_info( maps_info )
+ config["maps_ext"] + "\"" );
break;

case Transition.FromGame:
fe.plugin_command( config["command"],
"\"" + maps_dir
+ config["default_map"]
+ config["maps_ext"] + "\"" );
break;
}

return false; // must return false
}

Is this possible?

2
General / Re: Any way to do a static image slideshow in artwork?
« on: August 19, 2016, 07:27:50 AM »
OK, I see how that could do it, though when I look at the main function I'm not sure what I'm looking at enough to try to modify it.  :o ;D

I guess I'll have to keep an eye on that link to see when it's fixed. Thanks!

3
General / Any way to do a static image slideshow in artwork?
« on: August 18, 2016, 07:40:32 PM »
Hello, I'm new to Attract Mode, coming from MAMEWah and MaLa. I have managed to get things configured mostly how I like, but there are a couple things I can't seem to do, so I thought I'd ask about one of them in particular.

In the other front ends I've used, I was able to set up a timed transition between a game snapshot and a game title screen; when idle on a game in the list, it would display the title png, then switch to the snap png 2-3 seconds later, cycling back and forth endlessly until selecting the next title in the list or starting the game. Is there a way to do this in Attract Mode?

I know about using videosnaps, which I get how to do and will likely do, but since it defaults back to the static artwork if a video isn't available, I'd like to implement the static image slideshow function in it's place where needed. I'm afraid, however, I don't fully understand the squirrel language info well enough to figure out how to do it or if it's even possible. Any info is greatly appreciated.

Thanks!
Khenemet Heru

Pages: [1]