Weird AI behaviour 3733 8

O temacie

Autor Vic7im

Zaczęty 1.09.2016 roku

Wyświetleń 3733

Odpowiedzi 8

Vic7im

Vic7im

Użytkownicy
posty84
Propsy92
Profesjabrak
  • Użytkownicy
Hello everyone, I was playtesting my mod this morning and I noticed something REALLY bad. NPCs don't react to damage anymore.
Cavalorn was attacked by goblins, he kills the FIRST one that attacked him, then he simply stops, he doesn't turn on the others.

I have no idea what's causing this, what could it be possibly related to? Which are the scripts that are usually called by Npcs to react to monsters/enemies?

Also, sheep aren't following their routines either, and yet again I have no clue why.

Thank you all for the answers and sorry for writing in english, have a nice day!
 


Vic7im

Vic7im

Użytkownicy
posty84
Propsy92
Profesjabrak
  • Użytkownicy
Yeah, I've been toying around with perceptions. Now I've dug around more in-depth and I notice that Cavalorn REACTS to damage, doesn't attack first. So the problem must be in the Perceptions file or.. or?

I'll post the different scripts to see if there's something wrong with it. The only thing I've added is a new perception that plays when they catch you stealing, but that's all.
 

inż. Avallach

inż. Avallach

Administrator
posty7661
Propsy5239
NagrodyV
ProfesjaProgramista
  • Administrator
It's best to keep your scripts in source code repository, with history going all the way to original scripts.
Then you could just generate and analyze diff.

Do you know basics of Git or SVN or at least some diff tools?

Vic7im

Vic7im

Użytkownicy
posty84
Propsy92
Profesjabrak
  • Użytkownicy
Zero knowledge, unfortunately.
 


Vic7im

Vic7im

Użytkownicy
posty84
Propsy92
Profesjabrak
  • Użytkownicy
 


Vic7im

Vic7im

Użytkownicy
posty84
Propsy92
Profesjabrak
  • Użytkownicy

Vic7im

Weird AI behaviour
#8 2016-09-01, 16:48(Ostatnia zmiana: 2016-09-02, 08:44)
Try WinMerge - it will show you which scripts you have changed and what have you changed exactly in them. In can help more if you will have problems with using it.

Thanks man, cheers. I've uncovered more stuff in the meantime. Using original G2 scripts everything works fine (well, duh), but when I add the AST.dll file, goblins have a different ID and don't percieve anything (no damage, no enemies, nothing). I think that's where the problem is, since I've done NOTHING but add the AST core scripts to the vanilla ones.

Soo, I think it's them, I'll work around that. Thanks anyway :)

Post połączony: 2016-09-02, 08:44
Fixed, started over and replaced the wrong scripts, can close mods! Thank you Avallach!
 


0 użytkowników i 1 Gość przegląda ten wątek.
0 użytkowników
Do góry