Game Development Community

Package problem

by Drew -Gaiiden- Sikora · in Torque Game Builder · 06/29/2006 (6:29 pm) · 0 replies

I'm using packages to define my game functionality - each game mode is a package that implements the game mode on top of the basic gameplay. A package is activated when the game starts and deactivated when it's done
// in game load
eval("activatePackage(" @ GameData.getData("game type", GameData.gameType, $TEXT_FIELD) @ ");");

// in game unload
eval("deactivatePackage(" @ GameData.getData("game type", GameData.gameType, $TEXT_FIELD) @ ");");
seems pretty straightforward to me but when I end the game (not exit the app) and start a new one with a new game type it doesn't work. Here's my log output:
activating package Conquest
deactivating package Conquest
activating package Domination
GalaxyConquest/scripts/game/packages/conquest.cs (20): Unknown command startGame.
GalaxyConquest/scripts/game/packages/conquest.cs (51): Unknown command runGame.
For some reason the game still looks for the Conquest package. So what am I missing?