MartinC Posted November 28, 2017 Share Posted November 28, 2017 Hi all, I am working on translating the platform XML files (in this case Arcade.xml) to spanish. It is tedious and slow, even when it is all scripted. But my problem is another one, as follows: If the file has any errors, LaunchBox will fil to start, which is fine. But the problem is that when I restore the original file, LB won't start anyway. I assume it is caching the files or something, but I couldn't find the place where it is. Can @Jason Carr or anyone else tell me how it works, so I can keep trying without breaking anything? The only workaround is to restore the whole LaunchBox folder with the original version, but in that case I need to do a full copy everytime (I tried to copy only main files and nothing) which takes a lot due to it has several GBs with the info for all the configured systems. Thanks a lot! Martin P.S.: @Jason Carr, I have opened a bug about this the last weekend thinking it was a LB issue. You might to close it up since it is something else apparently (caching or something else). Quote Link to comment Share on other sites More sharing options...
Jason Carr Posted November 28, 2017 Share Posted November 28, 2017 @MartinC The metadata is actually not cached at all; only the images are cached. It pulls the data directly from the XML files every time it loads. However, depending on what you're changing in the XML files, it may be in more than one spot or more than one file. For instance, the platform names are in both Platforms.xml and the game XML files (as well as the file names). The only other thing to worry about is to make 100% sure that LaunchBox is closed and not running (no LaunchBox.exe or BigBox.exe processes running) before making any changes to the XML files. Quote Link to comment Share on other sites More sharing options...
MartinC Posted November 29, 2017 Author Share Posted November 29, 2017 It is weird... LB and BB are always closed while I work in the file (I change only the Notes field, I have it done on platforms.xml with no issues, and now I am working on Arcade.xml). The weird thing is that when the I restore the original file (in english and with no modifications at all), the error is still there and LB won't start anymore, it ends completely broken (BB does not work either, of course). Is there a chance to check that? I know it is a particular issue for a particular user, but I think it will be useful for more people when it is finished and translated to spanish. I attach the screen so you can check the full error shown. Thanks a lot @Jason Carr! Martin Quote Link to comment Share on other sites More sharing options...
Jason Carr Posted November 29, 2017 Share Posted November 29, 2017 @MartinC Can you send me a zipped package of the broken data? I'll need your entire LaunchBox\Data folder. That will help me pinpoint the issue. Please make sure to PM it to me instead of posting here to avoid privacy concerns. Quote Link to comment Share on other sites More sharing options...
Jason Carr Posted December 1, 2017 Share Posted December 1, 2017 @MartinC I ran it through a debug process and the issue is being caused by an empty value in one of the DatabaseID fields. It's reading it in as an empty string, which is an invalid situation. I believe the tag should just be removed instead. However, I'm seeing other errors coming through as well with dates once that problem is solved, so you might have many more issues with the data. I'm guessing that's the same issue though, using an empty string value instead of removing the tag. Quote Link to comment Share on other sites More sharing options...
MartinC Posted December 1, 2017 Author Share Posted December 1, 2017 Hi @Jason Carr... wow, it does not seem to be so simple. Which is the DB field? Just to know. Is anything I can do to help on the fix? I appreciate your help on this. Martin Quote Link to comment Share on other sites More sharing options...
Jason Carr Posted December 1, 2017 Share Posted December 1, 2017 @MartinC This is not an issue with LaunchBox; somehow these fields are being changed incorrectly by whatever you're using to edit the XML files. What software are you using? Quote Link to comment Share on other sites More sharing options...
MartinC Posted December 1, 2017 Author Share Posted December 1, 2017 @Jason Carr oh ok. I have written a little script in PHP to read the XML line by line and only update the Notes field. I have checked the XML file syntaxis and it seems to be ok too. But I don't understand why the error is still there even when the original xml file is restored. It has no errors. I assume that it because the DB already have the empty value which is invalid. How could I reset that situation at that point? I can't just to delete the console and add it again from the begining since I can't get LB started. Is there a way to remove the console manually? Quote Link to comment Share on other sites More sharing options...
Jason Carr Posted December 1, 2017 Share Posted December 1, 2017 Did you make a backup of your entire original Data folder before making any tweaks? At this point all I can figure is that there are some changes in there that we're missing, and that the original XML file isn't really the original XML. Quote Link to comment Share on other sites More sharing options...
Jason Carr Posted December 1, 2017 Share Posted December 1, 2017 The reason why I'm confident in this is because the errors that are showing up have nothing to do with the Notes fields, so somehow, the other fields were changed, even in the "original" XML. Quote Link to comment Share on other sites More sharing options...
MartinC Posted December 1, 2017 Author Share Posted December 1, 2017 @Jason Carr That is the file used before the error, I know it because I rename it after to do make a copy. Maybe it was modified when I restored it to try to get LB working again. I think the best thing to do now is to reinstall and add every console again. Once that is done... do you think that backing up the complete Data folder will be enough to restore and get everything working again? I will need to find something like that to work safety and avoid working with to entire LB folders and duplicate several GB. Thanks a lot Jason for your help on this. Quote Link to comment Share on other sites More sharing options...
Jason Carr Posted December 1, 2017 Share Posted December 1, 2017 Yes, backing up the entire data folder should be safe. Quote Link to comment Share on other sites More sharing options...
MartinC Posted December 1, 2017 Author Share Posted December 1, 2017 Perfect! That will be my fix then... LOL Thanks @Jason Carr. Have a great weekend! 1 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.