snes2dosxml

Discussions about all other tools (CusPop, SAV/HOF editors) and hex editing.
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

snes2dosxml

Post by Norbert »

Converts Prince of Persia for SNES ROMs to the DOS XML format.

Download: version 0.1

Basically:
1. use this tool
2. dump the xml/ directory it gives you in the apoplexy directory
3. run apoplexy -y
4. save levels

Of course SNES has more levels than DOS, plus you may have to rename some XML files, but... whatever.
I think it's pretty solid for something that I coded in one day.
If there are problems or if you have suggestions, let me know.
salvadorc17
Calif
Calif
Posts: 553
Joined: August 27th, 2011, 2:04 am

Re: snes2dosxml

Post by salvadorc17 »

Good work, i have tested with pretty well results, but have found some bug in when using floor objects with mixing foreground columns, fallen skeleton and movable floors (>> <<), those give unknow tile and game crash of course.

Also something weird, but the rooms numbers seems changed, even with level beign same layout.
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: snes2dosxml

Post by Norbert »

salvadorc17 wrote:found some bug
The xml/ directory has a "warnings.txt" file.
You can look through it and change things if necessary, for example if tiles cause distortion.
The game should never crash.
salvadorc17 wrote:rooms numbers seems changed
Pr1SnesLevEd starts room, row, column, tile and event numbers at 0, apoplexy at 1.
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: snes2dosxml

Post by Norbert »

I found something I can improve.
Pr1SnesLevEd allows its users to mark tiles as being a wall and a floor at the same time.
This creates an attribute that is stored as the value 3.
Currently, snes2dosxml does not take into account that attributes can have this value.
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: snes2dosxml

Post by Norbert »

Norbert wrote:I found something I can improve.
Pr1SnesLevEd allows its users to mark tiles as being a wall and a floor at the same time.
This creates an attribute that is stored as the value 3.
Currently, snes2dosxml does not take into account that attributes can have this value.
Here is the updated program.

Download: version 0.2
salvadorc17
Calif
Calif
Posts: 553
Joined: August 27th, 2011, 2:04 am

Re: snes2dosxml

Post by salvadorc17 »

Norbert wrote:I found something I can improve.
Pr1SnesLevEd allows its users to mark tiles as being a wall and a floor at the same time.
This creates an attribute that is stored as the value 3.
Currently, snes2dosxml does not take into account that attributes can have this value.
So dos version does not allow to have tiles being wall and floor at same time, how do you will change, for wall? or floor??
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: snes2dosxml

Post by Norbert »

salvadorc17 wrote:So dos version does not allow to have tiles being wall and floor at same time, how do you will change, for wall? or floor??
The SNES tiles that are both wall+floor are being changed to just floor.
This should be fine, because the SNES wall+floor combo behaves the same as a floor.

You can check the xml/warnings.txt file to see where it happens. (Remember, for Pr1SnesLevEd numbering, remove 1 from the room and tile.)
For your mod about half of these tiles have mirrors on them.
salvadorc17
Calif
Calif
Posts: 553
Joined: August 27th, 2011, 2:04 am

Re: snes2dosxml

Post by salvadorc17 »

I have found this in apoplexy, there are broken room links or mod problem conversion??
Image
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: snes2dosxml

Post by Norbert »

salvadorc17 wrote:I have found this in apoplexy, there are broken room links or mod problem conversion??
Level 6 has broken room links: example (mirror)
You can probably just click the blue "14" once to fix your level. (Make sure you verify the level is correct after that.)
In level 9, you can probably just click the blue "24" once to fix your level. (Again, make sure you verify.)
Levels 15, 16 and 18 also have broken room links.
salvadorc17
Calif
Calif
Posts: 553
Joined: August 27th, 2011, 2:04 am

Re: snes2dosxml

Post by salvadorc17 »

Norbert wrote:
Level 6 has broken room links
You can probably just click the blue "14" once to fix your level. (Make sure you verify the level is correct after that.)
In level 9, you can probably just click the blue "24" once to fix your level. (Again, make sure you verify.)
Levels 15, 16 and 18 also have broken room links.
Youre talking about fix the rooms in apoplexy, not in prince snes level editor?? Also dont know why, had checked those levels time ago to post hack into rom hacking site.
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: snes2dosxml

Post by Norbert »

salvadorc17 wrote:Youre talking about fix the rooms in apoplexy, not in prince snes level editor??
I was talking about fixing the DOS version using apoplexy, yes.
Although you could also use Pr1SnesLevEd to fix the SNES version, and then redo the conversion.
salvadorc17 wrote:Also dont know why, had checked those levels time ago to post hack into rom hacking site.
Well, nobody is perfect. :)
salvadorc17
Calif
Calif
Posts: 553
Joined: August 27th, 2011, 2:04 am

Re: snes2dosxml

Post by salvadorc17 »

Will be good to have this tool do the reverse process, convert dos xml levels to snes readable format, using PrinceSnesLevel editor..
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: snes2dosxml

Post by Norbert »

salvadorc17 wrote:[...], convert dos xml levels to snes readable format, using PrinceSnesLevel editor..
In 2011, starwindz was working on a PoP1 for DOS to SNES level converter.
He was planning to use it for a SNES Total Pack.

I personally have no plans to create any kind of DOS to SNES converter, be it with XML or otherwise.
When it comes to PoP, I'm already busy working on the Mega Drive (Sega Genesis) level editor.
salvadorc17
Calif
Calif
Posts: 553
Joined: August 27th, 2011, 2:04 am

Re: snes2dosxml

Post by salvadorc17 »

Norbert wrote:
In 2011, starwindz was working on a PoP1 for DOS to SNES level converter.
He was planning to use it for a SNES Total Pack.

I personally have no plans to create any kind of DOS to SNES converter, be it with XML or otherwise.
When it comes to PoP, I'm already busy working on the Mega Drive (Sega Genesis) level editor.
Ok, no problem, ill try do it myself..
DridiSara123
Sheikh
Sheikh
Posts: 27
Joined: June 17th, 2018, 1:56 pm

Re: snes2dosxml

Post by DridiSara123 »

So with me you just can't start. Because when I double-click on "snes2dosml.exe" nothing happens.

So I wanted to ask how do you run this file?
Post Reply