Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Is this illigal?
Is this illigal? [message #257189] Fri, 04 May 2007 00:15 Go to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
I'm trying to create a closed source dll that has access to the engine calls in scripts.dll.
The GNU doesn't say anything about calling custom code with a function pointer, But then, it doesn't say much else either.

So, here's what i did:

Scripts.dll
//.h
#include <string>
using namespace std;

typedef void (*CI)(string);
typedef void (*CO)(string);

void Con_In(string Str);
void Con_Out(string Str);



//.cpp
#include "scripts.h"
#include "engine.h"
void Con_In(string Str)
{
	Console_Input(Str.c_str());
}
void Con_Out(string Str)
{
	Console_Output("%s", Str.c_str());
}


MyDLl
#include <string>
using namespace std;

typedef void (*CI)(string);
typedef void (*CO)(string);


CI Console_Input;
CO Console_Output;

extern "C" 
{
	__declspec(dllexport) void InitCustomCommands(CI ConIn, CO ConOut)
	{
		Console_Output = ConOut;
		Console_Input = ConIn;
		
		Console_Output("myDll Loaded.\n");

	}
}

Re: Is this illigal? [message #257200 is a reply to message #257189] Fri, 04 May 2007 01:18 Go to previous messageGo to next message
dead6re is currently offline  dead6re
Messages: 602
Registered: September 2003
Karma: 0
Colonel
It has been said before that it is highly unlikely that the license provided by the scripts.dll source is legal reguarding calling Memory Locations.

Or am I wrong?


Let all your wishes be granted except one, so you will still have something to strieve for.
Re: Is this illigal? [message #257209 is a reply to message #257189] Fri, 04 May 2007 02:45 Go to previous messageGo to next message
Sir Kane
Messages: 1701
Registered: March 2003
Location: Angerville
Karma: 0
General (1 Star)
Just the fact that it (scripts.dll) has been created based on illegal activities makes me doubt that the license is valid.

Proud N9500 and proud N6270 user. Creator of the IEE libraries (original bhs.dll) and the RB series software.
http://n00bstories.com/image.fetch.php?id=1189992501http://www.n00bstories.com/image.fetch.php?id=1257492907
Re: Is this illigal? [message #257223 is a reply to message #257209] Fri, 04 May 2007 05:08 Go to previous messageGo to next message
EvilWhiteDragon is currently offline  EvilWhiteDragon
Messages: 3751
Registered: October 2005
Location: The Netherlands
Karma: 0
General (3 Stars)

Silent Kane wrote on Fri, 04 May 2007 11:45

Just the fact that it (scripts.dll) has been created based on illegal activities makes me doubt that the license is valid.

Well, reverse engineering isn't illegal, so I think the license would be valid.


http://www.blackintel.org/usr/evilwhitedragon/pointfix.gif
BlackIntel admin/founder/PR dude (not a coder)
Please visit http://www.blackintel.org/

V, V for Vendetta

People should not be afraid of their governments.
Governments should be afraid of their people.
Re: Is this illigal? [message #257225 is a reply to message #257189] Fri, 04 May 2007 05:26 Go to previous messageGo to next message
Ghostshaw is currently offline  Ghostshaw
Messages: 709
Registered: September 2006
Karma: 0
Colonel
Disassembling a program you don't have permission for is illegal.

-Ghost-


BlackIntel Administrator
Re: Is this illigal? [message #257227 is a reply to message #257189] Fri, 04 May 2007 05:47 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
So, is what i'm trying to do legal?

There are reasons i don't want to release the source code thats are not just like "people will rip it".
Re: Is this illigal? [message #257231 is a reply to message #257189] Fri, 04 May 2007 06:20 Go to previous messageGo to next message
Sir Kane
Messages: 1701
Registered: March 2003
Location: Angerville
Karma: 0
General (1 Star)
Just do it, I don't think anyone gives a shit about that license anyways.

Proud N9500 and proud N6270 user. Creator of the IEE libraries (original bhs.dll) and the RB series software.
http://n00bstories.com/image.fetch.php?id=1189992501http://www.n00bstories.com/image.fetch.php?id=1257492907
Re: Is this illigal? [message #257243 is a reply to message #257189] Fri, 04 May 2007 09:00 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
Ok, thanks for the advice.
Re: Is this illigal? [message #257250 is a reply to message #257189] Fri, 04 May 2007 09:39 Go to previous messageGo to next message
Viking is currently offline  Viking
Messages: 1692
Registered: July 2005
Location: Earth
Karma: 0
General (1 Star)
You should disasimble game.exe! Big Grin

Unless thats what you are doin, I dunno im not a coder... Dont Get It



Toggle Spoiler


QUOTES
"The Renegade community revolves around having something awesome, and not sharing it so you can be on top of the mountain." -Canadacdn

Crimson wrote on Thu, 17 May 2007 05:22

Memphis wrote on Tue, 15 May 2007 03:54

...fatally die to death...


I don't know if you meant to do that, but triple redundancy for teh win. I LOL'ed.


Awesome l337 people= Icedog90, Blazea58, Canadacdn, Crimson, jonwil
Re: Is this illigal? [message #257344 is a reply to message #257189] Fri, 04 May 2007 16:42 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
It is not possible to disassemble any compiled binary and get the original source code back. You can get back to assembly level and from there approximate the source code, but with something as complex as game.exe it would be quicker to write your own engine from scratch.

It's easier to do what scripts.dll does and simply hook into specific memory locations to do what you want to do, but its very limited that way.

(NB: This is just as I understand it, I don't disassemble things myself, but that's a general picture of how it all works)


http://steamsignature.com/card/1/76561197975867233.png
Re: Is this illigal? [message #257365 is a reply to message #257189] Fri, 04 May 2007 22:04 Go to previous message
AmunRa is currently offline  AmunRa
Messages: 574
Registered: September 2005
Location: Lilburn, Georgia
Karma: 0
Colonel

nice Razz
Previous Topic: Question About a Map
Next Topic: Trains? Possible?
Goto Forum:
  


Current Time: Fri Nov 01 03:05:03 MST 2024

Total time taken to generate the page: 0.00980 seconds