Prince Of Persia.net written in C#

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

Re: Prince Of Persia.net written in C#

Post by David »

Is there a button in the orginal for put away sword?
Yes, the down arrow.
- Can't climb up to a different room.
AMF> ?
See screenshot below. (This is from the original game.)
climb_up_to_other_room.png
climb_up_to_other_room.png (4.72 KiB) Viewed 4811 times
- Can't drink potions.
AMF> with shift kid drink
- Can't pick up the sword.
AMF> press shift key
I tried that but it didn't work.
AMF> i will investigate, but you have press space, kid can restart..
Right, but the game should show a message about that.
EDIT: I see there is a message for that in the source. (PrinceOfPersia.cs, DrawBottom()) Probably that text becomes black like the others.

I see you didn't answer to some bugs, including this one:
- The game crashes when the kid lands after a standing jump.
I think this is the most serious one, because it crashes the game.

Some more bugs -- or at least differences from the original:
- After climbing down, I can't hang with shift, but instead with left or right.
- Home and Page Up does not work.
In the original game, home=up+left, pageup=up+right.
- Can't go to the previous level with numpad minus.
Numpad minus makes the game faster, just like "- normal".
- I can't make the game slower with "+ normal".
The "+ normal" is shift-3 on my keyboard.

EDIT: I found this about text appearing black: https://monogame.codeplex.com/discussions/531574
salvadorc17
Calif
Calif
Posts: 553
Joined: August 27th, 2011, 2:04 am

Re: Prince Of Persia.net written in C#

Post by salvadorc17 »

You can expect so much things working little different in this version, becuase theyre made with custom different engine, by example you have different fall times and the prince cant do some things that are in the original versions...
David
The Prince of Persia
The Prince of Persia
Posts: 2877
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: Prince Of Persia.net written in C#

Post by David »

I know that.
But it's still good to know these.
polipo
Vizier
Vizier
Posts: 89
Joined: September 6th, 2012, 8:34 am

Re: Prince Of Persia.net written in C#

Post by polipo »

I'm already correct:

-> loading screen percentage
-> touchcontrol implementation
-> climb up to the next room
-> full screen
-> fixed bug crash pop.net when press plate after long jump
-> speedup loading content
-> fix left shift or right shift
04/09/2014
-> loose when crash on pressplate can press it (Question: is an infinite press ?)
Question : Can give someone, the chopper animation sequences? (114x114 transparency png)

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

Re: Prince Of Persia.net written in C#

Post by David »

polipo wrote: -> loose when crash on pressplate can press it (Question: is an infinite press ?)
Yes, the loose floor presses the button infinitely.
For close buttons, it's the same as the kid pressing them.
For open buttons, the gate stays open until someone presses a close button.
polipo wrote: Question : Can give someone, the chopper animation sequences? (114x114 transparency png)
You could make then from screenshots or from images extracted by PR.
(You can pause the game with ESC. If you press ESC again, it advances a single frame.)
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5787
Joined: April 9th, 2009, 10:58 pm

Re: Prince Of Persia.net written in C#

Post by Norbert »

David wrote:
polipo wrote: Question : Can give someone, the chopper animation sequences? (114x114 transparency png)
You could make then from screenshots or from images extracted by PR.
(You can pause the game with ESC. If you press ESC again, it advances a single frame.)
The apoplexy level editor displays animated chompers using sprites, so polipo can use those as a starting point.
The files in question are:
- apoplexy-2.5/png/palace/p_18_0_sprite.png
- apoplexy-2.5/png/dungeon/d_18_0_sprite.png
To easily get rid of the green outline, use select by color on it and then cut the selected area.
polipo
Vizier
Vizier
Posts: 89
Joined: September 6th, 2012, 8:34 am

Re: Prince Of Persia.net written in C#

Post by polipo »

Thanks

-> loading screen percentage
-> touchcontrol implementation
-> climb up to the next room
-> full screen
-> fixed bug crash pop.net when press plate after long jump
-> speedup loading content
-> fix left shift or right shift
04/09/2014
-> loose when crash on pressplate can press it
05/09/2014
-> fix font black on linux
-> chomper animation tile
salvadorc17
Calif
Calif
Posts: 553
Joined: August 27th, 2011, 2:04 am

Re: Prince Of Persia.net written in C#

Post by salvadorc17 »

Norbert wrote:
The apoplexy level editor displays animated chompers using sprites, so polipo can use those as a starting point.
The files in question are:
- apoplexy-2.5/png/palace/p_18_0_sprite.png
- apoplexy-2.5/png/dungeon/d_18_0_sprite.png
To easily get rid of the green outline, use select by color on it and then cut the selected area.
The apoplexy has the sprites resources inside the application, or how it managed it???, also it runs a standalone version of the game???
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5787
Joined: April 9th, 2009, 10:58 pm

Re: Prince Of Persia.net written in C#

Post by Norbert »

salvadorc17 wrote:The apoplexy has the sprites resources inside the application, or how it managed it???, also it runs a standalone version of the game???
This is a little off-topic for this thread, so I'm keeping my answers short: the images the editor displays are in its png/ directory, and it runs the original games from the prince/ and prince2/ directories using DOSBox.
salvadorc17
Calif
Calif
Posts: 553
Joined: August 27th, 2011, 2:04 am

Re: Prince Of Persia.net written in C#

Post by salvadorc17 »

Based on what you say, that means apoplexy has not game emulation, need dosbox to do it, at difference from this, also a bootstrap can be done to run this application instead of dosbox??? or the sdl version???
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5787
Joined: April 9th, 2009, 10:58 pm

Re: Prince Of Persia.net written in C#

Post by Norbert »

salvadorc17 wrote:Based on what you say, that means apoplexy has not game emulation, need dosbox to do it, at difference from this, also a bootstrap can be done to run this application instead of dosbox??? or the sdl version???
In theory, when the user presses the playtest key ("d") or clicks the top area of the application, apoplexy could show an 'executable screen' that asks the user what executable should be used. The default could be to just show a button for the original DOS executable (+ DOSBox) plus a text that explains that the directories of any number of alternatives can be copied into apoplexy's (initially empty) exe/ directory to make them show up on the 'executable screen'. If the exe/ directory contains one or more subdirectories, apoplexy could then show the names of those directories on additional buttons that the user could click to playtest with the alternatives. However, there would be hurdles to overcome. For example: either the alternatives should be able to use level files outside of their own directories (apoplexy saves to prince/ and xml/, not to exe/ subdirectories) or apoplexy would need to temporarily move level files (both prince/ and xml/, since it doesn't know what the alternatives require). Another example: the alternatives would need to use prince.exe or prince.bat under Windows, and prince or prince.sh under Linux. (PoP.NET, for example, would require a prince.sh file with "mono PrinceOfPersia.exe $1 $2" for Linux, to allow apoplexy to create an apoplexy.sh file with "prince megahit <level nr>", and a prince.bat with "PrinceOfPersia.exe %1 %2" for Windows, to allow apoplexy to create an apoplexy.bat file with the same content as the apoplexy.sh file I just mentioned. Or - but this would only work under Windows - it could simply rename its executable file to a standardized prince.exe.) These are some of my initial thoughts, in response to your question(s)/idea.
polipo
Vizier
Vizier
Posts: 89
Joined: September 6th, 2012, 8:34 am

Re: Prince Of Persia.net written in C#

Post by polipo »

Prince Of Persia - New Release
On source repository in Download section,
i have released the windows, linux and clickonce binary release

Features:
- touchcontrol
- loading content %
- font linux fix
- preview of chomper or slicer
salvadorc17
Calif
Calif
Posts: 553
Joined: August 27th, 2011, 2:04 am

Re: Prince Of Persia.net written in C#

Post by salvadorc17 »

Good for next version, but now it doesnt works for apoplexy current version August. and all files are from the previous one July, anything to do???
polipo
Vizier
Vizier
Posts: 89
Joined: September 6th, 2012, 8:34 am

Re: Prince Of Persia.net written in C#

Post by polipo »

Dear,
i have tested with Apoplext 2.5 august, exporting the xml and put into the levels/apoplexy dir and it works.

I have found only 1 bug :
-> after level 12, PoP.net can load the 12b level, because it search a file called level13.xml
I have fixed it using the xml tag "room number" for search the correct file name.

Have you see other bugs?
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5787
Joined: April 9th, 2009, 10:58 pm

Re: Prince Of Persia.net written in C#

Post by Norbert »

Norbert wrote:Yes, I can run that under Linux.
Unfortunately, in-game, it only has one frame every 9 (or so) seconds, so it's too slow to play the game.
Still this slow for me.

Maybe this overview of errors is useful:

Code: Select all

---------------------------------------------
Content
---------------------------------------------
ERROR:Content.Load<dContentRes>System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
  at System.Collections.Generic.Dictionary`2[System.String,System.Object].get_Item (System.String key) [0x00000] in <filename unknown>:0 
  at PrinceOfPersia.Sequence.Initialize () [0x00000] in <filename unknown>:0 CONFIG_sprite_kidKid_166
ERROR:Content.Load<dContentRes>System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
  at System.Collections.Generic.Dictionary`2[System.String,System.Object].get_Item (System.String key) [0x00000] in <filename unknown>:0 
  at PrinceOfPersia.Sequence.Initialize () [0x00000] in <filename unknown>:0 CONFIG_sprite_kidKid_166
ERROR:Content.Load<dContentRes>System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
  at System.Collections.Generic.Dictionary`2[System.String,System.Object].get_Item (System.String key) [0x00000] in <filename unknown>:0 
  at PrinceOfPersia.Sequence.Initialize () [0x00000] in <filename unknown>:0 CONFIG_sprite_kidKid_86
Post Reply