Hi. New to toque, confused on a couple of topics.
by Patrick Avella · in Torque Game Engine · 02/22/2004 (6:14 am) · 13 replies
The first topic, that is actually troubling to me, is that I can't figure out for the life of me how I would go about distributing a torque App. I love the release early release often beta testing model, and If someone could point me in the direction of a tutorial/guide it would be appreciated.
Second topic, when distributing an app, is it possible to turn off the editor (f10/f11) features? Granted I have no app yet, but most likely, I won't want people to have that type of access.
When I do distribute my app, will end users have access to my torque script? I read that it gets compiled into byte code, does this happen at runtime?
thanks for answers/help. Torque is huge indeed. I'd like to get past the learning curve so I can start making games :)
oh one more question. I don't want to use jedit... why is it recommended that I use a 'powerful text editor' for torque scripting? (I haven't actually edited any yet) I use a pretty nifty text editor called pfe32, but i don't know if it could be classified as 'powerful'.
Second topic, when distributing an app, is it possible to turn off the editor (f10/f11) features? Granted I have no app yet, but most likely, I won't want people to have that type of access.
When I do distribute my app, will end users have access to my torque script? I read that it gets compiled into byte code, does this happen at runtime?
thanks for answers/help. Torque is huge indeed. I'd like to get past the learning curve so I can start making games :)
oh one more question. I don't want to use jedit... why is it recommended that I use a 'powerful text editor' for torque scripting? (I haven't actually edited any yet) I use a pretty nifty text editor called pfe32, but i don't know if it could be classified as 'powerful'.
#2
@Kenneth:Can you describe how its possible a bit more, i'm so interested to know.
02/22/2004 (7:36 am)
Quote:"Second topic, when distributing an app, is it possible to turn off the editor (f10/f11) features?"
Yes, very easy.
@Kenneth:Can you describe how its possible a bit more, i'm so interested to know.
#3
02/22/2004 (8:18 am)
Take the "Editor" folder out of your game.
#4
02/22/2004 (8:26 am)
Also, is the 'example' directory an example of how you would distribute the app? Or does it have dependencies in the parent directory.
#5
In my game, I have "Client", "Shared", "Server". My scripts are separated so that only what's needed gets executed. If you want to log into a server, the Client and Shared are loaded. If you launch a dedicated server, the Shared and Server get loaded, and if you want to host and play at the same time, all 3 get loaded.
02/22/2004 (4:06 pm)
Example is just that. An example. You can use it the way it is, or change it to a format that is more suitable to your needs, or one that makes it easier for you to understand. Just keep in mind, as soon as you start changing directory names and structures, your going to break the scripts bigtime. Be prepared to do a lot of pathway cleanup if you go that route. Although if you're experienced in altering hundreds of scripts simultaneously, then it shouldn't be a problem and it wont take you long to get it fixed up your way.In my game, I have "Client", "Shared", "Server". My scripts are separated so that only what's needed gets executed. If you want to log into a server, the Client and Shared are loaded. If you launch a dedicated server, the Shared and Server get loaded, and if you want to host and play at the same time, all 3 get loaded.
#6
02/22/2004 (5:06 pm)
The example app has no dependencies in higher level folders. You can zip it up and ship it if you like.
#7
02/22/2004 (7:49 pm)
That's a good point Ben. In laymans terms Ben is saying you could copy/paste the Example folder to your desktop and run your game from there. Or you could Zip it and send to a buddy for testing. Also it's a good idea to work from a copy and not the original Example folder when editing the scripts or experimenting.
#8
I use Tribal IDE as well as jEdit. Use mainly Tribal IDE because I find it is easier and faster. ...Here is a link to it and other files for Torque developement.
03/05/2004 (8:57 pm)
@ PatrickQuote:oh one more question. I don't want to use jedit... why is it recommended that I use a 'powerful text editor' for torque scripting? (I haven't actually edited any yet) I use a pretty nifty text editor called pfe32, but i don't know if it could be classified as 'powerful'.Here is a link that explains more about why jEdit is recommended.
I use Tribal IDE as well as jEdit. Use mainly Tribal IDE because I find it is easier and faster. ...Here is a link to it and other files for Torque developement.
#9
03/05/2004 (9:54 pm)
Do a 'search in files' of type .cs and .gui for 'f10' and 'f11' and that'll show you were the editor binds get enabled etc. I moved these to the main.cs for my project, under a -editor command I added to the list (along with -dedicated and -mission etc). So to enable the editors, you make a shorcut with the -editor flag. (similar to how the show tool works)
#10
03/12/2004 (12:21 am)
I did but not found those bindings...
#11
03/12/2004 (12:32 am)
Ok, what your looking for is in "common\editor\editor.cs" down the bottom for the level editor, and in "common\ui\GuiEditorGui.gui" at the bottom.GlobalActionMap.bind(keyboard, "f11", toggleEditor); and GlobalActionMap.bind(keyboard, "f10", GuiEdit);These bind the keypresses to the action map, so that those functions (toggleEditor and GuiEdit) are called when the keys are pressed. To disable, either comment them out, or do what I said previously.
#12
03/12/2004 (12:38 am)
Oh... i found them at the last lines, thanks Dylan, good help.
#13
03/12/2004 (10:01 am)
@Gonzo: Crap, I know enough now that I don't speak in layman's terms? Heaven help us all... 0.o
Torque Owner Gonzo T. Clown
Yes, very easy.
"When I do distribute my app, will end users have access to my torque script?"
If you don't want them to access the script, then distribute precompiled .dso's.
"I don't want to use jedit"
Then don't. It is simply a choice that GG lists in case you want something more than Notepad or Wordpad. If you are happy with what you have, then that's what you should use.