ConsoleChairman Posted October 25, 2017 Share Posted October 25, 2017 I just got done adding a few new systems and doing my usual close launchbox, open platforms.xml, find and replace >Images\ with >[Launchbox Media folder location]\Images\ but when I launch Launchbox again, my images for the new systems are broken and when I manage the platform, it's still pointing to all the old values. Is there a cache I need to clear to get my changes to take? Also, is there a way to set master Images/Music/Manuals/etc folders instead of having to do this every time I add a platform? Quote Link to comment Share on other sites More sharing options...
neil9000 Posted October 25, 2017 Share Posted October 25, 2017 Why are you editing xml files at all?? Quote Link to comment Share on other sites More sharing options...
ConsoleChairman Posted October 25, 2017 Author Share Posted October 25, 2017 3 minutes ago, neil9000 said: Why are you editing xml files at all?? Because it's decidedly faster than editing through the UI where I have to browse 3 folders deep to a different drive or click a handful of times for each individual folder to cycle through selecting the textbox to be active, select all, select the first character, and paste. Quote Link to comment Share on other sites More sharing options...
neil9000 Posted October 25, 2017 Share Posted October 25, 2017 16 minutes ago, ConsoleChairman said: Because it's decidedly faster than editing through the UI where I have to browse 3 folders deep to a different drive or click a handful of times for each individual folder to cycle through selecting the textbox to be active, select all, select the first character, and paste. With all due respect, your OP and your reply leaves me scratching my head some what. I am not really sure what exactly you are asking. If its a simple path change, then that is available at all times. Quote Link to comment Share on other sites More sharing options...
ConsoleChairman Posted October 25, 2017 Author Share Posted October 25, 2017 (edited) Maybe I'm not phrasing it correctly. When I add a platform, I don't use the UI to change the 34 folder paths found in Edit Platform. I feel it simply takes far too long and is too prone to error since I have to do each one manually. What I do instead is import all the platforms I'm planning to do, let it pull in all the images and whatnot it wants, and when that's done I close LB. I go into the LB install folder and copy the Images, Music, Manuals, and Videos folders to my media folder on my larger storage drive and I used Notepad++ to do a find and replace in Platforms XML to change the XML from <FolderPath>Images\Saturn\Box - Front</FolderPath> to <FolderPath>E:\Launchbox Meta\Images\Saturn\Box - Front</FolderPath>, only I'm doing a Replace All going from ">Images\" to ">E:\Launchbox Meta\Images\". And I repeat for Videos, Music, and Manuals. This gets the platform setup and the files where I want them faster than manually editing 34 fields through the UI. I edit the Games path via the UI as my platform naming isn't consistent with Launchbox's and I've never bothered to change it. In the past, this process worked fine, I'd reopen LB and the images would all still work but if I edited a platform, I could see the folder paths had been updated to reflect my changes in the XML. This time, however, the changes were not reflected and it appears the XML was cached or restored from a backup. Although I kept changing the file back and closing/opening LB and now my changes are in so...not sure what was going on, but it seems fine now. Maybe Notepad++ was locking the file or I typo'd a path in the replace. Edited October 25, 2017 by ConsoleChairman Quote Link to comment Share on other sites More sharing options...
DOS76 Posted October 25, 2017 Share Posted October 25, 2017 Yeah editing all the media paths is way faster in the xml than in the UI and this should definitely be working as I recently had to change some hard coded paths in the same matter. Very strange that if LB is closed it isn't saving your new values. Quote Link to comment Share on other sites More sharing options...
ConsoleChairman Posted October 25, 2017 Author Share Posted October 25, 2017 2 minutes ago, DOS76 said: Yeah editing all the media paths is way faster in the xml than in the UI and this should definitely be working as I recently had to change some hard coded paths in the same matter. Very strange that if LB is closed it isn't saving your new values. I'm guessing I must've made a typo in a way that was invalid to LB and it reverted to a backup, I'm not sure how I could've made the typo multiple times though as I'm usually very careful (don't want to fry a file and have to start all over in correcting ROM names or something). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.