Game Development Community

Some infos about the Script

by Johnny Picciafuochi · in Torque 3D Professional · 08/24/2009 (4:50 am) · 7 replies

Hi, (first post here!!)

i need some infos on script:

Can script load a mesh?

I need to wirte a whole ai for my game, can i do it with script?

Where i can find some documentation of it (if is already avaiable)?

I tested it and tested the c++ source too, but c++ is quite slow to use (long time compiler..) so if always can be done with script i will be very happy ;)

Thanks for answer!

Aza

#1
08/24/2009 (6:53 am)
Hi, Johnny.

First off, when you compile Torque3D for the first time, it will take quite some time. After this initial compile though, it will only compile the changes you make rather than every single source file :)

As far as AI writing for your game, there are some pretty decent resources that can be found throughout the forums. Try searching for "Improved AIGuard" - I heard this can be ported directly into Torque3D, with the only changes applying to folder structures. I haven't done this myself yet, but I'd start there.

A forum user, deepscratch, got this working - so maybe he'll post here if you have anymore questions.
#2
08/24/2009 (7:02 am)
Well i already did my own ai, but it's writted on basic.
I am not quite good using visual c++, i know c++, so thanks for the advice.
Did i need to include some libs?

Now i need only to "solve" the 2 errors i found during the compilation..
Don't ask wich error because i don't have any log and i am working right now.

Johnny (or Aza as you prefer)

#3
08/24/2009 (1:49 pm)
When you get a chance you should post those errors.
#4
09/14/2009 (5:46 am)
Sorry for long time no answer..
Well i solved my problem about compilation (it was my fault)..
Where i can find some tutorials about c++ code?
I am TRY to work with torque3d but my head spinning around trying to search for the correct files.. (THERE ARE TOO MUCH!! ) ;)

I think i will open a thread to seek help.
#5
09/14/2009 (6:55 am)
There are no tutorials on working with the sources.

You can check out the TGEA documentation on the website + the documentation that comes with T3D on that topic but basically you need to be prepared to spend a few weeks fulltime with it to get a feel for how Torque works. Some things will be learnt easier and faster as T3d is better structured than previous torque techs, but its still a large amount of source and a lot of potentially unknown things if you are new which you will have to understand at least on the surface
#6
09/14/2009 (6:56 am)
Damn!
Well.. If there are no other solution..
#7
10/07/2009 (1:17 am)
i need to make you an avatar.