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

Pages: [1] 2
1
Emulators / Autoit: Start program in background shift focus after x seconds
« on: September 18, 2018, 11:24:44 AM »
Demul is a special case in emulators where (afaik) pure command-line is not possible because Demul only accepts commands once its GUI is activated, bad for immersion because you don't go to game directly from AM and DEMUL GUI pops up. I'm using following for Gaelco via Demul:

#include <Misc.au3>
#include <_IsPressed360.au3>
$dll = DllOpen("xinput9_1_0.dll")
ShellExecute(@ScriptDir & "\demul.exe", ' -run=gaelco -rom="' & $CmdLine[1] & '"')
WinWaitActive("gpuDX11oldhw", "")
Send("!{ENTER}")
MouseMove(1920, 540, 0)
While 1
    If _IsPressed360("65536", $dll) And _IsPressed360("-32768", $dll) Then
      ProcessClose("demul.exe")
      ExitLoop
    EndIf
WEnd
DllClose($dll)


This script (made into an exe) works Ok. It opens demul, auto maximizes and hides the cursor but doesn't hide DEMUL GUI. Is it possible in this setup through additional commands that autoit opens demul in background and only shifts focus to Demul after 5 seconds when game starts so I don't see the Demul GUI?

2
Scripting / Re: Error (index "0") while using Leap Plugin
« on: September 18, 2018, 11:02:16 AM »
I hope platforms worked, due to differences between platform plugin and in-built functionality I might have missed something.

3
Scripting / Re: Error (index "0") while using Leap Plugin
« on: September 14, 2018, 05:17:06 AM »
Firstly thanks a lot for your plugins, they are really handy and have made the AM experience much better. This will be a long post so please bear with me  ;D.

Platforms are primarily used for nesting different systems in a tree like hierarchy for organization. A basic "tree" would be like:

> Platforms (Main Menu/ Root - this is the first screen)
                >Arcades
                             > MAME
                > Consoles
                             > Atari 2600
                > Computers
                             > DOS
                             > MSX
                > Handhelds
                             > GameBoy
                             > PSP etc

If you are for example on "MAME" and press back, you go back to Arcades, if you press back again you go back to Platforms (since its root if you press back again it will display the exit prompt). The main point being to create folders or nests in a hierarchy to keep displays organized. At first platform categories were usable only via using its plugin which is here http://forum.attractmode.org/index.php?topic=1804.0. In recent versions this capability has been added in AM itself. I am now using the built-in function not the plugin.

We can categorize your collection for sake of testing in: 
Arcades > arcade
Console > neogeo mvs
Computers > unisystem


1. Create or rename a display layout called "Platforms Menu"

2. Create 3 empty romlists (in default location) named Arcades, Consoles and Computers. In place of roms add the (exact) name of displays.
For Arcades (Arcades.txt)
#Name;Title;Emulator;CloneOf;Year;Manufacturer;Category;Players;Rotation;Control;Status;DisplayCount;DisplayType;AltRomname;AltTitle;Extra;Buttons
arcade;arcade;@;;;;;;;;;;;;;;


For Consoles (Consoles.txt)
#Name;Title;Emulator;CloneOf;Year;Manufacturer;Category;Players;Rotation;Control;Status;DisplayCount;DisplayType;AltRomname;AltTitle;Extra;Buttons
neogeo mvs;neogeo mvs;@;;;;;;;;;;;;;;


For Computers (Computers.txt)
#Name;Title;Emulator;CloneOf;Year;Manufacturer;Category;Players;Rotation;Control;Status;DisplayCount;DisplayType;AltRomname;AltTitle;Extra;Buttons
unisystem;unisystem;@;;;;;;;;;;;;;;


3. Open attract.cfg and add Arcades, Consoles and Computers. Mine are as following (layout should be changed):
display   Arcades
   layout               Arcades Menu
   romlist              Arcades
   in_cycle             yes
   in_menu              yes
   filter               ALL
      sort_by              Title

display   Consoles
   layout               Consoles Menu
   romlist              Consoles
   in_cycle             yes
   in_menu              yes
   filter               ALL
      sort_by              Title

display   Computers
   layout               Computers Menu
   romlist              Computers
   in_cycle             yes
   in_menu              yes
   filter               ALL
      sort_by              Title


In my case all other displays are "in_menu = no" since they are nested into above mentioned displays (in_menu = yes would display them twice, once listed with platform categories then in the category display). So you may "change in_menu = no" for arcades, neogeo mvs and unisystem so they are only listed once.

3. Open AM go to
Settings > General > Start Up Mode = Displays Menu
Settings > Displays > 'Display Menu' options > Menu Prompt = Displays Menu
Settings > Displays > 'Display Menu' options > Menu Style/ layout = Platforms Menu

Thats it, you should have the following setup now:
Platforms
         > Arcades
                  > arcade
         > Consoles
                  > neogeo mvs
         > Computers
                  > unisystem 


4
Scripting / Error (index "0") while using Leap Plugin
« on: September 14, 2018, 01:37:58 AM »
Leap plugin is working as intended (skips empty filters except "All") but an error regarding index "0" is registered in the console window whenever AM is run. I am pasting the error log (on win 8.1):

----------------
AN ERROR HAS OCCURED [the index '0' does not exist]

CALLSTACK
*FUNCTION [logic()] D:\Attract-Mode\Attract-Mode v2.4.0 (x64)\plugins/Leap/plugin.nut line [26]
*FUNCTION [transitions()] D:\Attract-Mode\Attract-Mode v2.4.0 (x64)\plugins/Leap/plugin.nut line [22]

LOCALS
[direction] 2
[this] INSTANCE
[ttime] 0
[var] 2
[ttype] 0
[this] INSTANCE
Script Error in transition function: transitions - the index '0' does not exist

------------

This error message is repeated with different [ttype] and [direction] repeatedly while using AM. Lines pointed out in error in Leap/plugin.nut are:

Line22:    if ((ttype == Transition.StartLayout) || (ttype == Transition.ToNewSelection) || (ttype == Transition.ToNewList)) logic(var);
Line26:    if ((fe.filters[fe.list.filter_index].name != exception) && (fe.list.size == 0)) {

I am using Platform Categories (arcades, consoles etc) could that be the reason for this error? Can anyone please help in this regard or guide me toward a solution.

5
General / Re: Make first screen console selection
« on: September 12, 2018, 10:14:28 PM »
If you have setup sub menus go to Setting > General > Startup Mode and select "Show Display Menu" (which is the root)

6
General / Re: Having trouble running PC games from attract mode
« on: September 12, 2018, 10:12:02 PM »
Just checked SFIV (Ultra) on my setup, AM is running it without a hitch didn't need to tweak anything or elevate to admin. But I am on win 8.1 so maybe its a win 10 thing.

7
Thanks a lot for sharing your apps farique!

8
General / Re: Having trouble running PC games from attract mode
« on: September 10, 2018, 09:51:20 AM »
Possibly game launcher issues. Try running these games via command line (main exe if you are using lnks), if that works run them through AM with admin rights.

9
General / Adding Overviews For Emulated Systems (e.g. NES, Genesis)
« on: September 10, 2018, 02:16:17 AM »
While experimenting with overviews today I (accidentally) found a solution for adding overviews for emulated systems. I am pretty sure someone was asking about that but can't find the thread right now. In latest version of Attract-Mode overviews for roms are stored in:

AM\scraper\[Emulated System]\overview\[rom-name].txt

(Note: In prior versions overviews were stored in AM\romlists\[Emulated System]\[rom-name].cfg)

IF you are using sub-menus e.g. "Start>Consoles>NES" (You don't need Platforms plugin in latest version) you can add overviews for emulated systems by creating a folder "@" in AM\scraper. Result should be like this:

AM\scraper\@\overview\[Emulated System].txt

An Example:
Lets say there is system "NES (Retroarch)", The file should be placed as:

AM\scarper\@\overview\NES (Retroarch).txt

You can add and tweak overviews presentation in layouts via following variables:

//Overview //Heading in comment
local soverview = fe.add_text("[Overview]", 680, 10, 600, 1070); // Add overview (I'm calling it soverview for systemoverview you can name it anything not in use) + Dimensions
soverview.font="BebasNeue Book.ttf"; //Font utilized - In windows either placed with other fonts in "\Windows\Fonts" or placed in layout folder
soverview.align = Align.TopLeft; // Alignment of text - in recent versions AM supports Top/ Bottom alignment
soverview.word_wrap = true; // Word Wrap true or false
soverview.charsize = 24; // Text size
soverview.style = Style.Bold; // Style Bold, Normal or Italic
soverview.set_rgb(180,180,180); //Text color


PS: funny thing, I thought it'll work by adding actual platform categories like arcades or consoles no idea why "@" would work in this case - secondly please move overviews from /scraper to /overviews. Scraper is like a temporary folder before you move scraped data to relevant places. I'm afraid of overwriting data :(

10
General / Re: Demul In AM
« on: August 20, 2018, 03:16:54 AM »
ANYONE?

Demul runs Dreamcast and a bunch of Arcade systems based on DC like Atimiswave, Naomi, Hikaru etc. Hikaru & Gaelco games won't run in full screen unless you press Alt+Enter manually (Demul Limitation atm). DC games should be running without a hitch, any specific title which shows this behavior?

You might wanna check Reicast OIT core (Retroarch) .

11
Scripting / Re: How to pass elements from romlist to emulator?
« on: February 26, 2018, 11:22:56 AM »
Can you expand on that a bit? are you trying to pass the parameters to emulator or front end? Most of the parameters can be accessed via layout.nut through magic tokens e.g. [Year], [AltTitle] [Players] etc. You can check the wiki (listed in topics) for a complete list of magic tokens.


As for explanation of romlist:

Code: [Select]
cclimber;Crazy Climber;mame;;1980;Nichibutsu;;2;0;double joystick,double joystick;good;1;raster;;;;
cclimber = #Name    -- that is the actual name of rom (as in ur hd)
Crazy Climber = Title -- the actual title of game in db or one you gave in romlist
mame = Emulator -- emulator configured for romlist
; = CloneOf (missing value) -- arcade games usually have clones i.e. games which are based on same parent with minute differences usually regional. Here it mentions the parent (if any) of rom
1980 = Year -- year of release
Nichibutsu = Manufacturer -- manufacturer of game
; = Category (missing) -- action/board/shooter i.e. genre of game
2 = Players -- no of players
0 = Rotation (seems to be wrong) -- rotation angle of display
double joystick = Control (double entry it seems) -- control scheme
good = Status  -- status of game in mame database (working, good, not working)
1 = DisplayCount -- not sure but guess no of monitors
raster = Displaytype --type of display
; Altromname (missing) -- alternate name of rom
; AltTitle (missing) -- alternate title of rom
; Extra (missing) -- any other info not covered in other heads
; Buttons (missing) -- button config? perhaps not sure



Mind it this is only for mame, console emulators are usually limited to name, title, year, players and manufacturer.

P.S: to my surprise not all parameters are accessible. atm [Extra] & [Buttons] can't be accessed

12
Scripting / Re: How to insert Emulator text story
« on: February 14, 2018, 02:03:52 PM »
Try adding [emulatorname].cfg in romlists\[Displaymenu] - should work if you are utilizing platforms addon. In the cfg add overview before adding the console/system story.  You can access that in your layout by calling [overview]. Example:

local sysview = fe.add_text("[Overview]", 1000, 500, 600, 300);//overview of system with dimensions
sysview.font="BebasNeue Book.ttf";//font utilized
sysview.align = Align.Left;//alignment of text
sysview.word_wrap = true;//wrap or not
sysview.charsize = 24;//charachter-size of text
sysview.style = Style.Bold;//style borld, normal or italic
sysview.set_rgb(255,255,255);//text color

13
General / Re: Add emulator for Videopac/odyssey2?
« on: February 06, 2018, 10:38:03 AM »
"Emulators" topic (listed last) has configurations for many systems so check that out.

For Videopac/Odyssey2 you can use Retroarch (core o2em > https://github.com/libretro/libretro-o2em).

as for conf:
executable           path\to\Retroarch\retroarch.exe
args                 -L "path\to\Retroarch\cores\o2em_libretro.dll" "[romfilename]"
rompath              path\to\roms
romext               .bin
system               Odyssey 2

14
General / Re: Filter empty
« on: November 08, 2017, 03:20:07 AM »
After putting catver.ini as Additional import File you have to generate romlist again so data (category info) can be imported from catver.ini to romlist

15
Scripting / Re: Static List & Dynamic Selection Bar
« on: November 08, 2017, 03:07:01 AM »
Thank you, the part where it selects consoles is exactly what i want. I'll check Modified grid

Pages: [1] 2