|
Post by xproject on Nov 28, 2011 15:26:35 GMT -5
can you tell us when does came the feature "Export to ROM..."? I would like to test it in the game even if only minor changes are possible at times ;D
|
|
|
Post by Mop on Nov 28, 2011 18:35:21 GMT -5
It's being worked on right now. Some of the stuff is "working" and some is not. Tilesets are being worked right now - their compression is actually a big pain in my ass but it should be done soon. I also want to write a new way of allocating space for "expanded" data in the resulting ROM.
The following stuff "works" last I knew: - Music - Music samples (not perfect re-compression yet, but it sounds alright) - Events - Map pieces (generally re-compresses a little larger than the original maps, but no big deal for now since there's plenty of ROM space)
And the rest of the stuff hasn't been implemented yet: - 8x8 tilesets (shouldn't be terribly difficult) - 16x16 tilesets (somewhat annoying due to really strange compression method. currently being worked) - Tiles (should be easy) - Composite maps (should be easy) - World map (should be fairly easy.. simple RLE compression) - Font (easy)
|
|
|
Post by Mop on Nov 29, 2011 22:02:02 GMT -5
Before I lose/forget this, here's the docs on the tileset16 compression (tilesets found at B4000). This was the one really major thing slowing down "Export to ROM," and as of tonight it's fully documented. It looks simple, but you should see the fucking code they use to process these things.
************* Tileset16 commands
00: copy last tile entirely 01: 8-bit increment on tile index value of last tile 10: 8-bit decrement on tile index value of last tile 1111 xxxxxxxx xxxxxxxx: Specify entire tile data 110 xxxxxxx: Add 7-bit signed value xxxxxxx to previous tile's tile index, and use that 1110 xxxx yyyyyy: Change tile flags with xxxx as follows, and add 6-bit signed value yyyyyy to previous tile's tile index. 0ppp: Change palette to ppp 1fff: Change flags (vflip, hflip, alt bg)
|
|
|
Post by Mop on Nov 30, 2011 21:55:03 GMT -5
Tileset8 and Tileset16 re-compress routines were written today. They have yet to be tested.
|
|
|
Post by Mop on Dec 2, 2011 0:17:12 GMT -5
Modifying tiles works and they can be exported back to rom. Just tested. Looked OK in ZSnes.
|
|
|
Post by xproject on Dec 2, 2011 12:48:38 GMT -5
COOL great work, ;-) It is great to hear that everything is going so fast forward
|
|
|
Post by Mop on Dec 2, 2011 20:01:05 GMT -5
Tileset16 re-compression: tested in ZSnes and working. There is an issue with writing them back to the same section of the ROM (probably since it's not one fucking contiguous section) but for now they write (and read) fine at the end of the ROM.
Edit: Nevermind, I think I fixed it.
|
|
|
Post by Mop on Dec 3, 2011 21:04:57 GMT -5
Maps now re-compress to the ROM!
|
|
|
Post by enixd on Dec 4, 2011 13:50:34 GMT -5
Maps now re-compress to the ROM! All of them? Sweet
|
|
|
Post by Mop on Dec 4, 2011 14:47:22 GMT -5
It's still quite buggy, the compression is not perfect, and the editor has to inject some code to allow them to exist in banks where they're not normally found, but yes.. I was able to modify the waterfall map, export it back, and see it modified in ZSnes.
Palettes also work now.
Next is events, I think, then the world map.
When everything that's currently editable is also exportable, I'll put out another build.
|
|