Sebrian
  • Sebrian
  • Advanced Member Topic Starter
2013-10-07T22:09:59Z
As i previously mentioned i'm making quite big changes to AI right now, and getting some feedback about current bugs and script errors would be nice, so i'm releasing this beta/alpha/gamma.. whatever version of AI, 80% of AIHelper script functions are ready to go, there is still a lot to do, but the largest part is done.

You could even notice how big those changes were by comparing current and old file size of the script, keep in mind that this isn't a stable version, it WILL have bugs, as i just didn't have much time to test it for them, so if anyone would like to help with testing, feel free to do so (post screens with errors if they occur).

I won't describe any changes done to AI yet, ones familiar with it will be able to tell what has been done.

http://www1.datafilehost.com/d/de6e0d80  (Updated 16.nov)
Percival18
2013-10-07T22:12:05Z
Download link isn't working? It goes to the upload page instead.
Sebrian
  • Sebrian
  • Advanced Member Topic Starter
2013-10-07T22:16:36Z
Originally Posted by: Percival18 

Download link isn't working? It goes to the upload page instead.



Reuploaded it.
Six
  • Six
  • Advanced Member
2013-10-07T23:39:10Z
Test update... [:thumbu:]
Aztlan
2013-10-07T23:57:11Z
How do I upload screens? I can't upload any attachments except ygopro files.
outlaw1994
2013-10-08T04:44:18Z
heres 2 errors i found with it

UserPostedImage
UserPostedImage
http://www.youtube.com/user/MrTbowd12/videos
Skaviory
2013-10-08T14:01:01Z
Originally Posted by: outlaw1994 





It looks like these two functions are not defined and therefore, provoke the errors. Sebrian must have forgotten to code them.
Sebrian
  • Sebrian
  • Advanced Member Topic Starter
2013-10-08T14:33:37Z
Originally Posted by: Skaviory 

Originally Posted by: outlaw1994 





It looks like these two functions are not defined and therefore, provoke the errors. Sebrian must have forgotten to code them.



Sebrian didn't forget to code them, they just were deleted, as now we are using 1-2 functions with variables, instead of 20+ random functions, this is why i released this test build, i did replace old functions with new ones, but some of them still might be used in code, examples above are already fixed, thanks for screens.
TheOrange
2013-10-08T15:26:36Z

A couple more. I have only played 2 games with the AI using this AI, but I'm looking forward to further testing. Two errors each game, and the second game crashed just as I attacked for game.
Skaviory
2013-10-08T17:35:22Z
Originally Posted by: TheOrange 





The error in line 37 has already been fixed (by Sebrian) but thank you anyway.
The error in line 2357 (as well as in line 2359) is caused by a typo: it must be "UseLists" instead of "Uselists".

By the way, I hope I can help you, Sebrian. I really appreciate your dedication to AI development.
TheOrange
2013-10-08T17:49:24Z
I see that now. I mis-read the line in the previously posted photo. I'll keep looking, cause I would like to help as much as possible too.
Sebrian
  • Sebrian
  • Advanced Member Topic Starter
2013-10-08T18:51:30Z
Updated download link, AI with everything above fixed.
outlaw1994
2013-10-08T22:08:41Z
ok heres another error

UserPostedImage
http://www.youtube.com/user/MrTbowd12/videos
TheOrange
2013-10-09T13:06:32Z
The AI apparently has trouble summoning Lavalval Chain when Summoner Monk and Battlin Boxer Switchhitter are face up. Line 1880 in SelectInitCommand, AIControlsFaceUP is nil. I guess it was replaced with something else somewhere.

Skaviory
2013-10-09T14:23:13Z
Originally Posted by: outlaw1994 


UserPostedImage



Again, this is another typo.

[SelectInitCommand]
lines 2235 and 2500: must be "Get_Card_Count_Pos(OppMon(), ...)" instead of "Get_Card_Count_Pos(OppMon, ...)"

I am not sure if I have included all of them; see if the error is fixed.
Skaviory
2013-10-09T14:34:22Z
Originally Posted by: TheOrange 


The AI apparently has trouble summoning Lavalval Chain when Summoner Monk and Battlin Boxer Switchhitter are face up. Line 1880 in SelectInitCommand, AIControlsFaceUP is nil. I guess it was replaced with something else somewhere.



Yes. The function AIControlsFaceUP(id) should be replaced with Get_Card_Count_ID(cards, id, position) > 0. Thank you for posting. Hope it get fixed soon.
TheOrange
2013-10-09T20:07:44Z
It looks like most of these errors are due to functions that have been replaced with something else. I have two more to post (pics later):
SelectInitCommand line 1416 and SelectInitCommand line 1941; they are both nil values.
Line 1941 is BanishBlacklist, which replaces CheckBanishedBlacklist. I used Notepad++ find function to find and replace all instances of CheckBanishedBlacklist, and it worked fine.
1416 is AIExtraAvailable, and I don't know what replaced that. Trying Ai.GetAIExtraDeck right now.
EDIT: And that worked. FYI: Playing vs chaos dragons supported deck. The AI is playing really well!
Sebrian
  • Sebrian
  • Advanced Member Topic Starter
2013-10-09T21:11:45Z
Originally Posted by: TheOrange 

It looks like most of these errors are due to functions that have been replaced with something else. I have two more to post (pics later):
SelectInitCommand line 1416 and SelectInitCommand line 1941; they are both nil values.
Line 1941 is BanishBlacklist, which replaces CheckBanishedBlacklist. I used Notepad++ find function to find and replace all instances of CheckBanishedBlacklist, and it worked fine.
1416 is AIExtraAvailable, and I don't know what replaced that. Trying Ai.GetAIExtraDeck right now.
EDIT: And that worked. FYI: Playing vs chaos dragons supported deck. The AI is playing really well!



Pretty much all of these errors are caused by typos or leftovers of some old functions, i will post an updated version when i'm done with indexing functions, and card selections.
Sebrian
  • Sebrian
  • Advanced Member Topic Starter
2013-10-09T23:09:04Z
Update with everything above fixed, AIHelperFunctions script is now done, 80% of indexing functions have been replaced with new ones,.

DO NOT download this update unless you are able to replace old function with new ones in SelectCard, because it's still using all the old functions, and AI won't be able to select targets for any cards at all right now, SelectCard will be reworked next, and i will try to do it tomorrow.
TheOrange
2013-10-11T12:40:22Z
Do you have a list of your updated functions and the corresponding old ones? That would be great for replacing old functions with new ones. I'm trying to get the hang of this coding so I can help out a bit more than testing; at the moment, I can code cards for exceptions (ie tribute blacklist or deck checks) and some other random things.
Users browsing this topic