Secret of Mana Editor
« Export to ROM... »

Welcome Guest. Please Login or Register.
Jun 18, 2013, 5:57pm




Secret of Mana Editor :: General :: Feature Requests :: Export to ROM...
   [Search This Thread][Reply] [Share Topic] [Print]
 AuthorTopic: Export to ROM... (Read 228 times)
xproject
New Member
*
member is offline





Joined: Nov 2011
Gender: Male
Posts: 2
Karma: 0
 Export to ROM...
« Thread Started on Nov 28, 2011, 3:26pm »
[Quote]

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
Link to Post - Back to Top  IP: Logged
Mop
Administrator
*****
member is offline

[avatar]



Joined: Nov 2011
Gender: Male
Posts: 131
Karma: 0
 Re: Export to ROM...
« Reply #1 on Nov 28, 2011, 6:35pm »
[Quote]

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)
Link to Post - Back to Top  IP: Logged
Mop
Administrator
*****
member is offline

[avatar]



Joined: Nov 2011
Gender: Male
Posts: 131
Karma: 0
 Re: Export to ROM...
« Reply #2 on Nov 29, 2011, 10:02pm »
[Quote]

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)
Link to Post - Back to Top  IP: Logged
Mop
Administrator
*****
member is offline

[avatar]



Joined: Nov 2011
Gender: Male
Posts: 131
Karma: 0
 Re: Export to ROM...
« Reply #3 on Nov 30, 2011, 9:55pm »
[Quote]

Tileset8 and Tileset16 re-compress routines were written today. They have yet to be tested.
Link to Post - Back to Top  IP: Logged
Mop
Administrator
*****
member is offline

[avatar]



Joined: Nov 2011
Gender: Male
Posts: 131
Karma: 0
 Re: Export to ROM...
« Reply #4 on Dec 2, 2011, 12:17am »
[Quote]

Modifying tiles works and they can be exported back to rom. Just tested. Looked OK in ZSnes.
Link to Post - Back to Top  IP: Logged
xproject
New Member
*
member is offline





Joined: Nov 2011
Gender: Male
Posts: 2
Karma: 0
 Re: Export to ROM...
« Reply #5 on Dec 2, 2011, 12:48pm »
[Quote]

COOL great work, ;-)
It is great to hear that everything is going so fast forward
Link to Post - Back to Top  IP: Logged
Mop
Administrator
*****
member is offline

[avatar]



Joined: Nov 2011
Gender: Male
Posts: 131
Karma: 0
 Re: Export to ROM...
« Reply #6 on Dec 2, 2011, 8:01pm »
[Quote]

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.
« Last Edit: Dec 2, 2011, 8:12pm by Mop »Link to Post - Back to Top  IP: Logged
Mop
Administrator
*****
member is offline

[avatar]



Joined: Nov 2011
Gender: Male
Posts: 131
Karma: 0
 Re: Export to ROM...
« Reply #7 on Dec 3, 2011, 9:04pm »
[Quote]

Maps now re-compress to the ROM!
Link to Post - Back to Top  IP: Logged
enixd
New Member
*
member is offline

[avatar]

Can't stop looking at the elephant, right?



Joined: Nov 2011
Gender: Male
Posts: 9
Karma: 0
 Re: Export to ROM...
« Reply #8 on Dec 4, 2011, 1:50pm »
[Quote]


Dec 3, 2011, 9:04pm, Mop wrote:
Maps now re-compress to the ROM!


All of them? Sweet ;)
Link to Post - Back to Top  IP: Logged

'Every day brings a man twenty-four hours nearer to his grave, although no one can tell accurately, merely by looking at a man, how many days he has still to travel on that road.' K.Marx
Mop
Administrator
*****
member is offline

[avatar]



Joined: Nov 2011
Gender: Male
Posts: 131
Karma: 0
 Re: Export to ROM...
« Reply #9 on Dec 4, 2011, 2:47pm »
[Quote]

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.
Link to Post - Back to Top  IP: Logged
   [Search This Thread][Reply] [Share Topic] [Print]

Also see blog for updates, and dropbox for builds/other files. ***** NOTE: please use the following board for SOM hacking discussion from now on: ACMLM Secret of Mana Hacking Board *****
Click Here To Make This Board Ad-Free


This Board Hosted For FREE By ProBoards
Get Your Own Free Message Boards & Free Forums!
Terms of Service | Privacy Policy | Notice | FTC Disclosure | Report Abuse | Mobile