View Single Post
  #30  
Old 07-29-2011, 07:19 AM
adonys adonys is offline
Approved Member
 
Join Date: Apr 2010
Posts: 850
Default

Quote:
Originally Posted by TheEnlightenedFlorist View Post
I have attached them. Unfortunately, they are in separate Visual Studio solutions (and not very well written, in my opinion).

Also, it turns out there's a much easier way to reference the dll than using reflection.

Code:
//$reference IL2ServerMasterLibrary.dll
using IL2ServerMasterLibrary;
Then...

Code:
ServerMaster master = new ServerMaster("pass", 27340);
string[] command = master.popCommand();
Have you tested it? Because this referencing of a namespace (which it actually is) might just look for the dll to already be loaded, and might not load it by itself (and where it would look for it? core folder? bob folder? current script folder?) if it finds out is not loaded.

You might also use kegetys' way to have a dll loaded at the start of the game.
Reply With Quote