Mac port missing basic functionality
by David Sill · in Torque Game Engine · 03/09/2005 (10:23 am) · 6 replies
Posted about this problem in January (old thread) and got some non-answers. The consensus seems to be that it is missing, it is a serious issue, and it is up to me to fix.
I have some custom functions in Torque. The windows exe compiles fine. The mac version fails pretty quick.
it involves copying files using Torque - there is a button in the load screen that copies and renames a file in the background.
this is the error I asked about:
I found a bunch of additional libraries at the Apple site but they made no difference. I hear that XCode has problems integrating external libraries so maybe it's just me doing it wrong, but this post (another old thread) suggests it is not just my clueless n00bness. I have been through the forums (fora?) and have found little to nothing relevant to my plight.
I realize the mac is not a major part of the gaming business (despite having a few GG games bundled with new macs) but this function is included in windows, it is acknowledged that it should be in the mac port, and it is not. Is it really up to a clueless n00b to learn all there is to know about C++ this week and fix it?
I have some custom functions in Torque. The windows exe compiles fine. The mac version fails pretty quick.
it involves copying files using Torque - there is a button in the load screen that copies and renames a file in the background.
this is the error I asked about:
Quote:../engine/core/resManager.cc:161: error: 'CopyFile' undeclared (first use this function)
and the line of code it's complaining about:
CopyFile(source, dest, FailIfExists);
I don't know whether it'd be easier to find the right library or to declare what it's saying isn't declared.
it's a pretty basic Finder function. I thought it'd be pretty much built in.
I found a bunch of additional libraries at the Apple site but they made no difference. I hear that XCode has problems integrating external libraries so maybe it's just me doing it wrong, but this post (another old thread) suggests it is not just my clueless n00bness. I have been through the forums (fora?) and have found little to nothing relevant to my plight.
I realize the mac is not a major part of the gaming business (despite having a few GG games bundled with new macs) but this function is included in windows, it is acknowledged that it should be in the mac port, and it is not. Is it really up to a clueless n00b to learn all there is to know about C++ this week and fix it?
#2
A new post has been uploaded to the thread titled "Mac port missing basic functionality".
---Post---------------------------------------------------------
>From Developer: --removed to protect the innocent--
Link to Post: http://www.garagegames.com/mg/forums/result.thread.php?qt=27082
@ Ben
\\\"This isn\\\'t a problem in stock HEAD as the CopyFile call you\\\'re referring to doesn\\\'t exist in resManager.cc.\\\"
It is a problem in ALL releases of TGE. This has not been finished in Mac even though it existed in Windows/Linux since the version 1_0_0. As for the resManager.cc call, it\\\'s nothing more than a console method to allow one to copy files easily and anyone that can grasp the ConsoleMethod\\\'s can put it in themselves. But in this case, Macs choke because nobody finished the CopyFile function for the Mac. EVERY other fileIO function is there but that one.
\\\"It should be in but it\\\'s not a bug that it isn\\\'t.\\\"
Yes, it should. Bug or not, even you admit that it \\\"should\\\" be there. And no offense, but there has been plenty of time to get this type of thing squared away once and for all.
\\\"Have you tried asking a mac person nicely to help you fix it?\\\"
IMO buying a commercial license \\\"should\\\" entitle them to ALL of the basic functionality. Especially if the other two platforms already have it, but it would appear that he has made quite an effort to get it fixed including trying to hire someone to do it even when he shouldn\\\'t have to.
\\\"It ought to take only a few hours to get working, even for a novice developer.\\\"
Well, Ben, in that case, I really have to ask... With your skills, why can\\\'t you take about 15-20 minutes of your time to knock this issue out once and for all? If you need any incentive to get it done, try this out....
Click on the link above to see all the posts for this thread.
If your mail client does not support web links, copy and paste
the link into your browser.
You have received this mail because you requested to be notifed
of any posts to this thread. You can disable future
notifications for this thread by visiting the link and unchecking
the notification box. Or, you can disable all notifications, or
any GarageGames email, from your My Garage preferences page.
03/13/2005 (11:39 am)
Someone (I wonder who that could have been, Ben) at GG deleted the following from this posting:A new post has been uploaded to the thread titled "Mac port missing basic functionality".
---Post---------------------------------------------------------
>From Developer: --removed to protect the innocent--
Link to Post: http://www.garagegames.com/mg/forums/result.thread.php?qt=27082
@ Ben
\\\"This isn\\\'t a problem in stock HEAD as the CopyFile call you\\\'re referring to doesn\\\'t exist in resManager.cc.\\\"
It is a problem in ALL releases of TGE. This has not been finished in Mac even though it existed in Windows/Linux since the version 1_0_0. As for the resManager.cc call, it\\\'s nothing more than a console method to allow one to copy files easily and anyone that can grasp the ConsoleMethod\\\'s can put it in themselves. But in this case, Macs choke because nobody finished the CopyFile function for the Mac. EVERY other fileIO function is there but that one.
\\\"It should be in but it\\\'s not a bug that it isn\\\'t.\\\"
Yes, it should. Bug or not, even you admit that it \\\"should\\\" be there. And no offense, but there has been plenty of time to get this type of thing squared away once and for all.
\\\"Have you tried asking a mac person nicely to help you fix it?\\\"
IMO buying a commercial license \\\"should\\\" entitle them to ALL of the basic functionality. Especially if the other two platforms already have it, but it would appear that he has made quite an effort to get it fixed including trying to hire someone to do it even when he shouldn\\\'t have to.
\\\"It ought to take only a few hours to get working, even for a novice developer.\\\"
Well, Ben, in that case, I really have to ask... With your skills, why can\\\'t you take about 15-20 minutes of your time to knock this issue out once and for all? If you need any incentive to get it done, try this out....
Quote:----------------------------------------------------------------
If I had to make a choice, I would do Mac first. You get more bang for your buck because there is much less competition. Think Tanks, our best selling game is running about 60% Mac sales. The incredible reception to the Lore Beta was much hotter on the Mac than WIN. ~ Jeff Tunnel
Click on the link above to see all the posts for this thread.
If your mail client does not support web links, copy and paste
the link into your browser.
You have received this mail because you requested to be notifed
of any posts to this thread. You can disable future
notifications for this thread by visiting the link and unchecking
the notification box. Or, you can disable all notifications, or
any GarageGames email, from your My Garage preferences page.
#3
A new post has been uploaded to the thread titled "Mac port missing basic functionality".
---Post---------------------------------------------------------
>From Developer: --removed to protect the innocent--
Link to Post: http://www.garagegames.com/mg/forums/result.thread.php?qt=27082
@ Ben
\\\"This isn\\\'t a problem in stock HEAD as the CopyFile call you\\\'re referring to doesn\\\'t exist in resManager.cc.\\\"
It is a problem in ALL releases of TGE. This has not been finished in Mac even though it existed in Windows/Linux since the version 1_0_0. As for the resManager.cc call, it\\\'s nothing more than a console method to allow one to copy files easily and anyone that can grasp the ConsoleMethod\\\'s can put it in themselves. But in this case, Macs choke because nobody finished the CopyFile function for the Mac. EVERY other fileIO function is there but that one.
\\\"It should be in but it\\\'s not a bug that it isn\\\'t.\\\"
Yes, it should. Bug or not, even you admit that it \\\"should\\\" be there. And no offense, but there has been plenty of time to get this type of thing squared away once and for all.
\\\"Have you tried asking a mac person nicely to help you fix it?\\\"
IMO buying a commercial license \\\"should\\\" entitle them to ALL of the basic functionality. Especially if the other two platforms already have it, but it would appear that he has made quite an effort to get it fixed including trying to hire someone to do it even when he shouldn\\\'t have to.
\\\"It ought to take only a few hours to get working, even for a novice developer.\\\"
Well, Ben, in that case, I really have to ask... With your skills, why can\\\'t you take about 15-20 minutes of your time to knock this issue out once and for all? If you need any incentive to get it done, try this out....
Click on the link above to see all the posts for this thread.
If your mail client does not support web links, copy and paste
the link into your browser.
You have received this mail because you requested to be notifed
of any posts to this thread. You can disable future
notifications for this thread by visiting the link and unchecking
the notification box. Or, you can disable all notifications, or
any GarageGames email, from your My Garage preferences page.
03/13/2005 (11:42 am)
Someone (I wonder who that could have been, Ben) at GG deleted the following from this posting:A new post has been uploaded to the thread titled "Mac port missing basic functionality".
---Post---------------------------------------------------------
>From Developer: --removed to protect the innocent--
Link to Post: http://www.garagegames.com/mg/forums/result.thread.php?qt=27082
@ Ben
\\\"This isn\\\'t a problem in stock HEAD as the CopyFile call you\\\'re referring to doesn\\\'t exist in resManager.cc.\\\"
It is a problem in ALL releases of TGE. This has not been finished in Mac even though it existed in Windows/Linux since the version 1_0_0. As for the resManager.cc call, it\\\'s nothing more than a console method to allow one to copy files easily and anyone that can grasp the ConsoleMethod\\\'s can put it in themselves. But in this case, Macs choke because nobody finished the CopyFile function for the Mac. EVERY other fileIO function is there but that one.
\\\"It should be in but it\\\'s not a bug that it isn\\\'t.\\\"
Yes, it should. Bug or not, even you admit that it \\\"should\\\" be there. And no offense, but there has been plenty of time to get this type of thing squared away once and for all.
\\\"Have you tried asking a mac person nicely to help you fix it?\\\"
IMO buying a commercial license \\\"should\\\" entitle them to ALL of the basic functionality. Especially if the other two platforms already have it, but it would appear that he has made quite an effort to get it fixed including trying to hire someone to do it even when he shouldn\\\'t have to.
\\\"It ought to take only a few hours to get working, even for a novice developer.\\\"
Well, Ben, in that case, I really have to ask... With your skills, why can\\\'t you take about 15-20 minutes of your time to knock this issue out once and for all? If you need any incentive to get it done, try this out....
Quote:----------------------------------------------------------------
If I had to make a choice, I would do Mac first. You get more bang for your buck because there is much less competition. Think Tanks, our best selling game is running about 60% Mac sales. The incredible reception to the Lore Beta was much hotter on the Mac than WIN. ~ Jeff Tunnel
Click on the link above to see all the posts for this thread.
If your mail client does not support web links, copy and paste
the link into your browser.
You have received this mail because you requested to be notifed
of any posts to this thread. You can disable future
notifications for this thread by visiting the link and unchecking
the notification box. Or, you can disable all notifications, or
any GarageGames email, from your My Garage preferences page.
#4
That being said, there are several mac developers out there. We got the engine, and yes, some things were missing and we added them back in.
If you are going to do a game for the Mac, you NEED to have someone who knows Macs on your team, at least early on. There is NO way around it.
03/13/2005 (1:40 pm)
That sort of thing should have been taken to email. Being snarky isn't likely to get you any help.That being said, there are several mac developers out there. We got the engine, and yes, some things were missing and we added them back in.
If you are going to do a game for the Mac, you NEED to have someone who knows Macs on your team, at least early on. There is NO way around it.
#5
03/13/2005 (2:08 pm)
I was going to look into this, but I think I'm misunderstanding something. There is NO general copyFile() command anywhere in Torque. Its not in Platform. Its not in the File class. There is a CopyFile() function in the unix file I/O, but its used internally. How can this be missing functionality?
#6
I noticed this, too when i began doing a cursory search of the source (just in case I might one day need this functionality, though I haven't yet between shooters, platformers, racers, and wishful thinkings. After I noticed that, I went back to not really caring.
I'll think about it when I need to do it. Though from looking at the unix code, it shouldn't be that difficult. The most difficult thing seemed to be making sure that the right directory structure, home directories, etc were in place. And most of that was all set out at the beginning anyway. Note that I didn't actually look at the difficulty, but it looked to be about 20-30 lines of code with gratuitous comments. Strangely, I can't remember I used C++ to copy files at work. I use it to create/append/delete/sort/etc them all the time, but rarely to copy them around. I usually use Perl for that at work. Actually, I use Perl for that at home, too. I doubt that you need any of Apple's special developer files (unless XCode wasn't installed). Again, that was from a cursory glance at the code.
03/13/2005 (6:37 pm)
@KurtisI noticed this, too when i began doing a cursory search of the source (just in case I might one day need this functionality, though I haven't yet between shooters, platformers, racers, and wishful thinkings. After I noticed that, I went back to not really caring.
I'll think about it when I need to do it. Though from looking at the unix code, it shouldn't be that difficult. The most difficult thing seemed to be making sure that the right directory structure, home directories, etc were in place. And most of that was all set out at the beginning anyway. Note that I didn't actually look at the difficulty, but it looked to be about 20-30 lines of code with gratuitous comments. Strangely, I can't remember I used C++ to copy files at work. I use it to create/append/delete/sort/etc them all the time, but rarely to copy them around. I usually use Perl for that at work. Actually, I use Perl for that at home, too. I doubt that you need any of Apple's special developer files (unless XCode wasn't installed). Again, that was from a cursory glance at the code.
Associate Kyle Carter
Have you tried asking a mac person nicely to help you fix it? It ought to take only a few hours to get working, even for a novice developer.