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 Before February 2015

sthreet
Guest

botmaking.

i am trying to figure out how to make bots for a level i am making... ...i am also learning a little about c++ so if possible i want to try and make bots in that language.

now i am not just learning c++ for this game only, i am learning it for other things as well.
and i just need one part: how do code to check if something is happeneing in another program? something like:
if(player->IsMyCircleCollided(0, 93))
{
     //add get object collided coords here
     //change coords to anti-gravity
}

now i know it is proboly much more complicated then this, this is just an example for the "diggy" bots.
anyone able to help me or direct me to resourses for this?

#2 Before February 2015

XxAtillaxX
Member
Joined: 2015-11-28
Posts: 4,202

Re: botmaking.

Well, in order to use the PlayerIOClient DLL Player.IO provides in a different language other than .NET
specifically for C++ you can use the Native Image Generator (Ngen.exe) to compile a MSIL DLL to a native code DLL, Or for a language like Pascal I believe it could be used as a COM component (if it were registered as such)

On the code portion:
You won't get very far with that, especially since EE doesn't have triggers for whenever someone touches any block.
It is only the special blocks like crowns, keys and such that makes that happen.

However, you could make it work with calculating the movement data and all the blocks to see if there is a match.

Then it'd be more liek

void Movement_Triggers() { std::bool MoveLeft = m.GetInt(7); if(MoveLeft == -1) { MoveLeft = true; else { MoveLeft = false; } } std::bool MoveRight = MoveLeft; std::bool MoveUp; std::bool MoveDown; std::int locx = message.GetInt(2); std::int locy = message.GetInt(1); std::int UID = message.GetInt(0);  if (MoveLeft) { connection.Send(roomkey, locx-1, locy, blockid); } if(!MoveLeft) { connection.Send(roomkey, locx+1, locy, blockid); } }

..etc

Last edited by ?tilla (Aug 19 2012 10:23:41 pm)


signature.png
*u stinky*

Offline

#3 Before February 2015

sthreet
Guest

Re: botmaking.

?tilla wrote:
void Movement_Triggers()           [b]//does what?[/b] { std::bool MoveLeft = m.GetInt(7);         [b]//does m come from above thing?[/b] if(MoveLeft == -1)                                [b]i'm not sure where you get this from, the m.GetInt(y);?[/b] { MoveLeft = true;                     [b]//wouldn't it make more sense to if you would use this later just...[/b] else                                          [b]//... work with MoveLeft == -1?[/b] {  MoveLeft = false; } } std::bool MoveRight = MoveLeft;                  [b]// and just make it "move" instead of having two bools?[/b] std::bool MoveUp;                                          [b]//where do you use these things?[/b] std::bool MoveDown; std::int locx = message.GetInt(2);                        [b]//what do these three lines do?[/b] std::int locy = message.GetInt(1); std::int UID = message.GetInt(0);  if (MoveLeft) { connection.Send(roomkey, locx-1, locy, blockid);        [b]// this must be the accual code for input to...[/b] }                                                                              [b]//... another programm[/b] if(!MoveLeft) { connection.Send(roomkey, locx+1, locy, blockid);      [b]//but what does locx-/+1 and all them things do?[/b] } }

stuff in bold is stuff i am trying to figure out... ...i'm obviously no expert.

edit: bold won't work...

Last edited by sthreet (Aug 20 2012 11:53:51 am)

#4 Before February 2015

Laxboy
Guest

Re: botmaking.

And this is why i quit trying to make bots //forums.everybodyedits.com/img/smilies/big_smile

#5 Before February 2015

Mylo
Master Developer
From: Drama
Joined: 2015-02-15
Posts: 829

Re: botmaking.

.__: @sthreet if you really ask THIS QUESTIONS you have a lot, a loot to learn, my little buddy

Offline

#6 Before February 2015

sthreet
Guest

Re: botmaking.

[me wrote:

mylo].__: @sthreet if you really ask THIS QUESTIONS you have a lot, a loot to learn, my little buddy

i would have a lot less to lean if people would stop saying this and answer my questions...

#7 Before February 2015

Luduk
Guest

Re: botmaking.

Guys i was try to make bot but i not try make anymore same as Laxboy //forums.everybodyedits.com/img/smilies/big_smile

sthreet 142391601445418

Board footer

Powered by FluxBB

[ Started around 1731788725.7463 - Generated in 0.051 seconds, 12 queries executed - Memory usage: 1.44 MiB (Peak: 1.56 MiB) ]