Problem getting TGB game to work on Windows
by Jeffrey Sweeney · in Technical Issues · 08/09/2008 (7:24 am) · 4 replies
I'm a newbie with TGB, and am considering purchasing it to start out my gaming career. However, there is one problem that I would like to fix before getting it.
It seems that an executable build for Windows does not work on Windows. I choose file > build project, and choose Windows as a platform. However, when trying to run that game on a Windows machine, I get an error saying that Windows doesn't know what program to use. I am currently running Mac OS X 10.5.4, and I send files to Windows machines via flash drive. When I build it to run on macs, it works fine on other macs. Here's what I have tried so far:
* Opening the file on Windows 2000, XP, and Vista
* Changing the extension of the executable file to .exe
I'm sorry if this thread doesn't belong here, but I would be grateful if someone could tell me what I'm doing wrong.
It seems that an executable build for Windows does not work on Windows. I choose file > build project, and choose Windows as a platform. However, when trying to run that game on a Windows machine, I get an error saying that Windows doesn't know what program to use. I am currently running Mac OS X 10.5.4, and I send files to Windows machines via flash drive. When I build it to run on macs, it works fine on other macs. Here's what I have tried so far:
* Opening the file on Windows 2000, XP, and Vista
* Changing the extension of the executable file to .exe
I'm sorry if this thread doesn't belong here, but I would be grateful if someone could tell me what I'm doing wrong.
#2
First thing is that it's rather "so called building" then building in TGB. In fact TGB just copies some files (compiled scripts, GUIs, levels and binaries like fonts and images) to selected folder. Additionally - depending on your platform it copies Mac OS X executable folder (.app) or executable file and libraries (DLLs) under Windows. If You want to get universal package You should have exe file (from windows TGB version) with DLLs and Mac OS X's appication folder put together with common/, game/ and eventually resource/ folders and a very important file "main.cs". After creating cuch package You would be able to run Your game any OS You want (Windows/Mac OS X).
08/09/2008 (9:25 am)
@JeffreyFirst thing is that it's rather "so called building" then building in TGB. In fact TGB just copies some files (compiled scripts, GUIs, levels and binaries like fonts and images) to selected folder. Additionally - depending on your platform it copies Mac OS X executable folder (
#3
08/14/2008 (6:34 am)
Ok, I'm sorry about the late reply, but there's one more thing I need to know. Thanks so much for your reply World-Loom, I think everything gets copied that is needed for the Windows version, except for the .exe file. Now, when you say '.exe file from Windows TGB version', does that mean I need to get an executable file from the Windows TGB, and if so, do I only need that one file (say, I download TGB on my friend's pc, build a random game to run for Windows, and just copy that .exe file over to my game)?
#4
On the Mac, you can bundle the app with all its resources so you don't distribute what looks like a folder with an app and several folders inside. You do this by right-clicking the app (or ctrl-clicking if buying a real mouse is beneath you), choosing "Show Package Contents". A new window opens, showing the Contents folder. Navigate into that, and then into the Resources folder there. Copy the important folders into this location (common, game, resources and main.cs). You now have a neat and tidy game.app bundle with all you need, which can be placed in a DMG file for easy distribution and installation.
The above trick is also a reason why you would want separate packages for each platform. Another is statistics.
08/14/2008 (11:01 am)
You basically just need the .exe from the Win32 build, but might want to at least change the icon (best to do by replacing the icon file in Visual Studio).On the Mac, you can bundle the app with all its resources so you don't distribute what looks like a folder with an app and several folders inside. You do this by right-clicking the app (or ctrl-clicking if buying a real mouse is beneath you), choosing "Show Package Contents". A new window opens, showing the Contents folder. Navigate into that, and then into the Resources folder there. Copy the important folders into this location (common, game, resources and main.cs). You now have a neat and tidy game.app bundle with all you need, which can be placed in a DMG file for easy distribution and installation.
The above trick is also a reason why you would want separate packages for each platform. Another is statistics.
Sailendu Behera