EMULAB Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

The new forum is online, hope you enjoy it!

Pages: [1]   Go Down

Author Topic: filenames are too long  (Read 11327 times)

Mucci

  • Member
  • *
  • Karma: 25
  • Offline Offline
  • Posts: 62
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 69.0.3497.100 Chrome 69.0.3497.100
    • View Profile
    • MAMEGUIDE
filenames are too long
« 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?
Logged


Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 120
  • Offline Offline
  • Posts: 3423
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 70.0.3538.102 Chrome 70.0.3538.102
    • View Profile
Re: filenames are too long
« Reply #1 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

Logged

Mucci

  • Member
  • *
  • Karma: 25
  • Offline Offline
  • Posts: 62
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 69.0.3497.100 Chrome 69.0.3497.100
    • View Profile
    • MAMEGUIDE
Re: filenames are too long
« Reply #2 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 :-)
« Last Edit: 15 November 2018, 08:15 by Mucci »
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 120
  • Offline Offline
  • Posts: 3423
  • Operating System:
  • Mac OS X 10.9.3 Mac OS X 10.9.3
  • Browser:
  • Safari 7.0.3 Safari 7.0.3
    • View Profile
Re: filenames are too long
« Reply #3 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 \\?\)
« Last Edit: 15 November 2018, 08:26 by Roman »
Logged

Mucci

  • Member
  • *
  • Karma: 25
  • Offline Offline
  • Posts: 62
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 69.0.3497.100 Chrome 69.0.3497.100
    • View Profile
    • MAMEGUIDE
Re: filenames are too long
« Reply #4 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?

Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 120
  • Offline Offline
  • Posts: 3423
  • Operating System:
  • Mac OS X 10.9.3 Mac OS X 10.9.3
  • Browser:
  • Safari 7.0.3 Safari 7.0.3
    • View Profile
Re: filenames are too long
« Reply #5 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...
« Last Edit: 15 November 2018, 12:21 by Roman »
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 120
  • Offline Offline
  • Posts: 3423
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 70.0.3538.102 Chrome 70.0.3538.102
    • View Profile
Re: filenames are too long
« Reply #6 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
Logged

Mucci

  • Member
  • *
  • Karma: 25
  • Offline Offline
  • Posts: 62
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 69.0.3497.100 Chrome 69.0.3497.100
    • View Profile
    • MAMEGUIDE
Re: filenames are too long
« Reply #7 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 ;-)
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 120
  • Offline Offline
  • Posts: 3423
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 70.0.3538.102 Chrome 70.0.3538.102
    • View Profile
Re: filenames are too long
« Reply #8 on: 17 November 2018, 09:17 »

Thanks for the datfile.....
I will have a look
Logged

Mucci

  • Member
  • *
  • Karma: 25
  • Offline Offline
  • Posts: 62
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 69.0.3497.100 Chrome 69.0.3497.100
    • View Profile
    • MAMEGUIDE
Re: filenames are too long
« Reply #9 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"
« Last Edit: 17 November 2018, 09:46 by Mucci »
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 120
  • Offline Offline
  • Posts: 3423
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 70.0.3538.102 Chrome 70.0.3538.102
    • View Profile
Re: filenames are too long
« Reply #10 on: 17 November 2018, 13:12 »

so....your issue is...hmm..no issue anymore? ;-)
Logged

Mucci

  • Member
  • *
  • Karma: 25
  • Offline Offline
  • Posts: 62
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 69.0.3497.100 Chrome 69.0.3497.100
    • View Profile
    • MAMEGUIDE
Re: filenames are too long
« Reply #11 on: 17 November 2018, 17:50 »

scan completed ........

everything works thanks for your help
Logged

remax

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 18
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 70.0.3538.110 Chrome 70.0.3538.110
    • View Profile
Re: filenames are too long
« Reply #12 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...
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 120
  • Offline Offline
  • Posts: 3423
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 71.0.3578.80 Chrome 71.0.3578.80
    • View Profile
Re: filenames are too long
« Reply #13 on: 08 December 2018, 08:28 »

yes, added to the "Hints and Tricks - 1000 things you always wanted to know" thread
Logged

Florin9doi

  • Member
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 2
  • Operating System:
  • Windows NT 6.3 Windows NT 6.3
  • Browser:
  • Chrome 71.0.3578.98 Chrome 71.0.3578.98
    • View Profile
Re: filenames are too long
« Reply #14 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 ?
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 120
  • Offline Offline
  • Posts: 3423
  • Operating System:
  • Windows NT 10.0 Windows NT 10.0
  • Browser:
  • Chrome 71.0.3578.98 Chrome 71.0.3578.98
    • View Profile
Re: filenames are too long
« Reply #15 on: 31 December 2018, 11:53 »

no, there is no reason ;-) Just lazyness...maybe in 2019.
Logged
Pages: [1]   Go Up
 

Page created in 0.089 seconds with 21 queries.