Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Monster Disappears when assigned a new Agent class
A.M Team Offline
Banned

Posts: 811
Threads: 63
Joined: Sep 2014
#1
Monster Disappears when assigned a new Agent class

Hello,

I've recently found a bug that makes the entity disappear when given a different agent class. This class being a modified copy of the Infected_robot hps file. Put in my mod the way it is supposed to it shows in the HPL log of my mod this:

ERROR: Could not find class 'agent_saul' in module 'agent_saul.hps'. Error code: 'INVALID_TYPE'
ERROR: Could not create Agent 'servant_saul_1' of type 'Agent_Infected_Robot' because script was not loaded!

Any suggestions?
(This post was last modified: 04-13-2016, 07:43 PM by A.M Team.)
04-13-2016, 07:42 PM
Find
Abion47 Offline
Senior Member

Posts: 369
Threads: 22
Joined: Oct 2015
Reputation: 46
#2
RE: Monster Disappears when assigned a new Agent class

What were the modifications exactly?
04-13-2016, 08:50 PM
Find
A.M Team Offline
Banned

Posts: 811
Threads: 63
Joined: Sep 2014
#3
RE: Monster Disappears when assigned a new Agent class

Sounds. That's it.
04-13-2016, 08:58 PM
Find
Abion47 Offline
Senior Member

Posts: 369
Threads: 22
Joined: Oct 2015
Reputation: 46
#4
RE: Monster Disappears when assigned a new Agent class

...Could you be more specific? A lot of this stuff still falls under the category of it could be any one of a huge number of things.
04-13-2016, 09:02 PM
Find
A.M Team Offline
Banned

Posts: 811
Threads: 63
Joined: Sep 2014
#5
RE: Monster Disappears when assigned a new Agent class

const tString gsInfectedRobotSpotPlayerSound="monsters/saul/alert";
const tString gsInfectedRobotHearsSomething="monsters/saul/alert";
const tString gsInfectedRobotInvestigateOver="monsters/saul/idle";
const tString gsInfectedRobotGotAgressive="monsters/saul/hunt";

const tString gsInfectedRobotIdleSound = "monsters/saul/idle";
const cVector2f gfInfectedRobotIdleSoundMinMax = cVector2f(1, 10);

const tString gsInfectedRobotSearchSound = "monsters/saul/alert";
const cVector2f gfInfectedRobotSearchSoundMinMax = cVector2f(1, 10);

const tString gsInfectedRobotHuntSound = "monsters/saul/hunt";
const cVector2f gfInfectedRobotHuntSoundMinMax = cVector2f(1, 10);

That is it.
(This post was last modified: 04-13-2016, 09:06 PM by A.M Team.)
04-13-2016, 09:05 PM
Find
Abion47 Offline
Senior Member

Posts: 369
Threads: 22
Joined: Oct 2015
Reputation: 46
#6
RE: Monster Disappears when assigned a new Agent class

There must have been other things you've changed. The name of the agent class, for one, unless it's still called "cScrAgentInfectedRobot".

Well, the fact that it's not complaining about line numbers and such means it's probably not directly related to the code itself. It's odd that it's complaining about a module, though, since as far as I'm aware the AI classes aren't modules. If that's the case, though, then there's probably somewhere that you have to register your agent class in order for the game to recognize it.
04-13-2016, 10:03 PM
Find




Users browsing this thread: 4 Guest(s)