Game Development Community

Does 2D game engine work on mac?

by Byron Qian · in Torque Game Builder · 12/30/2009 (6:20 am) · 9 replies

I tried the fish game tutorial, which is not working on my mac OS system.
But when I move the project to the windows system, it is working well.
Is there some additional operationa on mac os or just not working on this system?

#1
12/30/2009 (7:36 am)
Yes it works on mac.
sure you are trying to start the right application there in your project folder?
#2
12/30/2009 (7:46 am)
Yes, I think I got everything right.
At first, I thought that it doesn't work because of trial version. And then I bought it and registered it, but it is still not working. when I move the folder of fish game to desktop pc. It is working well. :(
#3
12/30/2009 (8:23 am)
What do you mean by it not working? Is it not running, is it opening a window but not doing anything? Can you give us anything specific to help us try to help with the issue?
#4
12/30/2009 (8:42 am)
In the second step, I write the script to make the fish moving by pressing keyboard. The program can run, but the fish doesn't reply when I press keyboard. The script which I write is not compile as well.
#5
12/30/2009 (8:52 am)
Can you give us a copy of the log file it creates when you run it on the Mac?

-Edit-
Since you're saying the fish just doesn't respond, I'm assuming that it is showing up properly. If you can't find the console file (should be console.log), or if it isn't being created, press the tilde (` or ~) key to open the console window, and you should be able to copy the text or get a screenshot for us.

Basically, the console log here would really help us discover the issue.
#6
12/30/2009 (10:33 am)
Torque Game Builder (v1.7.4) initialized...
Loading compiled script /Users/apple/sqian/MyFishGame/resources/fishArt/resourceDatabase.cs.
% Game Resources : Loaded Resource fishArt
Loading compiled script /Users/apple/sqian/MyFishGame/game/managed/datablocks.cs.
Loading compiled script /Users/apple/sqian/MyFishGame/game/managed/persistent.cs.
Compiling /Users/apple/sqian/MyFishGame/game/managed/brushes.cs...
creating path /Users/apple/sqian/MyFishGame/game/managed/brushes.cs.dso
Loading compiled script /Users/apple/sqian/MyFishGame/game/managed/brushes.cs.
Loading compiled script /Users/apple/sqian/MyFishGame/game/gameScripts/datablocks.cs.
Loading compiled script /Users/apple/sqian/MyFishGame/game/gameScripts/guiProfiles.cs.
Loading compiled script /Users/apple/sqian/MyFishGame/game/gui/mainScreen.gui.
Loading compiled script /Users/apple/sqian/MyFishGame/game/gameScripts/game.cs.
Compiling /Users/apple/sqian/MyFishGame/game/gameScripts/player.cs...
/Users/apple/sqian/MyFishGame/game/gameScripts/player.cs Line: 1 - parse error
>>> Advanced script error report. Line 1.
>>> Some error context, with ## on sides of error halt:
\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf270
##{##\fonttbl\f0\fmodern\fcharset0 Courier;}
{\colortbl;\red255\green255\blue255;}
\paperw11900\paperh16840\margl1440\margr1440\vieww9000\viewh7200\viewkind0
\deftab720
\pard\pardeftab720\ql\qnatural

\f0\fs24 \cf0 function PlayerFish::onLevelLoaded(%this, %scenegraph)\
>>> Error report complete.
#7
12/30/2009 (10:37 am)
For the player.cs file, I just copy everything showing in tutorial.
#8
12/30/2009 (10:47 am)
Your player.cs file is saved as RTF, not plain text. If you're using TextEdit, click the "Format/Make Plain Text" menu item before saving your file.
#9
12/30/2009 (11:13 am)
oh! Yeah, it is working now. really appreciate! :)