Game Development Community

Sports car pack setup

by Arko · in Torque 3D Beginner · 12/12/2012 (4:35 am) · 9 replies

When getting the sports car pack and trying to use it with the Github Torque 3d, how much needs to be done to get the cars going?

Once I put the car in the game and give it the datablock that comes with the pack, what else needs to be done?

I just want a car that the character can approach, get in at the press of a button, and then drive around. As I'm fairly new to Torque, is there a step by step guide on how to do this if I buy the pack?

Anyone know of a video tutorial of this pack being used?

Thanks

#1
12/12/2012 (8:06 am)
i do not have car pack.so do not know if it already have provided with necessary nodes.

u can check yourself.

lots to write down on full and proper way to setup a completely new vehicles.a video will take much less time.but my net connection too poor for upload.

for now just do a hack.
open up a level in t3d.
press f6 to open datablock editor.

on datablock library's search box enter "DefaultCar".
under render catagory u will see "shapefile".
browse and select your car's model's body(dae/dts format).

save it.
now from world editor's library->scripted->vehicles add a DefaultCar in that level.save.
now play and mount on it.
#2
12/16/2012 (5:39 am)
Hi, thanks for that... Unfortuantely I don't have the DefaultCar datablock!

Is there somewhere I can download it? It doesn't seem to have come with my Torque3d (Github)
#3
12/16/2012 (6:22 am)
https://github.com/GarageGames/Torque3D/blob/master/Templates/Full/game/art/datablocks/vehicles/defaultCar.cs

https://github.com/GarageGames/Torque3D/tree/master/Templates/Full/game/art/shapes/buggy
#4
12/16/2012 (6:24 am)
"When getting the sports car pack"

which pack?
#5
12/16/2012 (8:18 pm)
Hello Arko,

I bought the Sports Car pack a few weeks ago and after following the instructions to install it everything worked fine in Torque 3D MIT.

However, there are some failures that need to be corrected if you want so, such as:

01. There is not any sound at all for the model, and the particle emission does not work.

02. There is not any light coming out from the vehicle's headlights, but brake lights will be turned on when the brake is engaged.

03. The vehicle's eye node (the one used by the first-person camera) is situated in front of the vehicle and not inside the vehicle. In fact, this is not a fault just a personal liking.

Furthermore, the Mount0 (the node which the player's character is mounted on inside the vehicle is very high, and consequently, the head of the player character gets out from the top of the vehicle.

04. The transparency of the glass of the vehicle is a bit hazy due to cube mapping to produce reflections in glasses; however, transparency can be easily adjusted by the user.

05. During game play by pressing the "V" + right mouse button you cannot look around using the camera in first person, for example at a road or street intersection; you will cannot see what comes from the sides of the vehicle or watching the landscape while driving the car.

06. The steering wheel of the vehicle is static; I mean it will not move when turning the vehicle from side to side.

07. It is difficult to keep the vehicle straight into a street or highway with the mouse; however, you might change some properties in the sports car data block to improve the car control. It is an adjustment by trial and error. Please note always before making any changes in your original file, make a backup of it, just in case anything goes wrong.

Regarding the player avatar gets in and gets out of the vehicle, everything works perfectly, no problems.

The quality of the car mesh and wheels are great and the textures have an outstanding quality as well, though inside the textures have a definition a bit lower.

In my opinion, it is worth buying the product because it is very nice.

Of course, the author could improve some points such as adding headlight's illumination, a steering wheel with animation, reversing lights, rear lights, improve the texture of the vehicle cockpit, adding some different sounds to the vehicle, making them destroyable among other things.

Hope this helps you in your purchase decision process.

Enjoy!
#6
12/20/2012 (1:28 am)
Thanks for the advice... I'm stuck on a basic problem though, when I put the defaultcar.cs in the datablock folder, it just never appears in the game's datablock editor.

Even trying to make a "new" one isn't working. Interesting experiences there Joao, you sound like you know your way around the torque engine, being able to identify and fix those problems. Maybe when I get the pack I'll have to pay someone like you to set it up for me lol.
#7
12/20/2012 (2:14 am)
Quote:
when I put the defaultcar.cs in the datablock folder, it just never appears in the game's datablock editor.
Did you exec the new script file?
#8
12/20/2012 (5:00 am)
arko,
r u trying to modify defaultcar (as i said above) from full template?
in that case u do not have to put the file(defaultcar.cs ).
it is already in there.
u just have to alter body shape with yours one.

open
art\datablocks\datablockExec.cs

and search for "exec("./vehicles/defaultCar.cs");"
if no then put it there.

if it is already there then in "defaultCar.cs" there is error that is why it was not compiled.
any error showing on console?



"I'll have to pay someone like you to set it up for me lol."
why pay!
it is a 15-20 minute task.
if u want to do the fix then send me "defaultcar.cs" and your "console.log".
i will fix that for free.
#9
12/23/2012 (8:37 am)
Hello Arko,

I did a short tutorial which maybe might help you to set up properly your defaultCar.cs file databock in Torque 3D. Below is the link.

http://dl.dropbox.com/u/64612150/DefaultCar_Issue.pdf


I hope this may be useful and help to solve your problem.

Cheers,