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

Pages: 1 ... 17 18 [19] 20 21
271
Scripting / Re: Adding loading video
« on: January 24, 2017, 01:08:24 PM »
Make sure your layer is top most and just toggle visibility or opacity for fade.

Yes , but the thing is , AM starts playing the mp4 file when starts the layout , not when I launch the game.
It plays on the background even with opacity 0.
So when it fades in , can be playing on second 1 or second 20 its totally random.

I need a function or wathever to start the video only when I launch the game not before.

You need to stop and the video from playing and then have it start playing when during your transition. See layout.md. If you still have trouble, put your code in the post and I'll look at it when I get out from work.

I made this:

Code: [Select]
{
local basebar = fe.add_image( "loading/basebar.mp4", 0, 0, flw, flh );
basebar.alpha=0;

local alphabase_cfg = {
    when = Transition.ToGame,
    property = "alpha",
    start = 0,
    end = 255,
    time = 100
    delay = 1000
}
animation.add( PropertyAnimation( basebar, alphabase_cfg ) );

local hidebase_cfg = {
    when = Transition.FromGame,
    property = "alpha",
    start = 255,
    end = 0,
    time = 100
    wait = true
}
animation.add( PropertyAnimation( basebar, hidebase_cfg ) );

}

Maybe using video_flags (Vid.NoAutoStart) but I want to autoplay my videosnaps.

272
I found a solution to show real names using hyperspin oficial xml database.

You have to add this information to your emulator .cfg

Code: [Select]
info_source          listsoftware
import_extras      "Path To" \ScummVM.xml

"Path To" \ScummVM.xm means watherver you have donwloade the database file.

Just tested and this is how works:

Code: [Select]
#Name;Title;Emulator;CloneOf;Year;Manufacturer;Category;Players;Rotation;Control;Status;DisplayCount;DisplayType;AltRomname;AltTitle;Extra;Buttons
castlebrain;Castle of Dr. Brain (CD DOS);ScummVM;;1991;Sierra On-Line;Educational;;;;;0;;;;;
lsl1sci;Leisure Suit Larry 1 - In the Land of the Lounge Lizards (Floppy DOS VGA Remake);ScummVM;;1991;Sierra On-Line;Adventure;;;;;0;;;;;
monkey;Secret of Monkey Island, The (CD DOS VGA);ScummVM;;1990;Lucasfilm Games;Adventure;;;;;0;;;;;

273
Scripting / Re: Adding loading video
« on: January 24, 2017, 12:38:49 PM »
Make sure your layer is top most and just toggle visibility or opacity for fade.

Yes , but the thing is , AM starts playing the mp4 file when starts the layout , not when I launch the game.
It plays on the background even with opacity 0.
So when it fades in , can be playing on second 1 or second 20 its totally random.

I need a function or wathever to start the video only when I launch the game not before.

274
Scripting / Add loading video
« on: January 24, 2017, 09:19:57 AM »
I´m trying to add a loading.mp4 video for some systems using the property "when = Transition.ToGame," but the video seems to play behind AM when start the layout.
Any help with this stuff?
Could be awesome add a FadIn sequence like on hyperspin maybe with an external module or some dedicated function.


275
General / Re: Roms into subfolders
« on: January 23, 2017, 09:39:39 AM »
Sure, just a little update using DIR as rom extension like you show me

276
General / Re: Roms into subfolders
« on: January 21, 2017, 12:58:27 PM »
Wow!!! Thank you so much , working like a charm.

This is my future pinball config.If anyone wants to try with roms into subfolders.

Code: [Select]
args                 /open "[romfilename]\[name].fpt" /play /exit

277
General / Roms into subfolders
« on: January 19, 2017, 05:56:42 AM »
I know that I can set diferent rompath , but is AM able to scan roms into subfolders?
I mean , I have 259 dreamcast .zip roms and I want to decompress them.
But the only way is to leave them into subfolders , for exapmle:

Sega Dreamcast > Sonic Adventure > Sonic Adventure.gdi

278
Themes / Re: Nesica X live theme! [Release] new video!
« on: January 18, 2017, 09:36:25 AM »
Anyone can explain me how can I get this awesome theme to work propertly.
I've set two keys for next letter and previous letter to move right and left.
But cant move around all my wheels like on the youtube video demonstration.

Try set CONTROLS like this:

up(UP), down(DOWN), next game(RIGHT), previous game(LEFT)

works for me.

Not working , I really apreciate if anyone can explain me how to set the right controls.
This is my config.


279
Scripting / Re: Wher can I find all animations properties?
« on: January 18, 2017, 09:16:21 AM »
Ok finally solved.
I´m going to share my code to anyone who wants to add a spinning cd:

Code: [Select]
//////////////////////////////////////

// ANIMATION CDART PRESERVE ASPECT RATIO

//////////////////////////////////////

local cdart = fe.add_artwork("cdart", flx*0, fly*0.27 flw*0.19, flh*0.25);
cdart.preserve_aspect_ratio = true;

local cdart_rotation = {
    when = Transition.ToNewSelection ,property = "rotation", start = 0, end = 360, time = 3000, loop = true
 }

 //Animation
 
 animation.add( PropertyAnimation( cdart, cdart_rotation ) );

280
Scripting / Re: Wher can I find all animations properties?
« on: January 17, 2017, 01:24:11 PM »
I found some interesting thing.
I want to rotate my sega cds on my layout.
This is what I made.

Code: [Select]
animation.add( PropertyAnimation( OBJECTS.cdart, PropertyAnimations.rotate_right_90 ) );
How can I add an infinite movement or a loop to this animation?
Thanks.

281
Scripting / Wher can I find all animations properties?
« on: January 17, 2017, 06:25:45 AM »
I´m testing some animations , and want to know the "complete property list" that can be used.

I saw , property x , property scale ...

Where can I find more info about this? , thanks

282
Scripting / Re: Height of a text to display description
« on: January 17, 2017, 06:12:02 AM »
The code for that vertical theme came from Arcadebliss:

http://forum.attractmode.org/index.php?topic=643.0


It's in the history.dat file...check out the layout.nut and you will see the code. I hope this helps.

Thank you so much , I`ll check this.

283
Scripting / Re: Height of a text to display description
« on: January 16, 2017, 02:53:31 PM »
Can you please explain me how did you add game despcriptions?
Where did you put the "extra info" and how did you add to the .nut?
I want to add this feature.
Thanks.

The Extra field they are referring to is the one in the romlist file (romlist/mame.txt). In that file, you see the delimited columns:
Code: [Select]
#Name;Title;Emulator;CloneOf;Year;Manufacturer;Category;Players;Rotation;Control;Status;DisplayCount;DisplayType;AltRomname;AltTitle;Extra;Buttons
kinst;Killer Instinct (v1.5d);mame;;1994;Rare;Fighter / Versus;2P sim;0;joystick (8-way);good;1;raster;;;Killer Instinct is a great fighting game;6
You can add text in that field, then add the text in your layout like so:
Code: [Select]
local text = fe.add_text("[Extra]", 0, 0, fe.layout.width, 100)
text.charsize = 24
text.word_wrap = true

I'm not sure if there is a better way to do it.. I think you can use your own custom .ini files for Additional Import Files but I'm not sure how that works.

Thanks for the replay , but this is not exactly what I´m looking for.
I saw this picture on this post:



http://forum.attractmode.org/index.php?topic=1193.0

I want to add "game descriptions" like on emulationstation for example.
Is this possible?
Thanks.

284
Scripting / Re: Height of a text to display description
« on: January 16, 2017, 07:54:57 AM »
Hello everybody,

I am new to AM, and I am trying to make a custom layout.
I use the ScrollingText module to display long titles horizontally and it works fine.
But now, I want to display long descriptions vertically, but I don't know how to find the true height of a text.

If the text is not enough long, I don't want the scroll to be active. But when the game has a big description, I want to activate the scroll, and resize the height of the object fe.Text to fit the description inside (otherwise, the text is not totally displayed). I tried to make a fe.Text with a height = height of the screen, but the scroll displays too much empty text (and it wouldn't work if the description is very very long)

Is there a way to do such a thing?

Subsidiary question : I put the description of the game in the filed "Extra" in the rom list. Is there a better solution?

Thank you

Can you please explain me how did you add game despcriptions?
Where did you put the "extra info" and how did you add to the .nut?
I want to add this feature.
Thanks.


285
Scripting / Add game description & adjust video volume
« on: January 11, 2017, 05:04:44 AM »
1. I want to add game description to my themes .I've two problems ,I dont know what's the exactly code for this and need help on how to add this infornation ,xml, txt, info... what files should be added?

2.  I've added a music to my layout but now I want to adjust the videosnap volume while my music is playing.
But when I close or change this layout for another I would like to readjust the "standard" video volume.

Anyone can help me? Thanks.

Pages: 1 ... 17 18 [19] 20 21