Author Topic: Bots On Op2  (Read 3003 times)

Offline Brazilian Fan

  • Sr. Member
  • ****
  • Posts: 302
Bots On Op2
« on: October 05, 2006, 01:37:31 PM »
Is there any way to play multiplayer maps with bots? or something like skirmish (not colony games)?

Offline Mcshay

  • Administrator
  • Sr. Member
  • *****
  • Posts: 404
Bots On Op2
« Reply #1 on: October 05, 2006, 02:26:12 PM »
No. Op2 bots work on a system of triggers that have to be coded into the mission files. You would have to redo all of the multiplayer maps to have bots in them.
« Last Edit: October 05, 2006, 02:26:59 PM by Mcshay »

Offline Brazilian Fan

  • Sr. Member
  • ****
  • Posts: 302
Bots On Op2
« Reply #2 on: October 05, 2006, 03:48:47 PM »
Ok thanks (thumbsup)  

Offline Eddy-B

  • Hero Member
  • *****
  • Posts: 1186
    • http://www.eddy-b.com
Bots On Op2
« Reply #3 on: October 06, 2006, 08:09:37 AM »
err.. hacker. Not entirely true.
i am (was) working on a new AI, which could just as well be included into multiplayer maps, as in single player.
So in a way: yes you can, BUT you'll have to wait till it's finished (..if it ever will be .. ?)
Rule #1:  Eddy is always right
Rule #2: If you think he's wrong, see rule #1
--------------------

Outpost : Renegades - Eddy-B.com - Electronics Pit[/siz

Offline BlackBox

  • Administrator
  • Hero Member
  • *****
  • Posts: 3093
Bots On Op2
« Reply #4 on: October 06, 2006, 01:54:19 PM »
Quote
err.. hacker. Not entirely true.
I think you meant Mcshay? I haven't posted in this one yet.

It would be entirely possible to create an AI that can play an existing multiplayer mission, whether you create a new 'client' that connects to an OP2 game and plays it as if it was a player, or inject a DLL into the game which causes it to play for a player.

Either way, the AI would have to be more than scripting, it would have to be at least semi intelligent (being able to adapt to changes in the game environment is the key).

And yes Eddy has worked on one some.

Offline Hooman

  • Administrator
  • Hero Member
  • *****
  • Posts: 4955
Bots On Op2
« Reply #5 on: October 09, 2006, 05:45:53 PM »
Heh, yeah, it's sort of possible but a lot of work. I'd given some thought to the DLL injection idea a while back. The idea I had was to use an OP2 client with an injected DLL to issue commands for that player instead of a human opponent. It'd save you from having to write a whole new client, but you'd still have to write a whole new general AI that could adapt to lots of different maps. It's definately a lot of work. I certainly didn't get any farther than a proof of concept with the DLL injection and issuing a few hardcoded commands for a hardcoded player. But the nice thing was it could handle commands for any player on any map, multi or single player. It could also work cooperatively with a player, say only issuing commands when the player doesn't have one queued.

I did have a few concerns with the project though since you could issue invalid packets that weren't error checked properly and cause crashes or weird behavior. I believe I demonstrated some of the weird behavior to Hacker once.

But yeah, other than invalid packets, the AI would essentially have to play with the same rules as a player would (or at least most of them, depending on whether or not you told the game engine it was an "AI" player and hence didn't have to worry about population and such.)