Animation, material and object names get upper cased

Scripting questions, discussions, etc
4 posts Page 1 of 1
saindd
Posts: 220
Joined: Wed Apr 15, 2015 3:20 am
by saindd » Sat Dec 12, 2015 1:50 am
Randomly, some material, object and sequence names get upper cased by Torque 3D. I edit the CS files manually, and it renames then. For example, if i name a sequence "run", it converts to "Run".

Why does it do such an annoying thing?
Duion
Posts: 1102
Joined: Sun Feb 08, 2015 1:51 am
 
by Duion » Sat Dec 12, 2015 3:15 am
I have that also, they are listed with uppercase in the shape editor, but they are still lowercase in my script file, maybe because I add them through notepad and not through the ingame editor.
Bloodknight
Posts: 138
Joined: Tue Feb 03, 2015 8:58 pm
by Bloodknight » Tue Dec 15, 2015 6:01 pm
If you edit parts of the CS file that torque writes to then, its to be expected that the torque overwrites those changes if you use a tool that writes your work.

That being said, auto capitalisation of words is the domain, or grammar and spelling correction applications such as word processors, perhaps a global setting to allow/disallow the engine from making such decisions would be useful.
chriscalef
Posts: 377
Joined: Mon Feb 09, 2015 7:48 pm
by chriscalef » Tue Dec 15, 2015 7:55 pm
I think the cause of your problem here is most likely the StringTable. I could be entirely wrong here, but I think this is what's going on:

Torque is generally not case sensitive (at least to and from the console), and it stores strings in the StringTable so that it can reuse them when it sees them again and doesn't have to waste space store redundant strings. However, a side effect of these two facts is that if there is already a "Run" in the StringTable, and then you try to use the word "run", it will fall back to its original "Run" instead, viewing them as the same word.

Again, this is just a theory, but I have reason to believe it may be correct.
4 posts Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest