Game Development Community

Errors while implementing layer based traversability

by Jinnie Ong · in Torque 3D Professional · 09/16/2009 (4:23 am) · 2 replies

Link to resource: http://www.garagegames.com/community/resource/view/17423

First off, thanks for the wonderful resource!

I've got a problem getting it to work in my project though. From the file locations, I'm guessing this is based on an earlier beta of T3D. In beta 5 (which I'm currently using), trying to compile the changes gives me two errors:

1) In terrmaterial.cpp

'TerrainMaterial' : illegal member initialization: 'mDetailScale' is not a base or member.

A hack would be to just declare it, but I'm not too sure if that'll have repercussions down the line.

2) In shapebase.cpp

'getMaterialIndex' : is not a member of 'TerrainBlock'

WaterBlock and some other terrain features seem to have their own implementation of getMaterialIndex; only TerrainBlock seems to be missing it.

Thanks!

#1
09/16/2009 (4:18 pm)
@Jinnie: I'll take a look at it in about 2 hours, and reply in the original resource's thread, so its easier to access this information for other developers.
#2
09/16/2009 (11:00 pm)
Thanks Konrad, looking forward to your reply!