So I'm trying to make an AI for a character because, well, default AI is bad and i ran into this error:Error detected.Error in ai.cns:1880Character mugenversion is older than this version of M.U.G.E.N.Error loading chars/ff3_0/ff3_0.defError loading p1Clipboard tail:Gameflow 9Gameflow 10Gameflow 11Loading match assets...Loading stage... Loading BG...OKStage loaded OKSetting game resolution 640x360...OK Allocating helpers...OKMatch RNG seed: 1803919904Reset persist vars team 0Reset persist vars team 1Loading character chars/ff3_0/ff3_0.def... Loading info...Info: cammy loading in pre-1.0 compatible modeOK Loading cmd command set AI-cammy.cmd...OK Loading cns cammy.cns...OK Loading cns aihelper2.cns...OK Loading cns ai.cns...Character ff3_0.def failed to loadSo when I go and check that line for the error it's...strange because I don't see anything that could possibly be an error:[State -1, ] ;<- This is line 1880type = ChangeStatevalue = 375triggerall = var(59) > 0 && roundstate = 2triggerall = p2bodydist y = [-50,73]triggerall = p2movetype != H || p2stateno = [120,159]triggerall = !inguarddist && p2statetype != Ltriggerall = random <= 30*var(59)triggerall = p2bodydist x = [0,54]triggerall = roundstate = 2trigger1 = statetype = Atrigger1 = ctrlignorehitpause = 0Any help/suggestions?
That's weird. I literally copied everything and pasted in a character coded for WinMUGEN, as you're using var instead of AILevel I suppose it is for WinMUGEN, I tested it in all versions of MUGEN and it doesn't give me any error message...
Hmmm...that IS odd...I'm using 1.1 so that might be the issue? I dunno what it could be that's making mine break specifically...
That is weird. Maybe you could try taking the “,” out of [state -1, ] . Sounds silly though.This is a ff3 error so maybe it’s specific about that, where mugen is not.
Since it's in a CNS,from what I've seen,Statedef -1 is not shared between the CMD nor any CNS's,so you need a new statedef -1 for every CNS or ST you want it in.(I think;i need to start fooling around with code:P)
ink said, July 28, 2019, 02:37:54 amIf that’s the case, wouldn’t renaming [state -1,] to something like [state n] fix this error?No. I just tested and it works normally, the number is irrelevant.
When I coded A.I on a CNS,it resulted with a very glitchy character each time.Though it went fine when I did it on the cmd.so,I doubt it,but I think the CNS corrupted your character.