Game Development Community

Tweaker + Source Errors...

by CSMP · in Plastic Tweaker · 12/09/2009 (8:49 pm) · 7 replies

OK, just downloaded the Tweaker source and installed the Script & Source code and my first error was with the 'loadDir("plastic");' code inside the init.cs file... no problem I'll just add 'exec("plastic/init.cs");' instead... (seems like most of the files are exec'd inside of the init file anyway... right?)

Which takes me to the next/main problem:
plastic/ui/tweakPickerGUI.gui (0): Unable to instantiate non-conobject class GuiPlasticPickerCtrl.

This part just seems like it could be code inside of a default.cs or something that was not included.


the loadDir 'could' just be a local problem as I am using the MGSK scriptbase and may not have the actual loadDir function, but the other problem is something else entirely... hope I provided enough info.

Thanks again for releasing the source.

#1
12/09/2009 (9:08 pm)

IIRC correctly from the Tweaker docs, that is an optional part of the Tweaker that needs some Plastic Gems to be merged into your TGEA base.
#2
12/09/2009 (9:17 pm)
I'm using TGE though and it seems as if the program is not importing the files into the main UI correctly.(no controls at all)
#3
12/10/2009 (2:04 pm)
Please refer to This gem
#4
12/11/2009 (10:13 pm)
Ok, well installing that resource leads to errors because this resource is not installed:
http://www.torquepowered.com/community/resources/view/14863
Which leads to my next problem, there are referances to code pieces that do not even exist. (specifically Step#14 and beyond)

Edit: Ok, upon looking into this extra resource:
http://www.torquepowered.com/community/resources/view/14856
It seems that the non-existant code pieces were added through this resource, which leads to my question:
Would I have to install every piece of those 3 extra resources?
#5
12/11/2009 (11:15 pm)
OK, Installed all three resources and searched through the comments for the bug fixes and still nothing is showing up, I'm using TGE1.5.2.

Also the "News" is only showing up as html.
#6
12/14/2009 (7:15 pm)
Steps 14 refers to code from the Plastic Gem 2: Animation Threads. I would suggest reading all the Gems first before adding specific ones, mostly because they build off of each other and will teach you a lot about Torque programming.

What is not showing up? Remeber Ctrl + T calls up the tweaker

you can test to see if a function exists with something like

echo("Is echo a function" SPC isFunction(echo));


FYI = tweakPickerGUI is a support gui to get coordinates from the GUI and is not an essential part of the tweaker
#7
12/15/2009 (9:50 am)
Thanks for the response, it seems other then the initial News HTML source being displayed instead of the "Formatted Page", the problems were mainly me not having used Tweaker in a while, I had not been properly using it...

I read the Instructions and Tutorials again and I have the needed functionality.

Btw, I just commented out:
1. exec("./plasticShapeTrigger.cs");
2. "GuiPlasticPickerCtrl" Datablock
&
// > pg TGB TWEAK
   // NOTE: we must call method .actAsTool(true) on OUTPUT files under TGB
   //       as a FIX so those files do NOT end up in a temp folder!!!
   // start writing to the out file...   
   //%this.writeFile = new FileObject();
   //%this.writeFile.actAsTool(true); // <-- ADDED AS TGB FIX!!!
   //%this.writeFile.openForWrite(%writeFilename);
   // < pg TGB TWEAK

After correctly using the program these were the only 3 errors showing up in the console.(Don't think I need any of those functions)

After getting used to the program again I will start making modifications to further incorporate Tweaker into the engine/tools, I will be sure to let you know if I have any problems or suggestions while doing so.

Thanks again Anthony, Merry Christmas and Happy New Years. :)