Text in particle editor
by Jeremy Anderson · in Torque Game Builder · 03/01/2005 (12:14 am) · 11 replies
Hey ya'll-
I just installed T2D on my Mac and was playing around with the particle editor... discovered that the text window in which the emitter names are listed is blank. (Although if I hide the emitter, then the text "hidden" does appear in the place of it's name.) Has anybody else run into this on PC or Mac?
I'm almost inclined to wonder if I'm just missing a font or something, so I'm curious if anyone else has seen this one.
Only had about two hours to play with it tonight, but I'm already impressed. Killer work Melv and Josh.
Thanks
-Jeremy
I just installed T2D on my Mac and was playing around with the particle editor... discovered that the text window in which the emitter names are listed is blank. (Although if I hide the emitter, then the text "hidden" does appear in the place of it's name.) Has anybody else run into this on PC or Mac?
I'm almost inclined to wonder if I'm just missing a font or something, so I'm curious if anyone else has seen this one.
Only had about two hours to play with it tonight, but I'm already impressed. Killer work Melv and Josh.
Thanks
-Jeremy
About the author
#2
03/01/2005 (3:23 pm)
Sorry Jeremy, you are right. I don't know how this one slipped by us, but I'll try to get a fix out real soon. I'm afraid with how busy we are here until GDC that it might not happen until afterward, but I'll try to figure it out and do a new release before then!
#4
char* dStrupr(const char *inStr)
{
char* str = inStr;
while (*str)
{
*str = toupper(*str);
str++;
}
return inStr;
}
char* dStrlwr(const char *inStr)
{
char* str = inStr;
while (*str)
{
*str = tolower(*str);
str++;
}
return inStr;
}
03/12/2005 (3:34 pm)
The fix is to change dStrupr and dStrlwr in macCarbStrings.cc to:char* dStrupr(const char *inStr)
{
char* str = inStr;
while (*str)
{
*str = toupper(*str);
str++;
}
return inStr;
}
char* dStrlwr(const char *inStr)
{
char* str = inStr;
while (*str)
{
*str = tolower(*str);
str++;
}
return inStr;
}
#5
03/12/2005 (10:24 pm)
Glad you posted this Jeremy, I thought it was just me too:P And thanks Corey for the fix, works very nicely.
#7
03/13/2005 (2:25 am)
Thanks Corey!
#8
Anyway, this is *not* a huge deal since we'll be getting a new T2D release soon (if my interpretation of other threads is correct) but I figured I'd try to update my OS X version with the code provided above to fix the issue.
So, I opened the pbproj and did both a Release and Debug build in Xcode -- all worked fine.
Then, I edited the 2 functions as indicated above (commenting-out the existing code) and did a rebuild. This time, I get the same warnings, but one error saying "missing symbols" however no other information is provided. Double clicking on the error simply opens-up the pb folder on the disk.
For fun, I commented the new functions and un-commented the old ones and things built just fine once again.
I'm a relative noob at using Xcode and C++ in general, but I am familiar with editing code/etc. and I don't think I screwed anything up. So, are there any ideas out there on what might be happening? The error message is certainly less than useful.
Anyway, like I said, this is NOT a big deal or a complaint in any way - just something I figured I'd toy-around with to gain some experience, so if there aren't any ideas on what's failing or if it's too much work, I'll just wait for the next release (or create effects on the Windows machine).
Thanks!
Mike
04/13/2005 (3:13 pm)
I just noticed this issue with the particle editor emitters not showing-up and found this thread (glad it was not just me!)Anyway, this is *not* a huge deal since we'll be getting a new T2D release soon (if my interpretation of other threads is correct) but I figured I'd try to update my OS X version with the code provided above to fix the issue.
So, I opened the pbproj and did both a Release and Debug build in Xcode -- all worked fine.
Then, I edited the 2 functions as indicated above (commenting-out the existing code) and did a rebuild. This time, I get the same warnings, but one error saying "missing symbols" however no other information is provided. Double clicking on the error simply opens-up the pb folder on the disk.
For fun, I commented the new functions and un-commented the old ones and things built just fine once again.
I'm a relative noob at using Xcode and C++ in general, but I am familiar with editing code/etc. and I don't think I screwed anything up. So, are there any ideas out there on what might be happening? The error message is certainly less than useful.
Anyway, like I said, this is NOT a big deal or a complaint in any way - just something I figured I'd toy-around with to gain some experience, so if there aren't any ideas on what's failing or if it's too much work, I'll just wait for the next release (or create effects on the Windows machine).
Thanks!
Mike
#9
Try removing const from "const char *inStr" in both functions.
04/13/2005 (4:12 pm)
I had the same problem a while ago. My memory's a bit fuzzy, but I think the cause is a disagreement between the 'const'ness of the functions' prototypes and their definitions.Try removing const from "const char *inStr" in both functions.
#10
And, thanks to Corey for the fix!
Thanks!
Mike
04/13/2005 (5:38 pm)
Awesome, Matt! That did fix the issue and I built successfully.And, thanks to Corey for the fix!
Thanks!
Mike
#11
char* dStrupr( char *inStr)
{
char* str = inStr;
while (*str)
{
*str = toupper(*str);
str++;
}
return inStr;
}
char* dStrlwr( char *inStr)
{
char* str = inStr;
while (*str)
{
*str = tolower(*str);
str++;
}
return inStr;
}
09/02/2005 (3:59 pm)
Hmmm.... on Tiger here and the Particle Editor list is not displaying names. Here is my code:char* dStrupr( char *inStr)
{
char* str = inStr;
while (*str)
{
*str = toupper(*str);
str++;
}
return inStr;
}
char* dStrlwr( char *inStr)
{
char* str = inStr;
while (*str)
{
*str = tolower(*str);
str++;
}
return inStr;
}
Torque Owner Drew -Gaiiden- Sikora