I tried to follow the instructions in the FAQ to get stdout to show on a Mac, which is essentially just to navigate to /Applications/T-Engine.app/Contents/MacOS/ and run ./T-Engine
I get some output, however the game doesn't quite launch. A white box pops up where the game ought to go, and i get this from stdout:
Yes, running in the terminal under gdb should work, but is there some reason you don't want to use the regular method for running on the Mac and just put the T-Engine.app in your applications folder?
... yes, this is essentially what's in the FAQ. Either something has changed, or I have some odd configuration detail that's screwing up the works. Maybe it's time to upgrade to Lion or Mountain Lion now that all my Diablo II time has been reallocated to TOME.
Yes, running in the terminal under gdb should work, but is there some reason you don't want to use the regular method for running on the Mac and just put the T-Engine.app in your applications folder?
That works fine of course, I just want to be able to see stdout to view messages. Not critical by any means, just want a better understanding of what's going on, especially when I run into problems.
(gdb) info threads
6 "particles" 0x00007fff873d1a6a in __semwait_signal ()
5 "SDLTimer" 0x00007fff873d1a6a in __semwait_signal ()
4 0x00007fff87396dda in semaphore_timedwait_signal_trap ()
3 0x00007fff87396d7a in mach_msg_trap ()
2 "com.apple.libdispatch-manager" 0x00007fff873afc0a in kevent ()
* 1 "com.apple.main-thread" 0x00007fff8759155f in CFSetApplyFunction ()
(gdb) info thread 1
Thread 1 has current state "WAITING"
Mach port #0x903 (gdb port #0x3a07)
frame 0: 0x00007fff8759155f in CFSetApplyFunction ()
pthread ID: 0x7fff70cadcc0
system-wide unique thread id: 0x93839
dispatch queue name: "com.apple.main-thread"
dispatch queue flags: 0x0
total user time: 660998376
total system time: 923904448
scaled cpu usage percentage: 0
scheduling policy in effect: 0x1
run state: 0x3 (WAITING)
flags: 0x0
number of seconds that thread has slept: 0
current priority: 46
max priority: 63
suspend count: 0.
... looks like it's waiting for something, right around where it would be setting up the initial window size, but I can't quite tell what. Is that helpful? Hopefully not TMI.
I've got pretty much the same setup as you do, and last time I tried I was able to run in xterm under gdb and see the game log/output barfing out in the xterm window just fine. Now you're saying you can run under gdb, but don't get any output?
If you start the game the easy way, the output should end up in a log file that you can read in the console. Can you see the output there? Not a solution, but at least you'll know the output is going somewhere...
This seems unlikely, but try xterm instead of the terminal app... sometimes it works better for these sort of things.
OK, I took another look at this and I do get the logging in gdb. I probably had the output redirected to the wrong place. Not quite as simple as it looks in the FAQ, but close enough.