Frictional Games Forum (read-only)

Full Version: Game crashes when activating any enemy
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.

PHP Code:
    AddEntityCollideCallback("Player""BasementWeeper""BasementWeeper"true0);

void BasementWeeper (string &in asParentstring &in asChildint 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.
If possible, could you attach your hpl.log file? That will help much more than an error log, as it can help pinpoint errors within the game if that is where the error actually is.

In case you don't know, you can find the hpl.log file at:
C:\Users\<your_user>\Documents\Amnesia\Main\

Your code above looks correct; with that said, I don't know if there can be a space there between BasementWeeper and (string &in asParent... etc).
Alright, I'll attach the hpl.log to my main post.

As far as I'm aware, the space should be fine, there's one in just about every script in my mod and it hasn't caused any problems for me..

EDIT: This seems to be the relevant part of the hpl.log: "ERROR: Track 'servant_grunt_A_ikHandle1' in 'servant_brute.msh' does not have a corresponding bone! Skeleton bone name mismatch?"

No idea what it means or what to do about it.