apocalyptech / eschalon_utils

Eschalon Books I, II, and III Character and Map Editors
http://apocalyptech.com/eschalon/
GNU General Public License v2.0
8 stars 3 forks source link

Option to export to/from savegame and global formats #8

Open apocalyptech opened 10 years ago

apocalyptech commented 10 years ago

With the forthcoming official mod support in Book III, mod authors are probably going to want to be able to export their savegame-based maps into global maps. It we're implementing the one, we should probably implement the other as well, though I'm having trouble coming up with a use-case for the reverse which actually makes sense.

One thing to note is that when we do this, item details would get lost, and so we might want to be reading in the stock general_items.csv and providing a list of "unknown" items to the user, when we do the savegame->global export, so that they'd know which items would need to be added to the items CSV.

apocalyptech commented 10 years ago

This is mostly how I want it now.

TODO still: 1) More testing (esp. on Book 2) 2) Figure out what to do with the item-name-conversion stuff in Book 1. Worth bothering with? Would require scraping the Book 1 binary for valid item names to compare against.

elliotkendall commented 10 years ago

Scraping the item names manually is pretty easy - strings -el will let you extract the csv file. Do it programmatically, though, could be tricky. We could include just a list of item names with the editor itself, I suppose.

apocalyptech commented 10 years ago

Yeah, I figured it'd have to be a hardcoded static list somewhere, for Book 1. I certainly wasn't going to try and get the editor to parse the binary directly. :)