Changing Code but nothing changin in game
by Luke Hopkins · in Torque Game Engine · 03/27/2008 (8:55 am) · 7 replies
Ive finally got my whole engine to complie with no errors, now when i change code an rebuild the project nothing seems to change in game
E.G
Ive changed in Player.cc
PlayerData::PlayerData()
{
renderFirstPerson = false;
changed the rend to false so third person loads up first. bt nothing changes in game. I know my builds are right because i delete the previous exe's and dll build again and i get new ones. Could some1 help Please
Thank You
E.G
Ive changed in Player.cc
PlayerData::PlayerData()
{
renderFirstPerson = false;
changed the rend to false so third person loads up first. bt nothing changes in game. I know my builds are right because i delete the previous exe's and dll build again and i get new ones. Could some1 help Please
Thank You
#2
03/27/2008 (3:29 pm)
You may also be building a debug exe and so you are clicking on the old exe. Look in your torque dir and see if there is a "torqueDemo_DEBUG.exe" or something like that and try that out.
#3
03/27/2008 (3:32 pm)
Setting the default in the playerdata isn't going to do much of anything if the script is setting renderfirstperson to true.
#4
03/27/2008 (6:26 pm)
Lolz my internet was gay and reposted it when i refreshed, ive evan change the script var, i am releaseing in not debugin, how can i make it so the code base is default and not script
#5
I don't think it is used to determine what camera to use by default.
Gabriel
03/27/2008 (6:43 pm)
Erm I think that variable dictates whether to render the player model when in first person mode (so you might see the arms or legs if you look down).I don't think it is used to determine what camera to use by default.
Gabriel
#6
to server/scripts/game.cs at then end of:
function GameConnection::createPlayer(%this, %spawnPoint)
Gabriel
03/27/2008 (7:04 pm)
Try adding:%this.setfirstperson(false);
to server/scripts/game.cs at then end of:
function GameConnection::createPlayer(%this, %spawnPoint)
Gabriel
#7
When a script error is detected, Torque always uses the last successfully compiled version of your script.
03/27/2008 (8:44 pm)
If none of your changes in the file appear to work at all, you may have a script error in that file.When a script error is detected, Torque always uses the last successfully compiled version of your script.
Employee Michael Perry
ZombieShortbus
Have you modified the script variable? Perhaps it is set to true in script which overrides your engine modification.