SgExamples.cs fix
by mb · in Torque Game Engine · 10/29/2006 (12:40 am) · 3 replies
I copied all the example folders and merged my 1.4 into 1.5 and found that when I deleted or renamed the starter.fps directory the game cannot find certain elements. It turns out there were a few hard-coded paths that need to be changed. I dont know if the sgExamples.cs file is even needed but it has a few lines that use a path like:
addMaterialMapping("Wall_filler101m" , "detail: starter.fps/data/interiors/lightingPack/wall_detail");
which should be:
addMaterialMapping("Wall_filler101m" , "detail: ~/data/interiors/lightingPack/wall_detail");
theres a few lines like that in that file that need to be changed.
addMaterialMapping("Wall_filler101m" , "detail: starter.fps/data/interiors/lightingPack/wall_detail");
which should be:
addMaterialMapping("Wall_filler101m" , "detail: ~/data/interiors/lightingPack/wall_detail");
theres a few lines like that in that file that need to be changed.
#2
someone please tell me why it is doing this. all i did was copy the starter.fps directory. the files are in data/terrains/Winter/ .... etc, etc they are there its just adding the starter.fps to the path, and it shouldnt be doing this.
edit: its also adding TheGame/data/missions
TheGame is the name of the directory so it should only be:
TheGame/data/terrains/...
I searched the files for starter.fps and couldnt find it.
10/30/2006 (4:50 pm)
Heres a pic: http://arcadian.host.sk/errors.jpgsomeone please tell me why it is doing this. all i did was copy the starter.fps directory. the files are in data/terrains/Winter/ .... etc, etc they are there its just adding the starter.fps to the path, and it shouldnt be doing this.
edit: its also adding TheGame/data/missions
TheGame is the name of the directory so it should only be:
TheGame/data/terrains/...
I searched the files for starter.fps and couldnt find it.
#3
To fix this, all you need to do is replace every occourance of "starter.fps" in this file with "~" (the SHIFTed key next to "1" on a U.S. English Keyboard) and this should fix your problem. I'm sure the guys and (gals?) at GG have already added this to their "To-Do" list for the next release. ;-)
Let me know if you require any further assistance with this.
Thanks!
--David Quinn Ebert
--Co-Owner, Beyond-Technical Innovations, Ltd.
PS: There are 4 occourances of "starter.fps" in that file. ;-)
11/28/2006 (2:35 am)
Mb,To fix this, all you need to do is replace every occourance of "starter.fps" in this file with "~" (the SHIFTed key next to "1" on a U.S. English Keyboard) and this should fix your problem. I'm sure the guys and (gals?) at GG have already added this to their "To-Do" list for the next release. ;-)
Let me know if you require any further assistance with this.
Thanks!
--David Quinn Ebert
--Co-Owner, Beyond-Technical Innovations, Ltd.
PS: There are 4 occourances of "starter.fps" in that file. ;-)
Torque 3D Owner mb