Game Development Community

Changing from Fresh Meat in starter.fps?

by James Bond · in Torque Game Engine · 10/31/2004 (9:19 am) · 9 replies

Hello,

In the starter.fps, I would like to change the players default name from "Fresh Meat"
to "James".

I looked around in startMISSIONgui and found
variable = "pref::Player::Name";
so I realised that it wasn't here I needed to be looking at.

So i changed the line in client\defauts.cs from pref::Player::Name = "Fresh Meat";
to pref::Player::Name = "James Bond";
I also deleted the defaults.cs.dso

However it still comes up as Fresh meat when I go to start a new game?

Any help?
Thanks,
-James B.

#1
10/31/2004 (9:26 am)
I found it.
I had to change the player name properties in

client\init.cs also.
#2
10/31/2004 (9:35 am)
Good deal. :)
#3
10/31/2004 (11:42 am)
Its funny,
It took only 7 mins to figure it out, from when I posted my first message.
#4
11/02/2004 (1:41 pm)
James,

You could also, just type in a new name before launching the mission and it would write it to the preferences. No code required :)
#5
11/03/2004 (3:56 am)
Yep. BTW how can you remove name totaly. Deleting the name before launching mission will only change player name to "Poser".
#6
11/03/2004 (10:01 am)
I suggest doing a find in files for "Poser" and removing the code that does the name empty check.
#7
11/03/2004 (11:10 am)
Thanks Ben! I guess that you are talking about C++ cos i didn't see that in scripts altought I wasn't searching too much...don't need yet:
#8
11/03/2004 (11:53 am)
It's in common/server/clientConnection.cs, GameConnection::setPlayerName().
#9
11/03/2004 (11:56 am)
Be sure to search in the "/common/ " scripts folder. :)

EDIT: oops, i should've refreshed before posting....