Are free fan games illegal??

@Master100000 So to answer your original question... Yes, it is illegal. Yes, you can release it, but if it is good enough to gain some notoriety then you risk getting a take down notice. While RMW (this site) does not allow you to share ripped resources... it does allow you to post games with them. However they are very clear that if the game gets a takedown notice due to the "fangame" or "ripped resources" that they will remove it immediately. At least that was my understanding from many months ago when I researched the question.
Slight correction to @Arcmagik 's post above:
We do not search posted games for containing ripped resources to take them down, but any pointing to ripped resources will result in a takedown. That has to be done for legal reasons (this is a company-owned forum subject to corporate laws, not a private fanforum).
Which means the fangame will also be taken down if for example the creator boast about using ripped resources, not only when the original IP holder informs us about them.
Free fan works in the US are legal if they meet fair use guidelines. From your OP, it seems to be fine. (though ripped artwork and music can be problematic). However don't publish you're work here as you can get in trouble for the artwork and maybe even the music. I reccomend publishing it on rpgmaker.net or own your own host site.
@Zarsla: False, false, false. They are not legal in the US either. Fair use is often misunderstood and used as an excuse to do whatever you want. If you make the game, and it violates someone's IP in the US they can and will sue you.

And if you don't believe me, look up the case of the Kings Quest 9 fangame. They got a C and D when the IP was bought out by another company. Eventually they worked it out and got permission to finish the game (The terms were they had to get the story approved by the company, but as long as they did that they could make it), but it still was at risk for a long time due to the issue with the IP.
Free fan works in the US are legal if they meet fair use guidelines.
Yes - but ever bothered to check what those "fair use" requirements really are instead of just throwing that word around?

"Fair Use" has a number of specific requirements what the IP can be used for and what not.
And the only one of those option a fangame can meet is if it is a Parody of the Original game - and it has to be an obvious parody, making jokes on the original content.
There might be a tiny chance to get a fangame for educational purposes, but that would require you to write that fangame for classroom teaching and focus on the teaching subjects, just using the references to the original game as a side.
All other uses of "fair use" (news report about it, comment on original, research, scholarship) are simply impossible to be the reason in case of a fangame.

Most fangames however pretend to be part of the same world without parody, and that will never be "fair use".
Please really check something before believing that it is true just because too many people on the internet are claiming it.
https://en.wikipedia.org/wiki/Fair_use
"Illegal" is a strong word. If a cop pulls you over, and somehow finds out you have been working on a Final Fantasy fangame he's not going to say "Step out of the car please..."

People who own IP's have the right to tell you NOT to publish stuff using their content. You'll get an email or possibly a letter from the IPO saying "Cease and Desist" if they decide to do so. Having said that, it's EXTREMELY rare that a game maker is going to contact you over making a fan game. Unless you are selling it directly. I can think of only a few small cases where a game got shut down. Metroid and then a Chrono Trigger cgi game.

%99 of the time they don't shut people down because they know that it's actually good for sales. It's like free advertisement. That's why there are so many youtubers who play video games and don't get shut down. It isn't because they are lazy or don't pay attention. Creators appreciate love letters to their work.

If you're really worried about it just look at these as your thesis project how you learned all your game design skills and then start creating your own content.
@Rog : You are forgetting one important detail. Some countries have laws that REQUIRE them to sue you the minute they learn about your game, or they lose the IP and all rights to it. So even if it is free publicity, they have no choice but to sue you or open up the floodgates. The ones you see out there the IP holder might not even know about, hence why they still exist.

That being said, that is probably why you see few lawsuits against fan games of really old games, as the holders of the IP have moved on and don't care anymore. Still, it is a risk you take if you don't get permission first.

And in all seriousness, 100% of the issue can be prevented just by getting permission. So why not just do that?
Come up with your own content.
First off two different coments. First off to this:
Come up with your own content.
I'm taking your comment in a more negative light. So...fan works in general are created out of love and curiosity and fascination with an idea or world or story. They take the ideas created by the developer and explore them. Sometimes changing the setting to just adding something new. But all of it is taken from the idea, that someone created something and got someone else to think, dream and inspire.
Also to say create your own content as a reply to making and creating a work, implies that the the fan work has nothing original in it but if that was the case you wouldn't have "Fifty Shades of Grey" or "After" original works that were based of fan-fiction. All the people did was replace the copyrighted stuff, characters and places, specifically and make new ones, edit it and "bam" original work.
I'm not saying that fan works don't have their share of works where the copyright is near impossible to remove, but to imply that fanworks don't have original content would make them moot. The point of fan works is to add, alter, basically alter something about a work and make something new with it. So all fan-works have something original, the question is, is how well does that content stand on it's own?

Now to reply to:
@Andar and @bgillisp

Mostly I'm sticking by what I said, however this:
"Free fan works in the US are legal if they meet fair use guidelines."

Is true however as @Andar said it does need to be proven. And for that to happen someone has to dispute the claim and go to court and prove it or get permission from the creator of said work. Either or, until then it resides in legal limbo. Free fanworks are still not recognized by the US Government as official works on any grounds, legal or illegal. Until the government has a view on it, it makes fanworks both legal and illegal, a Schrodinger's Cat of legality. It is a gray issue that many non profits argue on. So are fanworks illegal? That's up for debate, for now it's treated as case by case basis, so no conclusive answer, yet.

However should that stop you from making it, no. Should you be careful, yes.

Aside for those who will tell me, don't advise that:
1. Until the US government has an official stance that makes it illegal or legal, I'm still going to advise to do so.

Also random tidbit of info:
Did you know that FDR wrote Sherlock fanfiction. He wrote a story about him meeting and interacting with Sherlock homes at white house. (I seriously can't got over this fact.)
@chungsie no, that is registering a copyright what you pay for. The copyright itself is always automatic and free, it's just that an unregistered work might result in someone else trying to claim it as their own. But there is no requirement to register for copyright.

But trademarks have to be registered, there is no "unregistered" TM like there can be "unregistered copyright"

I'm going to make things confusing.

The TM symbol is an unregistered trademark. The application has been put in and it's undergoing accessment and the required time for others to object to the registration of the trademark. Once a trademark has been registered the TM is replaced with R, being a registered trademark.

Also be careful with regards to which country you actually reside in as this will dramatically affect all definitions. For example Australia's fair use with regards to copyright is completely different to the USA. Schools in Australia for example need to pay an annual fee for the priveledge of using photocopies of things like newspaper articles or book extracts (say a passage from a book to use as discussion) where as for acedemic purposes is okay for the USA.
I have a suggestion for people who want to make a fan game, Mega Man, Final Fantasy or Zelda or enter your favorite series here. Fan games, if done on a small level (a fan forum, for example) is not going to be noticed (likely), unless you create a blogspot, website, kickstarter, etc. Is it right? It's not for me to say, you are not breaking the old time copyright not claiming it is yours and you are not making money off of it. However, current copyright (which I hate says otherwise). So how do you have a 'fan game' creating your favorite series without the possibility of the hassle of creating a fan game? A clone. Clones are not illegal, because they own the art, the music, the logo and the name, but a clone isn't exactly like the original.
Basically, making a fangame out of the work of some random internet artist (or Nintendo) is asking for trouble.

@Caitlin making a clone with all assets created from 0 requires an amount of effort far beyond what most people are willing to put into a fangame. At that point you can just change it just enough to not get sued and make it your own property.
I have a suggestion for people who want to make a fan game, Mega Man, Final Fantasy or Zelda or enter your favorite series here. Fan games, if done on a small level (a fan forum, for example) is not going to be noticed (likely), unless you create a blogspot, website, kickstarter, etc. Is it right? It's not for me to say, you are not breaking the old time copyright not claiming it is yours and you are not making money off of it. However, current copyright (which I hate says otherwise). So how do you have a 'fan game' creating your favorite series without the possibility of the hassle of creating a fan game? A clone. Clones are not illegal, because they own the art, the music, the logo and the name, but a clone isn't exactly like the original.
Clones, would only statisfy those making fan games who want to recreate or make their own, like wanting to make thier own Final Fantasy. That doesn't necessarily stastfiy those who want to make FF7-2 where Aeirth comes back to life and it's about an adult Marlene with the rest of the kids of the main cast fighting to stop the reuse and distribution of new materia along with the rise of a new set of ancients.
So, being a little confused, I hope you don't mind me asking this question. I'm making a Suikoden fan game, but would naming it "Suikoden Stories" or something like that disqualify it from being posted here?
So, being a little confused, I hope you don't mind me asking this question. I'm making a Suikoden fan game, but would naming it "Suikoden Stories" or something like that disqualify it from being posted here?
"Genso Suikoden" is a trademark from Konami.

Talking about suikoden, a (kinda) good example of how to make a fan game is Legion Saga. It's clearly a suikoden fan game with all the feeling of a suikoden game and several references, but it don't use IPs or TMs from suikoden (although it uses ripped resources from other games, wich is pretty funny since Konami can't sue them, but Square can)

Now if you want to actually use the same world/characters, then you have an issue in your hands.
I would be using the million worlds, which is a world-ish within the series. So thanks for clearing that up for me!
So let me clear things up a little bit about exactly what I am using in this game.
for cloud strife from "final fantasy 7" I am not using the "cloud strife 3D object" obviously cuz rmvx, rmmv is a 2D engine.
I am using a cloud strife sprite built by a community member in the rpgmakervx.net website before it was "accidentally taken down" that is free for use in non commercial games obviously cuz for commercial games you need to contact the company.
for the squall leonheart from "final fantasy 8" I am using a sprite I built my self in paint using a couple edits off of several characters in rpg maker vx resources that are available for free.
for music I am MOST DEFINITELY using ripped music from the final fantasy games themselves and final fantasy battle themes that I found on youtube converted into mp3 then converted once again into ogg.
the skills are mostly my own code all typed into the ruby script line by line to make omnishlash, braver and such. I don't know if the name of the skills have any copyright, I doubt a company would go as far as to copyright every single rock that appears in their game. So basically... would it be safe to post a game which does not contain the same character object used in the actual game but instead a fan made sprite of that exact same character and not produce a lot of fame and then if I were to be caught I would have to bust out my knee pads an beg for forgivness and request them to allow me to use their game under their conditions so long as it continues to be free? lol.
I'd posted my own opinion about this, but due to the fact that I'm not an authority on copyright/trademark law I thought I'd link you to this article instead, which should hopefully help to unblur the lines:

https://www.aspectlg.com/posts/copyright-in-characters-what-can-i-use

The bottom line as I understand it is that even if the sprites were created by other artists who drew them from scratch, they'd likely still be considered derivative works because the original characters were used as a base. If you also call those characters Cloud Strife and Squall Leonhart, you're definitely swimming in shark-infested waters. The ripped music is unequivocally an infringement.
I know this is old, but do whatever you like, doesn´t matter if you are using other games graphics or whatever, they dont care anyway... Unless you are making money with it.
they dont care anyway
absolutely wrong.
In a lot of cases and countries the IP holder is REQUIRED BY LAW to go after any fan game as soon as he knows of the game's existance, or risk loosing his copyright.

When a fangame stands for months or years that only happens if it is too obscure to be detected by the IP holder - not everyone has entire battalions of lawyers to search the internet for any infringement. But as soon as a fangame become popular enough to be detectable, it will get C&Ds from lawyers even if it is free.

The only difference between free and not is whether you can expect to be sued for money in addition to the C&D, which is almost guaranteed if you sell your fangame.

Original thread: https://forums.rpgmakerweb.com/threads/are-free-fan-games-illegal.75628/