MudBytes
» MUDBytes Community » Game Creation » Legal Issues » Diku License Violation
Pages: << prev ... 13, 14, 15, 16, 17 next >>
Diku License Violation
Vigud
Conjurer




Group: Members
Posts: 208
Joined: Jan 8, 2011

Go to the bottom of the page Go to the top of the page
#241 id:54454 Posted Mar 15, 2011, 7:29 am

Are you referring to the statistics given by KaVir? I don't know how he did it, but here is what I use for similar purpose:
Code (text):
$ diff -Barwidy -W 2 --left-column Merc22/src Envy22/src |grep '(' |wc -l
23319
Two things I should clarify: this is a GNU diff, I don't know if others can do the same. And it gives you number of shared _text_ lines, not lines of code.

Last edited Mar 15, 2011, 7:41 am by Vigud
Rarva.Riendf
Wizard




Group: Members
Posts: 1,294
Joined: Jul 15, 2010

Go to the bottom of the page Go to the top of the page
#242 id:54458 Posted Mar 15, 2011, 10:12 am

I was thinking of something a little more complicated, that would ignore indentation and coding style (by applying one before any comparaison is made, (sure I could do it myself)) cause this is an obvious way to fool common automatic tools, and something even smarter that could do some refactoring of its own if it detects perfectly similar code but with different variables names.
not to mention reordering methods (I move code around a lot)
I actually don't know of any of those kind of tools, and was wondering if any existed.

Tonitrus
Conjurer




Group: Members
Posts: 208
Joined: Jul 11, 2009

Go to the bottom of the page Go to the top of the page
#243 id:54459 Posted Mar 15, 2011, 10:31 am

Rarva.Riendf said:
I was thinking of something a little more complicated, that would ignore indentation and coding style (by applying one before any comparaison is made


indent
.........................
[00:01:15] KaVir: That's why I'm always careful to empty my inventory before picking up players.

Vigud
Conjurer




Group: Members
Posts: 208
Joined: Jan 8, 2011

Go to the bottom of the page Go to the top of the page
#244 id:54460 Posted Mar 15, 2011, 11:04 am

Rarva.Riendf said:
I was thinking of something a little more complicated, that would ignore indentation and coding style (by applying one before any comparaison is made, (sure I could do it myself)) cause this is an obvious way to fool common automatic tools, and something even smarter that could do some refactoring of its own if it detects perfectly similar code but with different variables names.
I agree that my solution can be fooled, but dude, it is complicated. Read about every single option I used and you'll see that yourself. I know you haven't yet, because you don't know it already ignores whitespace. And yes, indent can help a little bit in this case (unlike when you want it to produce nice looking code). Other than that, I don't know any tools to do what you want. You could try comparing binaries.

David Haley
Wizard






Group: Members
Posts: 7,841
Joined: Jun 30, 2007

Go to the bottom of the page Go to the top of the page
#245 id:54462 Posted Mar 15, 2011, 12:05 pm

There are tools that look at control flow and anonymize variables, and so forth. Universities use them to detect cheating in programming assignments. I don't know of URLs or if they're available for free, but such things exist. Doing text analysis is certainly not a very good way of doing this. I'd start searching for static analysis, program structure comparison, etc.
.........................
-- d.c.h --
BabbleMUD Project (custom codebase)
Legends of the Darkstone (head coder)
http://david.the-haleys.org
.........................

Cratylus
Wizard






Group: Members
Posts: 1,931
Joined: May 22, 2006

Go to the bottom of the page Go to the top of the page
#246 id:54468 Posted Mar 15, 2011, 4:12 pm

David Haley said:
I'd start ...analysis


lol
.........................
http://dead-souls.net/batsig.jpg

David Haley
Wizard






Group: Members
Posts: 7,841
Joined: Jun 30, 2007

Go to the bottom of the page Go to the top of the page
#247 id:54475 Posted Mar 15, 2011, 7:26 pm

Why you so mad tho?
.........................
-- d.c.h --
BabbleMUD Project (custom codebase)
Legends of the Darkstone (head coder)
http://david.the-haleys.org
.........................

sankoachaea
Conjurer






Group: Members
Posts: 137
Joined: Dec 1, 2010

Go to the bottom of the page Go to the top of the page
#248 id:54480 Posted Mar 15, 2011, 8:55 pm

MSVC can help a lot with this actually.

Also, and I know this is not ideal but autodoc+diff can wrk to give similar indications (quick 'n dirty)
.........................
I'm looking for a project to join. C/C++/Lua? Sounds good.

oenone
Magician






Group: Members
Posts: 55
Joined: Aug 22, 2007

Go to the bottom of the page Go to the top of the page
#249 id:54482 Posted Mar 16, 2011, 12:45 am

Rarva.Riendf said:
I was thinking of something a little more complicated, that would ignore indentation and coding style (by applying one before any comparaison is made, (sure I could do it myself)) cause this is an obvious way to fool common automatic tools, and something even smarter that could do some refactoring of its own if it detects perfectly similar code but with different variables names.
not to mention reordering methods (I move code around a lot)
I actually don't know of any of those kind of tools, and was wondering if any existed.


there are tools. just google for "clone detection".

KaVir
Wizard






Group: Moderators
Posts: 2,605
Joined: Jun 19, 2006

Go to the bottom of the page Go to the top of the page
#250 id:54483 Posted Mar 16, 2011, 1:15 am

Vigud said:
Are you referring to the statistics given by KaVir? I don't know how he did it,

It was just a diff - as I explained at the time, "my statistics are heavily biased in favour of Medievia - even a tiny change will register as a fully original line of code".

To be honest that just made it all the more incriminating, particularly when you've got files like this, this and this.
.........................
KaVir at God Wars II: godwars2.org 3000  Roomless world.  Manual combat.  Endless possibilities.

Rarva.Riendf
Wizard




Group: Members
Posts: 1,294
Joined: Jul 15, 2010

Go to the bottom of the page Go to the top of the page
#251 id:54485 Posted Mar 16, 2011, 1:40 am

Quote:

To be honest that just made it all the more incriminating, particularly when you've got files like this, this and this.

Indeed.

And btw, it was just 'for fun' heh, if you do not have a solution like 'use this tool' it is already too much work I want to pour in. I thought some stuff like that would exist made by some GNU ayatollah to look into GPL viloation :p

Quote:

I agree that my solution can be fooled, but dude, it is complicated. Read about every single option I used and you'll see that yourself. I know you haven't yet, because you don't know it already ignores whitespace.

As I said already whitespace and indent would be the least of my concern as I have code style I can apply, so it would mofify even brace location...I wanted an 'automated tool'...not some poor man solution (I use CVS plugin for eclipse for that...) The hint about universities checking for stuff like that tells you those should exist...just that the tools maybe not free (as in beer)

Last edited Mar 16, 2011, 1:49 am by Rarva.Riendf
oenone
Magician






Group: Members
Posts: 55
Joined: Aug 22, 2007

Go to the bottom of the page Go to the top of the page
#252 id:54488 Posted Mar 16, 2011, 4:08 am

this is a clone detector for C/C++ assemblies: http://www.swag.uwaterloo.ca/acd/

the wikipedia page for "Duplicate code" links a few tools, too.

Kanzel
Fledgling




Group: Members
Posts: 5
Joined: Mar 26, 2011

Go to the bottom of the page Go to the top of the page
#253 id:54652 Posted Mar 26, 2011, 2:39 pm

I don't know if it's illegal, but I do know that any mud that accepts donations and gives in-game perks in exchange is a game I'm not going to play, and I take a similar view with "free" games that require some method of payment to actually compete. It presents balancing issues between players when these perks are useful, and makes absolutely no sense where a roleplaying-enforced setting is concerned. Either the game is free and you put forth effort and time to reach the goal, or the game is commercial and you do the same. There's no in-between in my opinion.

David Haley
Wizard






Group: Members
Posts: 7,841
Joined: Jun 30, 2007

Go to the bottom of the page Go to the top of the page
#254 id:54658 Posted Mar 27, 2011, 12:45 am

Taking donations in exchange for goods is pretty clearly against the letter and spirit of the Diku license, not to mention oxymoronic in the first place.
.........................
-- d.c.h --
BabbleMUD Project (custom codebase)
Legends of the Darkstone (head coder)
http://david.the-haleys.org
.........................

Pages:<< prev ... 13, 14, 15, 16, 17 next >>