Previous Page | Next Page

by unknownfile at 11:23 PM EDT on March 13, 2007
I was in bed, and in a vision, Neill Corlett appeared and said, "Your format is a disgrace to mankind, die!"

Then I woke up, sweating.

Tomorrow, I will make what will hopefully be the last revision to the format. It will no longer be PSF based as I am no longer willing to use zlib capabilities, and because I don't want the format to be a cheap hack like USF. It will keep some compatibilities as PSF, such as mini/lib files and [TAG]s, but it will require a whole new container if I don't want this thing to become any more of a hackjob than it is already.
by unknownfile at 10:13 AM EDT on March 14, 2007
<i>2sf format specification writeup
by Peter S. Conway

The 2sf format is a PSF-compatible format (meaning that it retains functionality of a PSF, but does not use the PSF container itself. The beginning of a 2SF file is similar to that of a PSF:

3 bytes: "2SF" (similar to "PSF")
1 byte : revision (in case the format needs to be updated or fixed)

Now this is where things get different:

4 bytes: unsigned long ROMsize - size of SR64 ROM
4 bytes: unsigned long ROMoffset - location of SR64 ROM in file
4 bytes: unsigned long savesize - size of SR64 Desmume savestate
4 bytes: unsigned long saveoffset- location of SR64 savestate in file
x bytes: the actual data itself

To avoid using compression, the SR64 sparse file format (as seen in USF) is used. Check the USF documentation for information.

Savestates should be specified as they help cut down unneeded information in the file, and skips over a lot of code. The ROM section MUST ALWAYS BE PRESENT, otherwise the 2sf is rendered invalid.</i>

edited 10:14 AM EDT March 14, 2007
by unknownfile at 1:33 PM EDT on March 14, 2007
Hey, look what was released:
DeSMuME, now with 2SF support.

It's pretty unstable, so don't come whining to me if it crashes.

Oh, and you're probably wondering about a 2SF to play around with, just to see if this thing works. Well, there's also one for you to take a look at:

Kirby Canvas Curse - Training

Took me about 4 hours to program in total so enjoy!

BTW, parts of this aren't GPL'd. I need to seek hcs's permission before I can release the full source.
by unknownfile at 5:41 PM EDT on March 14, 2007
Stupid blunder in the above build that caused an attempt to load a savestate with non-2sf ROMs. It's now been fixed.
by unknownfile at 10:54 AM EDT on March 15, 2007
Stupid bug... the revision checking code was broken.

This version includes the psftag files from 64th Note, which I am trying to get to work. You'll see a blank dialogue box come up when loading a 2sf, that's just what the parser managed to find in the TAG section.

now with live svajklubb

Oh, and I forgot to mention that you can actually load NDS ROMs with this version.

edited 10:57 AM EDT March 15, 2007
by PokeParadox at 9:09 AM EDT on March 18, 2007
I can't seem to get that to play...
by unknownfile at 10:45 AM EDT on March 18, 2007
hey, I said it was buggy
by unknownfile at 4:01 PM EDT on March 18, 2007
The latest source snapshot is here

You need to compile this with VC++2005.
by unknownfile at 12:10 PM EDT on March 20, 2007
Some people seem to be having trouble with Desmume 2sf... I am going to try to fix bugs with this later, however I have schoolwork to do first.

Stuff to implement:

- Savestate loading in memory (requires 21.4 MB... yuck)
- The ability for the thing to compile in Dev-C++ on Windows and possibly on other compilers on other platforms
- mini2sf/2sflib support

hcs, I would like to request help with this...
so i hear u liek cvses? by unknownfile at 1:42 PM EDT on March 21, 2007
Synced up Desmume 2SF to the CVS build last night and it has unveiled a world of bugs. 2SF support is now completely broken.

The old savestates have ceased working, so I am going to see what I can do with my builds.

In the meantime, looks like I'm going to break my promise of this format being finished by the end of March.

Previous Page | Next Page
Go to Page 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118

Search this thread

Show all threads

Reply to this thread:

User Name Tags:

bold: [b]bold[/b]
italics: [i]italics[/i]
emphasis: [em]emphasis[/em]
underline: [u]underline[/u]
small: [small]small[/small]
Link: [url=http://www.google.com]Link[/url]

[img=https://www.hcs64.com/images/mm1.png]
Password
Subject
Message

HCS Forum Index
Halley's Comet Software
forum source