Problems with gui editors not actually saving changes
by rpi (#0011) · in Torque Game Engine · 03/02/2005 (4:34 pm) · 6 replies
I'm working on a game with another person, and we're using a verson control system to maintain the code (subversion).
I'm able to use the editors to change things, and then save them. And things are all happy and work when I launch Torque again.
Now, my partner goes to check the code out, but when he loads torque, the changes aren't there!
When this happened, I went to check the files that were supposedly saved, and they seem to be the original files before I used the gui editors.
I had asked this on IRC, and they said if I was using linux (which I am), that i'd have to check my home directory... but I'm not really sure what the person was suggesting (they never answered back).
Any help would be greatly appreciated.
I'm able to use the editors to change things, and then save them. And things are all happy and work when I launch Torque again.
Now, my partner goes to check the code out, but when he loads torque, the changes aren't there!
When this happened, I went to check the files that were supposedly saved, and they seem to be the original files before I used the gui editors.
I had asked this on IRC, and they said if I was using linux (which I am), that i'd have to check my home directory... but I'm not really sure what the person was suggesting (they never answered back).
Any help would be greatly appreciated.
#2
03/02/2005 (5:10 pm)
Thank you so much. Although, is there any way to disable this behavior? It makes it difficult to manage the subversion repository, because you'd have to keep syncing the the home directory to the repository...
#3
03/03/2005 (7:43 am)
Are you checking out files from your version control system and then not checking them back in after you have made your changes? Even though Harold seems to have answered your question, I'm still curious as to what your problem is.
#4
Then there is a cycle of making changes, and then checking the files back in
The problem is that my files are checked out in ~/gamedev, but the gui tools save to ~/.garagegames/TorqueDemo. This means that saved files aren't controlled by the version control tools. And to make sure the changes make it back into the repository, I have to manually copy the files back into ~/gamedev and then check the files back in.
03/03/2005 (8:39 am)
What I do is initially check out the files to ~/gamedevThen there is a cycle of making changes, and then checking the files back in
The problem is that my files are checked out in ~/gamedev, but the gui tools save to ~/.garagegames/TorqueDemo. This means that saved files aren't controlled by the version control tools. And to make sure the changes make it back into the repository, I have to manually copy the files back into ~/gamedev and then check the files back in.
#5
03/03/2005 (9:02 am)
Ah thanks for explaining your problem. I haven't messed with editing the gui's yet and use Perforce for source control, so its something I'll have to remember in case I run into this problem.
#6
If you poke about in the source, it's a #define in the Makefile regarding FILE_REDIRECT or similar whcih will fix it once and for all. Please, I beseech you, remember to re-define it before releasing your product :-)
Gary (-;
EDIT: Or, alternatively, as part of your checkin:
cd ~/.garagegames/torqueDemo
find . -name \*.mis -exec cp {} ~/gamedev/torqueDemo/example/{} \;
03/03/2005 (9:29 am)
Or, in short, if you want to disable the behaviour, give torque the -nohomedir option.If you poke about in the source, it's a #define in the Makefile regarding FILE_REDIRECT or similar whcih will fix it once and for all. Please, I beseech you, remember to re-define it before releasing your product :-)
Gary (-;
EDIT: Or, alternatively, as part of your checkin:
cd ~/.garagegames/torqueDemo
find . -name \*.mis -exec cp {} ~/gamedev/torqueDemo/example/{} \;
Torque Owner Harold "LabRat" Brown
It will probably mirror your Torque folder setup, look there for the .gui files you changed.