247 points · by teruakohatu · 5y ago · 96 comments
EDIT: I googled for screenshots and I never knew how many different versions of the game there were! Every platform had completely different artwork! Pretty amazing.
https://en.m.wikipedia.org/wiki/Prince_of_Persia_(1989_video...
And honorable mention goes to Lode Runner[2] which doesn't have quite the fame as Pac-Man but has still managed to create a lasting legacy (pun intended).
https://en.wikipedia.org/wiki/Colossal_Cave_Adventure
Note that Pong and Space War were both ported before Pac-Man, as well, though Space War didn't get a home version before Pac-Man to my knowledge, it did get ported from mainframe hardware to an arcade cabinet before Pac-Man existed.
It is by far my favorite game.
https://www.reddit.com/r/dosgaming/comments/57egq3/prince_of...
In the binaries I have, CGA and EGA are bundled together, VGA is separated.
https://www.retrogames.cz/play_102-DOS.php?language=EN
https://classicreload.com/prince-of-persia.html (this page explains what keys and key combo's to use)
For anyone who got their appetite up for actual playing.
https://archive.org/details/msdos_Prince_of_Persia_1990
(as well as many many other games).
It reminds me of the old New Kind - Oolite - Elite shenanigans from years ago. Somehow Oolite powered through and stuck around, despite using most of the New Kind code originally (they translated the C game logic to Objective C if memory serves me), while New Kind was shut down by Braben for copyright infringement. The New Kind author - Christian Pinder I think was his name - did all the disassembly work originally. I don't think it was ever a big legal challenge there, more like "hey! take that down" and the author complied because he was a nice guy.
That's legal though. Stuff like that is the whole purpose of reverse engineering. You can't copy the code but you can learn how it works so you can do it yourself.
I don't know if this would hold up. Prince of Persia IP is far from dead or abandoned. I know it's not exhaustive, but a quick search on IMDB [0] shows a movie in 2010, and a video game as recently as 2008. Just because this particular game is old, doesn't mean the IP/Trademark is dead. Personally, I'd be wary of a legal battle, even though I think the project is pretty interesting.
[0] https://www.imdb.com/find?q=prince+of+persia&ref_=nv_sr_sm
Same with OpenRCT2, which I've heard is also based on the disassembled original, yet people seem to turn a blind eye.
To be honest, the should claim same with PoP and I don't see any solicitor suing them, as it would be too much hustle to prove its a code copy instead of inspired by.
Wow that is really sad, we live in the world where this is even a discussion. Where a love project that will not be commercialized has to think about this bs :(
https://en.wikipedia.org/wiki/Clean_room_design
Apparently that may not be strictly required either, but it gives a good defense. I think I could disassemble a blob to figure out what the possible behaviors of a WinAPI call and then write my own implementation of those things.
Microsoft might bankrupt me before I won a court case, but there is nothing in copyright law as far as I know that says reading a copyright work forever contaminates your mind such that you would be incapable of creating a vaguely similar thing without infringing on it.
> No, but it's possible to write a specification based on the
> disassembly, and then write an implementation based on the specification.
Critically, the disassembly and spec should be done by one person, and the implementation by another.In fact, ReactOS maintains a policy to prevent proprietary Windows source code (whether leaked or otherwise) from making its way to the ReactOS codebase [0]. When Windows source code leaked, in 2006, ReactOS did a complete codebase audit to ensure that it was not tainted.
"Is ReactOS legal?
Yes. ReactOS is fully legal.
Developers (devs) have not looked at Microsoft Windows™ source code. They have used the public documentation of Microsoft Windows OSes. They have made several tests to understand how Microsoft Windows works. In fact, ReactOS does the same things that Windows does but it does it differently as we don't have the same source code and it is all programmed by different developers. All code in ReactOS is released under the GNU GPL (General Public License). Is ReactOS based on Microsoft Windows™ original source code?
No! ReactOS consists only of clean-room engineered GNU GPL (General Public License) and GPL compatible licensed source code. "
https://torrentfreak.com/take-two-sues-enthusiasts-behind-gt...
> As the author and copyright holder of this source code, I personally have no problem with anyone studying it, modifying it, attempting to run it, etc. Please understand that this does NOT constitute a grant of rights of any kind in Prince of Persia, which is an ongoing Ubisoft game franchise. Ubisoft alone has the right to make and distribute Prince of Persia games.
But that’s just my total layperson reading.
Some ancient years ago, before I was an adult, I tried to help with this, even had MSN Messenger contact of Ecalot (he was leading the charge on such projects). And tried to contribute to a new map editor with integrated SDL-based engine, had to learn a lot back then, it was my first time seeing GAWK, and my first time seeing GDK, among other things.
Now people on this thread have some questions, I think I can answer, being involved in the community for a while.
1. Why?
PrincEd, the site mentioned there, is a map editor, after someone released that "Prince 4D" mod for the DOS version, PoP fans basically were amazed by it and it created a cool modding community, but the engine is seriously limited, a lot of things can't be done, thus people kept wanting a new updated engine, specially if we could port the graphics of the other versions to PC.
2. Why the DOS?
Probably because the first mod was Prince 4D for DOS, and all mods are for that version.
3. Won't Ubisoft be mad?
As far as I know this never been an issue, I believe as long we don't get tangled with the fourth-game and onwards that is the games made AFTER they bought the IP, seemly they don't care.
I've always wanted to learn some reverse engineering and eventually do this with a game. Unfortunately the ones I'd like to target are all written in C or C++, so I guess translating the disassembly would be even more meticulous than it already is with games originally written in assembly.
I reverse engineered major parts of Westwood’s Blade Runner for ScummVM. It was compiled with the Borland C++ compiler in 1997 and a lot of it was relatively easy to decompile. The most difficult parts were video decoding and character rendering. The video decoder was older Westwood code, clearly hand optimized, and the character renderer was also very optimized.
Currently I’m working on Cryo’s Dune which is all hand-written assembly code. The code jumps all over the place, parameters are passed in arbitrary registers and have to be traced over several calls. I’ve seen a function that, instead of using ret to return, jumped to the ret-instruction of a different function.
Code generated by an older compiler that doesn’t do too much optimization is vastly preferable.
But sometime later in 2000 I came to possess and old 386 HP desktop, and I tried running Prince on it, and I was surprised how easy it was: I have beaten it easily on the first try and later learned to run through it without dying at all.
PoP by comparison can be very stiff at time, it's all part of the fun.
https://github.com/NagyD/SDLPoP/blob/8a07f11bd5952b5e1b9558c...