ytterbite
2013-05-07T02:08:46Z
This is my continued attempt at modifying Percy's ai.lua script to help the AI bot play more properly. This script will eventually be useful for every deck.

I'll start posting my AI script updates in this section. This post will also have the most current version of the script.

To make use of this AI script, you'll need to have the newest version of YGOPro. In the folder where you installed YGOPRO will be an "ai" subfolder with both "ai.lua" (the main AI script file) and a "mod" subfolder (My modifications to the AI script file).

Make a backup copy of the existing ai.lua file and the "mod" subfolder (just in case), then download the below file and extract it to that "ai" subfolder. That should extract and create a new ai.lua file and a new a "mod" subfolder.
http://wikisend.com/down...script_version_604LP.zip 

I'll also include some test decks in my next post for the AI to use (or for anyone, really). To make use of those, download them to YGOPRO's "deck" subfolder.
ytterbite
2013-05-07T02:09:54Z
I'll post the list of updates here for now, condensed in spoiler blocks for easy reference.

Version 604 LP (May 29 2013)
- Fixed a nasty bug that prevented the AI from activating trap cards during the opponent's turn. That was caused by me forgetting to uncomment a section of code after testing things. Thanks to Imakuni for telling me about it.

Version 603 LP (May 29 2013)


Previous updates are in here:



And below are some decks that the AI can use fairly well. I'll add more later.
File Attachment(s):
AI_DragonRulers.ydk (1kb) downloaded 1,256 time(s).
AI_MaleficSkillDrain.ydk (1kb) downloaded 1,032 time(s).
AI_Vayusworn.ydk (1kb) downloaded 974 time(s).

You cannot view/download attachments. Try to login or register.
ytterbite
2013-05-07T03:03:10Z
Edit: I combined this post's list of previous updates with the archived updates in the 2nd post. I'll save this post for uploading other decks for the AI to use.
File Attachment(s):
AI_ToonTableDarkWorld.ydk (1kb) downloaded 716 time(s).

You cannot view/download attachments. Try to login or register.
2013-05-07T03:19:44Z
ytterbite, Thanks for create such an awesome projects! and sorry because i can't reply your kindness. 😞
ytterbite
2013-05-07T03:37:31Z
Not a problem. Thank you for the support.


Also to anyone who might have already downloaded the update (300 LP), I just found and fixed a script bug that caused YGOPRO to crash (Happened when Celestial Dragon/Starform Dragon attacked and activated its effect).

So that's fixed and uploaded. I'll call it version 301 LP.
laithnimri123
2013-05-07T04:40:33Z
Originally Posted by: ytterbite 

So that's fixed and uploaded. I'll call it version 301 LP.


thanx a lot ytterbite for these awesone update but just a stupid question the name does it have anything to do with lp 100,200,200??????????
and why u dont make spoiler in the first post for updates i did read that u wANT TO MAKE it easier for us by posting new reply but would be better with spoiler with date of update
sorry fpr bad language
ytterbite
2013-05-07T04:43:27Z
The "LP" thing is just something funny I thought I would do for a version number. When the LP reaches 8000, then it's complete (maybe) [:laugh:]

I didn't think to use spoilers for updates, that's a really good idea. I'll do that for future updates.
laithnimri123
2013-05-07T04:50:47Z
ytterbite u created a monster he is powefull with e-dragon

just 1 misplay in turn 2
File Attachment(s):
ai can beat us easily.yrp (1kb) downloaded 466 time(s).

You cannot view/download attachments. Try to login or register.

ZONE7
2013-05-07T04:51:06Z
If you control a card that cannot be destroyed by card effects, the AI will continue to use Judgment Dragon's effect (and similar effects, I'm sure) until he can no longer pay for it.
ytterbite
2013-05-07T05:05:11Z
Originally Posted by: laithnimri123 

ytterbite u created a monster he is powefull with e-dragon

just 1 misplay in turn 2



Thanks for the replay. Very strange for the AI to attack a stronger monster! I'll have to look and see why that happened.

Edit: Oh wait I think I know why. I think I forgot to consider opponent's monsters' DEF. I thought I did, but apparently not. I'll fix that.
laithnimri123
2013-05-07T05:13:58Z
Originally Posted by: ytterbite 



Edit: Oh wait I think I know why. I think I forgot to consider opponent's monsters' DEF. I thought I did, but apparently not. I'll fix that.



dude it is enought for us to know that we know ai know what is he doing
i want to [:cry:]
d.Ark_13
2013-05-07T07:40:42Z
hi there...i want to create my own ai but still i'm an amateur...i want to make the ai stronger and cannot be easily defeated...i try your ai.lua but still it doesn't give me enough battle spirit...how actually to modify the ai??i read the instruction but i'm blank...got some advice for me??
Steeldarkeagel
2013-05-07T07:58:56Z
Originally Posted by: Percival18 

What does WIP mean?



Work in Progress.

I think
laithnimri123
2013-05-07T10:13:51Z
Originally Posted by: Steeldarkeagel 

Originally Posted by: Percival18 

What does WIP mean?



Work in Progress.

I think



maybe working in project??
laithnimri123
2013-05-07T10:49:39Z
sorry bothering u guys but please ytterbite give us fix for crashing as soon as u can before u update decks 🙂 and report number 42 wht is the point of summon 4 tokens with 2000 atk each and they can damage me?????????
Percival18
2013-05-07T13:17:28Z
Originally Posted by: laithnimri123 

sorry bothering u guys but please ytterbite give us fix for crashing as soon as u can before u update decks 🙂 and report number 42 wht is the point of summon 4 tokens with 2000 atk each and they can damage me?????????



Is this about the AI or about the card? Please post card bugs in a separate topic thanks.
laithnimri123
2013-05-07T14:08:37Z
Originally Posted by: Percival18 


Is this about the AI or about the card? Please post card bugs in a separate topic thanks.



crash about ai 🙂 there is a problem with it it crash all the time [:cry:]
but the card it is ok the text say ur opponent take no damage
igniel555
2013-05-07T14:38:04Z
same with me its crash all time and i use deck different u give ytterbite
i think something in your script .lua had something broken in your code
can you fix this 😞
ytterbite
2013-05-07T22:36:04Z
I thought I fixed the crash completely but I guess I didn't. Sorry about that.

I think I know where the problem is. Most probably due to the AI using an effect during the battle phase, where my code wasn't tested very well.

I'll do some testing, then upload a fixed version.
Similar Topics
Users browsing this topic