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

Pages: 1 2 3 [4]
46
Themes / Re: Default layouts with arbitrary resolution
« on: December 10, 2019, 05:29:43 AM »
First time I tried attract mode, I rejected it because almost no theme was working in the not very mainstream resolution of my galaxy book..
Months later I gave attract mode a second chance,  finding out that by changing the resolution in the code, almost every theme was working, and scaled perfectly in full screen..

47
Scripting / Re: Newbie question: Rotate snapshot?
« on: November 16, 2019, 02:37:19 PM »
https://github.com/mickelson/attract/blob/v2.4.0/Layouts.md#Image

Depending on what you're trying to do...

rotation - Get/set rotation of image around its origin. Range is [0 ... 360]. Default value is 0.

skew_x - Get/set the amount of x-direction image skew (in layout coordinates). Default value is 0. Use a negative value to skew the image to the left instead.

skew_y - Get/set the amount of y-direction image skew (in layout coordinates). Default value is 0. Use a negative value to skew the image up instead.

example
Code: [Select]
//*****This is what i want to rotate
local t = fe.add_artwork( "snap", 348+240, 152-60, 262+550, 262+380 );
 t.rotation = -1.5;

Many thank although, I read your edited reply / solution after founding it by my self after many effort.. I had read your reply before posting the solution, but hadnt reply as i was trying myself to found out  what was actually the one value i wanted from all this.  I havent thought before reading  your answer that there is rotation in many angles..
I was changing values to other themes to understanding better..
What you posted was what i actually was asking. If you had posted sooner  would have been better. :) But if i hadnt read your first answer probably i wouldnt have solve it by myself.
Thanks again, and thanks everyone for your very helpful forum. I may probably upload the theme when i feel is good enough ,although it is very simple and easy, nothing special. But it is for amstrad cpc 464 and there aren't many so may probably be useful to someone as a part of a bigger theme.


48
Scripting / Newbie question: Rotate snapshot?
« on: November 16, 2019, 11:30:26 AM »
Hi. I have modified a basic script to my needs, changing the values i wanted. Only thing i still trying without succes is rotating a bit the video snap. Perhaps anyone can help. I read some time but havent succed. I wont need something more than that for the simple theme i build.
What should i add to the code to rotate the video snap ? This :  local t = fe.add_artwork( "snap", 348+240, 152-60, 262+550, 262+380 ); It display horizontally as is. I need a small angle to much my graphics (bg.png).
Thanks .
This is the code:

Code: [Select]
//
// Attract-Mode Front-End - "Basic" sample layout
//
fe.layout.width=2160;
fe.layout.height=1440;

//fe.layout.width=2160;
//fe.layout.height=1440;


//*****This is what i want to rotate
local t = fe.add_artwork( "snap", 348+240, 152-60, 262+550, 262+380 );



t.trigger = Transition.EndNavigation;

//t = fe.add_artwork( "marquee", 348, 64, 262, 72 );
t.trigger = Transition.EndNavigation;

local lb = fe.add_listbox( 32, 64, 262, 852 );
lb.charsize = 19;
lb.set_selbg_rgb( 255, 255, 255 );
lb.set_sel_rgb( 0, 0, 0 );
lb.sel_style = Style.Bold;

fe.add_image( "bg.png", 0, 0 );

local l = fe.add_text( "[DisplayName]", 30, 15, 270, 30 );
l.set_rgb( 255, 255, 255 );
l.style = Style.Bold;

// The following function tells the frontend to use our title
// text and listbox (created above) for any menus (exit menu,
// etc...
//
fe.overlay.set_custom_controls( l, lb );

// Left side:

//*******tilos
//lText.rotation = -60.5;
l = fe.add_text( "[Title]", 1970, 1265, 320, 16 );
l.align = Align.Left;
l.charsize = 17;
l.style = Style.Bold;
l.rotation = -4.0;
l.set_rgb(240, 240, 240  );




l = fe.add_text( "[Year] [Manufacturer]", 30, 441, 320, 16 );
l.set_rgb( 200, 200, 70 );
l.align = Align.Left;



l = fe.add_text( "[Category]", 30, 458, 320, 16 );
l.set_rgb( 200, 200, 70 );
l.align = Align.Left;

// Right side:

l = fe.add_text( "[ListEntry]/[ListSize]", 935, 1067, 290, 16 );
l.set_rgb( 255, 255, 255 );
l.align = Align.Right;
l.charsize = 16;
l.style = Style.Bold;
l.rotation = 2.0;

l = fe.add_text( "[FilterName]", 320, 441, 290, 16 );
l.set_rgb( 200, 200, 70 );
l.align = Align.Right;



49
Emulators / Re: Various emulator settings
« on: November 15, 2019, 05:28:59 AM »
@ sosimple
are you able to start a game correct from commandline with cart1 and cart2 as parameter?
(mame documentation)

something like this:
mame64.exe  cpc6128 -flop1 "C:\AMSTRAD\yourgamedisk1.dsk"  -flop2 "C:\AMSTRAD\yourgamedisk2.dsk" and so on...

if this works, we can find a way, to add to AM ^-^

Thanks man.. I tried many things didn't succed yet. I am sure it can't be done, i just don't have enough Knowledge..
If i made it I'll post here. Thanks again.

50
Emulators / Amstrad cpc 2 discs game?
« on: November 12, 2019, 04:38:38 AM »
Hi , I am using this , which is working fine to run amstrad cpc .dsk through mame emulator.
But if the game have 2 disks, how can i make it run?
Also some games doesnt use Run"gamename" but just : |cpm
I have make a 100 gamelist working fine, and i cant add some more..
If anyone have any idea. Thanks anway!

# Generated by Attract-Mode 1.5.1
#
executable         d:\sosimple\Portaible\MAME\MAME209\MAMEUI64v209nonag\mame64.exe
args                 cpc6128 -flop1 "D:\sosimple\Portaible\MAME\AMSTRAD\dsk\[name].dsk" -ui_active -autoboot_command "run\"[name]\n" -autoboot_delay 2 -cfg_directory "D:\sosimple\Portaible\MAME\AMSTRAD\cfg\[name]"
rompath            D:\sosimple\Portaible\MAME\AMSTRAD\dsk
romext               .dsk;.7z;.zip;<DIR>
info_source          MAME
artwork    flyer           
artwork    marquee         D:\sosimple\Portaible\MAME\AMSTRAD\marquees
artwork    snap           D:\sosimple\Portaible\MAME\AMSTRAD\snap;  D:\sosimple\Portaible\MAME\AMSTRAD\video
artwork    wheel           D:\sosimple\Portaible\MAME\AMSTRAD\ScanD7

51
Use attractmode as your shell, instead of explorer. If you use your computer for other things as well, just kill explorer and restart it when done playing games.
I am not sure how to do this: Use AM as shell..

52
http://forum.attractmode.org/index.php?topic=1569.msg11660#msg11660
Maybe this?
Thanks. I had already find this, but didn't like that it has an app staying in tasbar. It consume some battery and resources all time.. Ofcourse if someone building a cabinets, don't mind it..
 I try another method. I already use rainmeter. I installed a rainmeter skin that make black all the background.
I actually modified the skin to do that. If I find a method to run it every time a game start for 5 second, it may work..
If I succeed I'll post my alternative method here. But I don't have much time now, so it is something for the future.
For now, I press a shortcut in desktop which call the skin, and everything goes completely black, except the running app. If I press the shortcut (desktop goes black) and run AM from start menu, it already works as it is. I run every game without see desktop. So it is already usefull for me.
If anyone wants it to continue it, I can post the script here.

53
Themes / Re: [video preview] BIONIC theme (vertical theme)
« on: June 08, 2019, 08:50:56 AM »
Very beautiful . If anyone could modify it to horizontal, it would be great. :)

54
General / Re: HLSL in MAME 0.209 when using Attract-Mode
« on: June 08, 2019, 08:38:40 AM »
How can I use hlsl? I can't find the option hlsl in name v209

55
Thanks. If everyone finds it please post it. If I find a solution I post it here.

56
Hi , congratulations to all for such a good project here. I have read alot here, setup some themes, mod them for my need. All perfect except this minor bug.
I use last version AM to windows 10 pro, samsung book 12 (core i5 8giga ram, resolution 2160x1440) ,mame version v209.
Every time in AM I select a game, for a millisecond I see desktop and then game runs. Same when I return to AM from a game.
I searched here. I only find something similar, to loose focus. I dont have this. Everything is working. Anyway I tried everything I read, no solution.
Perhaps running some script which would load a black screen for some millisecond before and after running emulator?
How could I setup this, and would this solve the problem?
Thanks ,
edit: If it helps, when I shutdown AM every window (internet explorer, file explorer etc, but not desktop) has become very small , and I have to resize them. So it is probably some changing resolution problem?
Edit2: I have the same problem if i don't run AM. By using mameui i see the same. So it is a mame problem..
I don't know how to resolve this..

57
Themes / Re: ioamiga. Theme for Amiga Computers.
« on: May 29, 2019, 03:10:40 AM »
Thanks for the beautiful theme. I tried in Samsung galaxy book 12 but it crashed because of the native resolution of 2160x1440.
Problem is solved by setting in the code: set_aspect = "16:10.666";

Pages: 1 2 3 [4]