Nice find. I already have the reader-of-.rez-files written, and I don't think it will too hard to write the saving routines. GUI first, though.
Right now I'm trying to figure out why I'm not reading all the resources in the file - 93 of 115 in Nova.rez...
Edit: fixed it - forgot a ++ when the new element was being added to the end - only elements that were added before the end were added correctly. Wow, the Nova.rez resources are very out-of-order.
Edit2: And it's 114 instead of 115 because of the resource map.
Also, now I will add something to warn "just in case" the number of groups is not 1.
Edit3: Community Help:
First, I could use some icons - I found some here, but they're not the most satisfactory:
Group: new, save, delete (don't click this)
Type: new, delete, copy/move range, cut, copy, paste,
Resource: save, revert to saved, save-and-close, close-without-saving.
Special: map, table, etc. ...
Second, I could use some template files - I haven't finalized the form, or written the code that makes a GUI out of it, but it would just be a text file with keywords. This would probably not be as helpful for the more complex resources. I am aware of, but do not intend to use, the TMPL resource because I have a different plan for doing it. If you're interested, post and I'll give you something to do. Generally the order of the resources is the same as in the Nova Bible, but sometimes there are weird things, such as skipping bytes, and you have to figure out the size - most are shorts.
Edit5: also, could someone on a Mac check how sensitive ResStore and Mash are to file headers? Because in EVNEW Text format there are separate entries for "Format" and "Created by" but is is not clear to what the ConText and Mish headers refer.
Edit4: just found a really strange bug with an object being neither null nor instantiated that led to indefinite hanging. I am filing this in the Java bug-tracking system.
This post has been edited by Nonconventionally Creative : 18 August 2008 - 03:20 PM