Game Development Community

[Bugs] 3 minor script errors with 2 fixes - LOGGED

by Twisted Jenius · in Torque 3D Professional · 12/13/2009 (4:54 am) · 3 replies

T3D 1.0.1 - Binary version, New Project using the Full template


File- scripts/server/gameCore.cs
Function- GameCore::onDeath()

This:
if (%damageType $= "Suicide" || %sourceClient == %this)

Should be:
if (%damageType $= "Suicide" || %sourceClient == %client)

____________________________________________________________

File- scripts/server/projectile.cs
Once in each function.

This:
%proj.origin

Should be:
%proj.sourceObject

____________________________________________________________

File- scripts/server/gameCore.cs
Function- GameCore::endGame()

The function endGame() isn't being called when you press escape and exit the mission. So $Game::Running is still set to true if you start a new mission without closing the game window entirely, and $Game::Running being true causes startGame() to return early.

About the author

Developer of The Universal AI Starter Kit, which is available in the Add-ons store on this site, and the game Twisty's Asylum Escapades.


#1
12/13/2009 (1:59 pm)
$Game::Running = true causes the NPCs in UAISK to unload when a new mission is started (or something like that)? Is that why all NPCs stop functioning after ending a mission then starting a new one?

EDIT: Nevermind . . .
#2
06/11/2010 (1:18 pm)
The suicide message and projectile origin/source typo has been fixed, so those looks good for next release.

The endGame() and subsequent startGame() problem still needs looking into... probably just a bad overload or parameter misname at fault.
#3
06/13/2010 (5:16 pm)
Logged as TQA-353.