Game Development Community

Duplicate functions

by Matt Sanders · in Torque Game Engine · 03/22/2005 (7:07 pm) · 3 replies

I was having massive problems with the starter.racing example and started to look at the function calls that are made to start the game. I found that in the common folder in game.cs there are the same exact function names that are in the game.cs file in the server folder??? This really is confusing because this file is being executed. is there a logical reason for this or can I delete this.

My other question is regarding the problem I am having with the Racing example. When I started making changes to the mission through the world editor the count down now starts before you even see the mission? I was under the impression that this should not be executed until the mission was done loading.
any help is more then appreciated.

#1
03/22/2005 (7:26 pm)
The "common" folder is, as its name implies, just the basic code that in general would be common to most games. The stuff in starter.racing is specific to that game. The reason there are two games.cs files, one in "common" and one in "starter.racing" is because the one in "starter.racing" basicly overrides the common functions with its more specific ones.
#2
03/22/2005 (7:49 pm)
Ok so Does that mean I can just delete the common folder. because I have seen other things that I have used on other projects that were in the common folder.
#3
03/22/2005 (7:57 pm)
No, you can't. Not without a lot of work anyway. SOME of the stuff from common gets overwritten but no where near all of it. Most of it is still used. Just pieces here and there that are overwritten with more specific implementations.