Prince Of Persia.net written in C#
-
- Calif
- Posts: 553
- Joined: August 27th, 2011, 2:04 am
Re: Prince Of Persia.net written in C#
I want to ask polipo, how do you solved the prince restart level on dead, becuase it was so bugged....
Check my Prince in C# https://github.com/salvadorc17/Prince-Monogame
Re: Prince Of Persia.net written in C#
Fixed now, i will release now!says Salvadorc17 : I want to ask polipo, how do you solved the prince restart level on dead, becuase it was so bugged.
>>only for windows and clickonce, linux i will release in next days
Last edited by polipo on September 12th, 2014, 5:55 pm, edited 2 times in total.
Re: Prince Of Persia.net written in C#
Dear,
is only a warnings is not bind to your linux performance problem.
Its a problem on graphics driver for monogame, for replicate i can investigate on a real linux machine, now i dont have it.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.
This errors are present in all version, there are some missing kid sprite graphics, i dont found it on original mac source code, thisNorbert wrote: of errors is useful:....
is only a warnings is not bind to your linux performance problem.
Re: Prince Of Persia.net written in C#
(from viewtopic.php?p=15395#p15395 )
It seems to me that these errors are about missing sprites.
Namely, Kid_166 and Kid_86 are missing from Sprites/player/Kid_dos/ .
And Kid_166 is shown twice because it occurs twice in Sequences/dos/kid_sequence.xml .
EDIT: polipo answered while I was writing my post.
I get similar errors but the game is not slow for me: viewtopic.php?p=15329#p15329Norbert wrote:Still this slow for me.
Maybe this overview of errors is useful:
It seems to me that these errors are about missing sprites.
Namely, Kid_166 and Kid_86 are missing from Sprites/player/Kid_dos/ .
And Kid_166 is shown twice because it occurs twice in Sequences/dos/kid_sequence.xml .
EDIT: polipo answered while I was writing my post.
-
- Calif
- Posts: 553
- Joined: August 27th, 2011, 2:04 am
Re: Prince Of Persia.net written in C#
Then where do you get those sprites??? the mac source has all it???
Check my Prince in C# https://github.com/salvadorc17/Prince-Monogame
Re: Prince Of Persia.net written in C#
First of all, what you call "mac source" is the Apple II source.
The Apple II version is not the Macintosh version.
I see you copied the sequences (more or less) from SEQTABLE.S.
"Frame" and "image" mean different things in the PoP source.
An "image" is just an image that has width, height, and pixels.
A "frame" is an image plus some other data, like sword image, x/y offsets.
Frames are defined in FRAMEDEF.S.
Frame 166 (of the kid) uses image $0f (15), just like frame 15.
Frame 86 uses image $1d (29), just like frame 29.
The Apple II version is not the Macintosh version.
I see you copied the sequences (more or less) from SEQTABLE.S.
"Frame" and "image" mean different things in the PoP source.
An "image" is just an image that has width, height, and pixels.
A "frame" is an image plus some other data, like sword image, x/y offsets.
Frames are defined in FRAMEDEF.S.
According to FRAMEDEF.S:polipo wrote:there are some missing kid sprite graphics, i dont found it on original mac source code
Frame 166 (of the kid) uses image $0f (15), just like frame 15.
Frame 86 uses image $1d (29), just like frame 29.
-
- Calif
- Posts: 553
- Joined: August 27th, 2011, 2:04 am
Re: Prince Of Persia.net written in C#
David:
According to FRAMEDEF.S:
Frame 166 (of the kid) uses image $0f (15), just like frame 15.
Frame 86 uses image $1d (29), just like frame 29.
Can you show me what sprites are you talking about, becuase i cant find the sprites images into the source...
How do you solved it, i trough you need to create a new player instance every times level reset, or im wrong???Polipo:
Fixed now, i will release now!
>>only for windows and clickonce, linux i will release in next days
Check my Prince in C# https://github.com/salvadorc17/Prince-Monogame
Re: Prince Of Persia.net written in C#
(Does the "source" in your post mean the Apple II source?)salvadorc17 wrote: Can you show me what sprites are you talking about, becuase i cant find the sprites images into the source...
The sprites (images) in PoP.net are from the DOS version, not from the Apple II source.
Although there are some images in the Apple II source, they are in a special format.
They are here: https://github.com/jmechner/Prince-of-P ... rce/Images
Re: Prince Of Persia.net written in C#
Dear to all,
yes i talk about Apple II version, i have used it for catch the correct animation sequences in SEQTABLE.S file.
I know they are different from the pc dos version (offset and other missing anim sprite),
but i looked into it for undestand how the sprite anim works.
Today i have discovered the david's prince reassembled pc version. Great work David!
yes i talk about Apple II version, i have used it for catch the correct animation sequences in SEQTABLE.S file.
I know they are different from the pc dos version (offset and other missing anim sprite),
but i looked into it for undestand how the sprite anim works.
Today i have discovered the david's prince reassembled pc version. Great work David!
yes, i use the "StartNewLife()" function also i have fixed some bugs on player dead.salvadorc-> you need to create a new player instance ?
yes thanks, i have changed the kid_sequence to appropriate spriteset.david->According to FRAMEDEF.S:..
-
- Calif
- Posts: 553
- Joined: August 27th, 2011, 2:04 am
Re: Prince Of Persia.net written in C#
That changes means plus new sprites??? you have uploaded all recently made to the source code???
Check my Prince in C# https://github.com/salvadorc17/Prince-Monogame
Re: Prince Of Persia.net written in C#
No, now the kid sprite set is completeThat changes means plus new sprites???
No yet, as soon i will upload the new sourcecodeyou have uploaded all recently made to the source code???
Re: Prince Of Persia.net written in C#
Do you mean the David's open-source port of PoP (pre-release) topic?polipo wrote: Today i have discovered the david's prince reassembled pc version. Great work David!
-
- Calif
- Posts: 553
- Joined: August 27th, 2011, 2:04 am
Re: Prince Of Persia.net written in C#
Hey, im trying to add debug code to the project, this functions are well made???
Code: Select all
public RoomNew NextRoom(RoomNew room)
{
int c = room.roomIndex;
if (c != 0) {
c = System.Threading.Interlocked.Increment(ref c);
}
foreach (RoomNew r in rooms) {
if (r.roomIndex == c) {
return r;
}
}
return blockRoom;
}
public RoomNew PreviuosRoom(RoomNew room)
{
int c = room.roomIndex;
if (c != 0) {
c = System.Threading.Interlocked.Decrement(ref c);
} else if (c > 1) {
c = System.Threading.Interlocked.Decrement(ref c);
}
foreach (RoomNew r in rooms) {
if (r.roomIndex == c) {
return r;
}
}
return blockRoom;
}
Check my Prince in C# https://github.com/salvadorc17/Prince-Monogame
Re: Prince Of Persia.net written in C#
YesDavid wrote: Do you mean the David's open-source port of PoP (pre-release) topic?
Re: Prince Of Persia.net written in C#
Dear,salvadorc17 wrote:Hey, im trying to add debug code to the project, this functions are well made???
Code: Select all
public RoomNew NextRoom(RoomNew room) { int c = room.roomIndex; if (c != 0) { c = System.Threading.Interlocked.Increment(ref c); } foreach (RoomNew r in rooms) { if (r.roomIndex == c) { return r; } } return blockRoom; } public RoomNew PreviuosRoom(RoomNew room) { int c = room.roomIndex; if (c != 0) { c = System.Threading.Interlocked.Decrement(ref c); } else if (c > 1) { c = System.Threading.Interlocked.Decrement(ref c); } foreach (RoomNew r in rooms) { if (r.roomIndex == c) { return r; } } return blockRoom; }
i don't uderstand you have used the interlocked, the monogame framework don't need the sync of thread or i'm wrong?
it means? for debug usually are function for write a log or event for trace errors, in your code i dont see it...debug code..
Question: Why you and other prince fan don't join into the PoP.net project ?
The scope of the project is made a generic engine for platform 2d game like PoP
bye