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

Pages: [1]
1
Announcements / Re: Version 2.3 Released
« on: December 25, 2017, 12:48:56 PM »
Hot damn!   Multi Monitor now works!   It finally displays the Marquee's in the second monitor when moving through the menu.

Awesome!

2
Scripting / Re: How to keep second monitor visible?
« on: March 12, 2017, 07:03:56 PM »
Awesome thanks, I hadn't looked at the other thread since I'm not running Windows 10... 7 32bit here.  However wish I did now lol.

Guess I'll have to break out Visual Studio as well to compile the fix unless Raygun or the others incorporate the fix.  Did you have a chance to submit it as a bit report?

If not I can get around to it tomorrow night for you on Github.

Cheers
  Tim

3
General / Re: Multi Monitor not working
« on: March 12, 2017, 11:35:18 AM »

Code: [Select]
Starting Attract-Mode v2.2.1 (Windows)
Config: E:\attractmode\attract.cfg

*** Initializing display: 'Mame'
 - Loaded master romlist 'mame' in 321 ms (10372 entries kept, 0 discarded)
 - Constructed 28 filters in 126 ms (290416 comparisons)
 + MultiMon Plug-in: Using Monitor #2 (1920x1080)

AN ERROR HAS OCCURED [this function isn't static]

CALLSTACK
*FUNCTION [constructor()] E:\attractmode\plugins/MultiMon2.nut line [60]
*FUNCTION [main()] E:\attractmode\plugins/MultiMon2.nut line [104]

LOCALS
[my_config] TABLE
[tag] "mon2"
[i] 1
[this] INSTANCE
[my_config] TABLE
[vargv] ARRAY
[this] TABLE

AN ERROR HAS OCCURED [wrong type (unknown expected, got N5Sqrat5ClassI9FeMonitorNS_13NoConstructorEEE)]

4
Scripting / Re: How to keep second monitor visible?
« on: March 12, 2017, 11:29:24 AM »
I made a simple batch file that I use to drag and drop marquee image files onto for games that don't have one presently and don't have an artwork file either.

I plan to modify this in future to add the ability to check the existing layout file for the xml tag and add if missing but haven't had time yet.

Code: [Select]
@ECHO OFF
rem ensure param isn't blank

ECHO =================================================

rem Check for existing Artwork File
ECHO Checking to see if Artwork file already exists...
if exist e:\mame32\artwork\%~n1.zip (
    rem file exists
    echo Artwork %~n1.zip File Exists, Exiting...
    ECHO.
    pause
    exit /b
) else (
    rem file doesn't exist
    echo Artwork %~n1.zip File does not exist.
)

ECHO.

rem Check for existing png marq File
ECHO Checking to see if Marquee file is available...
if exist E:\mame32\marquees\%~n1.png (
    rem file exists
    echo Marquee %~n1.png File Exists...
) else (
    rem file doesn't exist
    echo Marquee %~n1.png File does not exist, Exiting...
    ECHO.
    pause
    exit /b
)

ECHO.

rem copy marq file to artwork
echo Coying %~n1.png to artwork directory...
copy E:\mame32\marquees\%~n1.png e:\mame32\artwork

echo Creating %~n1.lay file...
echo ^<mamelayout version="2"^> > e:\mame32\artwork\%~n1.lay
echo ^<element name="marq"^> >> e:\mame32\artwork\%~n1.lay
echo ^<image file="%~n1.png" ^/^> >> e:\mame32\artwork\%~n1.lay
echo ^<^/element^> >> e:\mame32\artwork\%~n1.lay
echo ^<view name="Marquee_Only"^> >> e:\mame32\artwork\%~n1.lay
echo ^<marquee element="marq"^> >> e:\mame32\artwork\%~n1.lay
echo ^<bounds x="0" y="0" width="1366" height="384" ^/^> >> e:\mame32\artwork\%~n1.lay
echo        ^<^/marquee^> >> e:\mame32\artwork\%~n1.lay
echo ^<^/view^> >> e:\mame32\artwork\%~n1.lay
echo ^<^/mamelayout^> >> e:\mame32\artwork\%~n1.lay

rem send both to zip
Echo Creating %~n1.zip file...
C:\Progra~1\7-Zip\7z.exe a e:\mame32\artwork\%~n1.zip e:\mame32\artwork\%~n1.png e:\mame32\artwork\%~n1.lay

rem delete marq and lay
Echo Deleting %~n1.png and %~n1.lay...
del e:\mame32\artwork\%~n1.lay
del e:\mame32\artwork\%~n1.png

Echo Finished.
ECHO.
pause

5
Scripting / Re: How to keep second monitor visible?
« on: March 12, 2017, 11:25:26 AM »
Interesting you can get Multimon to work, for me I just get errors whenever I try to use any of the fe.monitors functions.

With regards to Marquee, I am doing the same thing but I use Mame to control the second monitor and marquee display.  Works perfect.  My problem is getting attractmode to display the marquee when in the menu system (but it obviously works for you).

For Mame, just edit artwork .lay file for the game you want to play and add Marquee options or create a new one:

Code: [Select]
<mamelayout version="2">
<element name="marq">
<image file="btime.png" />
</element>
<view name="Marquee_Only">
<marquee element="marq">
<bounds x="0" y="0" width="1366" height="384" />
        </marquee>
</view>

</mamelayout>

Don't forget to add the marquee to the artwork file as well (just add to the zip).  Then run mame and bring tab menu up, displays second monitor change to Marquee_Only.

You can add this to your mame.ini so it always does this:

#
# OSD PER-WINDOW VIDEO OPTIONS
#
screen0                   //.DISPLAY1
aspect0                   auto
resolution0               auto
view0                     standard
screen1                   //.DISPLAY2
aspect1                   auto
resolution1               auto
view1                     Marquee

6
General / Re: Multi Monitor not working
« on: March 12, 2017, 10:51:59 AM »
Ok I made a simple plugin to display an image on keypress, works fine.

However once I enable multi monitor support in .cfg ( multiple_monitors    yes ) and try to display the image on monitor #2 (index 1 in the array) using the fe.monitors[].add_image I get the error:

_image = fe.monitors[1].add_image( config["image"], 0, 0, fe.layout.width, fe.layout.height );

AN ERROR HAS OCCURED [wrong type (unknown expected, got N5Sqrat5ClassI9FeMonitorNS_13NoConstructorEEE)]


Similar error as the Multimon plugin.

---

So something isn't happy at the moment.

7
General / Re: Multi Monitor not working
« on: March 12, 2017, 10:16:45 AM »
I'm also working on this and attempting to debug the multimon.nut plugin.   I am getting the following errors when I try to use it:

Code: [Select]
Starting Attract-Mode v2.2.1 (Windows)
Config: E:\attractmode\attract.cfg

*** Initializing display: 'Mame'
 - Loaded master romlist 'mame' in 338 ms (10372 entries kept, 0 discarded)
 - Constructed 28 filters in 135 ms (290416 comparisons)
Debug-->Monitors Found: 2
 + MultiMon Plug-in: Using Monitor #2 (1920x1080)

AN ERROR HAS OCCURED [wrong type (unknown expected, got N5Sqrat5ClassI9FeMonitorNS_13NoConstructorEEE)]

CALLSTACK
*FUNCTION [constructor()] E:\attractmode\modules\fade.nut line [49]
*FUNCTION [constructor()] E:\attractmode\plugins/MultiMon.nut line [78]
*FUNCTION [main()] E:\attractmode\plugins/MultiMon.nut line [108]

LOCALS
[target] INSTANCE
[height] 1080
[width] 1920
[y] 0
[x] 0
[label] "flyer"
[this] INSTANCE
[my_config] TABLE
[tag] "mon2"
[i] 1
[this] INSTANCE
[my_config] TABLE
[vargv] ARRAY
[this] TABLE

So currently trying to figure this out.

Cheers
  Tim

8
Themes / Re: Game Station Theme v2.6.3 (Support 4:3 & Wide Screen now)
« on: March 12, 2017, 09:49:35 AM »
Sure no problem at all.  Here you are:

In your \attractmode\layouts\Game Station directory, edit the file layout.nut.  Add a new line just above the last line of Class UserConfig:

Code: [Select]
</ label="Display Flyer or Cabinet", help="Flyer or Cabinet", options="flyer,cabinet", order=9 /> disp_type="flyer";

Then change the Order Number of the last line to account for this new line (Change order=9 to order=10):

Code: [Select]
</ label="Display Move Strip", help="Display move strip. Remember to create a new artwork folder called [flyer2]", options="Yes,No", order=10 /> enable_strip="Yes";
Then under the //Flyer section, change the fe.add_artwork line to be as follows:

From:
Code: [Select]
local flyer = fe.add_artwork("flyer", flx*0.59, fly*0.11, flw*0.41, flh*0.691 );
To:
Code: [Select]
local flyer = fe.add_artwork(my_config["disp_type"], flx*0.59, fly*0.11, flw*0.41, flh*0.691 );
---

Then you need to add a new Artwork for your cabinets, you can either do this through the menu system or edit the file manually:

In \attractmode\emulators\mame.cfg add a new artwork line called "cabinet" and the path you your cabinet files:

artwork    cabinet         e:\pS_Cabinets

---

Should be good to go, just go into Layout Options for this Theme and choose "cabinet".  You could easily add the other options line control panels, etc.

Cheers
   Tim

9
Themes / Re: Game Station Theme v2.6.3 (Support 4:3 & Wide Screen now)
« on: March 11, 2017, 01:13:51 PM »
Like everyone else, I am enjoying this theme.

However I'd like to modify it to cycle between the flyer and a cabinet shot in the big right hand side pane (rotate ever few seconds or so).  I made the fairly trivial mod of adding  new config option to display Flyer or Cabinet but not quite the same.

Has anyone done this yet?

Thanks

10
General / Re: filtering buy number of buttons, controls.ini
« on: March 08, 2017, 05:45:53 PM »
Thanks guys!  I just got a rotary joystick and was hoping to filter on "control contains rotary" but I see that filter currently doesn't work (likely due to controls.ini being ignored at present).

Keep us posted if it adds it.

Cheers
  Tim

11
Scripting / Re: Need Help...display an image when you press a button
« on: March 04, 2017, 11:44:28 AM »
Thanks for this guys!   

I used CPWizard to export all my control panel layouts (because loading CPWizard dynamically was WAAAYYY too slow and glitchy).

Then moved all those exported images to a cpanelwiz directory.

Added a new artwork for cpanel to link to that directory.

Configured your plugin to do artwork and cpanel and voila!   Hit a button with game select and get instant display of controls.

---

Now I just need to add a little more such as turning the pop-up off if the user changes game (moves up and down).

Cheers
   Tim

EDIT: And of course there is an issue with CPWizards export function... only a bunch of the batch exports worked, the rest are defaulted.  Back to trying to get showcp plugin to work.

12
General / Re: Selecting Default Filter on Startup of Attractmode
« on: March 02, 2017, 07:23:09 PM »
Awesome thanks.  Just did it and worked great.

Now to figure out how to get AM to start always at that filter list instead of last game or display menu.

Cheers
  Tim

13
General / Selecting Default Filter on Startup of Attractmode
« on: March 01, 2017, 06:58:51 PM »
My Google-Fu and Search hasn't had any luck...

How can I change the default startup filter in AM?

Basically I don't want it to startup with "all" displayed, I would prefer it start with "favourites".

Thanks!

Pages: [1]