DEFCON AI BOT API

Come in here to talk about your sky-net style world-destroying super bots!

Moderator: Defcon moderators

User avatar
The Reds
level2
level2
Posts: 227
Joined: Tue Feb 24, 2009 3:53 am
Location: West Coast
Contact:

Postby The Reds » Thu Apr 02, 2009 3:52 am

How do people get bots? What do they have to do? Cause if others can get one I was hoping if I could get one too.
User avatar
RobinB
level0
Posts: 5
Joined: Wed Nov 19, 2008 3:01 pm
Location: London, UK
Contact:

Postby RobinB » Wed Apr 08, 2009 12:10 pm

LordSturm wrote:Heh, anything is possible.

Be sure to tell me if you work out how to pit two bots together, using two clients. ( Me and a friend. )


The easiest way would be to join a game through entering the IP of the host. Both players should have the API enabled version.

@The Reds: The first post should give you enough information on how to set up your own bot. Note that you cannot use a bot in "normal" defcon matches that don't specifically allow bots (Ie., use the API version to host the game).
CrazyAX
level0
Posts: 1
Joined: Tue Dec 08, 2009 12:39 am

Postby CrazyAX » Tue Dec 08, 2009 12:41 am

where do i find the API to download?
User avatar
DinoSteve
level3
level3
Posts: 251
Joined: Fri Aug 21, 2009 10:36 pm
Location: California, US

Postby DinoSteve » Tue Dec 08, 2009 12:59 am

martin
level5
level5
Posts: 3210
Joined: Fri Nov 19, 2004 8:37 pm

Postby martin » Wed Jan 13, 2010 5:19 pm

Is there a java version of the API? I vaguely remember some talk of one but I cannot remember if anything came of it.

EDIT:: I found the java API here

However, there was a mention of a python API in the original article about the API, did such a thing ever get built?
GENERATION 22:The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment.
User avatar
xander
level5
level5
Posts: 16869
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Postby xander » Wed Jan 13, 2010 8:45 pm

Is there a Brainfuck version of the API?

xander
martin
level5
level5
Posts: 3210
Joined: Fri Nov 19, 2004 8:37 pm

Postby martin » Wed Jan 13, 2010 8:47 pm

Unfortunately no, but I could easily write you a brainfuck interpreter in Lua, if you wish? ;)
GENERATION 22:The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment.
User avatar
poptart911
level1
level1
Posts: 33
Joined: Thu Jan 13, 2011 6:04 pm
Location: Iowa, US
Contact:

Postby poptart911 » Sun Jan 16, 2011 10:17 am

xander wrote:Is there a Brainfuck version of the API?

xander


How about prolog?!
User avatar
poptart911
level1
level1
Posts: 33
Joined: Thu Jan 13, 2011 6:04 pm
Location: Iowa, US
Contact:

Postby poptart911 » Wed Jan 19, 2011 11:21 pm

Pox wrote:I am eagerly awaiting a Linux-compatible API while staring at the archaicness of the mailing list.
* bump *
Uropa
level0
Posts: 6
Joined: Thu Nov 08, 2012 7:16 pm
Location: Castle Wolfenstein

Postby Uropa » Sat Dec 29, 2012 12:38 am

xander wrote:Is there a Brainfuck version of the API?

xander


this is by far the funiiest forum entry i have read in my entire life! :shock:
beeb
level0
Posts: 3
Joined: Tue Dec 08, 2020 3:31 pm
Contact:

Re: DEFCON AI BOT API

Postby beeb » Tue Dec 08, 2020 4:00 pm

Hello, traveler! You might have had some trouble actually getting your hands on this API.

So, first off, here is a download link:
https://cdn.discordapp.com/attachments/685443597591511043/713180937399304202/Defcon.exe

This is the 1.57 version, the latest I could find.
Earlier versions contain a bug that make it impossible to handle fighters, bombers, and nukes.
This version spits out a massive log file, reducing performance somewhat. To disable this, make sure there is a read-only file called debug.txt in your defcon directory.
Note that this was compiled ages ago, using VS2008. You need to compile your bot against the same ABI for it to work.

Second, here is the Lua binding:
https://cdn.discordapp.com/attachments/685443597591511043/701819619517661304/luabot_0.31.zip

The 0.3 version, hosted on corsix.org by its author, has a bug where functions that should return two values (GetVelocity, for example), returned only the second value.
This version contains a fix for that bug. Otherwise, it is exactly the same, right down to its Lua version (5.1.4).

I can be reached via the Defcon Discord for further information.
Uropa
level0
Posts: 6
Joined: Thu Nov 08, 2012 7:16 pm
Location: Castle Wolfenstein

Re: DEFCON AI BOT API

Postby Uropa » Wed Dec 09, 2020 11:54 am

beeb wrote:Hello, traveler! You might have had some trouble actually getting your hands on this API.

So, first off, here is a download link:
https://cdn.discordapp.com/attachments/685443597591511043/713180937399304202/Defcon.exe

This is the 1.57 version, the latest I could find.
Earlier versions contain a bug that make it impossible to handle fighters, bombers, and nukes.
This version spits out a massive log file, reducing performance somewhat. To disable this, make sure there is a read-only file called debug.txt in your defcon directory.
Note that this was compiled ages ago, using VS2008. You need to compile your bot against the same ABI for it to work.

Second, here is the Lua binding:
https://cdn.discordapp.com/attachments/685443597591511043/701819619517661304/luabot_0.31.zip

The 0.3 version, hosted on corsix.org by its author, has a bug where functions that should return two values (GetVelocity, for example), returned only the second value.
This version contains a fix for that bug. Otherwise, it is exactly the same, right down to its Lua version (5.1.4).

I can be reached via the Defcon Discord for further information.


After 8 yrs and 1 month, to the day, a reply !!!
beeb
level0
Posts: 3
Joined: Tue Dec 08, 2020 3:31 pm
Contact:

Re: DEFCON AI BOT API

Postby beeb » Thu Dec 10, 2020 10:17 pm

Uropa wrote:After 8 yrs and 1 month, to the day, a reply !!!


??? Huh, wow. You have email notifications or something?
Uropa
level0
Posts: 6
Joined: Thu Nov 08, 2012 7:16 pm
Location: Castle Wolfenstein

Re: DEFCON AI BOT API

Postby Uropa » Thu Dec 10, 2020 11:27 pm

Indeed, i do!

Return to “AI Bots”

Who is online

Users browsing this forum: No registered users and 7 guests