jarcane / handhRL

A simple roguelike based on the Hulks and Horrors tabletop RPG written with Python 2.7 and libtcod
GNU General Public License v3.0
11 stars 1 forks source link

Find alternative to Shelve #29

Open jarcane opened 10 years ago

jarcane commented 10 years ago

Shelve seems like a very nice way to handle our saves and scorefiles, and, for the moment, it is.

However, cx_Freeze hates Shelve, because if the weird way Shelve handles the dbm dependencies. It hates it so much.

This is a problem, because cx_freeze is the only way to make a packaged binary on Linux. It also makes much faster Windows executables than py2exe. Shelve files also aren't guaranteed to be compatible across platforms.

So, if we want to switch to cx_freeze, shelve has to go, and has to be replaced with something that will play nice with the cx_freeze.

jarcane commented 10 years ago

It seems as if the standard advice here is to use json instead, which, once fathomed, does seem like an even easier solution, and more crossplatform friendly.

Whether it plays nice with cx_freeze I don't know, but it's worth a try.