Prince of Persia 1 XML Format

Threads about other remakes and ports.
David
The Prince of Persia
The Prince of Persia
Posts: 2846
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: Prince of Persia 1 XML Format

Post by David »

Norbert wrote: So, since you also wrote, about the event numbers, "Actually, numbering them differently from what the game uses, that might confuse people", I guess apoplexy doesn't need to be changed after all?
I meant you should start numbering events from 0, because that is what the game uses (e.g. for modifiers of buttons).
(Though the editor displays them as starting from 1.)
Maybe tile positions should also be numbered from 0? The game does that for events and kid/guard positions.
Norbert wrote: Should the modifiers of raise and drop tiles be +1? Then they point to the correct events, but their values would no longer be consistent with other modifiers; artificially-inflated.
Just keep the modifiers as they are.
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: Prince of Persia 1 XML Format

Post by Norbert »

David wrote:Maybe tile positions should also be numbered from 0? The game does that for events and kid/guard positions.
Well, the idea I had for the XML was to make it as user friendly as possible, ignoring whatever is going on under the hood in the original game.
Therefore I prefer to start counting from 1.
I'm thinking maybe the only exception to this rule should be the events, to retain modifier consistency?
Then again, then maybe starting everything from 0 is more consistent. (Sigh...)
What to do, what to change, I had hoped to get the XML stuff off my TODO list ages ago.

[Edit: I think I'll just keep it the way it is. It works as it is. :)]
polipo
Vizier
Vizier
Posts: 89
Joined: September 6th, 2012, 8:34 am

Re: Prince of Persia 1 XML Format

Post by polipo »

Dear,
i'm lost and confusing about events and i must complete the apoplexy level support on PrinceOfPersia.net

In apoplexy 2.4 (last today version) :

1) The info room and location refer to the correct position tile
Example
in a room :
location = 1 point to left-top tile
location = 10 point to right-top and finally the location = 30 is the right bottom tile.

2) There are some junk event, i can found they if their location apply to a tile not equal to (door or exit gate)
Example:
<event number="38" room="1" location="18" next="0" /> <!-- refer to a WALL tile in the room 1-->
or i can understand if take ONLY the events linked from a pressplate o upressplate on the "modifier" value and
if event have the next=1 i can take the next sequence events.

3) if the location of the event point to an "exit level door" it point to the first tile (left bottom) of the exit door and open the entire (4 tiles gate)

Thanks
David
The Prince of Persia
The Prince of Persia
Posts: 2846
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: Prince of Persia 1 XML Format

Post by David »

1) What you write is correct.

2)
take ONLY the events linked from a pressplate o upressplate on the "modifier" value and
if event have the next=1 i can take the next sequence events.
Yes, it's enough if you keep those events that can be activated.

3) Yes, the event points to the left half of the exit door, and the whole door opens.
(I see you split the exit to four pieces in MAP_dungeon_prison_9.xml )
polipo
Vizier
Vizier
Posts: 89
Joined: September 6th, 2012, 8:34 am

Re: Prince of Persia 1 XML Format

Post by polipo »

Very thanks!
Perfect i can continue the import process.
polipo
Vizier
Vizier
Posts: 89
Joined: September 6th, 2012, 8:34 am

Re: Prince of Persia 1 XML Format

Post by polipo »

Dear,
i found another error between documentation and xml format.
The document says:
"For drop (element 6) and raise (element 15) buttons, the modifier is
the number of the first event it activates"

WRONG because the modifier will be the number "-1" of the first event it activates

Example
<room number="6">
<tile element="51" modifier="0" />
<tile element="33" modifier="1" />
<tile element="47" modifier="7" /> <!-- PRESS PLATE WICH ACTIVATE THE DOOR in room=8 position=10-->

<event number="7" room="7" location="10" next="0" /> <!-- ERROR the right event is 6 and not 7-->
<event number="6" room="8" location="10" next="0" /> <!-- correct door -->

Bye
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: Prince of Persia 1 XML Format

Post by Norbert »

polipo wrote:i found another error between documentation and xml format. [...] the modifier will be the number "-1" of the first event it activates
Yep, I will update the documentation.
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: Prince of Persia 1 XML Format

Post by Norbert »

Norbert wrote:
polipo wrote:i found another error between documentation and xml format. [...] the modifier will be the number "-1" of the first event it activates
Yep, I will update the documentation.
Fixed the document.
polipo
Vizier
Vizier
Posts: 89
Joined: September 6th, 2012, 8:34 am

Re: Prince of Persia 1 XML Format

Post by polipo »

Yes i have finish the apoplexy porting on PoP.net!

I miss this:
> going to the next level and open gate
> some tiles like chopper
Post Reply