JuKu96 Posted October 10, 2014 Report Share Posted October 10, 2014 (edited) If i want to develop an new AI, how must i do this?I have seen your little documentation at http://trac.wildfiregames.com, but how can i add the AI to the game?I added an directory simulation/ai/myAI in the directory mods and added a data.json, but why does the game not load the AI, if i want to create a new game?EDIT: It works! Edited October 10, 2014 by JuKu96 Quote Link to comment Share on other sites More sharing options...
agentx Posted October 10, 2014 Report Share Posted October 10, 2014 > EDIT: It works!This was just the beginning of a long and rewarding journey Welcome to the bot club! Quote Link to comment Share on other sites More sharing options...
JuKu96 Posted October 10, 2014 Author Report Share Posted October 10, 2014 thanks! For all the others they also want learn to create a little AI i have created a little tutorial here .I want also learn to create an little AI. Quote Link to comment Share on other sites More sharing options...
JuKu96 Posted October 10, 2014 Author Report Share Posted October 10, 2014 How can I save something in a file with the javascript methods from the AI or from the game? Quote Link to comment Share on other sites More sharing options...
agentx Posted October 10, 2014 Report Share Posted October 10, 2014 You can do something like this:var data = new Uint8ClampedArray(width * height);Engine.DumpImage(filename, data, width, height, 255); // writes pngor print(sometext) and capture that output from StdOut on Linux or dbgView on Windows. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.