This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Lupus590's profile picture

[Short] Licensing your code

Started by Lupus590, 01 March 2016 - 09:35 PM
Lupus590 #1
Posted 01 March 2016 - 10:35 PM
Disclaimer
I am not a lawyer and have no form of qualification in any legal sector. If you are a lawyer and identified something that I have said is wrong then please correct me.

A very helpful website
I am a big fan of this website http://choosealicense.com/ which puts licenses in simple terms. As this is for ComputerCraft projects, I would recommend keeping to the simpler licenses (such as MIT). Whichever you choose, I would recommend reading the full license text and not just the summary information.

I don't want a license
By not providing one you implicitly reserve all rights to your code (see http://choosealicense.com/no-license/), this means that your users can not (legally) use your code. Quite often people who don't provide a license want to reserve no rights, in which case you should try the Unlicense.

Adding the license to your code
It is recommended that you post the full license at the top of each file which makes your code. I can understand the reason for this but also realise how much of a nuisance it will be (sometimes the license will be longer than the code it deals with). Instead, I would advise having a link to the license you are using. I would also recommend that you put the license in you forum post (I have a tutorial on making one of those too).

Someone posted code but I couldn't find a license
As said above, not providing a license defaults to all rights reserved. Your best option would be to point them to this thread so that they can choose their own license.
If that takes too long then you may want to try some guesswork, they shared their code so one could presume that they want others to use it. If you want to modify it then it would be polite to not redistribute your modified version. Or you could avoid the legal grey area and write your own program which does the same thing.

Can I do something outside of the license with my code? What about changing the license or having multiple licenses?
A license is an agreement between you and other users. If the code is yours, you are not bound by the license which you have chosen, meaning that you can do anything with your code. In fact, you can have two or more licenses for the same code or project to different people or even change the license. You can even provide two licenses side by side, allowing the user to pick which one the want to use.

As for changing the license, if people have an earlier version of the project they must still use the older license, however if they update then they should use the new license.

Licenses change versions too, some licenses have clauses which allow the user to use a newer version of the same license even though the project was placed under the older version of that license. (I belive GPL does this).

I have different things in my project (such as code with artwork) can the be licensed separately?
Yes, so long as you are clear about what license applies to which parts of the project.
Example, say you have made a mod for MineCraft (perhaps it's a new ComputerCraft peripheral). You have two parts to your project, the code which makes it work and the artwork - the models and textures that players see in-game. Your code can be under one license and your artwork can be under another one (may I suggest creative commons?)

I'm licensing something that's not code
Sometimes a software license can work for something which is not software, in fact, some open source hardware use licenses made for software. Just read the license that you want to use and think to yourself "does this fit my project?"

If it's artwork of some kind then you'll be better of using creative commons, they have their own website to guide you through the licensing process: https://creativecomm...hare-your-work/

Documentation can fit in both categories, and there are some licenses made for documentation.

More information can be found here: http://choosealicens...m/non-software/
Edited on 12 January 2017 - 08:14 PM
Creator #2
Posted 02 March 2016 - 08:36 AM
Nice. Another useful tutorial.
CrazedProgrammer #3
Posted 02 March 2016 - 08:43 AM
Thanks!
This seems to be quite a gray area in the community and this clears it up significantly.
Is GNU GPL V2/V3 a little bit too control-heavy if I just don't want people copying my code without giving credit?
Maybe MIT with an extension will work better.
SquidDev #4
Posted 02 March 2016 - 10:11 AM
Thanks!
This seems to be quite a gray area in the community and this clears it up significantly.
Is GNU GPL V2/V3 a little bit too control-heavy if I just don't want people copying my code without giving credit?
Maybe MIT with an extension will work better.

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
This (and many license agreements) are often broken within the CC community, but it does mean that people have to include the copyright notice, and so your name, with the distributed program. I'd say GPL is pretty heavy for CC: I'd suggest MIT or Apache.
Edited on 02 March 2016 - 09:11 AM
EveryOS #5
Posted 04 April 2016 - 02:44 PM
Can and Should I use the provided licenses at my free will?
H4X0RZ #6
Posted 04 April 2016 - 02:53 PM
I like the WTFPL :3 http://www.wtfpl.net/
EveryOS #7
Posted 04 April 2016 - 03:00 PM
I like the WTFPL :3 http://www.wtfpl.net/
Could we please be at least a bit more serious…
Lignum #8
Posted 04 April 2016 - 04:14 PM
Could we please be at least a bit more serious…

Believe it or not, it is a pretty serious licence. Although it's pretty uncommon, you can find a couple of projects that use it on the internet.
Lupus590 #9
Posted 04 April 2016 - 04:32 PM
Licenses are not limited to the ones I've linked. I will say this about WTFPL though, it may not be taken seriously in a court setting either. That said, these are ComputerCraft projects we are talking about, your entire case is going to be seen as a joke.
Edited on 04 April 2016 - 02:34 PM
Konlab #10
Posted 08 April 2016 - 03:11 PM
Licenses are 100% useless on these forums because nobody will really license (go in office and pay monthly i think it's 20€/product) things
Lupus590 #11
Posted 08 April 2016 - 03:57 PM
I can't find any information even hinting that you need to pay to apply a license to a product (such as a computer program).

https://en.wikipedia...oftware_license

Software licenses are between the person/s who made the software and the person/s who are using it. No one else needs to be involved.
Edited on 08 April 2016 - 02:02 PM
Konlab #12
Posted 08 April 2016 - 05:32 PM
I can't find any information even hinting that you need to pay to apply a license to a product (such as a computer program).

https://en.wikipedia...oftware_license

Software licenses are between the person/s who made the software and the person/s who are using it. No one else needs to be involved.
Yes but for you to be able to show that the software is yours for example in a proceeding you have to have it registered and that costs money and you have to pay it for every single country that you want to be licensed in. It is a human right, however, so I don't understand why has it to be like this.
Lupus590 #13
Posted 08 April 2016 - 05:41 PM
While registering that a product is yours is the easiest way to prove ownership, I have a feeling that it's not a legal requirement.
Konlab #14
Posted 08 April 2016 - 07:54 PM
While registering that a product is yours is the easiest way to prove ownership, I have a feeling that it's not a legal requirement.
Of course it's not. But unprovable license is useless
Lignum #15
Posted 08 April 2016 - 10:10 PM
To my knowledge, the licence defines what rights the developer would like the consumer to have. However, for those rights to be actually granted, a copyright must be registered, which costs money. If you do not have a copyright, your licence is meaningless from a legal perspective. However, I'd assume that the forum mods would be happy to take down any programs with infringements.
Lupus590 #16
Posted 08 April 2016 - 10:13 PM
Copyright is free and automatic in the UK source. Although, the internet has a habit of making legal stuff a lot more complicated as it spans country boarders.

This is the same in the USA too: https://en.wikipedia...ation_procedure

for both registration is not required (although it probably will make legal action easier)
Edited on 08 April 2016 - 08:19 PM
Konlab #17
Posted 09 April 2016 - 11:09 AM
So it's just my country that has stupid copyright system. >:D/>
Bomb Bloke #18
Posted 09 April 2016 - 01:23 PM
Copyright is free and automatic in the UK

This is the same in the USA too:

for both registration is not required (although it probably will make legal action easier)

To my limited understanding, one difference between countries is how "easy" it is to prove you're the copyright holder. Take poor man's copyright, for example.
Lupus590 #19
Posted 10 June 2016 - 11:06 PM
OP edit: Added guidance for code which doesn't have a license
FoxData #20
Posted 17 June 2016 - 08:24 PM
I will be sure to license FoxData's products with this
Lupus590 #21
Posted 24 September 2016 - 10:09 PM
OP edit: new section Can I do something outside of the license with my code? What about changing the license or multi-license?
Lupus590 #22
Posted 05 January 2017 - 01:55 PM
Op edit: multiple changes to the bottom of the post
secret6timb1 #23
Posted 12 January 2017 - 05:37 PM
What if you illegally used the code?

It seems silly to me that code- a set of computer instructions, can be licensed.
Lupus590 #24
Posted 12 January 2017 - 09:12 PM
What if you illegally used the code?

Disclaimer, this paragraph is just my thoughts and opinions:
I can't expand much from the "Someone posted code but I couldn't find a license" section of my OP, as I don't know much more. But, I would guess that it would depend on what you did, the license that the code is under and how protective the owner is of their code. Although I've said elsewhere on the forums (probably this thread) that I doubt any court case caused by code within the community will actually get to court. I imagine quite a few lawyers would find the entire claim a joke.

It seems silly to me that code- a set of computer instructions, can be licensed.
The code is intellectual property and a creative work, which also covers art. I guess I can only answer this by asking: why copyright/license anything? Personally, I like the idea of something I've programmed has the ability to be protected by copyright, even as a person who uses open source projects where I can and I like releasing code which allows others to have freedom with my work.
Edited on 12 January 2017 - 08:13 PM