Loading wrong project level
by Isaac Barbosa · in Torque Game Builder · 11/24/2007 (9:31 am) · 6 replies
Hello,
I have working in a new project before finishing my current game.
I've closed my game project and started a new and fresh one. I've saved level1 and level2 in the new folder and directory and after 15 days of hard work I have a cool functional prototype.
Now, the problem is that is the time to finish my game, and so I've closed the prototype project and open my unfinished game project. My surprise is that if I try to open level1 or level2 (since the level names are the same for both projects (but they are in different folders)) of my game (not the prototype) TGB is opening the levels of the prototype folder not the game folder.
The confusing point is that I've deleted the prototype folder and I have only the game folder in my hard drive. And once I run the game, TGB loads the right levels but once I want to edit them in TGB I can't since wrong files are being loaded even when the files doesn't exists anymore!.
What can I do to fix this? what could be wrong?
This is a very urgent issue I need to fix. Please help me :)
Thanks!!!
I have working in a new project before finishing my current game.
I've closed my game project and started a new and fresh one. I've saved level1 and level2 in the new folder and directory and after 15 days of hard work I have a cool functional prototype.
Now, the problem is that is the time to finish my game, and so I've closed the prototype project and open my unfinished game project. My surprise is that if I try to open level1 or level2 (since the level names are the same for both projects (but they are in different folders)) of my game (not the prototype) TGB is opening the levels of the prototype folder not the game folder.
The confusing point is that I've deleted the prototype folder and I have only the game folder in my hard drive. And once I run the game, TGB loads the right levels but once I want to edit them in TGB I can't since wrong files are being loaded even when the files doesn't exists anymore!.
What can I do to fix this? what could be wrong?
This is a very urgent issue I need to fix. Please help me :)
Thanks!!!
#2
11/24/2007 (8:18 pm)
I am having the same exact issue with the mainScreen.gui file. The TGB GUI editor keeps loading up an old version of one. I even removed ALL my projects except one and it still loads the wrong one. When I run the game, it loads the right one. It's just a problem in the editor. I wonder if it's a similar issue causing this.
#3
11/26/2007 (5:03 pm)
I am really taxing my memory on this one, so please don't hold it against me for being fuzzy, but I remember something similar happening to me. I think it may have been with 1.13 or 1.3, but then again it could have been 1.5, but it seems too long ago to be 1.5. Any way. I also remember something about the levels being named the same, i.e. both level1 or both level2. I also remember something about deleting the compiled version so the uncompiled script would recompile. There also may have been something about having the option to auto load the last level when restarting the level editor. I know this is all vague and not helpful by itself, but it may be useful data if it helps find a pattern.
#4
Personally, I've only had problems with the "*/" within a single project. I wouldn't be surprised if sometimes it caused cross-project problems tho.
See if changing the name of the file you DON'T want to load fixes your problem. If that is the case, then it probably is because of the wildcard issue.
11/27/2007 (12:13 pm)
I have some suspicion that it has to do with filename/wildcard issues. If you look in other threads, you'll see that often when opening a file from script, a "*/" is necessary at the beginning of the filename. The * operates as a wildcard. Personally, I've only had problems with the "*/" within a single project. I wouldn't be surprised if sometimes it caused cross-project problems tho.
See if changing the name of the file you DON'T want to load fixes your problem. If that is the case, then it probably is because of the wildcard issue.
#5
I will do a simple task: I will not start a new project before finish current one to avoid "surprises" like this one.
11/30/2007 (10:34 am)
ThanksI will do a simple task: I will not start a new project before finish current one to avoid "surprises" like this one.
#6
It happened to me when I has two copies of TGB on my computer. One was a regular installed version, and the other did not go through the "installation" process.
The not-installed version gets confused and loads the wrong level/gui files, because, "i believe" it gets set to the working directory of the installed version ( maybe its looking at something in the registry ).
03/20/2008 (8:39 pm)
I ran into this issue again.It happened to me when I has two copies of TGB on my computer. One was a regular installed version, and the other did not go through the "installation" process.
The not-installed version gets confused and loads the wrong level/gui files, because, "i believe" it gets set to the working directory of the installed version ( maybe its looking at something in the registry ).
Associate James Ford
Sickhead Games
Just thought I'd mention I've noticed some wierd things in this regard as well.