Starter.racing car into starter.fps
by DizzyDoo · in Torque Game Engine · 06/28/2006 (9:52 am) · 9 replies
I've been trying a number of things to get the car from starter.racing into starter.fps as a can that you can jump in and ride around inside. Nothing i try works, and since i'm very new to torque i'm turning to people who aren't, which are you people. So, in plain English, how do you get that car into starter.fps?
Thanks in advance for any help!
Thanks in advance for any help!
About the author
#2
06/28/2006 (10:57 am)
Thanks, i've gone through it all, doing everything correctly but when i go up to my newly spawned vehicle it doesn't get it. I've commented out the zoom default, and a few notes in the comments pointed me too delete my config.cs, but that made no difference the same as the guy who had the same problem as me. Any help?
#3
If there's no errors in the console then the most likely problem spots are in the collision and mounting. If I remember correctly it won't mount if you're not colliding with the vehicle. Could be that some faulty logic slipped in there somewhere.
06/28/2006 (12:56 pm)
You need to make sure you delete the .dso's as well or the new key bindings won't take effect. Also make sure you haven't mapped that key to something else.If there's no errors in the console then the most likely problem spots are in the collision and mounting. If I remember correctly it won't mount if you're not colliding with the vehicle. Could be that some faulty logic slipped in there somewhere.
#4
add %obj.mountable = true; to add and create in car.cs
exec car.cs in game.cs , and add a buggy from the editor .
This works
For other mount and unmount functions you can search the forum .
06/28/2006 (1:37 pm)
Easiest way to test this is to copy the byggy from starter.racing ,copy the script car.csadd %obj.mountable = true; to add and create in car.cs
exec car.cs in game.cs , and add a buggy from the editor .
This works
For other mount and unmount functions you can search the forum .
#5
I have followed all of these resources and still I cannot mount, and still the console logs no errors.
Surely we need a driving/shooting starter kit?
08/09/2006 (11:15 pm)
*sigh* every time see this exact same question asked, or when I asked it myself, I see a different fix - every time.I have followed all of these resources and still I cannot mount, and still the console logs no errors.
Surely we need a driving/shooting starter kit?
#6
basically there are a couple small bugs holding you back or the code has been completely removed.
I have not looked in a while.
if you review the other thread I have given a response that should reveal exactly where the problem lies.
08/10/2006 (12:24 am)
Personally I think the fps script code should be supporting the vehicle mount indeed.basically there are a couple small bugs holding you back or the code has been completely removed.
I have not looked in a while.
if you review the other thread I have given a response that should reveal exactly where the problem lies.
#7
Object 'BuggyCar' is not a member of the 'GameBaseData' data block class
starter.fps/server/scripts/vehicle.cs (99): Register object failed for object (null) of class WheeledVehicle.
starter.fps/server/scripts/vehicle.cs (101): Unable to find object: '0' attempting to call function 'setEnergyLevel'
starter.fps/server/scripts/vehicle.cs (112): Unable to find object: '0' attempting to call function 'setTransform'
Set::add: Object "0" doesn't exist
what the heck am i doing wrong? when i press the "v"-button, i get that in the console...
(also wrote this in the vhiecle resource, but no answer, so i figured i try here too)
09/21/2006 (1:11 am)
Mapping string: AddCar to index: 4Object 'BuggyCar' is not a member of the 'GameBaseData' data block class
starter.fps/server/scripts/vehicle.cs (99): Register object failed for object (null) of class WheeledVehicle.
starter.fps/server/scripts/vehicle.cs (101): Unable to find object: '0' attempting to call function 'setEnergyLevel'
starter.fps/server/scripts/vehicle.cs (112): Unable to find object: '0' attempting to call function 'setTransform'
Set::add: Object "0" doesn't exist
what the heck am i doing wrong? when i press the "v"-button, i get that in the console...
(also wrote this in the vhiecle resource, but no answer, so i figured i try here too)
#8
carName.mountObject(playerName, 0);
09/21/2006 (2:05 pm)
To get in a car you could put this in a car's onCollision function.carName.mountObject(playerName, 0);
#9
Dan
09/26/2006 (11:08 pm)
@Alex - you are supposed to rename the buggy "car" according to the tut... what you've done is put Car after Buggy - just don't worry about renaming it at all... I left it as it was and it works fine. Hope that helps.Dan
Associate Scott Burns
GG Alumni