Advanced camera help
by Kyle Pickering · in Torque Game Engine Advanced · 10/18/2008 (11:14 am) · 5 replies
Hey all, i'm relatively new to Torque, and i've been following a resource to create an advanced camera (located here http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=5471 ). I a now stuck on the last part labelled "Script API".
I don't know where these lines of codes are supposed to go, anyone got any ideas?
Thanks!
I don't know where these lines of codes are supposed to go, anyone got any ideas?
Thanks!
About the author
#2
10/18/2008 (11:27 am)
Thanks!
#3
scriptsAndAssets/server/scripts/afxCamera.cs (0): Unable to Instantiate non-conobject class AdvancedCameraData.
any ideas?
10/18/2008 (11:45 am)
Okay, now I have everything copied into the correct places, but when i boot up the game i get an error in the console when loading objects in the mission.scriptsAndAssets/server/scripts/afxCamera.cs (0): Unable to Instantiate non-conobject class AdvancedCameraData.
any ideas?
#4
"The usual cause to this error message is, that you copied in the files but didnt add them to your project. Thus they didnt get compiled into the engine and the script cannot instantiate something that is not present
Check your project tree to add the files!"
I don't remember adding the files to my project other than copying and pasting. I believe the files in question are the ones downloaded from the resource and copied into the engine/sources file. How do I do this?
10/18/2008 (1:20 pm)
So i'm reading through the comments of that resource, and i come across someone who had the same problem as myself. this was the reply:"The usual cause to this error message is, that you copied in the files but didnt add them to your project. Thus they didnt get compiled into the engine and the script cannot instantiate something that is not present
Check your project tree to add the files!"
I don't remember adding the files to my project other than copying and pasting. I believe the files in question are the ones downloaded from the resource and copied into the engine/sources file. How do I do this?
#5
go to Solution Explorer
go to engine\T3D - (for example)
right click, add existing item
compile
10/18/2008 (9:41 pm)
You need to add the files in your project:go to Solution Explorer
go to engine\T3D - (for example)
right click, add existing item
compile
Torque Owner Ivan Mandzhukov
Liman3D
At the end of GameConnection::createPlayer(%this, %spawnPoint)