Jump to content
Sign in to follow this  
JuKu96

Develop a new AI

Recommended Posts

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 by JuKu96

Share this post


Link to post
Share on other sites

You can do something like this:

var data = new Uint8ClampedArray(width * height);Engine.DumpImage(filename, data, width, height, 255); // writes png

or print(sometext) and capture that output from StdOut on Linux or dbgView on Windows.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...