12-03-2013, 06:49 AM
This problem has been getting worse and worse for me. Whenever I set an enemy active in game (or rather, entering a Script Area that should set the enemy active), it crashes. Not the regular sort of crash you get when something is wrong with the script, but a full program crash. At first, it was only happening with my own custom enemies. Then a week later, it started happening with the suitors from Justine. Now, another two weeks later, it's occurring with every enemy in the game.
I'm sure nothing's wrong with the script, but I'll post it just in case.
I've also added the error log that is generated when the game crashes, but based on what I see when I open it, it probably isn't going to do any good.
I really need help, but I don't really know what else to give you at this point. If any of you have ideas on what to do OR how I can give you more information about the crash, please let me know.
I'm sure nothing's wrong with the script, but I'll post it just in case.
PHP Code:
AddEntityCollideCallback("Player", "BasementWeeper", "BasementWeeper", true, 0);
void BasementWeeper (string &in asParent, string &in asChild, int alState)
{
SetEntityActive("servant_brute_1", true);
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_156", 0.001f, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_163", 0.001f, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_171", 0.001f, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_177", 0.001f, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_181", 0.001f, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_186", 0.001f, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_192", 0.001f, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_239", 0.001f, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_248", 0.001f, "");
AddEnemyPatrolNode("servant_brute_1", "PathNodeArea_285", 0.001f, "");
}
I've also added the error log that is generated when the game crashes, but based on what I see when I open it, it probably isn't going to do any good.
I really need help, but I don't really know what else to give you at this point. If any of you have ideas on what to do OR how I can give you more information about the crash, please let me know.