[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:
Should be:
____________________________________________________________
File- scripts/server/projectile.cs
Once in each function.
This:
Should be:
____________________________________________________________
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.
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.
#2
The endGame() and subsequent startGame() problem still needs looking into... probably just a bad overload or parameter misname at fault.
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.
Torque Owner Aaron Scott Kingston
EDIT: Nevermind . . .