Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Variants

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old November 1, 2010, 23:35   #11
chris
PosChengband Maintainer
 
Join Date: Jan 2008
Posts: 702
chris is on a distinguished road
Random Rant:
Having a new variant in the works, I decided to reset the version numbers down to 0.0.1. Imagine my surprise that this makes new savefiles unreadable! (Now remember, I am a totally clueless nascent 'band developer). Best I can tell, we were supporting savefiles from old versions of Zangband, and code was constantly checking the version in the save file (now 0.0.1) to see if it was older than when some new feature was added 10 years ago, and checking both hengband versions *and* zangband versions.

Well, I ripped out all the conditional loading code that attempted to nicely handle old savefiles. If you have one from before, say, 1.7.0 of Hengband, it won't load.

End Rant.

All things aside, I think Angband has done a wonderful job preserving savefile compatibility, probably at the cost of heroic coding efforts. Kudos! But if you are switching over to a new variant, I think it is a reasonable assumption that savefiles from other variants won't work Guys, finish your games in Hengband first!

Its interesting. At my last job we used to have tons of binary files laying around. But I became convinced that binary files are the root of all evil and converted them all to plain text formats. If you are off by 1 byte (like say, if you decide not to read a byte because of a version check) then you get weird errors in far removed regions of code. I kept getting errors like: "The Wilderness is too big" or "Unable to read inventory". Ever try to pop open a binary file and figure out the problem? Ugh ...

Do other variants still use binary save files?
chris is offline   Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hengband vs Entroband? Orrus Variants 7 June 25, 2008 05:14
hengband 1.70? Citybob Variants 2 June 5, 2008 16:18
Entroband / Hengband xxitheworld Variants 3 April 3, 2008 20:37
Hengband Trump Magic xxitheworld Variants 1 February 2, 2008 00:19
Hengband and Question on Projectiles Madoka Variants 13 August 18, 2007 18:29


All times are GMT +1. The time now is 10:05.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.