Tuesday, 29 July 2014

A little help

A little help

I transcript a initial private conversation about PoP.net futures

SALVADOR CABANAS
Andrea, i want to ask about prince net, what elements need to be added, i cannot see prince interactions with items, also there is no fighting animation??? anything else that need to be added???

ME
Dear,
the first step (I think) is make the compatibily with Apoplexy level editor.
Apoplexy is a prince of persia editor maded from Norbert, it permit to load standard prince dat files and export into xml, my last attempt is to read the output xml for 
generate the levels.
There are a lot of custom and original level maded by prince fans, it will be cool load the original and custom levels into the PoP.net.
link -> http://forum.princed.org/   see level editor

Prince interaction with item are done : sword, potions

Prince fighiting animation are all done : sword combat
Miss: some interaction with plate 

Good look and if you make some changes into the PoP.net source please commit on original codeplex repository.

bye




SALVADOR CABANAS
You need to change the level structure to make it compatible, by now it allow some different stuff, like each room is an xml file, the problem is that apoplexy will not allow some references to elements becuase is not a net application, is c++ based..

ME
Yeah right,
the apoplexy xml output is bad, BUT i don't like to program another PoP level editor.
The solution is to make a wrapper for read the Apoplexy xml and build the maze or a conversion tool for write PoP.net xml.

The best solution i think it's the first.
We can check on startup the presence of some files into the dir ".\Apoplexy\xml" and if found
read and build the maze

The Apoplexy tags are

<level>
<rooms>
<tile element="x" modifier="x">
<guard location="x" direction="x" skill="x" colors="x">
<links left="x" right="x" up="x" down="X">
</rooms>
</levels>
<prince room="x" location="x" direction="x">
</prince> //MISSED CLOSING TAG Norbert can you fix it!!!
<userdata fields="?">
<field key="Level Description" value="Level 1">
<field key="Original Level Number" value="1">
</userdata>

<events>
<event number="x" room="x" location="x" next="x">
</events>



APOPLEXY LEVEL DEMO example

<?xml version="1.0" encoding="UTF-8" ?>
<level number="1">
<rooms>
<room number="1">
<tile element="0" modifier="255">
<tile element="0" modifier="255">
<tile element="0" modifier="255">
<tile element="33" modifier="0">
<tile element="1" modifier="1">
<tile element="33" modifier="0">
<tile element="33" modifier="1">
<tile element="33" modifier="0">
<tile element="52" modifier="0">
<tile element="52" modifier="0">
<tile element="51" modifier="0">
<tile element="51" modifier="0">
<tile element="33" modifier="1">
<tile element="35" modifier="0">
<tile element="0" modifier="0">
<tile element="52" modifier="0">
<tile element="20" modifier="0">
<tile element="20" modifier="0">
<tile element="20" modifier="0">
<tile element="52" modifier="0">
<tile element="20" modifier="0">
<tile element="20" modifier="0">
<tile element="52" modifier="0">
<tile element="52" modifier="0">
<tile element="46" modifier="0">
<tile element="35" modifier="0">
<tile element="11" modifier="0">
<tile element="1" modifier="1">
<tile element="33" modifier="0">
<tile element="52" modifier="0">
<guard location="0" direction="1" skill="255" colors="255">
<links left="5" right="0" up="0" down="2">

</room>
</level>.......

LINK TO THE APOPLEXY XML DOCUMENT
http://www.popot.org/documentation/documents/2014-07-29_PoP1_XML_Format.pdf


Monday, 28 April 2014

A little little fix

A little little fix

A little bug correction:
  • when the PoP.net load the Gate tile doesn't reading the timeOpen value

Sunday, 17 November 2013

A little stop....

A little stop?

In past month i'm working on a realtime ECG software, i have done some experiments with xamarin i have ported a project on Android, i think in Two week i will porting on ipad.
And PoP.net ? I have open the project but the new recruitment have maded zero line and zero question about PoP.net, i will fire in net week.... I dont understand because they have ask to join into the project and....  Nothing ....mah....

Tuesday, 1 October 2013

Element / Modifier for Apoplexy


Element / Modifier for Apoplexy

For parse the XML file from Apoplexy (PrinceOfPersia Level Editor) i must create a new Enum,
i havent found the possibility to make a nested enum, my solution is make a pattern mask,
Like this:


// enum standard
 public enum TileType
        {
            space = 0,
            floor = 1,
            spikes = 2,
            posts = 3,
            gate = 4,
            dpressplate = 5, //;down
            pressplate = 6, 
....

//first 4 byte are element type the rest is the modifier, _x tells the result 

   public enum Tile
        {
            space_1   = 0x00000000,
            space_2   = 0x00000001,
            space_3   = 0x00000002,
            space_4   = 0x00000003,
            space_5   = 0x000000FF, 

            floor_6   = 0x00010000,
            floor_7   = 0x00010001,
            floor_8   = 0x00010002,
            floor_9   = 0x00010003,
            floor_10  = 0x000100FF,

            spike_11  = 0x00020000,
            spike_12  = 0x00020001,
            spike_13  = 0x00020002,
            spike_14  = 0x00020003,
            spike_15  = 0x00020004,
            spike_16  = 0x00020005,
            spike_17  = 0x00020006,
            spike_18  = 0x00020007,
            spike_19  = 0x00020008,
            spike_20  = 0x00020009,

            posts_21  = 0x00030000,
.....

Monday, 23 September 2013

Open Project

Open Project

Now, the PoP.net project is open for join, everyone can send me an email trough Codepelex' site "Source Repository".
I'm looking for someone help me to continue the developing or make graphics, idea etc.

Tuesday, 17 September 2013

Room wall algorithm

Room wall algorithm

The original PoP have an algorithmn for determine the wall variance, for draw a realistic stone wall, it adds gray block, creak in the blocks etc.

I found some documentation in "Prince of Persia Specifications of File Formats" (thanks to Norbert) but there's not the all logic but only the first part.

I have started to study and implement the gray stone and the first start wall block,
this is the results from PoP.net vs PoP classic


Wednesday, 11 September 2013

Splash News

Splash News

I spent some time for do change the Monogame assembly from OpenGL to Direct X 9, i have linked the new Monogame prerelease 3.2 and changed from OPENTK library to SHARPDX library.

In this passage PoP.net lost the Windows XP compatibility but the OPENTK are some buggy like framerate and some content importer lacks, now PoP.net is compatible only with
  • Windows Vista  Sp1 or greater
  • Windows 7
  • Windows 8
Resfresh source repository and codeplex downloads

New features:
  • the SPLASH sequence, whem kid or enemy hit the splash image show and play the sound effect