Community
SCI Programming => SCI Community How To's & Tutorials => Topic started by: ajogames on February 23, 2019, 02:48:12 PM
-
So today I opened my SCI.0 game in SCI Companion, and for some reason, a large majority of the sprites (Views) are blank, and some of my Pics are missing entirely, I have no idea what happened, as two days ago, it was all there, nothing was wrong with it,
I've attached a screenshot so you can see what I get when the game opens in SCICompanion
-
Your resource.map and resource.000 probably got out of sync... are there any resource.map.bak or resource.000.bak files in your game folder? SCI Companion saves to those and then deletes the originals and renames the .bak ones. But if the delete fails you might get this issue.
(and remember to always backup or use source control!)
-
If it's just a corrupted .MAP file, you can rebuild it. I created a utility (and I believe there are other as well) that will do that.
See this thread: http://sciprogramming.com/community/index.php?topic=554.msg3037#msg3037 (http://sciprogramming.com/community/index.php?topic=554.msg3037#msg3037)
-
Thank you all for your help so far.
I did see this little thing called "rebuild Resources" in SCI Companion, What does this do exactly?
I thought about trying it out, but since I don't know what it does, I'm a bit anxious to try it.
And yes, Troflip, I do believe it may be an out of sync issue, trying to keep track of both resource files and keeping them preserved/backed-up is surprisingly tricky at times, almost makes me wish both resource.000/001 and resource.map could all just be merged into ONE file instead of two and/or more, file to keep in sync with each other.
The only .bak files I could find in my game folder were outdated by several months, and judging by the file sizes numbers for these .bak files and then comparing them to the current file sizes of the r.001 and r.map, the .bak files have much less content.
Thanks for the link Gumby.
I had read in the post you made on "Recreate Map Files" in which you had given a link to the compiled version on sierrahelp.com, but the link there is now dead, clicking on that link will just lead to a 404 error on the SierraHelp site.
-
"Rebuild resources", if given a functional map and volumes, will repack them all into one big volume without duplicates. Duplicates will appear when you edit a resource and save (these don't show up as separate items in the list), or when you open a game that came on multiple diskettes (these do).
-
Thanks for the link Gumby.
I had read in the post you made on "Recreate Map Files" in which you had given a link to the compiled version on sierrahelp.com, but the link there is now dead, clicking on that link will just lead to a 404 error on the SierraHelp site.
Try here: http://sci.sierrahelp.com/Files/download.php?file=Gumby/recreateMapFile.zip
EDIT:
Or try this utility: http://sci.sierrahelp.com/Files/download.php?file=Gumby/resDumpPack.zip
-
"Rebuild resources", if given a functional map and volumes, will repack them all into one big volume without duplicates. Duplicates will appear when you edit a resource and save (these don't show up as separate items in the list), or when you open a game that came on multiple diskettes (these do).
Thank you! now I feel more a little more safer knowing what it does exactly.
-
Thanks for the link Gumby.
I had read in the post you made on "Recreate Map Files" in which you had given a link to the compiled version on sierrahelp.com, but the link there is now dead, clicking on that link will just lead to a 404 error on the SierraHelp site.
Try here: http://sci.sierrahelp.com/Files/download.php?file=Gumby/recreateMapFile.zip
EDIT:
Or try this utility: http://sci.sierrahelp.com/Files/download.php?file=Gumby/resDumpPack.zip
Thanks for the links again, Gumby,
However for some reason when I try RecreateMapFile.exe, a command prompt will briefly appear before closing, I tried opening it in both a seperate empty folder (empty, with the exception of the "recreateMapFile.pl" file) and in the main game folder, but got the same result.
-
Those are both command-line utilities, you need to provide parameters in order for them to function correctly.
-
So I just used RecreateMapfile to recreate my resource.map file, but now SCICompanion won't open said map file, it closes after I try to open it.
-
Did you give resDumpPack a try? Could be that RecreateMapfile has a bug somewhere :-[