Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2015-10-13 01:16:22, last edited by SirJosh3917 (2015-10-13 02:38:01)

SirJosh3917
Formerly ninjasupeatsninja
From: USA
Joined: 2015-04-05
Posts: 2,095

[Tutorial] "Hitchhike" DLLs.

What I mean by hitchhike is attach YOUR OnMessage() to the bot maker's OnMessage().

Step 1) Create a new class library, in c#.
Step 2) Import PlayerIOClient.
Step 3) Create a function, called InitializeDll(), like so.

Picture
Code

Step 4) In the function's parameters, create a PlayerIOClient.Connection Parameter.

Picture
Code

Step 5) Create a public static playerioclient.connection

Picture
Code

Step 6) Create your OnMessage() Function

Picture
Code

Step 7) Set your public static connection to the one given in parameters ,then add a new onmessage to the current message all within the initializedll function we made.

Picture
Code

For someone to use your dll, they just have to be

using HitchHike;

and

HitchHike.Hitcher.InitializeDll(Connection);

I Hope this helped in some way.

Offline

#2 2015-10-13 02:22:21

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,853

Re: [Tutorial] "Hitchhike" DLLs.

Sorry to always be the rain, but you do realize...

coding isn't something you give step-by-step instructions unless you're actually explaining something

Here's you're better off pasting the whole thing and explaining confusing lines.

For example, this makes no sense... you're advertising a way to add a bot library to somehow connect to a .exe function

you don't really make that connection verbally. it took me a while, but I got it.. this is something where you're giving the bot creator the library...

You're basically explaining outlining an SDK, but in terribly limited format.

next you should explain plugins.

Offline

Wooted by: (5)

#3 2015-10-13 02:29:36

SirJosh3917
Formerly ninjasupeatsninja
From: USA
Joined: 2015-04-05
Posts: 2,095

Re: [Tutorial] "Hitchhike" DLLs.

hummerz5 wrote:

Sorry to always be the rain

No problem! You're being constructive.

hummerz5 wrote:

Sorry to always be the rain, but you do realize...

coding isn't something you give step-by-step instructions unless you're actually explaining something

Here's you're better off pasting the whole thing and explaining confusing lines.

For example, this makes no sense... you're advertising a way to add a bot library to somehow connect to a .exe function

you don't really make that connection verbally. it took me a while, but I got it.. this is something where you're giving the bot creator the library...

You're basically explaining outlining an SDK, but in terribly limited format.

next you should explain plugins.

To be honest, this was simply fingured out by myself with experimenting, so I decided to share it. I did this with necessary dll as well.

hummerz5 wrote:

Here's you're better off pasting the whole thing and explaining confusing lines.

Ok then.

Offline

#4 2015-10-13 03:08:34

Xfrogman43
Member
From: need to find a new home
Joined: 2015-02-15
Posts: 4,174

Re: [Tutorial] "Hitchhike" DLLs.

ninjasupeatsninja wrote:

I did this with necessary dll as well.

Nice, more self promotion


zsbu6Xm.png thanks zoey aaaaaaaaaaaand thanks latif for the avatar

Offline

Wooted by: (3)

#5 2015-10-13 03:26:58

SirJosh3917
Formerly ninjasupeatsninja
From: USA
Joined: 2015-04-05
Posts: 2,095

Re: [Tutorial] "Hitchhike" DLLs.

Xfrogman43 wrote:
ninjasupeatsninja wrote:

I did this with necessary dll as well.

Nice, more self promotion

I'm... just... saying? I did. Would you like to read the part of the code where it initializes?

Offline

SirJosh39171444703218549077

Board footer

Powered by FluxBB

[ Started around 1732445313.8311 - Generated in 0.076 seconds, 12 queries executed - Memory usage: 1.51 MiB (Peak: 1.67 MiB) ]