Level conversion from PC to SNES for Total Pack

A user-friendly interface for downloading, tweaking and playing mods.
salvadorc17
Calif
Calif
Posts: 553
Joined: August 27th, 2011, 2:04 am

Re: Level conversion from PC to SNES for Total Pack

Post by salvadorc17 »

Can you tell me how are stored the levels in Total Pack, those use DOS format?? should i convert all them with apoplexy??
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: Level conversion from PC to SNES for Total Pack

Post by Norbert »

salvadorc17 wrote:Can you tell me how are stored the levels in Total Pack, those use DOS format??
The PoP1 Total Pack uses mods with the DOS format, it automatically downloads packages from popot.org.

A PoP1 for SNES Total Pack does not (yet) exist.
salvadorc17 wrote:should i convert all them with apoplexy??
I don't understand what you mean, apoplexy can only export and import DOS XML.
salvadorc17 wrote:??
Off-topic, I was wondering about your usage of double question marks (??).
I saw on GitHub that you're from Colombia, which, I think, makes your native language Spanish.
Are the double question marks a replacement for ¿...?
Or maybe it's just something you use to emphasize the sentence is a question?
salvadorc17
Calif
Calif
Posts: 553
Joined: August 27th, 2011, 2:04 am

Re: Level conversion from PC to SNES for Total Pack

Post by salvadorc17 »

Norbert wrote:
I don't understand what you mean, apoplexy can only export and import DOS XML.
salvadorc17 wrote:??
Off-topic, I was wondering about your usage of double question marks (??).
I saw on GitHub that you're from Colombia, which, I think, makes your native language Spanish.
Are the double question marks a replacement for ¿...?
Or maybe it's just something you use to emphasize the sentence is a question?
Yes i was talking about how to allow use total pack for snes, should i convert to apoplexy levels, after to snes format? or what to do.

Yes, the double ?? is for emphasize the sentence..
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: Level conversion from PC to SNES for Total Pack

Post by Norbert »

salvadorc17 wrote:Yes i was talking about how to allow use total pack for snes, should i convert to apoplexy levels, after to snes format? or what to do.
Okay, I think I understand what you're trying to do.

Here's what I think might be a good path for you to take:

Pr1SnesLevEd has a File menu with "Export level..." and "Import level...".
Those menu entries export and import compressed levels.
A good start might be to ask David to add two additional menu entries, to export and import uncompressed levels.

Once you have that, you can export a SNES level in uncompressed format.
Then, search for "Parts of the level:" on the SNES format wiki page.
This should allow you to understand the uncompressed level that Pr1SnesLevEd exported.
This won't be easy, of course; you'd have to study the exported level with, for example, a hex editor.

Once you understand the uncompressed level files, you should be able to create new level files that Pr1SnesLevEd can import.
Finally, you could make a program to convert apoplexy XML to the SNES uncompressed level format.
salvadorc17
Calif
Calif
Posts: 553
Joined: August 27th, 2011, 2:04 am

Re: Level conversion from PC to SNES for Total Pack

Post by salvadorc17 »

Norbert wrote:
Once you understand the uncompressed level files, you should be able to create new level files that Pr1SnesLevEd can import.
Finally, you could make a program to convert apoplexy XML to the SNES uncompressed level format.
Yes, i have partially readed snes format in my tool, but seems those are uncompressed levels, also what i need to know is how to handle with custom levels.dat from the total pack, converting those to apoplexy or there is anything else to do?
David
The Prince of Persia
The Prince of Persia
Posts: 2846
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: Level conversion from PC to SNES for Total Pack

Post by David »

Norbert wrote: Pr1SnesLevEd has a File menu with "Export level..." and "Import level...".
Those menu entries export and import compressed levels.
A good start might be to ask David to add two additional menu entries, to export and import uncompressed levels.
Those work with uncompressed levels only, and this is how it always been.
You didn't look inside the exported files, did you? ;)
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: Level conversion from PC to SNES for Total Pack

Post by Norbert »

David wrote:Those work with uncompressed levels only, and this is how it always been.
Good; useful for salvadorc17.
salvadorc17
Calif
Calif
Posts: 553
Joined: August 27th, 2011, 2:04 am

Re: Level conversion from PC to SNES for Total Pack

Post by salvadorc17 »

David wrote: Those work with uncompressed levels only, and this is how it always been.
You didn't look inside the exported files, did you? ;)
Yes, i have looked inside exported ones, why not, the fime format does fit perfectly for them..
Post Reply