//============================================================================// // // // POGAMUT for DEFCON // // // //============================================================================// 1. INSTALLATION --------------- Download, install Defcon from http://www.introversion.co.uk/defcon/downloads/index.html. First, a simple solution for Netbeans, for manual installation refer to the section 1.2. about Manual installation. 1.1. Automatic project generation through Netbeans -------------------------------------------------- Make sure you have Pogamut plugins for Netbeans, if you dont, then run Pogamut installer first. Run Netbeans and open Create New Project dialog either from toolbar or the New dropdown menu. Open Pogamut->Defcon folder, select Hello World Bot and hit Next. Fill in Project title, path where to store it (or use default ones) and finally a path to your installation of Defcon. Hit Finish. 1.2. Manual installation through SVN ------------------------------------ Checkout Core and PogamutDefcon side by side to a directory of your choosing and DefconJavaInterface into your Defcon directory. For more information about Defcon API visit: http://www.doc.ic.ac.uk/~rb1006/projects:api . Open up PogamutDefcon.properties inside PogamutDefCon project and modify defcon.path property to reflect your setup. Use defcon.module.class property in DefconBot.properties either inside an example or PogamutDefCon project to set up which module class (saying which bot and logic Pogamut is to use) is to be loaded by Defcon. If you are creating your own project, then you should create both these property files and reflect all the required property assignments in them. Then copy build.xml either from PogamutDefCon or any example. You might have to make some adjustments inside it to make it properly load the aforementioned property file. Finally make your project reference PogamutCore.jar, PogamutDefCon.jar and all libraries inside Core/libs to setup your classpath properly. 1.3. Running your bot --------------------- Finally use your new build.xml to compile, deploy and run a bot. For that use tasks "jar", "deploy" and "run" (or "debug" if you want to make a debug build) respectively. For those that used the manual installation it should not be a problem given their knowledge of ANT. For those that used Netbeans to create a new project select Files tab in Netbeans, which is usually right next to Projects tab. If you cant see it try hitting ctrl+2 and it should popup up. If you still cannot see it, then try it a few times so it catches your eye. 1.4. Inside Defcon ------------------ When the game starts it drops you right into menu for hosting of games. Open "SELECT EXTERNAL BOT" and there select "AI/javabot/javabot.dll". If you're using "debug" task then you will have to attach remote jvm debugger from inside your IDE after this message appears in the console: "Listening for transport dt_socket at address: 8000". Use simple socket attach on port 8000. Everything is ready now and you can follow ordinary steps for creating defcon match.