Only three files.
by Yue -Rookie Torque 3D- · in Torque 3D Beginner · 09/05/2013 (6:40 am) · 12 replies
I have three files.
-Executable.exe
-Executable.dll
-main.cs
The idea is that someone help me with a pseudocode to start the project from scratch.
Greetings.
-Executable.exe
-Executable.dll
-main.cs
The idea is that someone help me with a pseudocode to start the project from scratch.
//Sample pseudocode Create window // Class Canvas // Next ... // Next ...
Greetings.
About the author
http://www.iris3d.tk -Games Studios- <<I do not speak English: I use the google translator>> My goal as a rookie is knowing Torque 3D
#2
Basically you need a GuiDefaultProfile and GuiToolTipProfile just so creating the Canvas doesn't fail. And even though there is no apparent functionality or world that exists you need to declare a RenderPassManager and set a LightManager. This is the absolute minimal that is required in order to have a T3D window that doesn't do anything.
09/05/2013 (10:47 am)
Here's my minimal main.cs:// Set the name of our application to be used later
$appName = "Base Template";
// Until the base GUI module is done, console feedback will be handled oldschool.
enableWinConsole(true);
// Gui Profiles will need to be filled out, eventually. These are the
// absolute minimal required for starting Torque and getting a window up
new GuiControlProfile(GuiDefaultProfile);
new GuiControlProfile(GuiToolTipProfile);
new GuiCanvas(Canvas);
Canvas.setWindowTitle("T3D - "@ $appName);
// The base client module will be everything necessary to initialize audio, gfx,
// postfx, lighting, networking, etc. These may be further broken down into
// individual modules.
//exec("client/init.cs");
new RenderPassManager(DiffuseRenderPassManager);
setLightManager("Basic Lighting");
// Modules that introduce functionality will come later
activateDirectInput();
GlobalActionMap.bindCmd("keyboard", "escape", "quit();", "");Basically you need a GuiDefaultProfile and GuiToolTipProfile just so creating the Canvas doesn't fail. And even though there is no apparent functionality or world that exists you need to declare a RenderPassManager and set a LightManager. This is the absolute minimal that is required in order to have a T3D window that doesn't do anything.
#3
[@Demolishun]
On the work of Daniel, really for me a novice like me feel very intimidated with the Sys directory
a greeting.
09/05/2013 (7:18 pm)
Thanks You Michael!! this is great for my learning process.[@Demolishun]
On the work of Daniel, really for me a novice like me feel very intimidated with the Sys directory
a greeting.
#4
09/05/2013 (7:41 pm)
Fascinating how fast you are in understanding and solving his cryptic questions all the time.
#5
I tried building up from Michael's script, and found it too difficult - so instead I worked backwards from a version of the Empty template. I couldn't figure out how to reduce the sys directory any more, so I left it there. Think of it as more 'core engine' code that just happens to be in scripts.
Or continue building up from the main.cs above! Whatever works for you.
Duion: I think Google Translate is doing a pretty good job actually ;P.
09/05/2013 (7:54 pm)
Yue: I'm not a novice and I'm completely terrified by the sys directory.I tried building up from Michael's script, and found it too difficult - so instead I worked backwards from a version of the Empty template. I couldn't figure out how to reduce the sys directory any more, so I left it there. Think of it as more 'core engine' code that just happens to be in scripts.
Or continue building up from the main.cs above! Whatever works for you.
Duion: I think Google Translate is doing a pretty good job actually ;P.
#6
What if I get scared as a rookie that I am is the Sys directory, because they still do not understand many things.
This is really sad, because I do not speak English and I'm in a process of understanding the script of torque, likewise appreciate the patience of many here, for your comments and examples are helpful me.
Edit: google translator is very bad, in receiving me translates to wheel.
On the example of Michael, it helps me because at least I have a starting point to put into practice handling exercises for objects and classes in terms of the basic script I'm over it. But it is really difficult to understand the documentation to translate.
The idea for now is to learn.
09/05/2013 (8:53 pm)
No Daniel, I'm not saying you're a newbie, I'm the rookie, my English is bad and the translator does not help me.What if I get scared as a rookie that I am is the Sys directory, because they still do not understand many things.
This is really sad, because I do not speak English and I'm in a process of understanding the script of torque, likewise appreciate the patience of many here, for your comments and examples are helpful me.
Edit: google translator is very bad, in receiving me translates to wheel.
On the example of Michael, it helps me because at least I have a starting point to put into practice handling exercises for objects and classes in terms of the basic script I'm over it. But it is really difficult to understand the documentation to translate.
The idea for now is to learn.
#7
Most of us only understand parts of the engine or small sections. It will take a lot of time to understand how things fit together. At the same time you will learn how game engines work.
09/05/2013 (9:46 pm)
@Yue,Most of us only understand parts of the engine or small sections. It will take a lot of time to understand how things fit together. At the same time you will learn how game engines work.
#8
I meant to say that I regarded it as a necessary evil. It's a tradeoff between removing all the unnecessary scripts, but still keeping good functionality in the engine.
09/06/2013 (12:55 am)
Yue: sorry, I wasn't correcting you! I was agreeing! You said you were a novice, and you were scared of the sys directory; I said that even though I'm not a novice, I'm still scared of it as well!I meant to say that I regarded it as a necessary evil. It's a tradeoff between removing all the unnecessary scripts, but still keeping good functionality in the engine.
#9
Now what I'm trying to understand is how everything works, it is like the border between c + + and script, a dark world, want someone to do a little manual to understand this at all.
09/06/2013 (12:35 pm)
I think this is crazy, the truth I'm not very fond of using the editor because not as much work for me is very fake take and drag the sun and put it and say nice, when in fact done nothing meritorious in order to understand how it is that this event happened to put a sun in the world.Now what I'm trying to understand is how everything works, it is like the border between c + + and script, a dark world, want someone to do a little manual to understand this at all.
#10
09/06/2013 (1:18 pm)
docs.garagegames.com/torque-3d/official/content/documentation/Scripting/Advanced...
#11
09/06/2013 (4:22 pm)
But that's the purpose of the editor; to make basic level editing easier so that you can spend more time actually making your game and less time figuring out how to put the sun where you want it.
#12
So my only plan at the moment is infraestuctura know about how to start from scratch with the three files, this really is a nightmare debidio my language limitations.
Then at the end I want to learn is to control the entire application will understand how shadows system, things like that.
09/06/2013 (4:28 pm)
@Richard're absolutely right, but my initial goal is not to make a game, I just am not able to do a project, ie take care of everything, but it would be something great in the future make me part of a development team, where each individual fulfills a specific task in view of a target.So my only plan at the moment is infraestuctura know about how to start from scratch with the three files, this really is a nightmare debidio my language limitations.
Then at the end I want to learn is to control the entire application will understand how shadows system, things like that.
Torque Owner Demolishun
DemolishunConsulting Rocks!