Page 1 of 1

[CLOSED/SOLVED] Question about GPL v3

PostPosted: Mon Feb 04, 2019 15:07
by migdyn
One question about GNU's Not Unix General Public License version 3: It states that I have to add a disclaimer and a relevant date in modified versions of the program. Is putting this:
Code: Select all
This mod was modified by migdyn on February 04, 2019
Changes made:
 - REMOVED BEDS AND FUNCTIONS RELEATED TO THEM.
 - REMOVED WASHING PLACES.
 - REMOVED LADDER WITH ROPE AND RAIL.
 - SOME OTHER MINOR CHANGES LIKE CHANGING NODE NAMES.
to the README.md enough?

Re: Question about GPL v3

PostPosted: Mon Feb 04, 2019 18:54
by sofar
Absolutely sufficient. Note, there's very little confusion if you have a git tree where you document all the changes, so most people don't document extremely small changes like this separately - that is not the intent of the clause.

What you should do is add your own copyright statement to new stuff and stuff that was majorly modified:

""
Copyright (C) 2019 - migdyn

- modified to add <feature x, y and z>
- removed <p, q, r>
""

No need for caps, either.

Also, you should make sure each file also has the standard GPL3 header:

""
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
""

Re: Question about GPL v3

PostPosted: Mon Feb 04, 2019 19:04
by migdyn
Ah, ok.
The original mod author didn't add a header to any of the files. The legalcode is in the COPYING file.
Should I modify the files and add the GPLv3 header even though I'm not the author?

Re: Question about GPL v3

PostPosted: Mon Feb 04, 2019 19:53
by sofar
migdyn wrote:Ah, ok.
The original mod author didn't add a header to any of the files. The legalcode is in the COPYING file.
Should I modify the files and add the GPLv3 header even though I'm not the author?


yes, but, you should add the original author at the top (and then your name below).

That way people can see who originally wrote it, and who made modifications.

What people sometimes do is just add more dates:

copyright (c) 2016 johnny
copyright (c) 2018 billy

etc.

Re: Question about GPL v3

PostPosted: Mon Feb 04, 2019 22:36
by migdyn
One more question, about modding API this time. I didn't want to create a separate topic.
How to detectc right clicking another player?
I read through api.txt & couldn't find anything.

Re: Question about GPL v3

PostPosted: Tue Feb 05, 2019 01:10
by sofar
migdyn wrote:One more question, about modding API this time. I didn't want to create a separate topic.
How to detectc right clicking another player?
I read through api.txt & couldn't find anything.


no idea. I can't find any documentation indicating this is possible at the moment.

Re: Question about GPL v3

PostPosted: Tue Feb 05, 2019 12:55
by migdyn
Ok thanks