What is the apoplexy level structure??

Windows and Linux editor of PoP1 (for DOS and SNES) and PoP2 (for DOS).
Post Reply
salvadorc17
Calif
Calif
Posts: 553
Joined: August 27th, 2011, 2:04 am

What is the apoplexy level structure??

Post by salvadorc17 »

Hi, i want to ask about this becuase im working on prince of persia net created by "polipo", and i learning about level structure, that it seems duplicate from apoplexy, then i need to confirm this is correct:

The level are created in xml files that references for each room in sctructure like this:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<Map xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <rows>
    <Row>
      <columns>
        <Column>
          <tileType>block</tileType>
        </Column>
        <Column>
          <tileType>block</tileType>
        </Column>
        <Column>
          <tileType>block</tileType>
        </Column>
        <Column>
          <tileType>block</tileType>
        </Column>
        <Column>
          <tileType>block</tileType>
        </Column>
        <Column>
          <tileType>block</tileType>
        </Column>
        <Column>
          <tileType>block</tileType>
        </Column>
        <Column>
          <tileType>block</tileType>
        </Column>
        <Column>
          <tileType>block</tileType>
        </Column>
        <Column>
          <tileType>block</tileType>
        </Column>
      </columns>
    </Row>
    <Row>
      <columns>
        <Column>
          <tileType>block</tileType>
        </Column>
        <Column>
          <tileType>block</tileType>
        </Column>
        <Column>
          <tileType>block</tileType>
        </Column>
        <Column>
          <tileType>block</tileType>
        </Column>
        <Column>
          <tileType>block</tileType>
        </Column>
        <Column>
          <tileType>block</tileType>
        </Column>
        <Column>
          <tileType>block</tileType>
        </Column>
        <Column>
          <tileType>block</tileType>
        </Column>
        <Column>
          <tileType>block</tileType>
        </Column>
        <Column>
          <tileType>block</tileType>
        </Column>
      </columns>
    </Row>
    <Row>
      <columns>
        <Column>
          <tileType>block</tileType>
        </Column>
        <Column>
          <tileType>block</tileType>
        </Column>
        <Column>
          <tileType>block</tileType>
        </Column>
        <Column>
          <tileType>block</tileType>
        </Column>
        <Column>
          <tileType>block</tileType>
        </Column>
        <Column>
          <tileType>block</tileType>
        </Column>
        <Column>
          <tileType>block</tileType>
        </Column>
        <Column>
          <tileType>block</tileType>
        </Column>
        <Column>
          <tileType>block</tileType>
        </Column>
        <Column>
          <tileType>block</tileType>
        </Column>
      </columns>
    </Row>
  </rows>
</Map>
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5745
Joined: April 9th, 2009, 10:58 pm

Re: What is the apoplexy level structure??

Post by Norbert »

The apoplexy XML is very different.
Its structure can be found here.
You can export levels to XML yourself using: apoplexy -x
Attached to this post is level 1 of the original, non-modded, PoP1 for DOS.
(I just noticed that PR's "Time Created" may be UTC based.)
Attachments
level1.zip
Level 1 of PoP1 DOS in XML format.
(2.91 KiB) Downloaded 98 times
salvadorc17
Calif
Calif
Posts: 553
Joined: August 27th, 2011, 2:04 am

Re: What is the apoplexy level structure??

Post by salvadorc17 »

I see that is really different, but for some reason, the creator did some references to apoplexy file structure, that i think is not using while in game, becuase the file for one i am using has a xml for each room and a xml that connect all the rooms, i prefeer this apoplexy level structure but i cant really change it without altering the original, code, also i want to ask if you can give me support for it???
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5745
Joined: April 9th, 2009, 10:58 pm

Re: What is the apoplexy level structure??

Post by Norbert »

Sorry, I cannot help you with polipo's Prince Of Persia Dot Net.
salvadorc17
Calif
Calif
Posts: 553
Joined: August 27th, 2011, 2:04 am

Re: What is the apoplexy level structure??

Post by salvadorc17 »

Ok, and any advice, about how to apoplexy handle the level structure, for the editor, i mean you have the source aobut how to it do..
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5745
Joined: April 9th, 2009, 10:58 pm

Re: What is the apoplexy level structure??

Post by Norbert »

Not really. :)
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5745
Joined: April 9th, 2009, 10:58 pm

Re: What is the apoplexy level structure??

Post by Norbert »

Norbert wrote:Not really. :)
To complement information already available on the this forum about the XML structure, I've created a PDF document.
See its forum thread for more information.
salvadorc17
Calif
Calif
Posts: 553
Joined: August 27th, 2011, 2:04 am

Re: What is the apoplexy level structure??

Post by salvadorc17 »

Great info, that is was i looking for, it contains all the tile elements, and i think is possible convert the xml level structure from the prince net in this apoplexy, now the question will be how to edit those levels using the editor...
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5745
Joined: April 9th, 2009, 10:58 pm

Re: What is the apoplexy level structure??

Post by Norbert »

salvadorc17 wrote:now the question will be how to edit those levels using the editor...
Just never delete the LEVELS.DAT file. :)

Maybe I'll add an XML import functionality to apoplexy in the future.
Shouldn't be that complicated, but I need to find time to do it.
salvadorc17
Calif
Calif
Posts: 553
Joined: August 27th, 2011, 2:04 am

Re: What is the apoplexy level structure??

Post by salvadorc17 »

Now i want to ask, if prince of persia 2 uses same level structure for apoplexy...
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5745
Joined: April 9th, 2009, 10:58 pm

Re: What is the apoplexy level structure??

Post by Norbert »

salvadorc17 wrote:Now i want to ask, if prince of persia 2 uses same level structure for apoplexy...
You sure ask a lot of questions on this forum, salvadorc17. ;)
Did you mean to ask whether I'm planning to add Prince of Persia 2 XML export+import to apoplexy?
I'm not.
The levels of Prince of Persia 2 are different in many ways, they are a lot more complicated.
You can read more about the differences in this document: http://www.popot.org/documentation.php? ... ifications
I choose to do other, more interesting and more fun, things in my life.
Post Reply