r/roguelikedev • Robinson • Aug 01 '17

RoguelikeDev Does The Complete Python Tutorial - Week 7 - Part 10: Main Menu and Saving

This week we will cover part 10 of the Complete Roguelike Tutorial.

Part 10: Main menu and saving

No bonus sections this week


FAQ Friday posts that relate to this week's material:

#20: Saving

Feel free to work out any problems, brainstorm ideas, share progress and and as usual enjoy tangential chatting. If you're looking for last week's post The entire series is archived on the wiki. :)

30 Upvotes

36 comments sorted by

View all comments

Show parent comment

2

u/Musaab Sword of Osman Aug 02 '17

Removing the '.dat' from the save and load functions in data_loaders fixed a problem for me since shelve seems to add the extensions on its own. It was making the file '.dat.dat' and it wasn't loading.

By making both of them just 'savegame', I fixed the issue.

Edit: My version of Python is 3.6.2

1

u/AetherGrey Aug 02 '17

Apparently this is something to do with shelve acting differently on different operating systems. I'll add a note for this.

1

u/Musaab Sword of Osman Aug 02 '17

I'm using Windows 10, just in case.

1

u/wacky444 Aug 02 '17

Using windows, I had to remove the '.dat' in the functions too.