Server Help

Bot Questions - Dieng Bots?

Anonymous - Thu Aug 26, 2004 11:21 pm
Post subject: Dieng Bots?
Anyway to make a bot die?
Any plugins.. cuz I was thinking of making the bot become the main target for everyone. Can anyone help me with this?
Deadly - Fri Aug 27, 2004 12:16 am
Post subject:
no clue, i guess there must be if Gundam Wing's AI-ish bot can die..
Mine GO BOOM - Fri Aug 27, 2004 12:44 am
Post subject:
Making a bot die isn't hard, its making it take damage thats the hard part. About a year ago, when I was playing with my own bot core, I made a bot that actually took damage and died. It also aim and shot at people. But one problem: it required at least moderator powers, and to be attached to someone.

It did *watchdamage on the driver, and took whatever damage the driver took. It had proper recharge, and a somewhat idea of when to shoot based on its energy and when not to. It did pretty good. Played around with this in ASWZ in one of their 2v2 dueling events before. The big problem is that if the driver dies, the bot just sits there in middle of space wasting time until the driver respawns. And another problem it had was that I'm a piss-poor driver doing suicide things all the time, thus it died pretty often because I'd absorb a bunch of damage I knew I could take, but as the bot didn't know two bombs where incoming right then, it would take a shot and get too low and die.

Good times, good times. I should have ran 3 of those bots at once and gone into Pro League and make my own squad. Sadly, I'd have to skip Amateur league because I was once kicked out from there. For some reason, they didn't like my Mine Plowers 'lets see how fast we can die' squad. We lost 1-12 in our only game ever. Hehe, I caused the other team to teamkill themselves for that one point in our favor. GO SUICIDAL ROCKETING TERRIER POWER!!
50% Packetloss - Fri Aug 27, 2004 3:42 am
Post subject:
//From dllcore.h
BotEvent makeDeath(Player *p);

Making the client die is a matter of sending a single packet. SSbot2 includes all of the code necessary to do exact task that the gundam bot completes. Making a bot take damage is complex because there are numerous things that can happen (reps, wormholes, prox, ect). That turret idea sounds like a great way of doing it if you dont want to impliment the damage physics.
Deadly - Fri Aug 27, 2004 11:28 am
Post subject:
so u mean it cant be done in merv?
D1st0rt - Fri Aug 27, 2004 11:50 am
Post subject:
it can, ssbot2 just has it done already. One thing I'm working on is making a semi-intelligent twcore bot using the stuff from Robocode. Java decompiles pretty well biggrin.gif
50% Packetloss - Fri Aug 27, 2004 3:35 pm
Post subject:
yah, java isnt exactly compiled. But good luck distort <3
Deadly - Fri Aug 27, 2004 3:36 pm
Post subject:
well if there was like

EVENT_TakeHit with.. stuff like weapon = gun or bomb... then it wouldnt be too hard icon_smile.gif

i was think about how to do AI bots but i have absoloutely no clue, i think the Gundam Wing bot is mervbot but im not sure..

like how would u make a bot chase a player, look at him, shoot, and dodge bombs and stuff icon_sad.gif
Cyan~Fire - Fri Aug 27, 2004 6:09 pm
Post subject:
Deadly wrote:
EVENT_TakeHit with.. stuff like weapon = gun or bomb... then it wouldnt be too hard

It would be hard for Catid. icon_sad.gif
D1st0rt - Fri Aug 27, 2004 7:24 pm
Post subject:
The nice thing is, Robocode already has done all of that stuff, I just need to look at it and I should have a pretty good idea of what to do
ShortyMatt - Wed Sep 01, 2004 11:30 pm
Post subject:
there was a bot in TW once..

the object was last person alive after 10 deaths. wins. so the bot went around killing people, and you could kill it also. I don't know who owned it, because it was awhile ago.

but I am pretty sure it is possible..probably hard though.
2dragons - Thu Sep 02, 2004 3:30 am
Post subject:
the basic idea of making a bot die isn't terribly hard

especially when you ignore any outside influences such as a repel/wormhole

Take the weapon packets you see, predict their movement, and if the weapons location at X time is within 16 pixels of the center of the bot - BOOM!

Of course this can get more involved as you take into mind the map layout.
Deadly - Fri Sep 03, 2004 12:53 am
Post subject:
yea but i dont think theres like.. tell(makeDie(0)) or anything like that..

Theres 3 cores (i think) being made.. one of them will prolly have event_takehit type of thing and makeDie

(lets hope)
50% Packetloss - Fri Sep 03, 2004 2:41 am
Post subject:
deadly, remember that you dont program.

1. The function is tell(makeDeath(Player*)); so you have to pass it a pointer to the player that you want the bot to die to
2. Inorder for a bot to take damage (legitimatly) a physics engine would need to be built into the bot. That is a little outside the bounds of what a core should be doing.
3. There are many cores; the top 3 are TwCore, MervBot, and Powerbot. But many people have contributed to core designing, including Plody and Kewlair.

Now lets assume that you actually knew the name of that function and did tell(makeDeath(0));//aka passing the function a NULL pointer

Lets take a look at the core's code
Code: Show/Hide
   case EVENT_Die:
      {
         Player *p = (Player*)event.p[0];

         if (h->Me)
            h->postRR(generateDeath(p->ident, h->Me->bounty));
      }

yes, you have successfully crashed the bot, the core doesnt hold your hand so by passing a NULL pointer, when p->ident is done the core will either crash or throw a nasty exception.

When will there be enough evidence for you to believe that you should not program, or even attempt to help people with thier coding problems? Your "learning how to program is a waste of my time" excuse is unreasonable compared to how much time you waste trying to help people on this forum. Deadly, I can sum your entire existance into one word. Idiot.

I strongly suggest that everyone ignore his posts on the mervbot forum unless he is asking for help. Maybe im taking all this too seriously, but i consider programming a serious matter, especially when people are being directed to do a poor job of it. Learn to program or GTFO.
D1st0rt - Fri Sep 03, 2004 8:58 am
Post subject:
Deadly, why don't you include the source for your plugins on your website?
Assassin2684 - Fri Sep 03, 2004 9:05 am
Post subject:
Where is his website, i never got it and i was looking for it. Do you have a link?
D1st0rt - Fri Sep 03, 2004 9:06 am
Post subject:
in his sig
Assassin2684 - Fri Sep 03, 2004 9:08 am
Post subject:
..... Sorry im stupid.
Deadly - Fri Sep 03, 2004 1:40 pm
Post subject:
50% Packetloss wrote:
deadly, remember that you dont program.

1. The function is tell(makeDeath(Player*)); so you have to pass it a pointer to the player that you want the bot to die to
2. Inorder for a bot to take damage (legitimatly) a physics engine would need to be built into the bot. That is a little outside the bounds of what a core should be doing.
3. There are many cores; the top 3 are TwCore, MervBot, and Powerbot. But many people have contributed to core designing, including Plody and Kewlair.

Now lets assume that you actually knew the name of that function and did tell(makeDeath(0));//aka passing the function a NULL pointer

Lets take a look at the core's code
Code: Show/Hide
   case EVENT_Die:
      {
         Player *p = (Player*)event.p[0];

         if (h->Me)
            h->postRR(generateDeath(p->ident, h->Me->bounty));
      }

yes, you have successfully crashed the bot, the core doesnt hold your hand so by passing a NULL pointer, when p->ident is done the core will either crash or throw a nasty exception.

When will there be enough evidence for you to believe that you should not program, or even attempt to help people with thier coding problems? Your "learning how to program is a waste of my time" excuse is unreasonable compared to how much time you waste trying to help people on this forum. Deadly, I can sum your entire existance into one word. Idiot.

I strongly suggest that everyone ignore his posts on the mervbot forum unless he is asking for help. Maybe im taking all this too seriously, but i consider programming a serious matter, especially when people are being directed to do a poor job of it. Learn to program or GTFO.


YO 50 i have a GREAT idea..

Shut the fuck up, k thanks.
Cyan~Fire - Fri Sep 03, 2004 2:19 pm
Post subject:
Deadly, if you want to save the last shreds of a not-negative reputation around here, please STFU yourself and stop telling people with a good reputation to do so.
2dragons - Fri Sep 03, 2004 4:12 pm
Post subject:
A better idea for Deadly would be to hire some kid to pretend he's the bot. icon_wink.gif
Deadly - Fri Sep 03, 2004 8:25 pm
Post subject:
i dont get it.. lol
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group