August 03, 2021, 03:47:49 AM

Author Topic: Making your AI working with patch 10  (Read 2886 times)

SuXue

  • Resident
  • **
  • Posts: 39
    • View Profile
Making your AI working with patch 10
« on: April 25, 2010, 08:43:53 AM »
1) Use SC2Launcher 2.3.1
2) Delete everything inside \Plugins\
3) Copy your AI to \Mods\AI Name\TriggerLibs\
4) Select your AI as Mod in the launcher

Notable Code changes:
1) AICombatDiffFlagCatSpecialHighPrio, etc.
2) c_diffHoldAtIdleChokes, etc.
3) AISetMaxBestAttackersLimit
4) AIDefendTown  => AIDefendWithWave
5) c_PU_Sentry, etc.

Vernam7

  • Guest
Re: Making your AI working with patch 10
« Reply #1 on: April 25, 2010, 09:18:44 AM »
hi there can you be more specifi on the chnages?


what was what and what need to be turned itno what? exactly?


tnx nice work.

Kernel64

  • Sr. Member
  • ****
  • Posts: 207
    • View Profile
Re: Making your AI working with patch 10
« Reply #2 on: April 25, 2010, 11:01:46 AM »
Su, after discovering the changes, did you notice if the AI Engine had changes? Does it still use the same states method? How did you initialize the AI and run the states?

SuXue

  • Resident
  • **
  • Posts: 39
    • View Profile
Re: Making your AI working with patch 10
« Reply #3 on: April 25, 2010, 02:24:03 PM »
Su, after discovering the changes, did you notice if the AI Engine had changes? Does it still use the same states method? How did you initialize the AI and run the states?

I dont use any states in my AI  ;)

AITechCount() is your friend

One thing though, I find the new engine not moving workers to expansion...

Vernam7

  • Guest
Re: Making your AI working with patch 10
« Reply #4 on: April 25, 2010, 05:25:00 PM »
would you like to share your AI then? ;)

AlsoKnownAs

  • Member
  • ***
  • Posts: 42
  • Having a drink in some bar far from Earth
    • View Profile
Re: Making your AI working with patch 10
« Reply #5 on: April 26, 2010, 09:52:48 PM »
Quote
1) Use SC2Launcher 2.3.1
2) Delete everything inside \Plugins\
3) Copy your AI to \Mods\AI Name\TriggerLibs\
4) Select your AI as Mod in the launcher

So you guys are telling me that your AI is working because I can't seem to get it work no matter how I play with the files. And I've tried the above method without avail.

I believe Blizzard is using an integrated AI within their program which in case from Patch 9 and above, it does not utilize the Base.SC2Data file from Liberty folder nor any TriggerLibs. That's what I think, if someone can give a clearer picture, it would be much grateful.  :)

P.S. Or maybe our current launchers are not able to load these new updates correctly, since I'm not in the launchers business, my opinions are based solely on speculation. Will be waiting for your new launcher Vernam7  :D .
« Last Edit: April 26, 2010, 10:03:07 PM by AlsoKnownAs »

ptanhkhoa

  • Member
  • ***
  • Posts: 90
    • View Profile
Re: Making your AI working with patch 10
« Reply #6 on: April 27, 2010, 12:05:06 AM »
@SuXue, thx for the tips, it working for me, now I can try all the new blizzard function code  :jig: , just tried the AIMapPathCost ( it help to find the shortest path between point ).
 P/S: The AIExpandDefalut is dead now, try the AIExpand function.
 
@AlsoKnowAs : His method is good, actually. The problem is not because of the launcher but because every native function of blizzard has some slighty change. My advice: rewriting your script from the beginning, which I am doing now from the Blizzard default AI code. Also you can test new function and improved your AI much more.
« Last Edit: April 27, 2010, 12:17:09 AM by ptanhkhoa »

Kernel64

  • Sr. Member
  • ****
  • Posts: 207
    • View Profile
Re: Making your AI working with patch 10
« Reply #7 on: April 27, 2010, 01:24:41 AM »
ptanhkhoa, that sounds really exciting.

I guess knowing which file gets run first when the melee map trigger initializes the melee AI will help a lot.

I suspect it's the Melee.galaxy?

The next issue would be, the constants, native function parameters, etc?

I'm really glad you guys figured it out.

Cheers!

AlsoKnownAs

  • Member
  • ***
  • Posts: 42
  • Having a drink in some bar far from Earth
    • View Profile
Re: Making your AI working with patch 10
« Reply #8 on: April 27, 2010, 01:33:38 AM »
ptanhkoa,

what I've been saying is that how can you make the  launcher recognize our AI? I've tried launching SC2 Beta with the  latest patch and the default AI (from Blizzard after updating) with  slight modification (adding a line of TriggerDebug) to make sure that  the AI is actually modified, however when I ran the AI with the slight  modification, it shows no sign of changes.

And as you've  mentioned that there are new functions, how can the native.dll from  SC2Launcher 2.3.1 recognizes the new ones that are written by us  ??? ?

Besides then deleting the plugins from the launcher, is there any additional steps that I've missed out because I can't seem to get it work still  :( .

Vernam7

  • Guest
Re: Making your AI working with patch 10
« Reply #9 on: April 27, 2010, 09:06:02 AM »
i have updated my tool to v7.9.9 that support triggerlbs folders as AI source, so you develepors go get it and i hope you have some AI ready pretty soon!


read the change log plz to understand how to edit the tool and load YOUR custom AI!


http://sc2.nibbits.com/assets/starcrack-allin1/


for AI developers i have a special Developer Edition that will only post the link in pm
« Last Edit: April 27, 2010, 03:54:20 PM by Vernam7 »

Syryuu

  • New Member
  • *
  • Posts: 8
    • View Profile
Re: Making your AI working with patch 10
« Reply #10 on: April 27, 2010, 08:40:11 PM »
Edit: ...
« Last Edit: April 27, 2010, 10:04:34 PM by Syryuu »

 

SimplePortal 2.3.5 © 2008-2012, SimplePortal