Game Development Community

How's 1.5 looking?

by Ron Yacketta · in Torque Game Engine · 01/16/2007 (2:53 pm) · 6 replies

Hey all!

After completing the TGE-L 1.4/1.4.2 work I kind of fell off the face of the planet and out of touch with TGE/GG.
Was wondering how 1.5 was shaping up? any issues to be resolved etc? Looked at the feature list on TDN and it looks like they (GG) just took SVN comments and pasted them up seeing that everything that was mentioned for Linux was the work I did for TGE-L 1.4/1.4.2

Anyways, let me know how things are churning and burning with TGE-L 1.5.*

-Ron

#1
01/16/2007 (4:41 pm)
It mostly works...

X11_KeyToUnicode errors abound.
The correct way to fix this [such that it actually works on ubuntu] is to reimplemnt a similar function with a different name, and rename the function call to that. Well, if no-one else does, then I'm probably going to sooner or later, since this has been annoying me for a while.

Lots of other little sniglets [somewhat reposting my own bugfixes in the hopes of not having to make them again to 1.5.1 :-D]:
C++ Namespace sniglet
Lots of sniglets that will manifest in future versions of GCC [and on apple's GCC right now...]

Then there's a bunch stuff from the TGB forums:
Adding more resolutions [not sure I like this "fix", but thar ye have it]
TGB not restarting properly
New Project doesn't copy paths
EnumeratePlatformFonts doesn't exist
Case sensitivity tpyos
Silly recursion off-by-one

For whatever it's worth, here's a diff of 1.5 engine/platformX86UNIX/ vs my current HEAD: linux-1.5-2007-01-16.diff. It includes some of the TGB fixes [since my 1.5 here also has TGB1.1.3 working in it].

It also includes [not documented above]:
1) Letting SDL choose the best libGL.so to use, instead of randomly guessing two names [this way it works on OSX]
2) this in a couple places [No-one will ever know!]:
#ifndef TORQUE_OS_MAC_OSX // Just quietly ignore on OSX
3) in initSDL, it does this:
setenv("SDL_VIDEODRIVER", "x11", 0); // Don't overwrite
setenv("DISPLAY", ":0", 0); // Don't overwrite
It doesn't ever overwrite the variables, but sets them if they're not set. I find this useful, and will reduce some simple mistakes that people might make.

There's no static libGLU on several modern linux distros, [such as fedora C6], which caused some heartache.

There's a million "no newline at end of file" warnings, still, in torque. It'd be great if these got fixed once and for all, but that would require commits to many many of torque's files, across the board, for one compiler warning. Still, better to just add newlines [rationale] than add compiler flags that don't work on many compiler versions.

Gary (-;
#2
01/16/2007 (4:50 pm)
Oh, heh, you commented in that resource about newlines.
Quote: I was going to-do the entire TGE tree, but never got the OK from GG. They had other platforms in a flux and allowing me to traverse the entire tree would have caused a SVN nightmere

LIES. for a fix like this, svn handles it *very* gracefully. They all do svn update, and magically everything works. Just do it as one commit on its own [to fix the newlines], and no-one even has to work at it.

Gary (-;
#3
01/16/2007 (9:27 pm)
Gary,

no LIES :) I asked if I could make the change and was told to hold off.

anyways, I drop GG a line and see if they want me to make svn/cvs head changes for TGE 1.5.* etc..

-Ron
#4
01/16/2007 (9:33 pm)
Quote:no LIES :) I asked if I could make the change and was told to hold off.

Heh. Wasn't accusing you of lying, was making a general derogatory comment about technology :-)

Gary (-;
#5
01/17/2007 (12:16 pm)
Telnet debugger freeze Linux OS

www.garagegames.com/mg/forums/result.thread.php?qt=55933
#6
01/17/2007 (12:45 pm)
Hey Ron!

Glad to see you crawl out from under your rock!! :-)

Tools don't build under linux right now, but other than that 1.5 appears to be working well here for me under Ubuntu 06.10 (gcc 4.1.2) after I applied most of the changes from Phillipe C's thread. I didn't do the X11_KeyToUnicode fix the same though. I'm not sure where I came up with the one I'm using. It might have been here or from googling.

If you want, you can get my patches from patches-1.5-no-newlines or patches-1.5. The latter patch file contains the added newlines to quiet gcc.

I didn't look at Gary's "Lots of sniglets" issues as I was working and compiling ok for the minute. The TGB stuff I hadn't seen as I didn't even think TGB was available for linux since everytime I looked at the product page it never offered a linux download.

Then of course, there's my pet peeve, Shading/Normal Problems Under Linux. There's a compiler aliasing problem in engine/ts/tsMesh.cc that likes to randomly raise its head. My first few builds of 1.5 didn't exhibit the problem, but now recent builds are, so I regressed the code locally and am not using InvSqrt_Lomont() any more.

This problem is easy to miss if you have textures on your models. I'm sure others are getting bad results also and just not noticing the problem.