Game Development Community

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.

img20.imageshack.us/img20/7024/screenshot00100001iv8.jpgimg169.imageshack.us/img169/3117/screenshot00100002iw5.jpg
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.

#1
02/14/2007 (3:12 am)
The shadow is caused by the lighting kit.. so I found you will need to either change the source code or make sure the shadow wont show up.. I have it over lava with no opacity so it doesnt show.. or have it over another dts shape so the shadow wont show up.. I think it would be simple to change the source to make the shadow animated to follow the shape..
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
#2
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
12/25/2007 (4:19 pm)
Howard, this resource was written for tge 1.5.0
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. :)