GPGT Chapter 6 - Issues and Questions
by Edward F. Maurina III · in Torque Game Engine · 05/16/2006 (10:41 pm) · 29 replies
Hello All. This thread is dedicated to any questions or issues that you may find in this chapter.
If you have issues and questions for other chapters, please post them in the appropriate thread:
Chapters 1 & 2
Chapter 3
Chapter 4
Chapter 5
Chapter 6
Chapter 7
Chapter 8
Chapter 9
Chapter 10
Chapter 11
Chapter 12
Chapter 13
Chapter 14
GPGT Support Page
Appendix E. Maze Runner Lessons (Steps Only) - Covers Mac and Windows
OSX Executable - Use for GPGT Lesson Kit and MazeRunner
If you have issues and questions for other chapters, please post them in the appropriate thread:
Chapters 1 & 2
Chapter 3
Chapter 4
Chapter 5
Chapter 6
Chapter 7
Chapter 8
Chapter 9
Chapter 10
Chapter 11
Chapter 12
Chapter 13
Chapter 14
GPGT Support Page
Appendix E. Maze Runner Lessons (Steps Only) - Covers Mac and Windows
OSX Executable - Use for GPGT Lesson Kit and MazeRunner
About the author
Recent Threads
#22
11/27/2006 (12:42 pm)
Thanks again :D
#23
I checked the forum carefully to ensure I wasn't asking a question that had already been addressed. I hope I didn't miss anything.
I followed the directions in 6.3.6 Lesson #3, page 181:
copied the file coins.cs from \MazeRunner\Lesson_003\
into \MazeRunner\prototype\server\scripts\MazeRunner
then I edited the function onServerCreated in game.cs to look like the following, new code in bold.
Problem is when I load the mission and check the creator as suggested in Appendix E, section E.3.3,
there is no GameItems folder under Shapes. Any help is greatly appreciated as this has stopped my progress.
Sorry folks, answered my own question. While reading further in the chapter where it discusses "Coin Geometry" I noticed a path to the file coin.ms3d that I didn't have. So I copied from the CD.
Thanks
08/27/2007 (1:14 pm)
Ok,I checked the forum carefully to ensure I wasn't asking a question that had already been addressed. I hope I didn't miss anything.
I followed the directions in 6.3.6 Lesson #3, page 181:
copied the file coins.cs from \MazeRunner\Lesson_003\
into \MazeRunner\prototype\server\scripts\MazeRunner
then I edited the function onServerCreated in game.cs to look like the following, new code in bold.
Quote:
exec("./GPGTBase/loadGPGTBaseClasses.cs"); // MazeRunner
exec("./MazeRunner/coins.cs"); // MazeRunner
Problem is when I load the mission and check the creator as suggested in Appendix E, section E.3.3,
there is no GameItems folder under Shapes. Any help is greatly appreciated as this has stopped my progress.
Sorry folks, answered my own question. While reading further in the chapter where it discusses "Coin Geometry" I noticed a path to the file coin.ms3d that I didn't have. So I copied from the CD.
Thanks
#24
After placing a coin, when I try leaving the editor and return to moving through the map (F11), my player is locked in place. Mouse look movement works, but no WASD control. However, if I toggle (F10), I regain control of the player and can navigate fine. This happens while placing various objects (but not ANY object). Haven't seen a pattern yet.
I have the following runtime errors:
Is this a known quirk of the MissionEditor? Any ideas what is going on?
10/01/2007 (1:17 pm)
Lesson #3 (p.181)After placing a coin, when I try leaving the editor and return to moving through the map (F11), my player is locked in place. Mouse look movement works, but no WASD control. However, if I toggle (F10), I regain control of the player and can navigate fine. This happens while placing various objects (but not ANY object). Haven't seen a pattern yet.
I have the following runtime errors:
prototype/server/scripts/GPGTBase/Player/PlayerDataMethods.cs (48): Unable to find function newSimpleInventory prototype/server/scripts/GPGTBase/Player/PlayerDataMethods.cs (49): Unable to find object: '' attempting to call function 'setOwner' ... creator/editor/EditorGui.cs (878): Unable to find object: '' attempting to call function 'open'
Is this a known quirk of the MissionEditor? Any ideas what is going on?
#25
Unable to find parent object BaseItem for ItemData.
i was just wondering does anyone know how to fix this problem and please help i would love for someones answer at this point lol :)
06/26/2009 (11:35 pm)
Im having a lot of difficulties with chapter 6. Im on the part where you put the coin in the game i did exactly what the chapter said and copied the coins.cs off the cd and into the exact folder i needed and when i open the game and try putting in my game nothing happening i click on shapes-gameitems-coin and nothing appears in the game world but i did notice on the console it did say:Unable to find parent object BaseItem for ItemData.
i was just wondering does anyone know how to fix this problem and please help i would love for someones answer at this point lol :)
#26
Hi.
1. Can you tell me are you using the original disk, or the content found on my support site?
2. It sounds like you may have missed a prior step. The coin script is dependent on content you would have added in prior steps, and won't load properly if you don't have the content from those prior steps loading.
3. The updated disk (on site mentioned above) has a new appendix with 'summarized versions' of the lessons. I suggest you follow these steps as you go along. They are the most up-to-date and error free steps.
Cheers!
06/27/2009 (12:42 pm)
Jared,Hi.
1. Can you tell me are you using the original disk, or the content found on my support site?
2. It sounds like you may have missed a prior step. The coin script is dependent on content you would have added in prior steps, and won't load properly if you don't have the content from those prior steps loading.
3. The updated disk (on site mentioned above) has a new appendix with 'summarized versions' of the lessons. I suggest you follow these steps as you go along. They are the most up-to-date and error free steps.
Cheers!
#27
06/27/2009 (2:34 pm)
thank you so much for answering but anyway. i have bought the book so im using the original disk and i have read every page up to this point so i don't think that i've missed a step lol but i will check the site you gave me and get back with you and thanks again and by the way FANTASTIC BOOK!!! i finally understand scripting much more than what i did lol :)
#28
06/27/2009 (3:57 pm)
nevermind i figured it out but thank you so much for trying to help me i much appreiciate it. by the way your book has taught me so much on scripting and im finally getting the hang of making datablocks and making them work the way i want them too. ALL I WANT TOO SAY IS FANTASTIC BOOK!!!! 5/5 :)
#29
Hi. I'm glad you got that working.
Note: If you want to use the coin in your own projects, without including all the 'base' from MazeRunner, you should be able to change this line:
Of course, be sure to have the coin .dts and textures in your game and make sure this line points to where they are:
06/28/2009 (12:09 pm)
Jared,Hi. I'm glad you got that working.
Note: If you want to use the coin in your own projects, without including all the 'base' from MazeRunner, you should be able to change this line:
datablock ItemData( Coin : BaseItem )to look like this
datablock ItemData( Coin )
Of course, be sure to have the coin .dts and textures in your game and make sure this line points to where they are:
shapeFile = "~/data/MazeRunner/Shapes/items/coin.dts";
Torque 3D Owner Edward F. Maurina III
Roaming Gamer LLC
1. The variable you want to manipulate is: mCloakLevel
2. You should expose a new variable to script (let's call it mVariableCloak for now). To do this examine how the density variable is exposed. Specifically examine these methods (only partial names given):
ShapeBaseData::initPersist ...
ShapeBaseData::pack ...
ShapeBaseData::unpack ...
, looking for density in each.
3. Once you succeed, the variable will be available in the datablock.
4. Lastly, you'll want to use the mVariableCloak variable to set the value of mCloakLevel in the cloaking code. Right now, it is set to 1.0.
To get further clarification on exposing fields, you can examine these two links here on GG:
TDN Article
fxRenderObject Resource
I hope this helps get you started.
EdM|GPGT
Minor corrections and some obfuscation since this is a PUBLIC forum.