Jump to content
LaunchBox Community Forums

Help with changing Rom Paths in Launchbox.xml


Recommended Posts

Asking for some help from the community on this one:

I cant seem to successfully edit my rom paths in the Launchbox XML file for the life of me. I wish this had a video tutorial but couldn't find one on how to do this.

I'm using notepad ++ , and I am substituting all paths beginning with the phrase "E:/launchbox" and using the "change to" command to rename to "/games"

my goal is to put all the rom folder paths back into the default launch-box folder location (whereas my rom paths are currently located on a separate E drive for the majority of my platforms}.

So all references to the  E drive path inside the Launchbox.XML  file have been replaced as stated above (had found like 5,700 references to re-name) I confirmed this by checking the XML again afterwards to make sure the new paths did actually save.

Then I re-launch launch-box, and all the previously discovered games are still pointing to the "E:/launchbox/" path... so this is not working at all.

Does Jason or the launchbox team have any plans to add a simple way to easily change existing Rom paths of an existing installation as of yet?  I have a very large library so I need to find the easiest way to do this without losing all of my metadata... this is a sorely needed feature

Appreciate some advice guys.... thanks in advance for any help.

Mazjohn (aka Mr. Arcade)

 

Edited by mazjohn
Link to comment
Share on other sites

Hi @mazjohn, make sure there is no launchbox or bigbox running when you find/replace text inside the xml files.

And you shouldn't use a forward slash in the path "/". You should use backslashes "\" in the path.

If you are using a very old Launchbox version, you would change launchbox.xml, but in more recent versions, that file isn't used anymore. 

You should change the paths in ALL your platform xml files found inside folder:  ...\Launchbox\Data\Platforms

Edit: in case you don't know, you can open all the xml files at once with notepad++ and when you choose menu Search->Replace, you  can just click the button "Replace all in all opened documents". That makes it super easy to fix all the paths in tons of xml files in one whack. Eazy Peazy. 

Edited by ckp
Link to comment
Share on other sites

47 minutes ago, ckp said:

Hi @mazjohn, make sure there is no launchbox or bigbox running when you find/replace text inside the xml files.

And you shouldn't use a forward slash in the path "/". You should use backslashes "\" in the path.

If you are using a very old Launchbox version, you would change launchbox.xml, but in more recent versions, that file isn't used anymore. 

You should change the paths in ALL your platform xml files found inside folder:  ...\Launchbox\Data\Platforms

 

Ahhh... Thanks!  I've been using Launchbox a pretty long time and was un-aware of the changes since.  (I was still thinking the rom paths were controlled by the Launchbox.xml file!)

So drilling down into launchbox\data\platforms then individually editing the paths does work for me... problem solved!

however if there are 30 platforms, it seems i will need to edit each and every one (one at a time) that's STILL easier to me than having to re-import again for many platforms (as also mentioned) - so it will have to do.

My number one feature request would be to have a simple way from the Launchbox UI to modify the rom-path for each platform. This shouldnt be difficult to implement into Launchbox I would suspect ( just a search and replace algorythm for the XML path?)

Thanks for solving this !

Mazjohn (aka Mr. Arcade)

Link to comment
Share on other sites

51 minutes ago, mazjohn said:

however if there are 30 platforms, it seems i will need to edit each and every one (one at a time) that's STILL easier to me than having to re-import again for many platforms (as also mentioned) - so it will have to do.

I tried to say in my Edit that you can open ALL the xml files with notepad++. Select all of them and open with notepad++. 

choose menu Search->Replace, you  can just click the button "Replace all in all opened documents". That makes it super easy to fix all the paths in tons of xml files in one whack. Eazy Peazy. 

Link to comment
Share on other sites

Yea, the XML editing is the fastest method, but if you can't get that to work, re-importing and unchecking the image boxes on the LBGDB and EM screen will import without downloading everything and it will all reattach. ckp's got you covered on how to do multiples though. :P

Link to comment
Share on other sites

21 hours ago, ckp said:

I tried to say in my Edit that you can open ALL the xml files with notepad++. Select all of them and open with notepad++. 

choose menu Search->Replace, you  can just click the button "Replace all in all opened documents". That makes it super easy to fix all the paths in tons of xml files in one whack. Eazy Peazy. 

CKP, SentaiBrad,

Thanks, I was totally unaware notpad++ could batch replace multiple files at once like that to open documents. That does make it quite a bit simpler to do for sure. In my case, I am very reluctant to re-import but would do so as last resort. While it does also work provided we " uncheck" and do ROMs only, i've admitantly "botched things up" in past by my own doing simply because I fail to re-import sets exactly the same way and find myself having to clean things up a little. (My bad here nothing to do with Launchbox...Launchbox itself has been simply incredible).

Thanks again much for helping to take the time to explain. That was huge.

Mazjohn ( aka Mr. Arcade)... 

Link to comment
Share on other sites

  • 2 weeks later...

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