Game Development Community

Active AI

by Randy Hearn (Magnum) · in Game Mechanics Kit · 10/23/2009 (1:16 am) · 5 replies

Got GMK installed in T3D and playing around. Having looked much into the code yet, but I created a new emptyroom.mis simply by hitting F11 placing one elfbot in and savings.

I call the game up hit F11 and go into the editor. The Elfbot is active in the editor and shooting me.

If I get killed while in the editor.. Of course the menu asks if I want to restart and I hit yes, it takes me back into the level and all of my objects are visible, but the Elfbot AI is no longer there.


#1
10/24/2009 (2:53 am)
ok.. Before I go much further also having an Issue with placing objects, like a AI bot. Saving and restarting the game and the bots are not there. So before I go to far or get to far invovled is anyone else having this issue.

If I need to I can do a video. I haven;t used GMK much only one install in TGEA and did not see this behavior and my last merge in T3D did not see this.

#2
10/26/2009 (11:58 am)
Hi Randy

Do you use T3D?

Have you check mission file (*.mis), are there code for AIBot creation?
#3
10/26/2009 (6:34 pm)
Yuri. yes. T3D 1.0.1 and GMK 1.2.5

I re-installed using T3D 1.0.1 and it seems now the only problem is the AIbots are there. They are just active and shooting when I load the level.

Since reloading, I have not experienced them disappearing:)

new AIBot(SpaceOrcBot01) {
      dataBlock = "SpaceOrcBotData";
      position = "3.51149 -21.1068 0.0190491";
      rotation = "1 0 0 0";
      scale = "1 1 1";
      canSaveDynamicFields = "1";
      Enabled = "1";
         attackingWithWeapon = "1";
         blockMovement = "false";
         category = "AI";
         damagePos = "3.80252 -21.0208 0.244073";
         editorIcon = "tools/LogickingEditor/images/AI";
         guardCloseDist = "3";
         guardFarDist = "5";
         Health = "100";
         invBlasterAmmo = "3000";
         Item = "HealthPatch";
         oppositeTeam = "players";
         ourTeam = "bots";
         perceptionEnabled = "1";
         readyToAttack = "0";
         shootingStarted = "0";
         templateName = "SpaceOrcBot";
         viewDist = "40";
   };


#4
10/28/2009 (11:51 pm)
@Randy
I was having similar problem with adding AIBots to level in T3D 1.0.1. and GMK 1.2.5 Would save level & restart (under GMK "save & restart" tab). If during play the AIBots were killed & I restarted game, no AIBots were there.

Checked mission file & AIBots were not found in the file, as if they were deleted.

Only way I could make it work was, when I restarted, I had to get completely out of the game...& restart from scratch...then no problem.

If during game play I would kill one AIBot & then, under GMK "replay level"...the AIBot that I killed previously would not be there.

#5
10/29/2009 (12:03 am)
yes. I am seeing the same thing. If you Alt-C and then select the Bot in the editor, you can look below the terrain and see the Bot falling away:)

I think it may be related to the same issue in this post...

www.garagegames.com/community/forums/viewthread/102269

But yes, if I exit the game and restart. It is there again.

Here is a vid of it.