Author Topic: [FFVIII-PCSteam] Bug with Caterchipillar <Solved>  (Read 134 times)

Hazedge

  • Cool newbie
  • *
  • Posts: 60
  • Karma: 1
    • View Profile
Hey guys, after making my own AI with some monsters, I've encountered a pretty strange bug and hoped someone could explain whats going on and if there is some way to fix it.
When I changed the AI of Bite Bug, Caterchipillar got invisible during the fights hes included in the same group (its still present, doing attacks the way I wrote on its AI, but only the shadow showing up), like the one theres 1x Caterchipillar and 2x Bite Bugs in Balamb forest (near Fire Cavern). If I change the Caterchipillar AI nothing wrong happens, but changing Bite Bug's does happen.
Whats going on?

This is the code I wrote on Bite Bug's AI:
Code: [Select]
if (self.status == CONFUSION) {
    target(207)
    domoveid(0)
    return
}
if (self.varDC < 5) {
    self.varDC += 1
}
if (self.status == AURA) {
    self.varDC += 1
    return
}
if (self.varDC <= 2) {
    target(201)
    domoveid(0)
    return
}
if (self.varDC >= 5) {
    if (rand() % 1 == 0) {
        self.varDC = 0
        target(201)
        domoveid(2)
        return
    }
}
if (rand() % 1 == 0) {
    target(201)
    domoveid(1)
    return
}
else {
    target(201)
    domoveid(0)
    return
}

And this is Caterchipillar's:
Code: [Select]
if (self.status == CONFUSION) {
    target(207)
    domoveid(0)
    return
}
if (self.status == AURA) {
    self.varDC += 1
}
if (self.varDC < 5) {
    self.varDC += 1
}
if (self.hp < 4) {
    if (rand() % 1 == 0) {
        target(200)
        domoveid(4)
        return
    }
}
if (self.varDC < 4) {
    if (rand() % 1 == 0) {
        self.varDC += 1
        target(201)
        domoveid(0)
    }
    else {
        target(201)
        domoveid(1)
    }
    return
}
if (self.varDC >= 4) {
    if (rand() % 1 == 0) {
        target(201)
        domoveid(2)
    }
    else {
        target(204)
        domoveid(3)
    }
    if (rand() % 1 == 0) {
        self.varDC = 0
    }
    else {
        self.varDC = 1
    }
    return
}
self.varDC += 1
target(201)
domoveid(0)
« Last Edit: 2018-08-25 15:59:09 by Hazedge »

Sega Chief

  • No life
  • *
  • Posts: 2769
  • Karma: 167
  • These guys is sick
    • View Profile
Re: [FFVIII-PCSteam] Bug with Caterchipillar
« Reply #1 on: 2018-08-24 13:14:01 »
The AI editor has an issue where it doesn't seem to be terminating some AI groups properly, which results in visual corruption for other enemies. I think it'd be best to avoid editing random enemies that appear in groups for now and focus on solo enemies/bosses for now.

One thing you could try is editing the enemies for an area (Balamb area for instance, or fire cavern) and then editing the formations to test which can appear with others safely. The ones that can, pair them up. The ones that can't, isolate them from other enemy types.

Hazedge

  • Cool newbie
  • *
  • Posts: 60
  • Karma: 1
    • View Profile
Re: [FFVIII-PCSteam] Bug with Caterchipillar
« Reply #2 on: 2018-08-24 19:14:41 »
One thing you could try is editing the enemies for an area (Balamb area for instance, or fire cavern) and then editing the formations to test which can appear with others safely. The ones that can, pair them up. The ones that can't, isolate them from other enemy types.
That looks like a good idea, I have Cactilio_v0.2 but I would need to check out every enemy group to find the right one. Isnt there a list of enemy group I could check out instead of checking one by one?

Sega Chief

  • No life
  • *
  • Posts: 2769
  • Karma: 167
  • These guys is sick
    • View Profile

Hazedge

  • Cool newbie
  • *
  • Posts: 60
  • Karma: 1
    • View Profile
Re: [FFVIII-PCSteam] Bug with Caterchipillar
« Reply #4 on: 2018-08-25 15:58:52 »
Thank you very much! This will help me alot!