YGOPRO Forum

Welcome Guest! To enable all features please try to register or login.
16 Pages123>»
Options
Go to last post Go to first unread
ytterbite  
#1 Posted : Tuesday, May 07, 2013 2:08:46 AM(UTC)
ytterbite

Rank: Advanced Member

Joined: 12/18/2012(UTC)
Posts: 269

Thanks: 170 times
Was thanked: 252 time(s) in 69 post(s)
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.

Edited by moderator Tuesday, December 17, 2013 9:47:03 PM(UTC)  | Reason: Not specified

thanks 107 users thanked ytterbite for this useful post.
ytterbite  
#2 Posted : Tuesday, May 07, 2013 2:09:54 AM(UTC)
ytterbite

Rank: Advanced Member

Joined: 12/18/2012(UTC)
Posts: 269

Thanks: 170 times
Was thanked: 252 time(s) in 69 post(s)
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.

Edited by user Thursday, May 30, 2013 4:29:30 AM(UTC)  | Reason: Not specified

File Attachment(s):
AI_DragonRulers.ydk (1kb) downloaded 1,250 time(s).
AI_MaleficSkillDrain.ydk (1kb) downloaded 1,025 time(s).
AI_Vayusworn.ydk (1kb) downloaded 968 time(s).

You cannot view/download attachments. Try to login or register.
thanks 22 users thanked ytterbite for this useful post.
ytterbite  
#3 Posted : Tuesday, May 07, 2013 3:03:10 AM(UTC)
ytterbite

Rank: Advanced Member

Joined: 12/18/2012(UTC)
Posts: 269

Thanks: 170 times
Was thanked: 252 time(s) in 69 post(s)
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.

Edited by user Thursday, May 09, 2013 5:33:36 AM(UTC)  | Reason: Not specified

File Attachment(s):
AI_ToonTableDarkWorld.ydk (1kb) downloaded 709 time(s).

You cannot view/download attachments. Try to login or register.
thanks 8 users thanked ytterbite for this useful post.
Generation_Next  
#4 Posted : Tuesday, May 07, 2013 3:19:44 AM(UTC)
Generation_Next

Rank: Newbie

Joined: 4/5/2013(UTC)
Posts: 6

Thanks: 15 times
Was thanked: 2 time(s) in 2 post(s)
ytterbite, Thanks for create such an awesome projects! and sorry because i can't reply your kindness. :(
ytterbite  
#5 Posted : Tuesday, May 07, 2013 3:37:31 AM(UTC)
ytterbite

Rank: Advanced Member

Joined: 12/18/2012(UTC)
Posts: 269

Thanks: 170 times
Was thanked: 252 time(s) in 69 post(s)
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.

Edited by user Tuesday, May 07, 2013 4:16:46 AM(UTC)  | Reason: Not specified

thanks 2 users thanked ytterbite for this useful post.
laithnimri123  
#6 Posted : Tuesday, May 07, 2013 4:40:33 AM(UTC)
laithnimri123

Rank: Advanced Member

Joined: 12/12/2012(UTC)
Posts: 603

Thanks: 206 times
Was thanked: 48 time(s) in 41 post(s)
Originally Posted by: ytterbite Go to Quoted Post
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
thanks 1 user thanked laithnimri123 for this useful post.
ytterbite  
#7 Posted : Tuesday, May 07, 2013 4:43:27 AM(UTC)
ytterbite

Rank: Advanced Member

Joined: 12/18/2012(UTC)
Posts: 269

Thanks: 170 times
Was thanked: 252 time(s) in 69 post(s)
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  
#8 Posted : Tuesday, May 07, 2013 4:50:47 AM(UTC)
laithnimri123

Rank: Advanced Member

Joined: 12/12/2012(UTC)
Posts: 603

Thanks: 206 times
Was thanked: 48 time(s) in 41 post(s)
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 463 time(s).

You cannot view/download attachments. Try to login or register.
thanks 1 user thanked laithnimri123 for this useful post.
ZONE7  
#9 Posted : Tuesday, May 07, 2013 4:51:06 AM(UTC)
ZONE7

Rank: Advanced Member

Joined: 12/4/2012(UTC)
Posts: 88

Thanks: 3 times
Was thanked: 7 time(s) in 6 post(s)
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  
#10 Posted : Tuesday, May 07, 2013 5:05:11 AM(UTC)
ytterbite

Rank: Advanced Member

Joined: 12/18/2012(UTC)
Posts: 269

Thanks: 170 times
Was thanked: 252 time(s) in 69 post(s)
Originally Posted by: laithnimri123 Go to Quoted Post
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.

Edited by user Tuesday, May 07, 2013 5:06:26 AM(UTC)  | Reason: Not specified

thanks 1 user thanked ytterbite for this useful post.
laithnimri123  
#11 Posted : Tuesday, May 07, 2013 5:13:58 AM(UTC)
laithnimri123

Rank: Advanced Member

Joined: 12/12/2012(UTC)
Posts: 603

Thanks: 206 times
Was thanked: 48 time(s) in 41 post(s)
Originally Posted by: ytterbite Go to Quoted Post


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

Edited by user Tuesday, May 07, 2013 8:00:30 AM(UTC)  | Reason: Not specified

d.Ark_13  
#12 Posted : Tuesday, May 07, 2013 7:40:42 AM(UTC)
d.Ark_13

Rank: Member

Joined: 3/18/2013(UTC)
Posts: 17

Thanks: 6 times
Was thanked: 4 time(s) in 3 post(s)
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??
Percival18  
#13 Posted : Tuesday, May 07, 2013 7:53:32 AM(UTC)
Percival18

Rank: Administration

Joined: 11/25/2012(UTC)
Posts: 2,102

Thanks: 79 times
Was thanked: 1578 time(s) in 524 post(s)
What does WIP mean?
Steeldarkeagel  
#14 Posted : Tuesday, May 07, 2013 7:58:56 AM(UTC)
Steeldarkeagel

Rank: Advanced Member

Joined: 3/2/2013(UTC)
Posts: 7,858

Thanks: 72 times
Was thanked: 1608 time(s) in 1248 post(s)
Originally Posted by: Percival18 Go to Quoted Post
What does WIP mean?


Work in Progress.

I think
thanks 2 users thanked Steeldarkeagel for this useful post.
laithnimri123  
#15 Posted : Tuesday, May 07, 2013 10:13:51 AM(UTC)
laithnimri123

Rank: Advanced Member

Joined: 12/12/2012(UTC)
Posts: 603

Thanks: 206 times
Was thanked: 48 time(s) in 41 post(s)
Originally Posted by: Steeldarkeagel Go to Quoted Post
Originally Posted by: Percival18 Go to Quoted Post
What does WIP mean?


Work in Progress.

I think


maybe working in project??
laithnimri123  
#16 Posted : Tuesday, May 07, 2013 10:49:39 AM(UTC)
laithnimri123

Rank: Advanced Member

Joined: 12/12/2012(UTC)
Posts: 603

Thanks: 206 times
Was thanked: 48 time(s) in 41 post(s)
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?????????
thanks 1 user thanked laithnimri123 for this useful post.
Percival18  
#17 Posted : Tuesday, May 07, 2013 1:17:28 PM(UTC)
Percival18

Rank: Administration

Joined: 11/25/2012(UTC)
Posts: 2,102

Thanks: 79 times
Was thanked: 1578 time(s) in 524 post(s)
Originally Posted by: laithnimri123 Go to Quoted Post
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.
thanks 1 user thanked Percival18 for this useful post.
laithnimri123  
#18 Posted : Tuesday, May 07, 2013 2:08:37 PM(UTC)
laithnimri123

Rank: Advanced Member

Joined: 12/12/2012(UTC)
Posts: 603

Thanks: 206 times
Was thanked: 48 time(s) in 41 post(s)
Originally Posted by: Percival18 Go to Quoted Post

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

Edited by user Tuesday, May 07, 2013 2:10:05 PM(UTC)  | Reason: Not specified

thanks 1 user thanked laithnimri123 for this useful post.
igniel555  
#19 Posted : Tuesday, May 07, 2013 2:38:04 PM(UTC)
igniel555

Rank: Member

Joined: 12/15/2012(UTC)
Posts: 29

Was thanked: 4 time(s) in 2 post(s)
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 :(
thanks 3 users thanked igniel555 for this useful post.
ytterbite  
#20 Posted : Tuesday, May 07, 2013 10:36:04 PM(UTC)
ytterbite

Rank: Advanced Member

Joined: 12/18/2012(UTC)
Posts: 269

Thanks: 170 times
Was thanked: 252 time(s) in 69 post(s)
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.

Edited by user Tuesday, May 07, 2013 10:37:36 PM(UTC)  | Reason: Not specified

Users browsing this topic
16 Pages123>»
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Notification

Icon
Error