What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal
RebornBuddy Forums

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Adding a DLL to Singular (Apoc's) -- namespace not found error

roguetexan

New Member
Joined
Mar 23, 2010
Messages
72
I've converted a SharpSteer positioning system for Honorbuddy (used it in KillBots I posted on MMOwned some time ago).

I tried to add it to Singular (Apoc's). I added the DLL, ensured it was in the Singular BIN folder, and put it in the Honorbuddy root folder for good measure. When I try to run HB, I get:

"Could not compile CC from C:\Studio\HonorBuddy\CustomClasses\Singular 322!"
SingularRoutine.cs Line: 19 Error: The type or namespace name 'SharpSteer' could not be found (are you missing a using directive or an assembly reference?)
It's referenced correctly, and if I "compile" through Studio, it is compiles with no errors. But when I try to run the CC, it compiles with errors.

Suggestions anyone?
 
honorbuddy wont allow loading of external Dll files. besides you wouldn't wanna add it to the CC you would wanna make your own grinding Bot base and then make it use your navigation overrides. the CC only controls combat, and movement in combat If needed.
 
I've converted a SharpSteer positioning system for Honorbuddy (used it in KillBots I posted on MMOwned some time ago).

I tried to add it to Singular (Apoc's). I added the DLL, ensured it was in the Singular BIN folder, and put it in the Honorbuddy root folder for good measure. When I try to run HB, I get:

It's referenced correctly, and if I "compile" through Studio, it is compiles with no errors. But when I try to run the CC, it compiles with errors.

Suggestions anyone?
Compile the CC into a dll then load it via a stub using Assembly.LoadFrom(). if you want to see an example just look at how AB,GB2 does it. don't expect to upload to these forums though :)
 
Excellent. Thanks. Shall do. If I upload anything, it would just be the C# code for the project itself so others can use it.
 
This sharpsteer thing looks really nice! Wonder what you did with it.
 
I use it for positioning of characters on the BG based on where characters are, who is targeting you, etc. For instance, if you are being chased by 2 enemy players... which direction should you run? If there is a third character ahead and to the left... how do you angle. While it's not as smart as a "person", you can use the vector math to figure out which direction you should point the character. Also useful for "flocking" behavior.

The original C# was here I used to port this: SharpSteer - Home
The original C++ is here: OpenSteer

I used it to great effect in a previous bot I wrote (KillBots).

Anyway, when I finish adapting it to HB, trying what Highvoltz and CodenameG suggest, I will post the source code.
 
Last edited:
You can include external dll's to the compilation process by doing
Code:
//!CompilerOption:AddRef:MyAwesomeDll.dll

Add that comment anywhere, just make sure the dll is in the same directory as the Honorbuddy 'root' directory.
 
You can include external dll's to the compilation process by doing
Code:
//!CompilerOption:AddRef:MyAwesomeDll.dll
Add that comment anywhere, just make sure the dll is in the same directory as the Honorbuddy 'root' directory.
Sweet, good to know :) . I was under the impression that only worked for certain dlls e.g. ones that are part of the .net framework.
 
Last edited:
Sweet, good to know :) . I was under the impression that only worked for certain dlls e.g. ones that are part of the .net framework.

Any assembly installed in the GAC works, all of the .Net assemblies is.
The compiler looks in the GAC first then the working directory so you either have to install it or copy it.
 
Back
Top