Jump to content
LaunchBox Community Forums

Error when importing Mame roms


maabus

Recommended Posts

I am updating my Mame roms to 231. I deleted all the 230 roms, and i'm running the full mame import. I am getting an error at the end when it is parsing the roms. 

Data at the root level is invalid. Line 5642825, position 1. 

 

Does anyone know what this error is? 

Link to comment
Share on other sites

I figured out what is happening. When launchbox is creating the listxml the following is getting appended to the end of the XML. I found this out because i created an xml for a program i'm working on and i got the same error message. 

 

Why would devreorder logs be added to the xml, and is there any way to stop it without having to remove devreorder? 

 

</mame>
11:16:17.494    00009888    devreorder: Calling hooked DirectInput8Create

11:16:17.496    00009888    devreorder: Loaded "C:\WINDOWS\system32\dinput8org.dll"

11:16:17.507    00009888    devreorder: in CreateHooks

11:16:17.507    00009888    Current process name: mame.exe

11:16:17.507    00009888    devreorder: using system-wide devreorder.ini

11:16:17.507    00009888    Ignored list:

11:16:17.507    00009888    devreorder: in CreateHooks

11:16:17.507    00009888    Current process name: mame.exe

11:16:17.507    00009888    Ignored list:

11:16:17.507    00009888    devreorder: using UNICODE interface

11:16:17.507    00009888    devreorder: CreateHook EnumDevicesW status MH_OK

11:16:17.517    00009888    devreorder: EnableHook EnumDevicesW status MH_OK

11:16:49.439    00009888    devreorder: Unloading C:\WINDOWS\system32\dinput8org.dll

Link to comment
Share on other sites

Hi @maabus

I had the same issue as yourself and the only way I have found so far is to rename the files in System32 and SysWOW64 when I do the update and then return them to the correct names for Devreorder to work again afterwards.

If you find another way then I would be interested to hear about it, I have just set up a very basic AHK to allow me to do it with the press of a couple of buttons rather than having to rename the files manually

 

full_command_line := DllCall("GetCommandLine", "str")

if not (A_IsAdmin or RegExMatch(full_command_line, " /restart(?!\S)"))
{
    try
    {
        if A_IsCompiled
            Run *RunAs "%A_ScriptFullPath%" /restart
        else
            Run *RunAs "%A_AhkPath%" /restart "%A_ScriptFullPath%"
    }
    ExitApp
}

;Allow LaunchBox and Mame to update
1::
filemove, C:\Windows\system32\dinput8.dll, C:\Windows\system32\dinput8dev.dll, 1
filemove, C:\Windows\system32\dinput8org.dll, C:\Windows\system32\dinput8.dll, 1
filemove, C:\Windows\sysWOW64\dinput8.dll, C:\Windows\sysWOW64\dinput8dev.dll, 1
filemove, C:\Windows\sysWOW64\dinput8org.dll, C:\Windows\sysWOW64\dinput8.dll, 1
return


;Allow Devreorder to work again 
2::
filemove, C:\Windows\system32\dinput8.dll, C:\Windows\system32\dinput8org.dll, 1
filemove, C:\Windows\system32\dinput8dev.dll, C:\Windows\system32\dinput8.dll, 1
filemove, C:\Windows\sysWOW64\dinput8.dll, C:\Windows\sysWOW64\dinput8org.dll, 1
filemove, C:\Windows\sysWOW64\dinput8dev.dll, C:\Windows\sysWOW64\dinput8.dll, 1
return

;Close AHK
3::
ExitApp

I'm sure you have figured this out yourself or maybe even come up with a better solution but I have included the ahk above just in case it is any use to you or others.

1 - renames the files to allow you to do the update in LaunchBox

2 - puts the files back to the correct names after you have done the update

3-  closes the ahk

Cheers

  • Thanks 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...