Snes level editor single level format hex editing
-
- Calif
- Posts: 553
- Joined: August 27th, 2011, 2:04 am
Snes level editor single level format hex editing
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)
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)
Last edited by salvadorc17 on July 30th, 2016, 5:01 pm, edited 1 time in total.
Check my Prince in C# https://github.com/salvadorc17/Prince-Monogame
Re: Snes level editor single level format hex editing
You can find the format of SNES levels here: http://www.princed.org/wiki/SNES_format#Levels
-
- Calif
- Posts: 553
- Joined: August 27th, 2011, 2:04 am
Re: Snes level editor single level format hex editing
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?
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?
Check my Prince in C# https://github.com/salvadorc17/Prince-Monogame
Re: Snes level editor single level format hex editing
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?)
Address 0xA71 stores what object belongs to block 0x01.
(So I guess the byte at address 0x2DD is 0x01?)
-
- Calif
- Posts: 553
- Joined: August 27th, 2011, 2:04 am
Re: Snes level editor single level format hex editing
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
Check my Prince in C# https://github.com/salvadorc17/Prince-Monogame
Re: Snes level editor single level format hex editing
The "block objects" part, at offsets 0xA70..0xB6F, is exactly about this.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??
-
- Calif
- Posts: 553
- Joined: August 27th, 2011, 2:04 am
Re: Snes level editor single level format hex editing
Ok, you have tried Norbert converter??, seems some tiles are missing and being ignored, mostly for demo level and other traps.David wrote:salvadorc17 wrote: The "block objects" part, at offsets 0xA70..0xB6F, is exactly about this.
Check my Prince in C# https://github.com/salvadorc17/Prince-Monogame
Re: Snes level editor single level format hex editing
Please give me examples, because then I can improve the program if necessary.salvadorc17 wrote:Ok, you have tried Norbert converter??, seems some tiles are missing and being ignored, mostly for demo level and other traps.
Thanks.
-
- Calif
- Posts: 553
- Joined: August 27th, 2011, 2:04 am
Re: Snes level editor single level format hex editing
I mean how are handled demo level tiles for like example balcony, and also for the missing traps in prince Dos (fire, crusher, etc)Norbert wrote: Please give me examples, because then I can improve the program if necessary.
Thanks.
Check my Prince in C# https://github.com/salvadorc17/Prince-Monogame
Re: Snes level editor single level format hex editing
I don't know what you mean by "balcony".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)
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."
-
- Calif
- Posts: 553
- Joined: August 27th, 2011, 2:04 am
Re: Snes level editor single level format hex editing
Norbert wrote:
I don't know what you mean by "balcony".
I mean this demo tiles.
Check my Prince in C# https://github.com/salvadorc17/Prince-Monogame
Re: Snes level editor single level format hex editing
Okay.salvadorc17 wrote:I mean this demo tiles.Norbert wrote:I don't know what you mean by "balcony".
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)?
-
- Calif
- Posts: 553
- Joined: August 27th, 2011, 2:04 am
Re: Snes level editor single level format hex editing
Yes, no problem, this solves the question.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)?
Check my Prince in C# https://github.com/salvadorc17/Prince-Monogame