Game Development Community

Not as crossplatform as you think...?

by Jonathan Farris · in Torque Game Engine · 08/09/2005 (8:38 am) · 3 replies

After running into some problems I coppied some code from my linux machine back over to my mac where I do most of my coding. Imagine my surprise when random things stopped working.

After going back to the garagegames site, and downloading both the linux and mac SDK's and poking around, I figured out that the code downloads for mac contain different code than the code downloads for linux and windows!

I haven't gotten diff to do a good compare, I think it's related to newlines, and yes I've tried most of the options, it appears that at least the mac platform code that is included in the windows and linux downloads are [b]completly[b] broken.

As an easy check, you can open platformMacCarb/macCarbNet.cc

if the first few lines contains:
// Touch-ups by William Taysom
Then you are fine.

However the broken versions contain:
//!!!!!!!!! NOTE !!!!!!!!!
// Since the platform layers are currently separate, the Mac implementation takes
// extreme advantage of knowing that all values are already in 'network order', and
// that a byte array of an ip address is the same byte order as a U32 ip address.

Just looking real quick to get those two quotes, the windows files for the mac platform code are dated January 17th, and the mac version of those files are dated Feburary 17th.

Can anyone else shed some more light on this issue.

Are there any other signifigant differences?

About the author

Recent Threads


#1
08/09/2005 (9:20 am)
Hmmm...I have subversion running and link up my laptop (Windows) and Mac all the time. I've been using the latest and greatest 1.3 and 1.4 from CVS, as well as the lighting pack (based on 1.3) and T2D. I'll look into which one I've been using to figure out if it's the broken one or not.
#2
08/09/2005 (1:25 pm)
William Taysom did some updates to the Mac platform layer a while back. They are in the TGE CVS repo, and if the platforms aren't exactly the same between the OS X and Windows in the current TGE 1.3 installers, they will be when the TGE 1.4 installers are released.
#3
08/09/2005 (1:55 pm)
Ah. That would be my benefit, then. I was wondering why I hadn't been having similar issues when I use my Mac for almost all of the code development and DTS asset creation.