Chapter 3 Turnshape error
by Donald "Yadot" Harris · in Torque Game Engine · 11/20/2005 (8:44 pm) · 7 replies
When ever I run the exec("CH3/turnshape.cs"); command I get this error
Unable to instantiate non-datablock class item
I have checked the code and I think I typed it in ok. Has anyone get the answer to this? or any suggestions?
Unable to instantiate non-datablock class item
I have checked the code and I think I typed it in ok. Has anyone get the answer to this? or any suggestions?
#2
11/21/2005 (9:47 pm)
Lol thanks for the PEP talk. Are you using the full version or are you still running with the Demo. I often wonder how it would be with an actual debug version.
#3
C:\3DGPAi1\CH3\data\interiors\evil1\fairfax (entire directory and contents)
to
C:\3DGPAi1\fps\data\interiors\evil1 (inside this directory)
I have made it my mission to make every example work before going onto the next one. So far so good but I still have a lot of examples to go! At least I am getting lots of debugging experience :)
11/21/2005 (10:33 pm)
I am still working with the version from the book. I am just going to stick with whatever the book has until I finish it. Then I will go into the full version. The book author has put together a whole lot of stuff and it's all ready to go. Too bad it has so many errors. I just found another error while going through chapter 8. One of the structures didn't load because it didn't exist in the right directory. So I did a search for it and moved the directory to the right place. So for future reference, I had to copy:C:\3DGPAi1\CH3\data\interiors\evil1\fairfax (entire directory and contents)
to
C:\3DGPAi1\fps\data\interiors\evil1 (inside this directory)
I have made it my mission to make every example work before going onto the next one. So far so good but I still have a lot of examples to go! At least I am getting lots of debugging experience :)
#4
12/01/2005 (7:21 am)
So I fixed the one issue but my heart still wont sit and spin! Does anyone by chance have a finish proven turnshape.cs file I can veiw so I could compare it to mine and see what I have done wrong?
#5
12/01/2005 (7:42 pm)
Check the CD that came with the book. Browse around (or search) and find the turnshape file that is used there. All the examples in the book are also on the CD in completed form. It seems that they are all not exactly the same as what is in the book but it should give you a good idea.
#6
12/01/2005 (8:18 pm)
Why does the book have so many flippin' errors...
#7
12/02/2005 (7:12 am)
I give up... Maybe I was to tired but I still could not get it to work correctly I am getting way to many stuperfolous errors. And yes stuperfolous is a word I made up to show my frustration. :)
Torque Owner Michael Errico
I was able to get the program to work ok after fixing a few typos that I made. I honestly think that is what happened. Sometimes it's really hard for me to find some typos because my eyes just seem to keep glancing over them. I would say go over it line by line and check all the spelling.
This is my first time using a scripting language and I am not sure I like it very much. I am used to C/C++ where you declare all of your variables at the beginning. Then when you happen to make a typo the compiler will catch it every time. With this script the compiler actually thinks your typos are new variables and doesn't complain at all. I am finding this extremely hard to debug. Just wait until chapters 5 and 6 where you get to type in several hundred lines of code. You can't find out where your bugs are until the VERY END when you try and run it! I swear if you can get through those chapters you can get through anything. Actually, I can't attest to that statement because I am only on chapter 8. I am crossing my fingers though and hoping that the other chapters won't be as bad.
Mike