26

Is it legal to make an open-source version of a closed-source game (and expansion pack) to distribute to other users? I want to do that for an old game called Age of Empires 2.

fossfreedom
  • 171,546
  • 47
  • 376
  • 404
hunter
  • 311
  • 3
  • 8
  • 2
    AOE2 is already an awesome game which can be bought online for $8. I don't see the point in doing an exact clone. You'd be better off spending your time making an improved RTS inspired by AOE2. I suggest that you look into using an existing free RTS engine like [ORTS](https://skatgame.net/mburo/orts/orts.html) or [Spring](http://sourceforge.net/projects/springrts/) instead of trying to build your own. – Nate C-K Aug 17 '12 at 03:17
  • 2
    @NateC-K As I understand it, hunter's interest is not in having something that is *cheaper*, but rather something that is open source and runs natively on more platforms. – Eliah Kagan Aug 17 '12 at 03:35
  • @NateC-K: And which can easily be extended in an expansion pack. – Mechanical snail Aug 17 '12 at 04:40
  • 1
    If you like the work of the people who made AOE2, I suggest you encourage people to buy their product and play it as-is. If you want to make your own game, I suggest it would be more artistically fulfilling, technologically easier, and a better contribution to the open source community to build a game with similar gameplay by customizing an existing RTS engine. AOE2 is old and the RTS genre has been improved in many ways since then; Age of Mythology, for example, while still flawed in some ways, demonstrates some ways you could improve AOE2. – Nate C-K Aug 17 '12 at 18:43
  • As for an "expansion pack," the concept doesn't make sense in the open source world. An expansion pack is just an official mod. In the open source world anyone is free to do their own version. Anyway, I don't think the OP was focusing on the capability of doing an expansion pack, I think the meaning of that part was an intent to have the game include the gameplay of the Conquerors expansion, not just the original AOE2. – Nate C-K Aug 17 '12 at 18:50
  • Also have a look at 0AD: http://www.wildfiregames.com/0ad/ – AmanicA Sep 06 '12 at 23:43

4 Answers4

29

You can't copy it to be open-source. Even if the source were leaked, that is illegal. You can, however, follow in the footsteps of FreeCiv or Doom3. FreeCiv is based on Civilization, and is an open-source version. Doom3 is also open-source but requires the use of official game data for full operation or you must provide your own assets for models. Either way the engine is free, open source, and available to all. FreeCiv includes no game data since both the original and FreeCiv generate maps dynamically. The requirements to release your version are as follows:

  • Any patents related to the original must have expired. You can use a patent search such as Google Patent Search. Simply type your query as if it were a regular Google search, and under one or two web results, patents will be shown.

  • The program you are writing does not use strong cryptography that is restricted by the US government.(Or if it were downloaded in some countries, you could be considered an arms dealer) You may also register with the US Bureau of Industry and Security, which is a part of the US Department of Commerce, although the legal paperwork may be very difficult to file without professional legal counsel. Also see the BIS FAQ on encryption.

  • Your version does not use images or other files (such as sound files) from the original version.

  • Your version includes some (at least minor) changes.

  • You did not use, directly, or as an idea on how to write your version, any of the source of the original if it had been leaked.

  • You do not utilize the source's trademarks.

Do note that you have to code it, package it, and put it in a PPA or the repositories. This may be very difficult. There is no way to just copy-paste some magic from the old version. Please read the disclaimer below prior to doing anything to make your version, and for more guidance about the actual stages of coding, visit Game Development and Stack Overflow.

Legal disclaimer: This is not meant to be legal advice. The author of this answer, Ask Ubuntu, Stack Exchange, Inc, their representatives, agents, and/or any affiliated parties will not be responsible for any damages, incidental, or consequential, that may arise due to the use of these guidelines. These guidelines are based on US laws and regulations. Laws and regulations in your area may differ so check with a lawyer or local authorities.

nanofarad
  • 20,597
  • 12
  • 65
  • 91
  • Can you define strong cryptography or point to a site that explain this? – Topo Aug 16 '12 at 17:32
  • @Topo: http://en.wikipedia.org/wiki/Export_of_cryptography_in_the_United_States – ish Aug 16 '12 at 17:33
  • 6
    @Topo You do not have to avoid using strong cryptography (at least in the United States). If you *do*, then there may be restrictions on how you can make the game available. Lots of open source software uses strong cryptography, including software that is part of Ubuntu by default *and present on the official Ubuntu CD images*. Such software is even necessary to sign the Ubuntu code of conduct! *Disclaimer: I'm not a lawyer and this isn't legal advice either.* – Eliah Kagan Aug 16 '12 at 17:35
  • @Topo From http://en.wikipedia.org/wiki/Export_of_cryptography_in_the_United_States#Current_status: "mass market encryption commodities, software and components with encryption exceeding 64 bits" cannot be exported. – nanofarad Aug 16 '12 at 17:36
  • @EliahKagan RSA has already been leaked with PGP. – nanofarad Aug 16 '12 at 17:38
  • @EliahKagan Sorry if unclear. I meant to say that was the reason the Ubuntu CD includes said encryption. It is basically RSA used for signing. I don't think it has AES. – nanofarad Aug 16 '12 at 17:39
  • @ObsessiveFOSS I'm not talking about digital signatures. The Ubuntu CD includes packages like `openssh-client`. – Eliah Kagan Aug 16 '12 at 17:40
  • @EliahKagan Let's stop posting so many comments. If you want to continue, feel free to bring it up in chat. – nanofarad Aug 16 '12 at 17:41
  • Technically, all you need to do is register with the BIS (see wiki) for *generally* exporting normal crypto. See for example creating a project on sourceforge, where they make you agree you will do this if your project includes crypto... – ish Aug 16 '12 at 17:41
  • @ObsessiveFOSS it certainly includes AES. As I mentioned, all you need is to notify/register for most normal uses/normal countries (i.e. no axis of evil type places) – ish Aug 16 '12 at 17:42
  • @izx Understood. If we need to continue, let's use chat. – nanofarad Aug 16 '12 at 17:43
  • 1
    Disclosure: I am not a lawyer. This is not meant to be legal advice. You can use images and other files from the old version in that you can create an open-source engine that reads the old files such as http://sourceforge.net/projects/fheroes2/ . – Stall Aug 16 '12 at 18:30
  • @SmallMan I'm just saying that is the images and sounds are copyrighted, then it's illegal to just copy them. You can make similar ones, though. – nanofarad Aug 16 '12 at 19:19
  • 1
    @SmallMan does Free Heros include the original HOMM artwork, etc in its distribution; or only use identical naming/paths so users can swap them in after installation? – Dan Is Fiddling By Firelight Aug 16 '12 at 21:02
  • @DanNeely It can't, legally.It can make it easy to stick in, though, using similar paths. – nanofarad Aug 16 '12 at 22:23
  • @ObsessiveFOSS: Alternatively you could live in a country that doesn't recognize software patents. – Mechanical snail Aug 16 '12 at 22:25
  • @Mechanicalsnail Please read second-to-last sentence of disclaimer. – nanofarad Aug 16 '12 at 22:26
  • @DanNeely Fheroes2 and the VCMI Project for Heroes 3 are solely engines. The programs can read the copyrighted/obfuscated game files of Heroes 2 and 3, so you still need the original game to use them. – Stall Sep 08 '12 at 02:00
15

Age of Empires II can usually be run on Ubuntu and other GNU/Linux systems without too many problems, using Wine.

Disclosure: I am not a lawyer.

As for the general question, if your goal is to create free open-source software that facilitates playing a proprietary game, and you have programming skills, typically there is no legal impediment to writing a replacement game engine. (You may potentially fall afoul of software patents, but no more so than in any other major programming project to produce software for performing tasks that existing software already performs.) If you do this, then someone can install your engine, and then, if they have the artistic data (maps, "worlds", sounds, and so forth) from the game, they can play the game.

Developing a game engine for an existing game is a non-trivial task, and usually there will be differences between the way it behaves and the way the original game ran, though they might be slight. But the main thing you should realize is that the game data, representing the "world" of the game, will still be proprietary, and generally unlawful to redistribute. So people will still have to have a copy of the game (or at least certain files from it), to play it using your engine.

One example of a game where this was done is Jazz Jackrabbit, which can be played with the OpenJazz game engine.

Another example (where it was actually the original developer that released the GNU/Linux version of the game engine as free open source software) is DOOM (and since then, most of Id Software's game engines have eventually been released as FOSS, sometimes with slight modifications for patent reasons). There are a number of community projects that have enhanced the original DOOM engine, allowing for more complex maps, enhanced graphics, and a more three-dimensional gameplay experience.

Given the limitations and that writing a game engine from scratch (plus testing it and fixing bugs) is a significant task, you might decide to make your own game instead.

Disclaimer: This answer is for informational purposes only and not for the purpose of providing legal advice. You should contact an attorney to obtain advice with respect to any particular issue or problem.

Eliah Kagan
  • 116,445
  • 54
  • 318
  • 493
  • 1
    Personal use is never a problem if you own the software (but see DMCA). It's *distribution* that's a problem. – ish Aug 16 '12 at 18:16
  • @hunter Well, I'm not a lawyer and I can't give legal advice. With that said...I'm not sure I know what you mean. Are you asking if a free open source replacement game engine can *use* files that are already present on the user's computer (which could include files on a CD inserted into the computer's optical drive)? That would probably be OK, as discussed in my answer above, so long as we're talking about *game data* (maps, sounds, sprites, cutscenes, models, fonts, palettes, and so forth). On the other hand, as izx says, what you distribute mustn't include these files (or parts of them). – Eliah Kagan Aug 16 '12 at 18:19
  • Eliah, yes I am wondering if an open source game engine can use the original files from the age of empires 2 and the expansion disk. – hunter Aug 16 '12 at 18:36
  • @hunter Writing an engine that is capable of using original game data files is the sort of thing I'm saying in my answer that I believe *is* okay, yes. Though as the disclaimers say, you should consult other sources too (and to really be sure, *a lawyer*). – Eliah Kagan Aug 16 '12 at 18:45
  • 1
    sorry to ask but what is a game engine and how do i write one? I am totally lost. – hunter Aug 16 '12 at 18:54
  • 2
    @hunter You should see [gamedev.se]. A game engine is the code that acts to interpret input and maps/levels to actually make the game run. That said, it is very hard to write a game without good knowledge of coding. – nanofarad Aug 16 '12 at 19:30
  • well I'm doomed – hunter Aug 16 '12 at 19:59
  • 3
    Re: Wine. I got AoE2 running on Wine with few problems, and it works far better than it ever did on Windows. – John Aug 17 '12 at 03:28
7

Why not just join in with the development team here?

0 A.D is a fantastic AOE2 spin off, and could do with some devs. Also, you save yourself some of the horrors of undertaking such a large project like that yourself.

lwm
  • 191
  • 2
5

While the other answers adequately cover copyright and patent considerations, you should also be aware of trademark.

In particular, you asked:

Is it legal to make an open-source version of a closed-source game

Under trademark law, this depends on what you mean by "version". A trademark grants its owner the exclusive right to use a protected mark (such as "Age of Empires") in commerce. It forbids others from using the mark or a similar brand in a related area of commerce (like Age of Empires brand computers), as well as in unrelated areas in a way that could "dilute" the value of the mark (e.g. Age of Empires brand flush toilets).

So, you should not call your game "Age of Empires" or something similar, and you should make clear that it is a 3rd-party product not made by, endorsed by, or affiliated with the owners of the mark (I think Microsoft). However, it is fine to mention Age of Empires, e.g. to say your game is similar to or inspired by Age of Empires, since that would be a purely factual statement.

(Of course to be sure what you want is legal, consult a lawyer.)

Mechanical snail
  • 5,325
  • 3
  • 28
  • 40
  • so could i make a game called kingdom era and say that it would be based on a game called age of empires 2 and can the game have almost (if not) the same graphics of aoe2? Do I have to code the files for the game? – hunter Aug 17 '12 at 04:33
  • Saying "based on" might falsely suggest it was endorsed by the original creators. You definitely have to re-code and use your own graphics, to avoid violating copyright. *Arguably* "Kingdom Era" is similar enough to "Age of Empires" that it could create a "substantial likelihood of confusion". **This is a legal gray area**, so I suggest you consult a lawyer to ask what specific things are acceptable. – Mechanical snail Aug 17 '12 at 04:39