Author Topic: Why won't this AI work  (Read 5670 times)

ff7rules

  • *
  • Posts: 423
    • View Profile
Why won't this AI work
« on: 2010-07-23 12:01:33 »
Ok i have tried everything but as soon as the battle starts it crashes its not just me either I have had people test it same result. All the jumps are right (far as I know) so why is it crashing 5 seconds into the battle.

Code: [Select]
12 2070
02 20A0
82
90
81
60 10
34
60 00
71 001A
60 20
61 0022
92
72 00E4
60 01
71 0028
60 20
61 0014
92
72 00E4
60 02
71 0036
60 20
61 01CD
92
72 00E4
60 03
71 0041
60 20
61 0174
92
72 00E4
60 04
61 01F4
92
91

nfitc1

  • *
  • Posts: 3011
  • I just don't know what went wrong.
    • View Profile
    • WM/PrC Blog
Re: Why won't this AI work
« Reply #1 on: 2010-07-23 12:07:34 »
Your jumps are way off. You're jumping to 0x0E4 at the end of the statements. The script itself ends at 0x04B. Change all those "72  00E4"s to "72  004A" and your code will be correct.

ff7rules

  • *
  • Posts: 423
    • View Profile
Re: Why won't this AI work
« Reply #2 on: 2010-07-23 13:22:49 »
Thanks, I feel stupid now lol. Its because i used it from another script changed the 71 jumps and forgot all about those ones lol.

Kudistos Megistos

  • Banned
  • *
  • Posts: 3929
    • View Profile
Re: Why won't this AI work
« Reply #3 on: 2010-07-23 15:50:45 »
HAHAHA, OH WOW! ;D

I had this exact same problem last night. I tried to create a script to make enemies invulnerable to limit break and summons (basically, a reversal of what Diamond Weapon does, with a few modifications). I couldn't work out why the game kept freezing until I realised there were jumps. When I fixed them, it worked perfectly:

Code: [Select]
12 2060
10 4028
80
60 00
90
12 2060
10 4029
80
60 00
90
01 2000
60 03
40
01 2000
60 16
40
51
01 2000
60 14
40
51
70 003F
12 2060
10 4028
80
60 01
90
12 2060
10 4029
80
60 01
90

nfitc1

  • *
  • Posts: 3011
  • I just don't know what went wrong.
    • View Profile
    • WM/PrC Blog
Re: Why won't this AI work
« Reply #4 on: 2010-07-23 19:46:13 »
Now you two know you're not alone. :)

Bosola

  • Fire hazard!
  • *
  • Posts: 1749
    • View Profile
    • My YouTube Channel
Re: Why won't this AI work
« Reply #5 on: 2010-07-23 22:13:49 »
ITS LIKE WE NEED A SPREADSHEET THAT CONTAINS ALL THE TEMPLATES YOU'LL EVER NEED AND UPDATES THE JUMPS AUTOMA -oh wait.

Kudistos Megistos

  • Banned
  • *
  • Posts: 3929
    • View Profile
Re: Why won't this AI work
« Reply #6 on: 2010-07-23 22:16:48 »
ITS LIKE WE NEED A SPREADSHEET THAT CONTAINS ALL THE TEMPLATES YOU'LL EVER NEED AND UPDATES THE JUMPS AUTOMA -oh wait.

Yeah, one of those would be nice. Make it! ;D

Bosola

  • Fire hazard!
  • *
  • Posts: 1749
    • View Profile
    • My YouTube Channel
Re: Why won't this AI work
« Reply #7 on: 2010-07-23 22:42:17 »
...I did.

Kudistos Megistos

  • Banned
  • *
  • Posts: 3929
    • View Profile
Re: Why won't this AI work
« Reply #8 on: 2010-07-24 00:15:48 »
Successful troll is successful ;D

I will admit that I did forget about your spreadsheet, but I'm glad that I solved it myself (even though, in retrospect, the problem was an astonishingly small one that would have been avoided had I done any reading into what the script I quoted was doing).

Bosola

  • Fire hazard!
  • *
  • Posts: 1749
    • View Profile
    • My YouTube Channel
Re: Why won't this AI work
« Reply #9 on: 2010-07-27 22:56:56 »
Or, if you'd used my spreadsheet.