Page 1 of 1

Snes level editor single level format hex editing

Posted: July 29th, 2016, 10:50 pm
by salvadorc17
Here i will post my info about what i can found in exported levels by Prince Snes Level Editor.
I will hex edit this files, Daiv or someone else, if you know more documentation about this, please give me some help. The main purpose of this is convert snes level layout( basic tiles only) to Pc Dos version. (using xml format)

Re: Snes level editor single level format hex editing

Posted: July 30th, 2016, 11:20 am
by David
You can find the format of SNES levels here: http://www.princed.org/wiki/SNES_format#Levels

Re: Snes level editor single level format hex editing

Posted: July 30th, 2016, 4:59 pm
by salvadorc17
Wow thanks, that help me doing faster the process of parsing the level with my converter tool..

Edit: Need some help for understanding, why the object type does not place consecutively in the adress.
Like for example in my file room 0 tile 14 is chomper floor.
So adresss 0x2dd is floor type.
But the adress for object chomper is assigned to 0xa71 (0x0c)

So the question is why the adress for object is not the 14 byte (tile) after 0xa70?

Re: Snes level editor single level format hex editing

Posted: July 31st, 2016, 8:45 am
by David
Because address 0x2DD contains a block index, not the object type.
Address 0xA71 stores what object belongs to block 0x01.
(So I guess the byte at address 0x2DD is 0x01?)

Re: Snes level editor single level format hex editing

Posted: July 31st, 2016, 10:32 pm
by salvadorc17
David wrote:Because address 0x2DD contains a block index, not the object type.
Address 0xA71 stores what object belongs to block 0x01.
(So I guess the byte at address 0x2DD is 0x01?)

Yes, is assigned to chomper the block index 01, so i can change wich object is assigned to each block index?? So which is the default value of each block index??

Im having this values for block index:

Code: Select all

	none = 00,
        chomper = 01,
        floor = 02,
        column = 03,
        sword = 04,
        door = 0x11,
        door1 = 0x12,
        torchb = 0x77,
        loose = 0xce,
        spike = 0xd2,
        healpotion = 0xd5

Re: Snes level editor single level format hex editing

Posted: August 7th, 2016, 10:28 am
by David
salvadorc17 wrote:Yes, is assigned to chomper the block index 01, so i can change wich object is assigned to each block index?? So which is the default value of each block index??
The "block objects" part, at offsets 0xA70..0xB6F, is exactly about this.

Re: Snes level editor single level format hex editing

Posted: August 8th, 2016, 12:41 am
by salvadorc17
David wrote:
salvadorc17 wrote: The "block objects" part, at offsets 0xA70..0xB6F, is exactly about this.
Ok, you have tried Norbert converter??, seems some tiles are missing and being ignored, mostly for demo level and other traps.

Re: Snes level editor single level format hex editing

Posted: August 8th, 2016, 1:11 am
by Norbert
salvadorc17 wrote:Ok, you have tried Norbert converter??, seems some tiles are missing and being ignored, mostly for demo level and other traps.
Please give me examples, because then I can improve the program if necessary.
Thanks.

Re: Snes level editor single level format hex editing

Posted: August 10th, 2016, 9:21 pm
by salvadorc17
Norbert wrote: Please give me examples, because then I can improve the program if necessary.
Thanks.
I mean how are handled demo level tiles for like example balcony, and also for the missing traps in prince Dos (fire, crusher, etc)

Re: Snes level editor single level format hex editing

Posted: August 10th, 2016, 9:52 pm
by Norbert
salvadorc17 wrote:I mean how are handled demo level tiles for like example balcony, and also for the missing traps in prince Dos (fire, crusher, etc)
I don't know what you mean by "balcony".

If you look in xml/warnings.txt then you can see how things are handled.
You will for example see...

"Converted fire to chomper."
"Converted crusher to chomper."

Re: Snes level editor single level format hex editing

Posted: August 11th, 2016, 9:09 pm
by salvadorc17
Norbert wrote:
I don't know what you mean by "balcony".

I mean this demo tiles.

Image

Re: Snes level editor single level format hex editing

Posted: August 11th, 2016, 9:34 pm
by Norbert
salvadorc17 wrote:
Norbert wrote:I don't know what you mean by "balcony".
I mean this demo tiles.
Okay.

Well, if you look at a comparison (mirror), it may seem as if snes2dosxml creates floors on the left where it should add more walls for the tower.

However, if you press "i" you see the tile information, and then the comparison (mirror) shows you that indeed the attributes for these tiles are set to floor (F = floor, S = space, W = wall).

This should mean you can walk inside the tower, which is indeed possible (mirror).

And the balustrade on the floor on the right consists of tiles that do not exist for DOS.

Does this answer your question(s)?

Re: Snes level editor single level format hex editing

Posted: August 12th, 2016, 9:42 pm
by salvadorc17
Norbert wrote:
And the balustrade on the floor on the right consists of tiles that do not exist for DOS.

Does this answer your question(s)?
Yes, no problem, this solves the question.