More Platforms, works in 1.5
by Cinder Games · 02/14/2007 (2:37 am) · 3 comments
Well i updated my psedo resource for platforms players can ride, it's now compatible with torque 1.5.
www.garagegames.com/mg/forums/result.thread.php?qt=57187
go here for a private thread to get the code
The same rules apply. it must be extracted into a stock torque 1.5 working directory.
It will overwrite any exisiting files.
add ../engine/game/pathshape.cc and .h to your visual studio project.
Compile.
Start torque.
Load the stronghold mission.
Theres two platforms in this area.
One acts as an elevator... BUT you must be very careful with this one. there's no collision checking if the player strikes a beam. it will cause issues. This isn't designed to be used as an elevator with vertical hazards like this. so it's there for demonstration purposes.
The other is on the lake.
They are setup to "start" moving on a collision with the player. you can change that however you feel.
For more information on pathshapes, check out the resource for them. however, i'm using a slightly modded version of it. i'd suggest reading the pathshape.cs file and even the source files.
No blog is complete without at least two relevant pictures.


Yes i see the odd shadow on the lake... don't ask me what's up with that.
This 1.5 is new.. so let me know if it doesn't work like it should.
www.garagegames.com/mg/forums/result.thread.php?qt=57187
go here for a private thread to get the code
The same rules apply. it must be extracted into a stock torque 1.5 working directory.
It will overwrite any exisiting files.
add ../engine/game/pathshape.cc and .h to your visual studio project.
Compile.
Start torque.
Load the stronghold mission.
Theres two platforms in this area.
One acts as an elevator... BUT you must be very careful with this one. there's no collision checking if the player strikes a beam. it will cause issues. This isn't designed to be used as an elevator with vertical hazards like this. so it's there for demonstration purposes.
The other is on the lake.
They are setup to "start" moving on a collision with the player. you can change that however you feel.
For more information on pathshapes, check out the resource for them. however, i'm using a slightly modded version of it. i'd suggest reading the pathshape.cs file and even the source files.
No blog is complete without at least two relevant pictures.


Yes i see the odd shadow on the lake... don't ask me what's up with that.
This 1.5 is new.. so let me know if it doesn't work like it should.
About the author
#2
pathShape.cc
Deprecated: lightManager.h is deprecated and will be removed in the future. Replaced by lightingSystem/sgLightManager.h
../engine\sim/sceneObject.h(665) : error C2146: syntax error : missing ';' before identifier 'smAmbientLight'
../engine\sim/sceneObject.h(665) : error C2501: 'smAmbientLight' : missing storage-class or type specifiers
05/03/2007 (5:05 pm)
I get this error:pathShape.cc
Deprecated: lightManager.h is deprecated and will be removed in the future. Replaced by lightingSystem/sgLightManager.h
../engine\sim/sceneObject.h(665) : error C2146: syntax error : missing ';' before identifier 'smAmbientLight'
../engine\sim/sceneObject.h(665) : error C2501: 'smAmbientLight' : missing storage-class or type specifiers
#3
There were a few changes between that and 1.5.2
What I did was to use winmerge to merge the lightmanager files with the sgLightManager and it works properly. Just make sure to copy over ONLY the pathshape code.
It works a treat. :)
12/25/2007 (4:19 pm)
Howard, this resource was written for tge 1.5.0There were a few changes between that and 1.5.2
What I did was to use winmerge to merge the lightmanager files with the sgLightManager and it works properly. Just make sure to copy over ONLY the pathshape code.
It works a treat. :)
Torque Owner Tom Feni
But i have no idea how to start.. :)
It seems people are having problems with pathshape not showing up because they forget to add the source files to their project in the compiler.. hence the conobject fail to init.. I know because I did the same thing :)
TomFeni