Tell me more ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I have been trying to make an npc in the Source Engine by following the SDK Docs tutorial and then using the npc_antlion.h/.cpp as a template for anything that wasn't clear. I've included my attempt below.

I wrote a single schedule and wrote most of the functions to either do nothing or simply rerun that schedule for simplicity. The schedule is taken from an npc_BaseZombie wander schedule.

When running a level with the given NPC added I get an Assertion in the CAI_Navigator::GetArrivalSequence() function (inside ai_navigator.cpp in server) at the following line;

    Assert ( sequence != ACT_INVALID );

I'm pretty sure it is because the variable "m_nPrimarySequence" is not being initialized correctly (see ai_blended_movement.cpp) but I don't know what in my code is missing/present that could cause that.

Any ideas would be much appreciated as I am in a big hurry to get this aspect of my project done for a final year college assignment.

King regards, Nevik.

(Had trouble adding the code, it can be found here http://forums.steampowered.com/forums/showthread.php?t=3058772)

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.