Thread: Jazz2 BOTS?
View Single Post
djazz

JCF Member

Joined: Feb 2009

Posts: 257

djazz is OFF DA CHARTdjazz is OFF DA CHARTdjazz is OFF DA CHART

Jan 9, 2010, 06:05 AM
djazz is offline
Reply With Quote
Talking Bots aren't the future, bots are today!

Quote:
Originally Posted by BlurredD View Post
I don't really support the idea of having bots join servers due to issues of being able to tell who is or isn't a bot, plus it should be only the server that decides if a game should have bots. Also, it's entirely possible to have bots produced by the server through JJ2. I haven't looked into the details yet, but it should easier to do nowadays.
Sounds good, to have bots hosted by server instead of joining ones, maybe a plus-feature in future?

I have now made a simple bot that using a JJ2 window as host and read player positions, who has flag etc. and uses "keyboard simulation" to move the player (the external program "press" keys on the keyboard to move the player). I've hosted a "Fight the BOT" server all day and it was a lot of fun, particularly the duels (player VS bot battle) or 2vs2 (players VS player and bot in CTF). The bot fires and jumps around, following the player.
I will improve it to make it defense bases, teamchat, find carrots, attack others etc.



As you see, the player uses position offsets, where 0x0 is at the player in target.
When the player is above the bot, the bot starts to jump, and when below, nothing. If the player is below and bot is on a vine, bot press down arrow to get down from the vine.
Health shows the bot's health. In future, the bot will start look for carrot when on low health.

To see the bot in action, please ask me and I can host it.
__________________
WebJCS 2 (new and in progress)
WebJCS 1 (old but complete)
SGIP Simple Games in Progress list
Level Packer v2 - With a GUI!
PHP Tileset Compiler