EMULAB Forum

clrmamepro [English] => clrmame Discussion => Topic started by: Mucci on 14 November 2018, 12:10

Title: filenames are too long
Post by: Mucci on 14 November 2018, 12:10
some switch files have large file names example "0775 - SNK Heroines - Tag Team Frenzy - Thief Arthur (Japan) (En,Ja,Fr,De,Es,It,Zh,Ko) (v1.20) (DLC Unlocker) (eShop)".
foldernames + filename breaks the max limit for "normal" program to handle.

CLRMAME can not scan them and displays it as "unneeded", but they are correct. Is there small change that we can do something in CLRMAME?
Title: Re: filenames are too long
Post by: Roman on 14 November 2018, 12:27
The operating system limits the pathname length, not cmpro. In cmpro there is no limt for the filename.

Most likely your used rompath + setname hits the standard windows limit which is 260 characters.
NTFS supports 32k, however to actually use them, you need to use a different rompath style, you need to prefix them with for example: \\?\e:\mame\roms\neogeo instead of just e:\mame\roms\neogeo

Title: Re: filenames are too long
Post by: Mucci on 15 November 2018, 08:14
thanks for the reply and info (nice to know) ......but CLRMAME can not handle that style ;-)

and yes I know it a system problem not CLRMAME :-)
Title: Re: filenames are too long
Post by: Roman on 15 November 2018, 08:25
Sure it supports it.

Go to settings and change your rompaths (e.g. hit F2 on your setup ones and add the prefix \\?\)
Title: Re: filenames are too long
Post by: Mucci on 15 November 2018, 08:42
\\?\g:\nintendoswitch\dlc 0000-0049\
I have changed all my file-path with an import XML -> CLRMAME complains that it contains no valid sets ....is the space the problem?

Title: Re: filenames are too long
Post by: Roman on 15 November 2018, 08:54
spaces in pathanmes aren't a problem

..maybe you don't follow the general storing method?

rompath\setname\file1...n for decompressed sets
rompath\setname.rar(.zip/.7z) where the archive then contains file1...n for compressed sets

so if you a rompath "\\?\g:\nintendoswitch\dlc 0000-0049\", and a set called xyz with a single rom called disc.iso, you should have them stored like:
"\\?\g:\nintendoswitch\dlc 0000-0049\xyz\disc.iso"


So...maybe you should a) send me the used datfile and b) let me know how the files are stored on your system ...so I can try to repeat the behaviour and the filestructure here...
Title: Re: filenames are too long
Post by: Roman on 16 November 2018, 17:55
So any news on this?
I've did some tests with extremly long path/set/filenames with some custom made dats and working with the \\?\ prefix for all paths works fine here
Title: Re: filenames are too long
Post by: Mucci on 17 November 2018, 08:23
Sorry for the delay. My example is stored like this, they are uncompressed:
"\\?\G:\NintendoSwitch\dlc 0750-0799\0775 - SNK Heroines - Tag Team Frenzy - Thief Arthur (Japan) (En,Ja,Fr,De,Es,It,Zh,Ko) (v1.20) (DLC Unlocker) (eShop)\0775 - SNK Heroines - Tag Team Frenzy - Thief Arthur (Japan) (En,Ja,Fr,De,Es,It,Zh,Ko) (v1.20) (DLC Unlocker) (eShop).nsp"

Your account is still enabled on my ftp ;-)
Title: Re: filenames are too long
Post by: Roman on 17 November 2018, 09:17
Thanks for the datfile.....
I will have a look
Title: Re: filenames are too long
Post by: Mucci on 17 November 2018, 09:43
stop .... waits....looks like a layer 8 problem .........damned.......loaded the wrong dat file with the new XML-pathfile........
Scannning now with no "start errors"
Title: Re: filenames are too long
Post by: Roman on 17 November 2018, 13:12
so....your issue is...hmm..no issue anymore? ;-)
Title: Re: filenames are too long
Post by: Mucci on 17 November 2018, 17:50
scan completed ........

everything works thanks for your help
Title: Re: filenames are too long
Post by: remax on 07 December 2018, 21:57
Sure it supports it.

Go to settings and change your rompaths (e.g. hit F2 on your setup ones and add the prefix \\?\)

That's some VERY interesting info... Maybe should be added to the sticky post...
Title: Re: filenames are too long
Post by: Roman on 08 December 2018, 08:28
yes, added to the "Hints and Tricks - 1000 things you always wanted to know" thread
Title: Re: filenames are too long
Post by: Florin9doi on 31 December 2018, 11:25
NTFS supports 32k, however to actually use them, you need to use a different rompath style, you need to prefix them with for example: \\?\e:\mame\roms\neogeo instead of just e:\mame\roms\neogeo
Hello,
Is there any reason why Clrmamepro wouldn't make this automatically, behind the scene ?
Title: Re: filenames are too long
Post by: Roman on 31 December 2018, 11:53
no, there is no reason ;-) Just lazyness...maybe in 2019.