Author Topic: Game Mode crashing  (Read 1784 times)

It seems like it only crashes when about 10 people come on and the minigame resets. I'm pretty sure Disease_LoadPlayerScores was causing the problem somehow, testing...



The helicopter crashed again, after "doing camera"
Code: [Select]
echo("doing camera");
%camera = %client.camera;
%pos = getWords(helicopter.getTransform(), 0, 2);
%pos = VectorAdd(%pos, "16.3826 -14.974 9.4074");
%camera.setTransform(%pos SPC "0.274232 0.114423 -0.954832 0.823959");
//%camera.setClampMode(helicopter, "16.3826 -14.974 9.4074");
%camera.setFlyMode();
%camera.mode = "Observer";
%client.setControlObject(%camera);
« Last Edit: March 05, 2014, 09:59:10 PM by Subpixel »

Code: [Select]
%pos = getWords(helicopter.getTransform(), 0, 2);
%pos = VectorAdd(%pos, "16.3826 -14.974 9.4074");
%camera.setTransform(%pos SPC "0.274232 0.114423 -0.954832 0.823959");

Look at this again until you see whats wrong

ShapeBase::getTransform does not crash the game.
Subpixel is not using invalid indices for getWords.
vetorAdd does not crash the game.
ShapeBase::setTransform does not crash the game.

Code: [Select]
%pos = getWords(helicopter.getTransform(), 0, 2);
%pos = VectorAdd(%pos, "16.3826 -14.974 9.4074");
%camera.setTransform(%pos SPC "0.274232 0.114423 -0.954832 0.823959");

Look at this again until you see whats wrong

I don't see it?



I made the camera just go to orbit mode last night, server's been up since. Crashing stopped.

I don't see it?
Code: [Select]
%pos = getWords(helicopter.getTransform(), 0, 2);

I think he means helicopter, but i'm gonna assume you have an object named that.

I think he means helicopter, but i'm gonna assume you have an object named that.
I'm not that stupid. helicopter is a FlyingVehicle object.