rickr
12-23-2007, 09:34 PM
I have a couple issues I need some help with, any help would be appreciated.
A. How do you specify what GameInfo class to create at startup? I sort of hacked this by creating a placeable actor that sets WorldInfo.Game to my GameInfo derived class but this is unlikely the correct route. In fact I'm sure there is something wrong because if I do a 'obj list class=GameInfo' I get 2 listings one for my class and another for 'DemoGame' which means something still is holding a reference to the old one.
B. This question is really a compiler error that is not making much sense to me. I have a class that derives from GamePlayerController and in the default properties I have this code:
Begin Object Class=CylinderComponent Name=CollisionCylinder < ... snip >
The compiler complains that there already is a component named CollisionCylinder, which is true, there is in fact another component in a base class named the same what I don't understand is why this works for DemoGame? I just copied/pasted the code from there ...
Thank you.
A. How do you specify what GameInfo class to create at startup? I sort of hacked this by creating a placeable actor that sets WorldInfo.Game to my GameInfo derived class but this is unlikely the correct route. In fact I'm sure there is something wrong because if I do a 'obj list class=GameInfo' I get 2 listings one for my class and another for 'DemoGame' which means something still is holding a reference to the old one.
B. This question is really a compiler error that is not making much sense to me. I have a class that derives from GamePlayerController and in the default properties I have this code:
Begin Object Class=CylinderComponent Name=CollisionCylinder < ... snip >
The compiler complains that there already is a component named CollisionCylinder, which is true, there is in fact another component in a base class named the same what I don't understand is why this works for DemoGame? I just copied/pasted the code from there ...
Thank you.