Game Development Community

Let a friend play a Torque game

by Raymond Clark · in Torque Game Builder · 01/09/2010 (10:09 am) · 12 replies

Hi all,

I was wondering how to allow a friend to play a game created in Torque. I tried to send the WhackaMole game to someone else and it said cannot open main.cs on the other computer. Did I miss something in sending it?

#1
01/09/2010 (10:32 am)
Sounds to me like you missed main.cs. ;-)

Seriously though, if you don't tell us what you did include, how are we supposed to know what you missed? Should we just guess?
#2
01/09/2010 (10:47 am)
I thought that when you create the game it makes an executable in the same folder. Then you take that one file and send it to whoever. I just sent the one file executeable that is created after you make the game.
#3
01/09/2010 (10:52 am)
when you create a game: Do you mean create the project in TGB or Build the Project?

Creating a project would only add a main exe to the project, which would not do much as all content and scripts are not part of it and without them it won't work.

if you are using build, do so to a distinct folder so you see all files copied along for you to package in a zip / installer
#4
01/09/2010 (10:57 am)
As @Marc said, you should build to a separate directory. You'll see that there are a lot of additional files you'll need to package up in addition to the .exe.
#5
01/09/2010 (11:01 am)
Ok. I sent the whole folder to the person and it worked. So there is no way of bundling it up into 1 file executable to send ?
#6
01/09/2010 (11:08 am)
Sure there is.

the easiest way normally is using something like the free 7zip. with it you can use a right click on the built project folder (so it does not contain uncompiled .cs files anymore) instead of your regular one, 7zip - add to archive and in there, decide to use a self extracting archive (sfx)

the user then only needs to doubleclick this compressed file and it will offer him an interface to decide where he wants to extra it too and thats it :)
#7
01/09/2010 (11:13 am)
You could bundle it into a single-file installer, if you're concerned with ease of packaging and distribution. I've had pretty good luck with Caphyon's tool for creating those. I use the "freeware" version, but the "advanced" features it lacks haven't (so far) been a problem for distributing Torque-based games.

If you're concerned with someone stealing your script code, you can uncheck the "include source code" option in TGB's build options. Most of your scripts will then be distributed as compiled .dso files instead of plain text .cs files.
#8
01/09/2010 (1:33 pm)
InnoSetup is pretty powerful, and 100% cheaper :)
#9
01/09/2010 (2:09 pm)
Cheaper than free? What do they do - pay you to use it? :-)
#10
01/09/2010 (4:04 pm)
Your suggestion has a free version and a trial with more power. InnoSetup is free FOREVER! Doesn't get more free than that ;)
#11
01/09/2010 (5:56 pm)
If you use InnoSetup also download the ISTool

Makes it worlds easier and really one of the best solutions.
I'm using it for my stuff too.
#12
01/11/2010 (8:35 pm)
Nullsoft is a good free installer system.