Page 1 of 1

Grenade flag release - as seen on Apocalypse

Posted: Mon Apr 21, 2014 9:56 pm
by Pac-Man
Shooting with the Grenade flag generates a delayed detonation in front of you, where the detonation distance is controlled by your tank speed. It's easiest to try it in-game.

License: CC0 1.0 Universal (CC0 1.0)

Edit: added license.

Re: Grenade flag release - as seen on Apocalypse

Posted: Mon Apr 21, 2014 10:32 pm
by blast
Please specify what license this is released under. Also, I'd recommend not using "using namespace std;" as it's bad practice (pollutes the global namespaces).

Re: Grenade flag release - as seen on Apocalypse

Posted: Mon Apr 21, 2014 10:39 pm
by JeffM
Just 2 notes
1) if this was derived in any way from any of our samples then the license must be LGPL.
2) People should know that this plug-in can not work on windows due to the use of non-API functions.

Re: Grenade flag release - as seen on Apocalypse

Posted: Mon Apr 21, 2014 11:09 pm
by ZE BOZZ
On the in-game side of things, great plugin! Really enjoyed it and loved your creativity. Keep it up.

Re: Grenade flag release - as seen on Apocalypse

Posted: Tue Apr 29, 2014 10:25 pm
by alfa1
JeffM wrote: 1) if this was derived in any way from any of our samples then the license must be LGPL.
When you use "derived" word related to any GPL family license, you shouldn't be vague, saying "in any way". When you use legal language, you should restrict your words to legal words.

In this case, according to the licenses specified above, I understand that making a "derivative work" from an original source, for example, it would be using a part of that code in your new project. Let's say, copying/pasting it. Or other example, copying/pasting + making modifications within this code.

A non-derivative work means, in opposition, making a new code from scratch. Let's say, not using copy/paste. An example of this could be an algorithm (the theory, not the implementation). It wouldn't be under these licenses because it is an abstract concept, not "code". In this case, you could use an algorithm *idea* that you saw inside the code, but *always* coding it from scratch, if not, it would be a copy/paste thing (protected under the license). (I know too, in the other hand, that there is a "fight" in the last times around the world regarding to patents and softwares, and "patents" here are related to *ideas*, it seems. Each one should check the state of this topic in our respective countries too, to be sure. It is a complex topic, though.)

Just for clarification. If I am missing something, please correct me.

Re: Grenade flag release - as seen on Apocalypse

Posted: Wed Apr 30, 2014 1:00 am
by JeffM
Yeah a derivative work is just it you take one of our files and modify it into your project. If you replace all the code with your own then it isn't derived. If you add your own code based on what we have done but not copy and paste then that code is not derived. Nothing in bzflag is patented so that does not come into play. Your understanding is perfectly correct.

The lgpl is not really what our template should be licensed under but that's what it was done under. Thankfully I am the original author of it and I can release a version of it under public domain, using the version I have before Tim require copyright attribution :). I'll see if I can get that posted later tonight, then there will never be an issue for anyone.

Re: Grenade flag release - as seen on Apocalypse

Posted: Thu Jan 08, 2015 11:06 am
by metu3
I had an error when I compile it. What is the type of "it" in code? (line 129)

Re: Grenade flag release - as seen on Apocalypse

Posted: Thu Jan 08, 2015 6:45 pm
by Pac-Man
metu3 wrote:I had an error when I compile it. What is the type of "it" in code? (line 129)

Code: Select all

vector<DelayedShot>::iterator
Are you using a non-Windows compiler with adequate C++11 support?

Re: Grenade flag release - as seen on Apocalypse

Posted: Fri Jan 09, 2015 9:10 am
by metu3
I am using OpenSuse g++ version 4.8.1

Re: Grenade flag release - as seen on Apocalypse

Posted: Fri Jan 09, 2015 11:27 am
by blast
Do you have an actual error message you could provide?

Re: Grenade flag release - as seen on Apocalypse

Posted: Fri Jan 09, 2015 7:51 pm
by metu3
I modified source code and solved it. Thanks for interest

Re: Grenade flag release - as seen on Apocalypse

Posted: Thu Sep 10, 2015 12:29 pm
by trpted
metu3 wrote:I modified source code and solved it. Thanks for interest
That is great/wonderful.

Can you please provide the code, so that others can use it too?

Thank you