Topic: Game Programming /
Don't change filename when uploading a new version!
Yeah, if I’d caught it in time I could have renamed the file back, but if I do it now I’ll be losing too many new saves. As far as I know, there’s no way for my game to access both sets of local data, so effectively the savegames for the original version are gone forever unless each player manually copies them to the new location.
Setting the savefile path in SharedObject.getLocal from the start is an interesting idea, though it does mean any other game on Kongregate could mess with my save data. But if I understand right, the default local storage location (the swf’s path) is special and can’t be accessed by any other swf ever, so my new version can never access the old one’s data.
For the record, local storage for my game seems to be:
Vara has a point about preloaders possibly referencing filename, though some other portals do rename files. Nonetheless it wouldn’t hurt to show the original filename and a warning if the new filename differs.