Qhimm.com Forums

Miscellaneous Forums => Scripting and Reverse Engineering => Topic started by: ff7rules on 2010-07-23 12:01:33

Title: Why won't this AI work
Post by: ff7rules 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
Title: Re: Why won't this AI work
Post by: nfitc1 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.
Title: Re: Why won't this AI work
Post by: ff7rules 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.
Title: Re: Why won't this AI work
Post by: Kudistos Megistos 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
Title: Re: Why won't this AI work
Post by: nfitc1 on 2010-07-23 19:46:13
Now you two know you're not alone. :)
Title: Re: Why won't this AI work
Post by: Bosola 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.
Title: Re: Why won't this AI work
Post by: Kudistos Megistos 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
Title: Re: Why won't this AI work
Post by: Bosola on 2010-07-23 22:42:17
...I did.
Title: Re: Why won't this AI work
Post by: Kudistos Megistos 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).
Title: Re: Why won't this AI work
Post by: Bosola on 2010-07-27 22:56:56
Or, if you'd used my spreadsheet.