Resetting the capitalisation of StringTable strings in script
by Ian Omroth Hardingham · in Torque Game Engine · 08/24/2009 (11:09 am) · 1 replies
Hey guys.
I've got a bit of an annoying problem here. Let's say I've made a multiplayer turn-based game in Torque and John wants to challenge Cindy to a game. He types in "Cindy" in the "challenge to a game" text box, and it gets sent to my game server.
However, there's a problem. Cindy actually likes funny capitalisation and her username is "CiNdY". The game server looks up "Cindy" in the users database and finds "CiNdY", and sets up the game. But now, on John's client, he always sees "Cindy" rather than "CiNdY" whenever that string is rendered, because TorqueScript takes the first capitalisation of a given string forever.
Quite simply, I'd like to tell Torque to use a different capitalisation of a given string - does anyone know the best way of doing this?
Thanks,
Ian
(PS - this may sound like kind of a silly thing to worry about, but I think it is important enough to try and fix)
I've got a bit of an annoying problem here. Let's say I've made a multiplayer turn-based game in Torque and John wants to challenge Cindy to a game. He types in "Cindy" in the "challenge to a game" text box, and it gets sent to my game server.
However, there's a problem. Cindy actually likes funny capitalisation and her username is "CiNdY". The game server looks up "Cindy" in the users database and finds "CiNdY", and sets up the game. But now, on John's client, he always sees "Cindy" rather than "CiNdY" whenever that string is rendered, because TorqueScript takes the first capitalisation of a given string forever.
Quite simply, I'd like to tell Torque to use a different capitalisation of a given string - does anyone know the best way of doing this?
Thanks,
Ian
(PS - this may sound like kind of a silly thing to worry about, but I think it is important enough to try and fix)
About the author
Designer and lead programmer on Frozen Synapse, Frozen Endzone, and Determinance. Co-owner of Mode 7 Games.
Torque 3D Owner Novack
CyberianSoftware