Game Development Community

GPGT - New Appendix For OSX Users

by Edward F. Maurina III · in Torque Game Engine · 07/19/2006 (12:51 am) · 14 replies

Hello folks. It was brought to my attention that OSX users are having a dickens of a time getting the Maze Runner Lessons to work.

I started to investigate this and immediately I found that the OSX demo cannot be used as part of the lessons. Additionally, the instructions I gave are only useful to Windows users.

To resolve this problem I have added an "Appendix E". This appendix is similar to Appendix C but designed for OSX users. This document is still a work in progress, but I am going to make it available immediately because some of you have been waiting too long as it is.

I'll be working over the next few days to get the OSX issues resolved and to answer the (several) outstanding threads/questions that folks have posted.

You can download the new appendix here.

You can also download a working copy of MRA for OSX here. (THIS FILE IS CORRUPT; I will upload a new copy today)


If you encounter any problems with either the new appendix, or MRA, please post them to this thread and I will attend to them swiftly (more so that lately).

www.hallofworlds.com/how.ico Hall Of Worlds - For Gamers
EdM|GPGT

#1
07/20/2006 (6:48 am)
Ed,

I downloaded a fresh copy of TorqueGameEngineSDK-1-4u.tar and unarchived it to get the latest Torque SDK (to make sure I had a clean application and files to work with.
I downloaded the "Appendix E" and started following the directions but, immediately ran into a wall near the beginning.

E.0.2
1. I made a copy of "RunDemo.command" and changed the name to "cleanup.dso".
When I try to open it, by double-clicking on "cleanup.dso", it changes to "cleanup.dso.command". This is a TerminalShellScript. It opens a Completed Command in Text Editor with the following and then launches the Demo:

Quote:Last login: Wed Jul 19 21:27:29 on ttyp1
/Game\ Development/Zip\ Files\ -\ Archived/Torque\ SDK/example/RunDemo.command; exit
Welcome to Darwin!
G5-2:~ Ken$ /Game\ Development/Zip\ Files\ -\ Archived/Torque\ SDK/example/RunDemo.command; exit
started in directory: /Users/Ken

Thanks for using the Torque Game Engine!
The Torque Demo Application has finished running.
You may close this Terminal window at any time.
logout
[Process completed]

This is nothing like the script that you indicated in E.0.2 - 2
Quote:
#!/bin/bash

# if launched from the finder, we'll not be in the correct directory.

etc. etc. etc.


Will I get the proper results by entering the script need into my text editor and create a file named "cleanup.dso", or do I need the terminal connected to this script?
#2
07/20/2006 (12:55 pm)
@Kenneth - Thanks for giving this a look and a try.

Golly, I'm a goofball, that should have been:

Change the name to "cleanup.command"

I think I had DSO stuck in my brain. Note: Don't worry about the DSO cleaner for now. I'll supply something better than that as I move along.

Just so you know, your request has helped me move my schedule ahead on some other things. I was going to purchase a Mac later this year (or early next year) for doing porting work on other projects, but since I obviously did a poor job of preparing this sample material for the OSX crowd, I went out and got a Mac dev platform last night.

Actually, its more like a 'porting platform'. I got one of those new Mac-Mini Core Duo models. I'll be taking a very close look at the lessons, the GPGT Kit, et al. over the next few days and probably well into next week.

For now, please skip the DSO cleaner, and just do as you've already done, use the SDK as a starting point.


Now... I hate to say this, but it is very likely that you may experience more problems in the very first lesson. Specifically, loading the prototype mission might crash the game. Like I said in a prior post, I've been trying to do this work on my Wife's old iMac so I can't be sure if it was her machine or my work.

Whatever the case, you've started me down a new path and I'm quite excited about getting this all working properly under Mac. Cross-platform, woohoo!

I'll be updating this thread daily to keep you and the other readers up to date. Thanks for your patience so far!

www.hallofworlds.com/how.ico Hall Of Worlds - For Gamers
EdM|GPGT
#3
07/20/2006 (7:57 pm)
@Ed - Let me know if it is more helpful to you, for me to back off until next week, or venture ahead and post the points where I get stuck. I don't want to be a pain in the arse :)
#4
07/20/2006 (10:49 pm)
@Kenneth - I suggest forging ahead, but if you find something that really doesn't work assume it is in fact broken (this is opposite the advice I usually give) and then feel free to let it sit.

Also, if you do find a problem, please let me know page/step and maybe a short 'signature'.

Just don't bash yourself if this is still buggy. I'm taking full responsibility for problems until I've got the kinks worked out.

Thanks!

www.hallofworlds.com/how.ico Hall Of Worlds - For Gamers
EdM|GPGT
#5
07/26/2006 (7:29 pm)
Hello again! I'm making great progress on this work. Here is my 'To Do' list w/ current status:

- Create clean MAC OSX version of Torque Execute (DONE)

- Test GPGT Lesson Kit w/ Executable (DONE)

- Test Maze Runner Advanced w/ Executable (DONE)

- Create Maze Runner Lessons 'Starting Point' (for users w/o SDK) (DONE)

- Test all lesson steps and update Appendix E to reflect steps (IN PROGRESS)

- Get users to test results

- Release new materials and appendix

~~~~~~~~~~~~~~~~~~~~~

As you can see, I'm almost done. In fact, I'm going to try to get this out to testers tonight.


www.hallofworlds.com/how.ico Hall Of Worlds - For Gamers
EdM|GPGT
#6
07/26/2006 (10:35 pm)
Alright, I'm calling it a night. I'm still updating the appendix.

www.hallofworlds.com/how.ico Hall Of Worlds - For Gamers
EdM|GPGT
#7
07/28/2006 (10:04 pm)
It occured to me that I mis-posted this to the wrong thread. Sorry for the double-post folks.

In case you missed my recent blog, the OSX fixes are ready for use.

First, get the new appendix here.


Second, get the OSX Starter. You'll need this if you're using OSX.


Third, if you wish, you can get a copy of the OSX Executable for use with both the full copy of the 'GPGT Lesson Kit' and 'Maze Runner Advanced'. Instructions follow:

To use this with the 'GPGT Lesson Kit',
1. Copy the 'GPGT LessonKit' folder off the CD onto your hard drive.
2. Unzip OSX Executable into this new folder.
3. Double Click 'Torque Demo OSX'

To use this with 'Maze Runner Advanced',
1. Copy the 'MazeRunnerAdvanced' folder off the CD onto your hard drive.
2. Unzip OSX Executable into this new folder.
3. Double Click 'Torque Demo OSX'


www.hallofworlds.com/how.ico Hall Of Worlds - For Gamers
EdM|GPGT
#8
08/06/2006 (4:11 pm)
Edward -- I've tried downloading OSXStarter.zip on both my Mac and my Windows machine, and it appears that the file is corrupt. On the Mac, I just get a generic error, but in winzip, it appears that the archive is actually missing bytes.

Any ideas? I'd really like to work through the tutorial soon.

thanks
stein
#9
08/06/2006 (10:46 pm)
@Michael,

OK. Give it another try. I re-uploaded the file and everything looks good now.

www.hallofworlds.com/how.ico Hall Of Worlds - For Gamers
EdM|GPGT
#10
08/07/2006 (9:05 pm)
Edward --

Thanks for the quick reply. It worked like a champ! One thing I noticed is that there is a typo in the new appendix.

Step E.12.1 Copy required files.
1. Copy the file "GPGT/MazeRunner/Lesson_017/teleporters.cs"

This should read "levelloader.cs", which is what's being added in this step.

Thanks again.
stein
#11
08/24/2006 (12:02 pm)
@Michael - Thanks! OK. I got that fixed and re-uploaded.

www.hallofworlds.com/how.ico Hall Of Worlds - For Gamers
EdM|GPGT
#12
09/08/2006 (3:39 pm)
Edward:

Just got the book - working through it on Mac OS X...

The cleanup.command file you've included in the OSXStarter.zip file above will not work if you have spaces in your path. Here's a fix:

#!/bin/bash
dir='dirname "[[6281edbd57f96]]"'
echo 'started in directory:' $dir
if [ -e "$dir" ]; then
   cd "$dir"
fi

find . -name *.dso -print0 | xargs -0 rm -f
find . -name *.ml -print0 | xargs -0 rm -f
#13
10/27/2006 (11:38 am)
Oops posted to wrong thread... moving.
#14
10/27/2006 (1:08 pm)
@All Readers - I'm starting to answer ALL of my oustanding GPGT questions. It will take me a few days, so please bear with me over the weekend.

- Thanks

@asmaloney - Thanks again for the cleanup script.

www.hallofworlds.com/how.ico Hall Of Worlds - For Gamers
EdM|GPGT