MAMEWorld >> EmuChat
Previous thread Previous  View all threads Index   Next thread Next   Threaded Mode Threaded  

Pages: 1

Shiro
MAME Fan
Reged: 02/11/21
Posts: 6
Send PM


Where do mame .inp and .avi files go in Linux (Ubuntu)?
#389871 - 02/11/21 03:32 AM


So let's say I record a PacMan .inp file. For that I go in the terminal and put "mame pacman -record pacman.inp". Then just to confirm if it was really created, I put the file to playback with "mame pacman -playback pacman.inp" and it replays successfully. But the problem is, where is the .inp file located exactly? I searched the whole drive for "pacman.inp" and nothing was found. On Windows it's easy since they just go to the inp subfolder, which is in plain sight in the mame folder. But where do they go in Linux?

And similarly, where do .avi files go? I created one with "mame pacman -aviwrite pacman.avi" in the terminal but have no idea where the video went, so I can't even play it.



Vas Crabb
BOFH
Reged: 12/13/05
Posts: 4462
Loc: Melbourne, Australia
Send PM


Re: Where do mame .inp and .avi files go in Linux (Ubuntu)? new [Re: Shiro]
#389872 - 02/11/21 05:03 AM


I don’t know how it’s configured on Ubuntu by default. Do something like:

Code:

mame -showconfig | egrep '^(input|snapshot)_directory\>'


That should show you the configured directories for those things.

Alternatively, run MAME, then at the system selection menu choose Configure Options (Tab or use the mouse to get to it), then Configure Directories, then Snapshots. That will show where AVI files go. It looks like it doesn’t have a GUI option for the input recording directory.



Moochieone
MAME Fan
Reged: 08/25/19
Posts: 67
Loc: Virginia
Send PM


Re: Where do mame .inp and .avi files go in Linux (Ubuntu)? new [Re: Shiro]
#389873 - 02/11/21 06:13 AM


Only a guess, and Vas's solution should confirm this, but could it be defaulting to the home directory of the user running the application?



AJR Hacker
MAME Developer
Reged: 02/01/16
Posts: 144
Send PM


Re: Where do mame .inp and .avi files go in Linux (Ubuntu)? new [Re: Vas Crabb]
#389874 - 02/11/21 05:37 PM


> I don’t know how it’s configured on Ubuntu by default. Do something like:
> mame -showconfig | egrep '^(input|snapshot)_directory\>'
> That should show you the configured directories for those things.

These path options default to "inp" and "snap", but the standard distribution doesn't include those directories. This is likely due to the fact that git doesn't support empty directories in repositories; the existence of the dummy file roms/dir.txt is a partial workaround for this.



Shiro
MAME Fan
Reged: 02/11/21
Posts: 6
Send PM


Re: Where do mame .inp and .avi files go in Linux (Ubuntu)? new [Re: Vas Crabb]
#389875 - 02/11/21 08:31 PM


I fixed the .avi problem by changing the snapshots directory in the gui (configure options > configure directories > snapshots). But since I can't change the input directory through there, I still don't know where the .inp files are going.

"mame -showconfig | egrep '^(input)_directory\>'" says they're in "$HOME/.mame/inp", but I don't have such a subfolder. The only one I have there is "roms", and that's where I put the games. Just for testing I created an "inp" subfolder in that place and recorded another inp file through the emu just to see if it'd end up there, but it didn't.

If you guys could point out a different way to change the inputs directory (that's not through the gui), it'd be appreciated.



blarg
Commie64-Nut
Reged: 07/01/07
Posts: 57
Send PM


Re: Where do mame .inp and .avi files go in Linux (Ubuntu)? new [Re: Shiro]
#390172 - 03/07/21 10:42 AM


You realize that .mame in your homefolder is hidden, right? For example in thunar (Xfce), Ctrl+H shows hidden files, and IIRC in nautilus (Gnome) also. Or look in the menu of your filebrowser and tick "show hidden files".

Alternatively, if you don't have a .mame folder, just create one. The run
Code:

mame -cc

to create a fresh mame.ini and edit it with your texteditor (mousepad, or in Gnome it's gedit IIRC). You might experiment with using full paths, so instead of $HOME/.mame/inp just use /home/myuser/inp.

Also, look if you have a /etc/mame directory, and check if something is in there. If you have config-files in there, they probably have wrong paths and don't work correctly.
I'm on manjaro and /etc/mame was empty, but I had to put softlinks to mame.ini in there to get everything working properly. You might give it a shot.

For this to work you first need mame.ini and the directory ini in your /home/myuser/.mame and then run (substitute "myuser" with your username!):


Code:

sudo ln -s /home/myuser/.mame/mame.ini /etc/mame/mame.ini

sudo ln -s /home/myuser/.mame/ini /etc/mame/ini



Lastly, you could check where your mame-files are located. On my manjaro-box:


Code:

[myuser@myuser-pc ~]$ whereis mame
mame: /usr/bin/mame /usr/lib/mame /etc/mame /usr/share/man/man6/mame.6.gz



Here, important files are in /usr/lib/mame. You might need to copy over relevant directorys to your $HOME/.mame directory. I had to do this with the artwork, bgfx, plugins and shader- directories.

That's what I had to do to get mame working properly. Yes, it's quite odd, frankly.


Pages: 1

MAMEWorld >> EmuChat
Previous thread Previous  View all threads Index   Next thread Next   Threaded Mode Threaded  

Extra information Permissions
Moderator:  Robbbert, Tafoid 
0 registered and 217 anonymous users are browsing this forum.
You cannot start new topics
You cannot reply to topics
HTML is enabled
UBBCode is enabled
Thread views: 458