Torque2D games on non-Torque 2D computers?
by Phillip "Renolc" Gibson · in Torque Game Builder · 03/31/2005 (6:01 pm) · 15 replies
I don't know if this is the right place for my question or not, but it seems closest relivant, so...
How exactly do you make a T2D game able to run on other peoples computers who don't own T2D? I assume something beyond just packing up the example folder (after removing appropriate files - editors, *.CS, etc.) since I have had some of my firends contact me saying that they couldn't get my game to work on their computers. Am I making any sense?
How exactly do you make a T2D game able to run on other peoples computers who don't own T2D? I assume something beyond just packing up the example folder (after removing appropriate files - editors, *.CS, etc.) since I have had some of my firends contact me saying that they couldn't get my game to work on their computers. Am I making any sense?
About the author
#2
If you pack it up (zipping it into an archive?) extract it to some temporary directory and try running the executable from there. The console.log should provide some information as to what is failing.
03/31/2005 (6:05 pm)
You are providing the executable, right? And leaving the .dso's? Other than that, I haven't packaged anything yet so I have no idea what pitfalls await.If you pack it up (zipping it into an archive?) extract it to some temporary directory and try running the executable from there. The console.log should provide some information as to what is failing.
#3
Basically make a copy of the example folder, drop your scripts in and edit the client.cs to read your scripts. When you're done, edit the client.cs file to remove the editors. Then, delete the editor folders and delete all .CS files in the folder. If you send that whole folder to your friends like that it should work.
That being said, the next T2D update should include a packaging application that will do all of that for you =)
03/31/2005 (6:06 pm)
Yep, just make sure that all your compiled scripts are included (.DSO) files. do NOT include your .CS scripts, as that violates the Licence agreement for the engine.Basically make a copy of the example folder, drop your scripts in and edit the client.cs to read your scripts. When you're done, edit the client.cs file to remove the editors. Then, delete the editor folders and delete all .CS files in the folder. If you send that whole folder to your friends like that it should work.
That being said, the next T2D update should include a packaging application that will do all of that for you =)
#4
Problem is that I have two friends (both of their computers meet T2D minimum requirements) telling me that they get some .dll error. But I was able to get the game to work on both my computer and my laptop. Only difference between my computers and my friends is that I have T2D and they don't. I thought maybe there was something I'm missing.
Hmm. Wonder what the problem is... Maybe I should wait for that 'pack for release' button. =P
03/31/2005 (6:11 pm)
Yes, yes. I know all the rules for distributing my game. =)Problem is that I have two friends (both of their computers meet T2D minimum requirements) telling me that they get some .dll error. But I was able to get the game to work on both my computer and my laptop. Only difference between my computers and my friends is that I have T2D and they don't. I thought maybe there was something I'm missing.
Hmm. Wonder what the problem is... Maybe I should wait for that 'pack for release' button. =P
#5
theres other things you can get rid too of course, like extra images, etc etc... but that wo uld mainly be for a final release :)
remember when you run it it compiles the .dso's for your OS, so if you want to run it on other OS' you'll have to run the exe with the script files on the right OS then distribute that version
03/31/2005 (6:13 pm)
I've only done it a couple times (for the physics demo) and you just wipe the .cs files and delete the tile and particle editor folders...theres other things you can get rid too of course, like extra images, etc etc... but that wo uld mainly be for a final release :)
remember when you run it it compiles the .dso's for your OS, so if you want to run it on other OS' you'll have to run the exe with the script files on the right OS then distribute that version
#7
If they are getting strange errors i'd first check the console log.. Then i'd verify thier directx or ogl drivers. The console.log should give you some good direction though.
03/31/2005 (6:19 pm)
There is no real T2D installation.. It isn't like DirectX or anything. It simply uses whats already installed for graphics be that Direct X, OGL, etc. So there really is no concept of one computer having t2d installed and one not. They both have your game installed and thats all that counts from the t2d perspective.If they are getting strange errors i'd first check the console log.. Then i'd verify thier directx or ogl drivers. The console.log should give you some good direction though.
#8
03/31/2005 (6:22 pm)
One thing I see in your distro is you didint' include the ogl 2 dx drivers. If your friends either dont' support straight OGL or are tryign to run it in DX mode it will fail because those drivers aren't there.
#9
03/31/2005 (6:25 pm)
That may just be the problem. Although after looking through my original (CS) version files, I can't seem to find that driver either. Is it the one that comes packaged with TGE?
#10
03/31/2005 (6:26 pm)
Hmm... well it seemed to work fine for me... even on this 600 Mhz Pentium III old machine... not bad little game :)
#11
03/31/2005 (6:28 pm)
I think it was for some reason not included in T2D and i'm not sure why. It is in TGE.. sec i'll loo up the files.
#12
03/31/2005 (6:30 pm)
Opengl2d3d.dll and glu2d3d.dll
#13
EDIT: ^what you said =)^
BTW - Thanks for all the help. I just love the T2D community. And thanks for the compliment Matt.
03/31/2005 (6:30 pm)
Never mind. I got them. There's 2 of them right? glu2D3D and opengl2D3D.EDIT: ^what you said =)^
BTW - Thanks for all the help. I just love the T2D community. And thanks for the compliment Matt.
#14
04/01/2005 (1:29 am)
One of the easiest ways to test if someones system can run your T2D game is to have them download and try the T2D demo's from GarageGames. If the Shooter and Fish demo's work, then your T2D game should work also. If it doesn't you've eliminated the possibility of their system not supporting T2D.
#15
04/01/2005 (5:58 am)
Ahh. I never thought of that. Great idea! =)
Torque Owner John Vanderbeck
VanderGames
Just distribute your executeable and scripts (compiled only of course). There isn't anythign special. Only snag might be that thier computer can't handle it :p